/* ======================================
   RESET & ROOT VARIABLES
====================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d2d62;
    --secondary: #0b2559;
    --text: #222;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f8f9fb;
    --white: #ffffff;
    --success: #16a34a;
    --radius: 16px;
    --transition: 0.3s ease;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ======================================
   HEADER & NAVIGATION
====================================== */

header {
    background: #f1f1f1;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 120px;
    padding: 12px 0;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
    transition: height var(--transition);
}

.logo h2 {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 18px;
}

nav a {
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.menu {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.menu > li {
    position: relative;
}

.menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.menu a i {
    font-size: 12px;
    flex-shrink: 0;
}

/* Dropdown Level 2 */
.menu .has-dropdown {
    position: relative;
}

.menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 999;
}

.menu .has-dropdown:hover > .dropdown {
    display: block;
}

/* Hover item */
.menu .dropdown li > a,
.menu .submenu li > a {
    padding: 10px 16px;
    color: #333;
}

.menu .dropdown li:hover > a,
.menu .submenu li:hover > a {
    background: #f5f5f5;
}

/* Level 3 */
.menu .has-submenu {
    position: relative;
}

.menu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    min-width: 220px;
    background: #fff;              /* Background level 3 */
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
}

.menu .has-submenu:hover > .submenu {
    display: block;
}
.menu .has-submenu > a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Ikon */
.menu .has-submenu > a i{
    margin-left: auto;
    font-size: 12px;
}
/* DROPDOWN NAVIGATION */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown li a {
    padding: 12px 20px;
}

.dropdown li a:hover {
    background: #f3f4f6;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* NAVBAR RIGHT WRAPPER (Lang Switcher + Login) */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* LOGIN BUTTON */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-login i {
    font-size: 0.95rem;
}

.btn-login:hover {
    opacity: 0.9;
    color: #fff;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
}

.text-small {
    font-size: 0.75rem;
}

.lang-btn-label {
    display: none;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    padding: 10px 0;
    border-radius: 4px;
    min-width: 130px;
    list-style: none;
    z-index: 1000;
    display: none;
}

.lang-dropdown li a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.lang-dropdown li a:hover {
    background-color: #f5f5f5;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.flag {
    font-size: 1.2rem;
}

/* ======================================
   MOBILE NAVIGATION (off-canvas)
   Catatan: butuh sedikit JS untuk toggle class
   ".nav-open" pada <body> saat tombol .mobile-menu
   diklik. Lihat contoh script di akhir file/README.
====================================== */

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 22, 43, 0.55);
    z-index: 1998;
    opacity: 0;
    transition: opacity var(--transition);
}

body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
}

@media (max-width: 1200px) {

    .navbar {
        flex-wrap: nowrap;
        padding: 10px 16px;
    }

    .logo img {
        height: 48px;
        max-width: 140px;
    }

    /* Tombol hamburger tampil, menu desktop disembunyikan secara default */
    .mobile-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1999;
        overflow-y: auto;
        padding: 90px 0 30px;
        transition: right var(--transition);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    body.nav-open nav {
        right: 0;
    }

    /* Menu jadi kolom vertikal penuh, bukan baris horizontal */
    .menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .menu a {
        padding: 16px 24px;
        white-space: normal;
    }

    /* Dropdown & submenu: hover diganti jadi accordion berbasis class,
       karena perangkat sentuh tidak punya event hover yang reliable */
    .menu .dropdown,
    .menu .submenu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .menu .has-dropdown:hover > .dropdown,
    .menu .has-submenu:hover > .submenu,
    .has-dropdown:hover .dropdown {
        display: none;
    }

    /* Class "open" ditambahkan lewat JS saat item di-tap */
    .menu .has-dropdown.open > .dropdown,
    .menu .has-submenu.open > .submenu {
        display: block;
    }

    .menu .has-submenu > a i {
        transition: transform var(--transition);
    }

    .menu .has-submenu.open > a i {
        transform: rotate(90deg);
    }

    /* Lang switcher & tombol Login: disembunyikan dari top bar,
       muncul di dalam panel off-canvas saat hamburger diklik */
    .navbar-right {
        order: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        padding: 20px 24px;
        margin-top: 12px;
        border-top: 1px solid var(--border);
    }

    .lang-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 0;
    }

    .lang-btn-label {
        display: inline;
        flex: 1;
        text-align: left;
    }

    .lang-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: 1px solid var(--border);
        width: 100%;
        margin-top: 8px;
    }

    .lang-switcher:hover .lang-dropdown,
    .lang-switcher.open .lang-dropdown {
        display: block;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
    }

    .btn-login span {
        display: inline;
    }
}

