/* ==========================================================================
   0. TYPOGRAPHY (Inter body / Plus Jakarta Sans headings)
   ========================================================================== */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   1. NAVBAR STYLES (MAROON & GRAY PALETTE)
   ========================================================================== */
.dropdown-item.active-item {
    color: #6B1C1C !important;
    background-color: #F8F9FA;
    font-weight: 800;
    border-left: 3px solid #6B1C1C;
    padding-left: 1.15rem;
}

.custom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-nav.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active-link {
    color: #D9A3A3 !important;
}

.btn-utm {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: rgba(141, 43, 43, 0.4);
    color: #ffffff !important;
    border: 1px solid #A64343;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-utm:hover {
    background-color: #8D2B2B !important;
    border-color: #8D2B2B;
}

.custom-nav.scrolled .nav-link {
    color: #333333 !important;
}

.custom-nav.scrolled .nav-link:hover,
.custom-nav.scrolled .nav-link.active-link {
    color: #8D2B2B !important;
}

.custom-nav.scrolled .btn-utm {
    background-color: #8D2B2B !important;
    color: #ffffff !important;
    border-color: transparent;
}

.custom-nav.scrolled .btn-utm:hover {
    background-color: #6B1C1C !important;
}

.mobile-btn {
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.custom-nav.scrolled .mobile-btn {
    color: #333333 !important;
}

.mobile-drawer {
    display: none;
    padding: 15px 20px;
    background-color: #6B1C1C;
}

.mobile-drawer.open {
    display: block;
}

.custom-nav.scrolled .mobile-drawer {
    background-color: #ffffff;
    border-bottom: 1px solid #E5E5E5;
}

.mobile-drawer a {
    display: block;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .nav-menu-desktop { display: none; }
    .mobile-btn { display: block; }
}

/* Latar merah solid pada navbar utama ketika menu mobile aktif */
@media (max-width: 768px) {
    #navbar.active,
    .custom-nav.active,
    .mobile-drawer-open #navbar {
        background-color: #6B1C1C !important;
    }
}

/* ==========================================================================
   DESKTOP DROPDOWN MENU STYLES
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Rotasi ikon panah saat menu disorot */
.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Container Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;       /* Memaksa lebar menyesuaikan teks terpanjang */
    min-width: 250px;         /* Melebarkan batas minimum container */
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E5E5;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 100;
}

/* Tampilkan Dropdown saat Hover */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling Item di dalam Dropdown */
.dropdown-item {
    display: block;
    padding: 0.65rem 1.25rem;
    color: #333333 !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;      /* Mencegah teks turun ke baris baru */
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #F8F9FA;
    color: #6B1C1C !important;
    padding-left: 1.5rem;
}

/* ==========================================================================
   2. HERO SECTION STYLES (VIDEO BACKGROUND)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Memenuhi tinggi layar penuh */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a0505; /* Fallback warna jika video belum muat */
}

/* STYLING VIDEO BACKGROUND */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Mencegah video terdistorsi */
    z-index: 0;
}

/* DARK OVERLAY (TINT GELAP BERARSIR MAROON) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(20, 5, 5, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(20, 5, 5, 0.8) 100%
    );
    z-index: 1;
}

/* CONTENT CONTAINER DI ATAS VIDEO */
.hero-content {
    position: relative;
    z-index: 2; /* Menempatkan konten di atas video & overlay */
    text-align: center;
    color: #ffffff;
    padding: 6rem 1rem 4rem 1rem;
    width: 100%;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

.hero-desc {
    font-size: 1rem;
    color: #E0E0E0 !important;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .hero-desc {
        font-size: 1.125rem;
    }
}

.hero-btn-wrapper {
    display: flex;
    justify-content: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    border: 2px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #ffffff;
    color: #6B1C1C !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   3. SECTION 3 PILAR STYLES (RESEARCH, ACADEMIC, COMMUNITY)
   ========================================================================== */
.pillars-section {
    background-color: #6B1C1C; /* Maroon Dark */
    padding: 4rem 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.15);
}

.pillars-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.pillar-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #8D2B2B; /* Maroon */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.pillar-desc {
    color: #EBDADA !important; /* Maroon Very Light */
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.625;
    margin: 0;
}

