.text-blue-lppm {
    color: #0a2343 !important;
}

.btn-blue-lppm {
    background-color: #0a2343 !important;
}

body {
    margin: 0;
    font-family: Poppins, Montserrat, sans-serif;
    background-color: white;
}

/* ====================== Navbar ===================*/
.nav-lppm, .nav-lppm ul {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.nav-lppm {
    background: #0a2343;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4% 5%;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1050; /* Di atas Bootstrap z-index */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-lppm {
    width: 200px;
    height: 60px;
    background-image: url("../img/logo_uts_white.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-links-lppm {
    display: flex;
    align-items: center;
}

.nav-links-lppm a {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links-lppm a:hover {
    color: #ffd900 !important;
}

/* Dropdown Desktop */
.dropdown-lppm { position: relative; }
.dropdown-content-lppm {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #003366;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
}

@media (min-width: 993px) {
    .dropdown-lppm:hover .dropdown-content-lppm { display: block; }
}

.dropdown-content-lppm a {
    display: block;
    padding: 10px 20px !important;
}

/* Hamburger */
.hamburger-lppm {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger-lppm span {
    width: 25px; height: 3px; background: #fff;
}

/* Responsive Navbar */
@media screen and (max-width: 992px) {
    .hamburger-lppm { display: flex; }
    .nav-links-lppm {
        position: fixed;
        right: -100%; top: 80px;
        width: 100%; height: 100vh;
        background: #0a2343;
        flex-direction: column;
        padding-top: 30px;
        transition: 0.4s;
    }
    .nav-links-lppm.active { right: 0; }
    .nav-links-lppm li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links-lppm a { padding: 15px 5% !important; display: block; }
    
    .dropdown-content-lppm { position: static; background: #02498f; width: 100%; }
    .dropdown-content-lppm.show { display: block; }
}

/* ================= END NAVBAR ==================*/

/* ==================== SLIDER LPPM ================== */
/* Container Utama */
.slider-lppm {
    position: relative;
    width: 100%;
    height: 85vh; /* Tinggi slider */
    overflow: hidden;
    background-color: #000;
}

/* Gambar Slider */
.slide-lppm {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide-lppm.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay Statis */
.slide-overlay-lppm {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 35, 67, 0.85) 0%, rgba(10, 35, 67, 0.4) 100%);
    z-index: 3;
}

/* Container Teks */
.slide-container-lppm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}

.slide-text-lppm {
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.slide-text-lppm h1 {
    /* Responsive font: Minimal 28px, Maksimal 56px tergantung lebar layar */
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-text-lppm p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
}

/* DOTS */
.dots-lppm {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dots-lppm span {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dots-lppm span.active {
    background: #ffd900;
    transform: scale(1.3);
}

/* MEDIA QUERIES UNTUK MOBILE */
@media (max-width: 768px) {
    .slider-lppm {
        height: 60vh; /* Lebih pendek di HP */
    }

    .slide-overlay-lppm {
        background: rgba(10, 35, 67, 0.7); /* Overlay rata di HP */
    }

    .slide-text-lppm {
        text-align: center; /* Rata tengah di HP */
    }
}

/* ===================== END SLIDER LPPM ======================= */

/* ================= BERITA LPPM ================= */
.news-card {
    transition: all 0.3s ease-in-out;
}

/* Membuat gradient hitam transparan di bawah agar teks putih terbaca */
.news-link {
    text-decoration: none;
}

.news-card {
    border: none;
    background: #000; /* Dasar hitam untuk transisi smooth */
}

/* Overlay yang lebih gelap di bawah, transparan di atas */
.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    transition: background 0.3s ease;
    z-index: 2;
}

/* Efek Zoom Gambar */
.card-img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card:hover .card-img {
    transform: scale(1.1);
}

/* Mempercantik Judul */
.news-title {
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Efek saat hover: overlay sedikit menggelap */
.news-card:hover .news-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}
/* ================= BERITA LPPM ================= */

/* ================= FOOTER-LPPM ================= */
#footer-lppm {
    position: relative;
    background-image: url("../img/design_uts.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.bg-overlay-lppm {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 67, 0.92);
    z-index: 0;
}

#footer-lppm .container { position: relative; z-index: 1; }

.line-lppm {
    width: 60px; height: 3px; background: #ffd900; border-radius: 2px;
}

.footer-links-lppm li a {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links-lppm li a:hover {
    color: #ffd900 !important;
    transform: translateX(5px);
}

.social-icon-lppm i { transition: 0.3s; }
.social-icon-lppm:hover i { color: #ffd900; transform: translateY(-3px); }

.copyright-lppm {
    background: #ffd900;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #footer-lppm { text-align: center; }
    .line-lppm { margin: 0 auto 20px auto; }
}