/* Laptop ukuran menengah: menu masih tampil penuh (bukan hamburger),
   tapi spacing dirapatkan lagi supaya tidak overflow */
@media (min-width: 1201px) and (max-width: 1500px) {
    .logo img {
        height: 55px;
        max-width: 130px;
    }

    .navbar {
        gap: 12px;
        padding: 12px 16px;
    }

    nav {
        gap: 10px;
    }

    .menu {
        gap: 2px;
    }

    .menu a {
        padding: 12px 8px;
        font-size: 0.92rem;
        gap: 6px;
    }

    .navbar-right {
        gap: 8px;
    }

    .btn-login {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .logo img {
        height: 40px;
        max-width: 110px;
    }

    .navbar {
        padding: 8px 12px;
        gap: 8px;
    }
}

/* ======================================
   BUTTONS
====================================== */

.btn-primary,
.btn-outline {
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ======================================
   HERO & SWIPER SLIDER
====================================== */

.hero {
    padding: 80px 0;
}

.hero.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    background: #fff;
}

:root {
    --swiper-theme-color: #0d2d62; 
    --swiper-navigation-size: 24px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
}

/* Gradasi blend: gambar menyatu ke background putih di sisi kiri.
   Pseudo-element ::before diletakkan di atas gambar (z-index lebih tinggi),
   warna dari putih solid (dekat teks) memudar jadi transparan (masuk ke gambar). */
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        to right,
        #fff 0%,
        rgba(255, 255, 255, 0.85) 8%,
        rgba(255, 255, 255, 0) 35%
    );
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image::before {
        background: linear-gradient(
            to bottom,
            #fff 0%,
            rgba(255, 255, 255, 0.85) 8%,
            rgba(255, 255, 255, 0) 30%
        );
    }
}
/* ======================================
   FEATURED INSIGHT OVERLAY CARD
====================================== */

/* Pastikan pembungkus gambar menjadi jangkar absolute */
.hero-image {
    position: relative;
    width: 100%;
}

.featured-insight-card {
    position: absolute;
    bottom: 24px;       /* Jarak dari batas bawah gambar */
    right: 24px;        /* Jarak dari batas kanan gambar */
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    max-width: 340px;   /* Lebar maksimal kartu */
    box-shadow: 0 10px 30px rgba(7, 22, 43, 0.15); /* Bayangan soft warna Navy utama Anda */
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Label kecil kuning atas */
.featured-insight-card .fi-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b; /* Warna kuning emas/amber elegan */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Judul artikel di dalam kartu */
.featured-insight-card .fi-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #07162B; /* Warna Navy utama Anda */
    line-height: 1.4;
    margin: 4px 0;
}

/* Link aksi bawah */
.featured-insight-card .fi-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #07162B;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    transition: 0.2s ease;
}

.featured-insight-card .fi-link:hover {
    opacity: 0.7;
}