/* ==========================================================================
   ABOUT US SECTION STYLES (MODERN ELEGAN)
   ========================================================================== */
.about-section {
    padding-top: 7rem;    
    padding-bottom: 6rem; 
    display: flex;
    align-items: center;  
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    align-items: center; 
}

.about-card, 
.slider-wrapper {
    align-self: center !important;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CARD KIRI (CONTENT) */
.about-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E5E5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* BADGE ACCENT ATAS JUDUL */
.about-badge {
    display: inline-block;
    background-color: #EBDADA; /* Maroon Very Light */
    color: #6B1C1C !important;  /* Maroon Dark */
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* JUDUL TEBAL & MENONJOL */
.about-hero-title {
    font-size: 1.75rem;
    font-weight: 900; /* Font sangat tebal */
    color: #333333 !important;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .about-hero-title {
        font-size: 2rem;
    }
}

.about-desc {
    color: #555555 !important;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-desc p {
    margin-bottom: 1rem;
}

.about-desc p:last-child {
    margin-bottom: 0;
}

.about-desc strong {
    color: #6B1C1C !important; /* Menonjolkan nama EPSK Laboratory */
}

/* GARIS AKSEN DI BAGIAN Bを行 KARTU (PEMANTAP TAMPILAN) */
.about-card-footer {
    margin-top: 0rem;
    padding-top: 1rem;
}

.about-accent-line {
    width: 60px;
    height: 4px;
    background-color: #8D2B2B; /* Maroon Utama */
    border-radius: 2px;
}

/* SLIDER KANAN */
.slider-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border: 4px solid #ffffff;
    background-color: #333333;
    height: 100%;
    min-height: 380px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(107, 28, 28, 0.7);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #8D2B2B;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #8D2B2B;
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   6. LATEST NEWS SECTION STYLES (MAROON & GRAY PALETTE)
   ========================================================================== */
.news-section {
    background-color: #6B1C1C; /* Maroon Dark Penuh Kanan-Kiri */
    padding: 5rem 0;
    width: 100%;
}

.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER DALAM MAROON */
.news-header-banner {
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}

.news-header-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff !important;
}

@media (min-width: 640px) {
    .news-header-title {
        font-size: 2.5rem;
    }
}

.news-header-desc {
    color: #EBDADA !important; /* Maroon Very Light */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* GRID KARTU (3 KOLOM) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* KARTU BERITA */
.news-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.news-image-wrapper {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #8D2B2B; /* Maroon Utama */
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-body {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #777777 !important;
    margin-bottom: 0.75rem;
}

.news-meta i {
    margin-right: 0.25rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333333 !important;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #8D2B2B !important;
}

.news-card-footer {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
}

.btn-read-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid #8D2B2B;
    color: #8D2B2B !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #8D2B2B;
    color: #ffffff !important;
}

/* TOMBOL SEE MORE DI DALAM MAROON (BUTTON STYLE) */
.news-see-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-see-more:hover {
    background-color: #ffffff;
    color: #6B1C1C !important; /* Teks berubah maroon saat hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-see-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-see-more:hover i {
    transform: translateX(4px);
}

.news-pagination-wrapper {
    margin-top: 2.5rem;
}

/* ARTICLE DETAIL PAGE */
.article-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #333333 !important;
    line-height: 1.3;
    margin: 0.75rem 0 1rem 0;
}

.article-meta {
    margin-bottom: 1.75rem;
}

.article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.75rem;
}

.article-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555555;
}

.article-content p {
    margin: 0 0 1rem 0;
}

.article-content h2,
.article-content h3 {
    color: #6B1C1C;
    font-weight: 800;
    margin: 1.5rem 0 0.75rem 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1rem 1.5rem;
}

.article-content a {
    color: #8D2B2B;
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid #EBDADA;
    padding-left: 1rem;
    color: #555555;
    font-style: italic;
    margin: 1rem 0;
}

.article-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ==========================================================================
   CONTACT US & MAPS SECTION STYLES (MAROON & GRAY PALETTE)
   ========================================================================== */