/* Responsif: Sembunyikan kartu atau modifikasi jika layar HP terlalu sempit */
@media (max-width: 576px) {
    .featured-insight-card {
        position: static; /* Biar mengalir ke bawah gambar jika di mobile layar kecil */
        margin-top: 15px;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Hero Slider Background Alternative */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.slide-content {
    position: absolute;
    z-index: 3;
    max-width: 700px;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: white;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ======================================
   HERO HORIZONTAL STATS
====================================== */

.hero-stats {
    padding: 30px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center; 
    gap: 15px;          
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #eef3ff; 
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;      
}

.stat-icon i {
    color: var(--primary);
    font-size: 20px;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text h3 {
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.stat-text span {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap; 
}

/* ======================================
   SECTIONS & BASE PATTERNS
====================================== */

.section,
.dashboard-section {
    padding: 40px 0;
}

.gray {
    background: var(--bg-light);
}

.white-bg { 
    background-color: #ffffff; 
}

.gray-bg { 
    background-color: #f8fafc; 
}

.section-title,
.section-header {
    margin-bottom: 30px;
}
.section-title p {
    color: var(--primary);
    font-size: 17px;
    margin-top: 4px;
}

.section-title h2,
.section-header h2 {
    font-size: 36px;
    color: var(--primary);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    
   
}
.section-header-flex h2 {
    color: var(--muted);
    font-size: 36px;
    color: var(--primary);
}
.section-header-flex a {
    font-weight: 700;
    color: var(--primary);
}

/* ======================================
   GRID LAYOUTS & REUSABLE CARDS
====================================== */

.cards-4,
.research-grid, 
.insights-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Base structural component logic for cards */
.card, 
.research-card, 
.insight-card,
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.card {
    padding: 30px;
}
/* Pastikan selektor dibuat lebih spesifik agar tidak tertimpa class lain */
.research-card .card-body,
.insight-card .card-body,
.post-card .card-body {
    padding: 20px 24px; /* Atas-Bawah: 20px, Kiri-Kanan: 24px */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Mengisi sisa ruang kosong dalam kartu */
    text-align: left; /* Memastikan alignment teks rata kiri dengan rapi */
}

/* Opsional: Jika Anda ingin memberikan jarak presisi pada elemen teks di dalamnya */
.research-card .card-body h3,
.post-card .card-body h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.research-card .card-body p,
.post-card .card-body p {
    margin-bottom: 20px;
}
.research-card .category-badge,
.post-card .category-badge {
    position: absolute;
    bottom: 12px;  /* Jarak 12px dari batas bawah gambar */
    left: 12px;    /* Jarak 12px dari batas kiri gambar */
    
    /* Desain tampilan badge sesuai mockup */
    background: rgba(255, 255, 255, 0.95); /* Warna putih solid/semi-transparan */
    color: #0d2d62; /* Warna biru gelap Triarka */
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
    z-index: 2; /* Memastikan badge berada di lapisan atas gambar */
}
.research-card .card-image-wrapper,
.post-card .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Sesuaikan dengan tinggi gambar yang Anda inginkan */
    overflow: hidden;
}

.research-card .card-image-wrapper img,
.post-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mencegah gambar menjadi gepeng */
}
.card:hover,
.research-card:hover,
.insight-card:hover,
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card i {
    color: var(--primary);
    font-size: 35px;
    margin-bottom: 15px;
}
.insight-meta {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-category {
    color: var(--primary);
    font-weight: 700;
}
.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Memaksa footer kartu nempel ke bawah secara merata */
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--muted);
}
.bookmark-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.95rem;
    transition: var(--transition);
}
.bookmark-btn:hover {
    color: var(--primary);
}

/* Post Cards specific internal items */
.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ======================================
   ENGAGE / VIDEO CARDS (Youtube)
====================================== */

/* Card grid (index & related) saat post_type = engage */
.research-card--video .card-image-wrapper,
.post-card--video .card-image-wrapper {
    cursor: pointer;
}

.research-card--video .card-image-wrapper img,
.post-card--video .card-image-wrapper img {
    transition: transform var(--transition);
}

.research-card--video:hover .card-image-wrapper img,
.post-card--video:hover .card-image-wrapper img {
    transform: scale(1.06);
}

.research-card--video .card-image-wrapper::after,
.post-card--video .card-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: var(--transition);
    z-index: 2;
}

.video-play-btn svg {
    margin-left: 3px;
}

.research-card--video:hover .video-play-btn,
.post-card--video:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.video-trigger-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.video-trigger-btn:hover {
    opacity: .85;
}

/* Player video di halaman detail (show), pengganti detail-image-wrapper untuk engage */
.detail-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* rasio 16:9 */
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.detail-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox untuk video (index & related) */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-lightbox.is-open {
    display: flex;
}

.video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .85);
}

.video-lightbox__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    z-index: 1;
}

.video-lightbox__frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.video-lightbox__frame-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-lightbox__close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.video-lightbox__close:hover {
    background: rgba(255,255,255,.3);
}

.post-content {
    padding: 20px;
}

/* ======================================
   SUBJECT SECTION (CAPSULE CHIPS)
====================================== */

.subject-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 18px;       
    padding: 10px 0;
}

.subject-card {
    display: inline-flex;
    align-items: center;      
    gap: 14px;                
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px 28px;       
    border-radius: 50px;      
    text-decoration: none;    
    color: #1e293b;           
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.subject-card i {
    font-size: 1.6rem;        
    color: #0d2d62;           
}

.subject-card:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px); 
}

@media (max-width: 768px) {
    .subject-card {
        padding: 13px 20px;
        font-size: 1rem;
        gap: 10px;
    }

    .subject-card i {
        font-size: 1.3rem;
    }
}

/* ======================================
   LAB SECTION
====================================== */

.lab-section {
    background: #fff;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lab-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lab-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.lab-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.lab-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon i {
    color: var(--primary);
    font-size: 22px;
}

.lab-header h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.lab-header span {
    color: var(--muted);
    font-size: 13px;
}

.lab-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.lab-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.lab-card a:hover {
    gap: 12px;
}

.lab-card a i {
    font-size: 13px;
}

/* ======================================
   DASHBOARD SECTION
====================================== */

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
}

/* LEFT SIDEBAR MENU */
.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.menu-card:hover {
    border-color: var(--primary);
}

.menu-card i {
    color: var(--primary);
    font-size: 22px;
}

.menu-card h4 {
    margin-bottom: 5px;
}

.menu-card span {
    color: var(--muted);
    font-size: 13px;
}

/* ADMIN SUB-STATS CARD */
.dashboard-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
    display: flex;
    align-items: center; /* Ikon dan teks sejajar secara vertikal di tengah */
    gap: 16px;           /* Jarak horizontal antara ikon dan blok teks */
    width: 100%;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Desain Kartu Baru (Ikon Kanan) */
.stat-card-right-icon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    
    /* Gunakan Flexbox untuk memisahkan Teks (kiri) dan Ikon (kanan) */
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Jarak vertikal antar baris teks */
}

/* Label Paling Atas */
.stat-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

/* Angka Utama */
.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0d2d62; /* Warna biru gelap utama */
    margin: 0;
    line-height: 1.1;
}

/* Indikator Tren Paling Bawah (Warna Hijau) */
.stat-trend {
    font-size: 0.775rem;
    color: #10b981; /* Warna hijau indikator positif */
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

/* Pembungkus Ikon di Sebelah Kanan */
.stat-icon-right {
    flex-shrink: 0;
}

.stat-icon-right i {
    font-size: 2.5rem; /* Ukuran ikon diperbesar sesuai maket */
    color: #0d2d62;    /* Warna ikon selaras dengan angka */
    opacity: 0.85;
}

/* Responsif untuk perangkat Mobile Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon {
    width: 55px;
    height: 55px;
    background: #eef3ff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.icon i {
    color: var(--primary);
    font-size: 22px;
}

.stat-card h3 {
    font-size: 32px;
    color: var(--primary);
}

.stat-card p {
    color: var(--muted);
}

.growth {
    display: block;
    margin-top: 10px;
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

/* ANALYTICS CHART & DATA MAP */
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-card,
.map-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.chart-card h4,
.map-card h4 {
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
}

.chart-card {
    height: 400px;
    max-height: 400px;
    overflow: hidden;
}

#impactChart {
    width: 100% !important;
    height: 320px !important;
}