.contact-section {
    padding: 5rem 1rem;
    background-color: #ffffff;
    border-top: 1px solid #E5E5E5;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #6B1C1C !important; /* Maroon Dark */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-desc {
    color: #555555 !important; /* Gray Deep */
    font-size: 0.875rem;
    margin-bottom: 2rem;
    line-height: 1.625;
}

/* LIST INFORMASI ALAMAT & EMAIL */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #EBDADA; /* Maroon Very Light */
    color: #8D2B2B; /* Maroon Utama */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-item-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #333333 !important; /* Dark Gray */
    margin: 0 0 0.25rem 0;
}

.contact-item-text {
    font-size: 0.875rem;
    color: #555555 !important;
    margin: 0;
    line-height: 1.5;
}

/* SOCIAL MEDIA BUTTONS */
.social-media-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #333333 !important;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 0.75rem; /* Jarak antar tombol */
    align-items: center;
}

.social-btn {
    width: 46px !important;  /* Lebar dibuat sama dengan tinggi agar jadi KOTAK */
    height: 46px !important; /* Tinggi dibuat sama dengan lebar */
    padding: 0 !important;   /* Menghapus padding samping yang membuatnya melebar */

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 10px;     /* Melengkung halus di sudutnya (Ubah ke 0px jika ingin sudut tajam) */
    font-size: 1.15rem;      /* Ukuran ikon di tengah */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-btn.li { background-color: #0A66C2 }
.social-btn.ig { background-color: #E1306C; }
.social-btn.tt { background-color: #000000; }
.social-btn.yt { background-color: #FF0000; }

/* MAPS EMBED CONTAINER */
.maps-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden; /* Memotong bagian iframe yang keluar dari area ini */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E5E5;
}

.maps-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   OVERVIEW PAGE STYLES (PALET MAROON & ABU-ABU EPSK)
   ========================================================================== */

/* Wrapper Utama Halaman */
.overview-page-wrapper {
    background-color: #F4F4F4;
    padding-top: 0 !important;
    padding-bottom: 5rem;
    min-height: 100vh;
}

.overview-hero-header {
    width: 100%;
    height: 240px;
    padding-top: 5.5rem;
    background-size: cover;

    /* UBAH BAGIAN INI UNTUK MENGATUR ATAS-BAWAH GAMBAR */
    background-position: right 15% !important; /* Sesuaikan nilai 15% ini sampai posisi gambar pas */

    background-repeat: no-repeat;
    text-align: center;
    border-bottom: 3px solid #8D2B2B;
}

.overview-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* TOP HEADER TITLE (SESUAI GAMBAR REFERENSI) */
.overview-top-header {
    text-align: center;
    padding: 1rem 1rem 2.5rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.overview-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #EBDADA !important;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.overview-main-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #FFFFFF !important;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.overview-title-line {
    width: 60px;
    height: 4px;
    background-color: #EBDADA;
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.overview-container {
    max-width: 1140px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* CARDS STYLING */
.overview-card {
    background: #FFFFFF;
    padding: 2.25rem;
    border-radius: 0.85rem;
    border: 1px solid #E5E5E5; /* Gray Very Light */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* TAGS / BADGES */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.card-tag.tag-history { background-color: #EBDADA; color: #6B1C1C; }
.card-tag.tag-vision  { background-color: #EBDADA; color: #8D2B2B; }
.card-tag.tag-mission { background-color: #E5E5E5; color: #333333; }
.card-tag.tag-declaration { background-color: #EBDADA; color: #6B1C1C; }

/* TITLES & TEXTS */
.overview-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #6B1C1C !important; /* Dark Maroon */
    margin-bottom: 1rem;
}

.overview-text {
    font-size: 0.95rem;
    color: #555555 !important; /* Gray Deep */
    line-height: 1.7;
}

.overview-text strong {
    color: #333333 !important;
}

/* GRID LAYOUTS */
.vm-grid, .dm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vm-grid, .dm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* QUOTE HIGHLIGHT */
.highlight-quote {
    font-style: italic;
    color: #333333 !important;
    border-left: 4px solid #8D2B2B;
    padding-left: 1rem;
    font-weight: 500;
}

/* MISSION LIST */
.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
}

.mission-icon {
    color: #8D2B2B;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* MOTTO CARD (SPECIAL MAROON GRADIENT) */
.motto-card {
    background: linear-gradient(135deg, #6B1C1C 0%, #8D2B2B 100%);
    border-radius: 0.85rem;
    padding: 2.25rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(107, 28, 28, 0.3);
}

.motto-content {
    position: relative;
}

.motto-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.5rem;
    display: block;
}

.motto-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #EBDADA;
    text-transform: uppercase;
}

.motto-text {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF !important;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.motto-sub {
    font-size: 0.85rem;
    color: #E5E5E5 !important;
    margin: 0;
}

/* BANNER HEADER TOP OVERVIEW */
.overview-hero-banner {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #8D2B2B;
}

.overview-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.overview-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(107, 28, 28, 0.75) 20%, rgba(51, 51, 51, 0.3));
    pointer-events: none;
}

/* NAVBAR DENGAN BACKGROUND BANNER TERPOTONG */
.navbar-banner-style {
    background-image: linear-gradient(to right, rgba(107, 28, 28, 0.85) 30%, rgba(0, 0, 0, 0.4)),
                      url('public/images/2.jpeg') !important;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-bottom: 2px solid #8D2B2B;
    padding: 0.75rem 1.5rem;
}

/* KONTROL JARAK KONTEN OVERVIEW KETIKA NAVBAR PUNYA HEIGHT SENDIRI */
.overview-page-wrapper {
    background-color: #F4F4F4;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

/* ==========================================================================
   LECTURER PAGE STYLES (PALET MAROON & ABU-ABU EPSK)
   ========================================================================== */

.section-intro {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

.section-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: #6B1C1C;
    margin: 0.75rem 0 0.5rem 0;
}

.section-subtext {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

/* LECTURER GRID LAYOUT */
.lecturer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .lecturer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lecturer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CARD STYLING */
.lecturer-card {
    background: #FFFFFF;
    border-radius: 1rem;
    border: 1px solid #E5E5E5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecturer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(107, 28, 28, 0.12);
    border-color: #D9A3A3;
}

/* IMAGE WRAPPER */
.lecturer-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #E5E5E5;
    overflow: hidden;
}

.lecturer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.lecturer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #6B1C1C;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* INFO SECTION */
.lecturer-info {
    padding: 1.5rem;
    text-align: center;
}

.lecturer-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333333;
    margin: 0 0 0.25rem 0;
}

.lecturer-nip {
    font-size: 0.8rem;
    color: #777777;
    margin: 0;
}

.lecturer-divider {
    width: 40px;
    height: 3px;
    background-color: #8D2B2B;
    margin: 0.85rem auto;
    border-radius: 2px;
}

.lecturer-expertise {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B1C1C;
    margin-bottom: 1.25rem;
}

.lecturer-expertise i {
    margin-right: 0.35rem;
}

/* SOCIAL ICONS */
.lecturer-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.lecturer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #F4F4F4;
    color: #6B1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid #E5E5E5;
}

.lecturer-socials a:hover {
    background-color: #8D2B2B;
    color: #FFFFFF;
    border-color: #8D2B2B;
}

/* ==========================================================================
   LECTURER CARD & DETAIL STYLES
   ========================================================================== */

/* HOVER & LINK PADA KARTU DOSEN */
.lecturer-card-link {
    text-decoration: none;
    display: block;
}

.lecturer-name a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lecturer-name a:hover {
    color: #6B1C1C;
}

.lecturer-action-btn {
    margin-top: 1.25rem;
}

.btn-detail-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background-color: #F4F4F4;
    color: #6B1C1C !important;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.25 ease;
    border: 1px solid #E5E5E5;
}

.btn-detail-profile:hover {
    background-color: #6B1C1C;
    color: #FFFFFF !important;
    border-color: #6B1C1C;
}

/* KEMBALI BUTTON */
.back-navigation {
    margin-bottom: 0.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;         /* Padding atas-bawah & kiri-kanan */
    background-color: #FFFFFF;        /* Latar putih bersih seirama dengan kartu */
    color: #6B1C1C !important;        /* Warna teks maroon */
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;            /* Sudut melengkung */
    border: 1px solid #E5E5E5;        /* Garis tepi tipis */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); /* Bayangan lembut */
    transition: all 0.25s ease;
}

.btn-back:hover {
    background-color: #6B1C1C;        /* Latar berubah maroon saat di-hover */
    color: #FFFFFF !important;        /* Teks & ikon berubah jadi putih */
    border-color: #6B1C1C;
    box-shadow: 0 4px 12px rgba(107, 28, 28, 0.2);
    transform: translateY(-2px);       /* Efek terangkat sedikit */
}

/* GRID DETAIL 2 KOLOM */
.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .profile-detail-grid {
        grid-template-columns: 320px 1fr;
    }
}

/* SIDEBAR CARD (KIRI) */
.profile-sidebar-card {
    background: #FFFFFF;
    border-radius: 1rem;
    border: 1px solid #E5E5E5;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.profile-avatar-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #EBDADA;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-role-badge {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    background: #6B1C1C;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.4;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333333;
    margin: 0 0 0.25rem 0;
}

.profile-nip {
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 1.5rem;
}

.profile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    background: #F4F4F4;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.icon-maroon {
    color: #6B1C1C;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.profile-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 1rem;
}

.profile-social-buttons .social-btn {
    width: 100% !important;          /* Memenuhi lebar sidebar */
    height: auto !important;         /* Tinggi fleksibel menyesuaikan teks */
    padding: 0.7rem 1rem !important;  /* Padding rapi untuk teks */

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    background-color: #6B1C1C;
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.profile-social-buttons .social-btn:hover {
    background-color: #8D2B2B;
    transform: none !important;
}

.social-links .social-btn {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.15rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background-color: #6B1C1C;
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-btn:hover {
    background-color: #8D2B2B;
}

/* KONTEN UTAMA (KANAN) */
.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: #FFFFFF;
    border-radius: 1rem;
    border: 1px solid #E5E5E5;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #EBDADA;
}

.card-icon {
    font-size: 1.25rem;
    color: #6B1C1C;
}

.detail-card-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6B1C1C;
    margin: 0;
}

/* TIMELINE PENDIDIKAN */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 0.5rem;
    border-left: 2px solid #EBDADA;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.25rem;
}

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background-color: #6B1C1C;
    border-radius: 50%;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.2rem 0;
}

.timeline-content .institution {
    font-size: 0.85rem;
    color: #555555;
    margin: 0 0 0.35rem 0;
}

.year-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B1C1C;
    background: #EBDADA;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
}