/* ======================================
   FOOTER BLOCK
====================================== */

footer {
    background: #071d49;
    color: #fff;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.4fr 1.7fr;
    gap: 30px;
}

/* Quick Links: 2 sub-kolom di dalam satu blok */
.footer-quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.footer-quicklinks-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
}

footer li a,
footer li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition);
}

footer ul a:hover {
    color: #ffc107;
}

/* Logo + description block */
.footer-brand-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Social icons row (placed with the logo/brand column) */
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: #ffc107;
    color: #071d49;
}

/* Newsletter form (Stay Updated) */
.footer-newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

footer input {
    flex: 1;
    width: auto;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
}

footer button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #ffc107;
    color: #071d49;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

footer button:hover {
    background: #e0a800;
}

/* Contact Us column */
.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: #ffc107;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ======================================
   RESPONSIVE LAYOUTS (MEDIA QUERIES)
====================================== */

@media (max-width: 1200px) {
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .cards-4,
    .research-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .dashboard-wrapper,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    .hero-grid,
    .cards-4,
    .research-grid,
    .insights-grid,
    .dashboard-section .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 35px;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-quicklinks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header,
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }

    .lab-card {
        padding: 24px;
    }

    .slide-content h1 {
        font-size: 2.5rem; 
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr; 
    }
}
/* ======================================
   WHAT WE DO SECTION (ANTI-CRASH)
====================================== */

/* Grid utama khusus rumpun What We Do */
.wwd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Container kartu dengan nama unik */
.wwd-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 16px);
    padding: 24px;
    transition: var(--transition, 0.3s ease);
    
    /* Layout horizontal: Ikon di kiri, Teks di kanan */
    display: flex;
    align-items: flex-start; 
    gap: 16px; 
    height: 100%;
}

.wwd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Desain Ikon di Samping Kiri */
.wwd-card i {
    color: var(--primary, #0d2d62);
    font-size: 26px; 
    flex-shrink: 0; /* Mengunci dimensi ikon agar tidak gepeng saat teks panjang */
    margin-top: 2px; /* Menyelaraskan posisi vertikal dengan baris pertama judul */
}

/* Pembungkus Konten Teks */
.wwd-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Jarak vertikal ketat antara h3 dan p */
}

.wwd-card h3 {
    font-size: 1.2rem;
    color: var(--primary, #0d2d62);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.wwd-card p {
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .wwd-grid {
        grid-template-columns: repeat(2, 1fr); /* Tampilan Tablet: 2 Kolom */
    }
}

@media (max-width: 576px) {
    .wwd-grid {
        grid-template-columns: 1fr; /* Tampilan HP: 1 Kolom Penuh */
        gap: 16px;
    }
}

/* ======================================
   PEOPLE & TEAM SECTION (MODERN STYLE)
====================================== */

/* Hero Section */
.team-hero {
    position: relative; 
    height: 30vh; 
    min-height: 250px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}

.team-hero .overlay {
    position: absolute;
    inset: 0;
    background: #071d49;
    z-index: 2;
}

.team-hero .hero-text-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    color: var(--white, #ffffff);
}

.team-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.team-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Kategori / Departemen Section */
.team-category-section {
    padding: 30px 0;
}
.team-hint-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(7, 22, 43, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Agar tidak mengganggu trigger hover kartu */
}

.team-hint-badge i {
    font-size: 0.75rem;
}

/* Container Overlay Teks Deskripsi */
.team-description-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 22, 43, 0.95) 0%, rgba(13, 45, 98, 0.85) 100%);
    z-index: 4;
    display: flex;
    align-items: flex-end; /* Memposisikan teks di bagian bawah foto */
    padding: 20px;
    opacity: 0;
    transform: translateY(30px); /* Posisi awal bergeser ke bawah */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Konten Internal di Dalam Overlay */
.overlay-inner-content {
    text-align: left;
    width: 100%;
}

.overlay-inner-content h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

.overlay-inner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 10; /* Membatasi tinggi teks maksimal 5 baris agar tidak meluber */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- LOGIKA HOVER TRIGGER --- */

/* Ketika Kartu Di-hover, Munculkan Overlay dari Bawah ke Atas */
.team-card:hover .team-description-overlay {
    opacity: 1;
    transform: translateY(0); /* Kembali ke posisi semula */
}

/* Sembunyikan Badge Petunjuk Saat Sedang Di-hover Agar Bersih */
.team-card:hover .team-hint-badge {
    opacity: 0;
}
.category-title {
    font-size: 1.5rem;
    color: var(--primary, #0d2d62);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary, #0d2d62);
    border-radius: 2px;
}

/* Grid Tampilan Anggota Tim (4 Kolom Modern) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Kartu Anggota Tim */
.team-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    transition: var(--transition, 0.3s ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Wadah Foto Efek Studio Portrait */
.team-image-box {
    position: relative;
    width: 100%;
    padding-top: 120%; /* Aspek rasio portrait profesional studio */
    overflow: hidden;
    background-color: #f3f4f6;
}

.team-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Fokus ke area wajah/atas */
    transition: transform 0.5s ease;
}

/* Efek Hover Interaktif Kartu */
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(13, 45, 98, 0.1);
    border-color: rgba(13, 45, 98, 0.2);
}

.team-card:hover .team-image-box img {
    transform: scale(1.04); /* Efek zoom halus pada foto saat di-hover */
}