/* LIST PENELITIAN & PENGABDIAN */
.data-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.data-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.6;
}

.bullet-icon {
    color: #8D2B2B;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   EPSIKERS (4x4 GRID LAYOUT)
   ========================================================================== */
.epsikers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom Sejajar */
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.epsiker-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.epsiker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 28, 28, 0.12);
    border-color: #ebdada;
}

.epsiker-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Rasio persegi 1:1 */
    background: #f8fafc;
    overflow: hidden;
}

.epsiker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.epsiker-card:hover .epsiker-img {
    transform: scale(1.04);
}

.epsiker-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(107, 28, 28, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.epsiker-info {
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.epsiker-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epsiker-nim {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.epsiker-divider {
    height: 1px;
    background: #e9ecef;
    margin-bottom: 0.75rem;
}

.epsiker-contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #555555;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epsiker-contact-row i {
    color: #6B1C1C;
    font-size: 0.85rem;
}

.epsiker-contact-row span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsif untuk Tablet & HP */
@media (max-width: 1024px) {
    .epsikers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom di Tablet */
    }
}

@media (max-width: 600px) {
    .epsikers-grid {
        grid-template-columns: 1fr; /* 1 Kolom di Layar HP */
    }
}

/* SWITCHER PERIODE TERPADU DALAM SECTION INTRO */
.period-inline-switcher {
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.period-switcher-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0;
}

.period-switcher-label i {
    color: #6B1C1C;
}

.period-select-inline {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B1C1C;
    background-color: #ffffff;
    border: 1.5px solid #ebdada;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(107, 28, 28, 0.05);
}

.period-select-inline:hover,
.period-select-inline:focus {
    border-color: #6B1C1C;
    box-shadow: 0 0 0 3px rgba(107, 28, 28, 0.12);
}