/* Detail Informasi Teks */
.team-info {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-info h3 {
    font-size: 1.2rem;
    color: var(--primary, #0d2d62);
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.team-info .position {
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
    font-weight: 500;
    margin-bottom: 0;
}

/* State Data Kosong */
.no-data-wrapper {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Responsive Breakpoints (Menyesuaikan dengan layout bawaan web Anda) */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .team-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .team-hero {
        height: auto;
        padding: 80px 0;
    }
    .team-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #112559 0%, var(--primary, #0d2d62) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition, 0.3s ease);
}

.avatar-fallback-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-initials {
    color: var(--white, #ffffff);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* ======================================
   NEW PUBLIC BOOK LISTING
====================================== */

.book-public-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 576px) { .book-public-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .book-public-grid { grid-template-columns: repeat(4, 1fr) !important; } }

.book-card {
    background: #ffffff !important;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Soft shadow modern */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 45, 98, 0.15);
    box-shadow: 0 15px 35px rgba(13, 45, 98, 0.1);
}

.book-cover-container {
    position: relative;
    width: 100%;
    padding-top: 140%; /* Menjaga aspek rasio cover portrait stabil */
    overflow: hidden;
    background-color: #f1f5f9;
    display: block;
}

.book-cover-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover-container img {
    transform: scale(1.03);
}

/* Desain Fallback Jika Gambar Error 404 */
.book-placeholder-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.book-placeholder-cover i {
    font-size: 3rem !important;
    opacity: 0.3;
    margin-bottom: 0 !important;
}

/* Badge Jenis Cover Atas */
.book-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(7, 22, 43, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.book-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: #ffffff;
}

.book-public-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.book-public-meta {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-public-meta .pub-name {
    color: #475569;
    font-weight: 600;
}

.book-action-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    transition: color 0.2s ease, gap 0.2s ease;
}

.book-card:hover .book-action-link {
    color: #ef4444; /* Warna aksen dinamis saat di-hover */
    gap: 12px;
}

/* ======================================
   BOOK HERO
====================================== */

.book-hero{
    position:relative;
    height:45vh;
    min-height:320px;
    display:flex;
    justify-content:center;
    align-items:center;
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.book-hero .overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(7,22,43,.92),
        rgba(7,22,43,.65)
    );
}

.book-hero .hero-text-wrapper{
    position:relative;
    z-index:2;
    text-align:center;
    color:#fff;
    max-width:800px;
}

.book-hero h1{
    font-size:3rem;
    font-weight:800;
    margin-bottom:16px;
}

.book-hero p{
    font-size:1.05rem;
    opacity:.9;
}

.book-detail-hero{
    background:#07162B;
    padding:80px 0;
    color:white;
}


.book-detail-wrapper{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:60px;
    align-items:center;
}


.book-detail-cover img{
    width:100%;
    box-shadow:0 20px 40px rgba(0,0,0,.3);
}



.book-detail-info h1{
    font-size:46px;
    line-height:1.2;
    margin:20px 0;
}



.book-category{
    background:#fff;
    color:#07162B;
    padding:8px 18px;
    font-size:12px;
    font-weight:700;
}



.book-meta-item{
    display:flex;
    gap:15px;
    margin-bottom:20px;
}



.book-meta-item i{
    font-size:22px;
}


.book-meta-item small{
    display:block;
    opacity:.7;
}



.book-meta-item strong{
    font-size:17px;
}



.btn-download{

    display:inline-block;
    margin-top:25px;
    background:white;
    color:#07162B;
    padding:14px 28px;
    font-weight:bold;
    text-decoration:none;

}



.book-content-detail{
    max-width:900px;
}



.book-content-detail h2{
    font-size:36px;
    margin-bottom:30px;
}



.book-description{
    font-size:18px;
    line-height:1.8;
}



.book-information{
    margin-top:50px;
}



.book-information table{
    width:100%;
}



.book-information td{
    padding:12px;
    border-bottom:1px solid #eee;
}



@media(max-width:768px){

.book-detail-wrapper{
    grid-template-columns:1fr;
}

.book-detail-info h1{
    font-size:32px;
}

}
.author-section{
    margin-top:60px;
}


.author-card{
    display:flex;
    gap:25px;
    padding:30px 0;
    border-bottom:1px solid #eee;
}


.author-icon{

    width:70px;
    height:70px;
    min-width:70px;
    border-radius:50%;
    background:#07162B;
    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;
}


.author-info h3{

    font-size:24px;
    margin:0 0 10px;

}


.author-info p{

    line-height:1.8;
    color:#555;

}

.hero-training{
    position:relative;
    height:500px;
    background:url("../images/training-banner.jpg") center center/cover no-repeat;
    display:flex;
    align-items:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(7,22,43,.65);
}



.training-intro{
    padding:100px 0;
    background:#07162B;
}

.intro-box{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.intro-label{
    display:inline-block;
    padding:10px 22px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:50px;
    color:#fff;
    font-size:13px;
    font-weight:600;
    letter-spacing:2px;
    margin-bottom:25px;
}

.intro-box h2{
    color:#fff;
    font-size:42px;
    font-weight:700;
    margin-bottom:25px;
}

.intro-box p{
    color:rgba(255,255,255,.85);
    line-height:2;
    font-size:17px;
}

.training-section{
    padding:100px 0;
}

.training-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:70px;
    margin-bottom:100px;
}

.training-text{
    flex:1;
    max-width:460px;
}

.training-number{
    display:flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#07162B;
    color:#fff;
    font-size:20px;
    font-weight:700;
    margin-bottom:25px;
}

.training-text h2{
    font-size:40px;
    color:#07162B;
    font-weight:700;
    line-height:1.3;
    margin-bottom:25px;
}

.training-description{
    color:#666;
    font-size:16px;
    line-height:1.9;
}

.training-description p{
    margin-bottom:18px;
}

.training-description ul{
    margin:20px 0;
    padding-left:22px;
}

.training-description li{
    margin-bottom:10px;
}

.training-image{
    flex:1;
}



.pagination-wrapper{
    display:flex;
    justify-content:center;
    margin-top:60px;
}

.pagination{
    display:flex;
    gap:12px;
    list-style:none;
    padding:0;
    margin:0;
}

.page-item{
    list-style:none;
}

.page-link{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:12px;
    background:#fff;
    border:1px solid #e5e5e5;
    color:#07162B;
    text-decoration:none;
    transition:.3s;
}

.page-link:hover{
    background:#07162B;
    color:#fff;
}

.page-item.active .page-link{
    background:#07162B;
    color:#fff;
    border-color:#07162B;
}

.empty-training{
    text-align:center;
    padding:120px 0;
}

.empty-training h2{
    color:#07162B;
    margin-bottom:15px;
}

.empty-training p{
    color:#666;
}

@media(max-width:992px){

    .hero-training{
        height:340px;
    }

    .hero-content h1{
        font-size:42px;
    }

    .training-item{
        flex-direction:column;
        gap:40px;
        margin-bottom:80px;
    }

    .training-text{
        max-width:100%;
        width:100%;
    }

    .training-image{
        width:100%;
    }

    .training-text h2{
        font-size:30px;
    }

    /* .swiper-slide img{
        height:320px;
    } */

    .intro-box h2{
        font-size:32px;
    }

}

@media(max-width:768px){

    .hero-training{
        height:280px;
    }

    .hero-content h1{
        font-size:34px;
    }

    .training-section{
        padding:70px 0;
    }

    .training-intro{
        padding:70px 0;
    }

    .intro-box p{
        font-size:15px;
    }

    .training-text h2{
        font-size:26px;
    }

 
}
.tableau-wrapper{
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.tableau-wrapper iframe{
    display: block;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 700px;
    border: none;
}

@media (max-width: 992px){
    .tableau-wrapper iframe{
        height: 80vh;
        min-height: 600px;
    }
}

@media (max-width: 576px){
    .tableau-wrapper iframe{
        height: 70vh;
        min-height: 500px;
    }
}
.detail-hero {
    position: relative;
    height: 30vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.detail-hero .overlay {
    position: absolute;
    inset: 0;
    background: #071d49;
    z-index: 2;
}
.detail-hero .hero-text-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    color: var(--white, #ffffff);
}
.detail-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.detail-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}


.map-card-embed {
    position: relative;
    width: 100%;
    height: 360px; /* sesuaikan tinggi sesuai desain card lain */
    overflow: hidden;
    border-radius: 8px;
}

.map-card-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ======================================
   CONTACT CTA SECTION
====================================== */

.contact-cta-section {
    padding: 40px 0 60px;
}

.contact-cta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.contact-cta-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.contact-cta-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-cta-icon i {
    font-size: 26px;
    color: #fff;
}

.contact-cta-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.contact-cta-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.contact-cta-text {
    margin: 0;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-cta-btn {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-cta-btn i {
    font-size: 18px;
    transition: transform var(--transition);
}

.contact-cta-btn:hover {
    background: var(--bg-light);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.contact-cta-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .contact-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }

    .contact-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ======================================
   CONTACT FORM PAGE
====================================== */

.section-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.form-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.form-alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contact-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-required {
    color: #dc2626;
}

.form-hint {
    margin: -2px 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 45, 98, 0.1);
}

.form-control.is-invalid {
    border-color: #dc2626;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: #dc2626;
}

.service-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.service-checkbox-item:hover {
    border-color: var(--primary);
    background: #fff;
}

.service-checkbox-item input {
    display: none;
}

.service-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-checkbox-box i {
    font-size: 15px;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: var(--transition);
}

.service-checkbox-item input:checked + .service-checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}

.service-checkbox-item input:checked + .service-checkbox-box i {
    opacity: 1;
    transform: scale(1);
}

.service-checkbox-label {
    font-size: 14px;
    color: var(--text);
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit-btn i {
    font-size: 17px;
    transition: transform var(--transition);
}

.form-submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 45, 98, 0.25);
}

.form-submit-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .contact-form-card {
        padding: 24px;
    }

    .form-row,
    .service-checkbox-grid {
        grid-template-columns: 1fr;
    }
}