/* ==========================================================================
   1. PENGATURAN TAB (JWTS TABBER)
   ========================================================================== */
ul.jwts_tabbernav li {
    display: inline-block;
    margin-bottom: 8px; 
}

/* Desain tombol tab default */
ul.jwts_tabbernav li a {
    font-size: 15px;
    margin: 0 5px 8px 0; 
    padding: 10px 14px 12px;
    color: #333;
    border: 0px solid #bbb;
    border-bottom: 0;
    background: #eee;
    display: inline-block; 
    transition: all 0.3s ease !important;
    border-radius: 4px;
}

/* Efek Hover pada tab biasa */
ul.jwts_tabbernav li:not(.jwts_tabberactive) a:hover {
    background-color: #dcdcdc !important;
    color: #1b4d3e !important;
    text-decoration: none !important;
}

/* Tampilan Tab yang SEDANG AKTIF */
ul.jwts_tabbernav li.jwts_tabberactive a {
    background-color: #669933 !important;
    color: #ffffff !important;
    border: 1px solid #669933 !important;
    font-weight: bold !important; 
}

/* Efek Hover pada tab yang SEDANG AKTIF */
ul.jwts_tabbernav li.jwts_tabberactive a:hover {
    background-color: #1b4d3e !important;
    color: #ffffff !important;
    border-color: #1b4d3e !important;
    text-decoration: none !important;
}

/* Padding dalam tab konten aktif */
.jwts_tabberlive .jwts_tabbertab {
    text-align: left;
    margin: 2px 0 0 !important;
    padding: 8px;
    border-top: 0px solid #bbb;
}


/* ==========================================================================
   2. ARCHITECTURAL RE-DESIGN: T4 HEADER & MEGAMENU (DESKTOP)
   ========================================================================== */
#t4-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1060 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 35px rgba(27, 77, 62, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid #edf2f7 !important;
}

/* Header Grid */
#t4-header-wrap .row.no-gutters {
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
}

.t4-right-header {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Pembungkus Megamenu (Dikunci 100px) */
.t4-megamenu-wrap {
    background-color: transparent !important;
    padding: 1px 0 !important;
    height: 100px !important;
    max-height: 100px !important;
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
}

/* Logo */
.navbar-brand img {
    max-height: 80px !important;
    width: auto !important;
}

/* Item Menu Utama (Nav Link) */
.t4-megamenu .navbar-nav > li > a,
.t4-megamenu .navbar-nav > li > a.nav-link {
    height: 100px !important;
    line-height: 100px !important;
    padding: 0 14px !important;
    position: relative !important;
    font-size: 16px !important; 
    font-weight: normal !important; /* <-- HURUF KEMBALI NORMAL (TIDAK BOLD) */
}

/* Efek Animasi Garis Bawah Bawaan */
.t4-megamenu .navbar-nav > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 14px !important;
    right: 14px !important;
    height: 3px !important;
    background-color: #1b4d3e !important;
    transform: scaleX(0) !important;
    transition: transform 0.25s ease !important;
    transform-origin: left !important;
}

.t4-megamenu .navbar-nav > li:hover > a::after,
.t4-megamenu .navbar-nav > li.active > a::after {
    transform: scaleX(1) !important;
}

.t4-megamenu .navbar-nav > li.parent > a .item-caret {
    margin-left: 4px !important;
}

/* Kotak Dropdown (Megamenu) */
.t4-megamenu .dropdown-menu {
    border: none !important;
    border-top: 4px solid #669933 !important;
    border-radius: 0 !important;
    box-shadow: 0 15px 40px rgba(27, 77, 62, 0.12) !important;
    padding: 10px 0 !important; /* Jarak atas-bawah kotak dropdown dirapatkan */
    background-color: #ffffff !important;
    min-width: 300px !important;
    overflow: hidden !important;
}

/* Area Item dalam Dropdown */
.t4-megamenu .dropdown-item {
    padding: 10px 24px !important; /* <-- JARAK ANTAR MENU DIRAPATKAN */
    white-space: normal !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Efek interaktif geser kanan saat disorot */
.t4-megamenu .dropdown-item:hover {
    background-color: #f4f9f5 !important;
    padding-left: 30px !important; 
}

/* Ukuran Font Dropdown */
.dropdown-menu > li > a,
.dropdown-menu .dropdown-item,
.sp-dropdown li.sp-menu-item > a, 
ul.nav-child li a {
    font-size: 16px !important; 
}


/* ==========================================================================
   3. CSS GLOBAL AMAN (ANTI OVERFLOW LAYOUT)
   ========================================================================== */
html, body, #t4-wrapper, .t4-wrapper {
    overflow-x: clip !important;
    max-width: 100% !important;
}

#t4-main-body, .t4-main-body, .t4-section {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

#t4-header, .t4-header, .t4-main-nav, .navbar {
    overflow: visible !important;
}

.row, .t4-row, .t4-section-inner .row, .row-fluid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ==========================================================================
   4. OPTIMASI TAMPILAN RESPONSIVE (LAPTOP & MOBILE)
   ========================================================================== */

/* --- KHUSUS LAPTOP/DESKTOP --- */
@media (min-width: 992px) {
    .t4-megamenu .dropdown-menu,
    .navbar .dropdown-menu,
    .t4-header .dropdown-menu,
    #t4-header .dropdown-menu {
        top: 100% !important;
        margin-top: -15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    }
}

/* --- KHUSUS TABLET/LAPTOP KECIL --- */
@media (max-width: 1200px) {
    .t4-megamenu .navbar-nav > li > a,
    .t4-megamenu .navbar-nav > li > a.nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .t4-megamenu .dropdown-menu {
        min-width: 240px !important;
    }
}

/* --- KHUSUS MOBILE (HP / TABLET KECIL) --- */
@media (max-width: 991px) {
    .t4-megamenu .dropdown-menu {
        min-width: 100% !important; 
    }
    
    .t4-header-right .t4-offcanvas-toggle {
        background-color: #f1f5f9 !important;
        color: #1b4d3e !important;
        border-radius: 8px !important;
        padding: 2px 14px !important;
    }

    /* Membuka kunci tinggi menu HP agar teks tidak terpotong */
    .t4-offcanvas .dropdown-item,
    .t4-offcanvas .nav-link,
    .t4-offcanvasbox .dropdown-item,
    .t4-mpmenu .dropdown-item,
    .t4-mpmenu .nav-link {
        white-space: normal !important; 
        word-wrap: break-word !important;
        height: auto !important; 
        line-height: 1.3 !important; 
        padding-top: 12px !important; /* <-- JARAK MENU HP DIRAPATKAN */
        padding-bottom: 12px !important; /* <-- JARAK MENU HP DIRAPATKAN */
        display: block !important;
    }
}

@media (max-width: 767px) {
    .t4-wrapper,
    .t4-main-body,
    .t4-section,
    .t4-section-inner,
    div[style*="text-align: center"] {
        padding-left: 0px !important;
        padding-right: 0px !important;
        box-sizing: border-box !important;
    }

    .t4-wrapper,
    .t4-main-body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    .container, 
    .container-fluid, 
    .t4-section-inner {
        padding-left: 5px !important;
        padding-right: 5px !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
}


/* ==========================================================================
   5. KODE TAMBAHAN HALAMAN SPESIFIK
   ========================================================================== */
#t4-section-10 {
    padding-top: 50px !important; 
}





/* ==========================================================================
   DESAIN KARTU JENJANG PENDIDIKAN (4 KOLOM)
   ========================================================================== */
.ad-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: none !important;
    margin-bottom: none !important; /* <--- JARAK BAWAH DITAMBAH MENJADI 80px */
    width: 100%;
    box-sizing: border-box;
}

/* Kotak Kartu Utama */
.ad-jenjang-card {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 6px solid #ccc; /* Warna default, akan ditimpa via HTML */
    text-decoration: none !important;
}

/* Efek Melayang saat Disorot Mouse (Hover) */
.ad-jenjang-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Area Gambar Atas */
.ad-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9; /* Warna dasar jika gambar belum ada */
}

.ad-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efek Zoom Gambar saat Disorot */
.ad-jenjang-card:hover .ad-card-img img {
    transform: scale(1.08);
}

/* Area Konten Teks */
.ad-card-body {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Judul di Tengah */
.ad-card-logo {
    margin-bottom: 25px;
}

.ad-card-logo img {
    max-height: 70px; /* Ukuran maksimal logo */
    margin-bottom: 15px;
    width: auto;
}

.ad-card-logo h3 {
    font-size: 22px;
    font-weight: none;
    margin: 0;
}

/* Link di Bawah (Tentang ...) */
.ad-card-link {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.ad-jenjang-card:hover .ad-card-link {
    color: #1b4d3e; /* Berubah hijau saat disorot */
}

/* Ikon Panah Kecil */
.ad-card-link .arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ad-jenjang-card:hover .ad-card-link .arrow {
    transform: translateX(4px); /* Panah bergeser ke kanan */
}

/* ==========================================================================
   PENGATURAN RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1199px) {
    .ad-card-grid {
        gap: 15px; /* Jarak dirapatkan di monitor kecil */
    }
    .ad-card-img {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .ad-card-grid {
        grid-template-columns: repeat(2, 1fr); /* Berubah jadi 2 kolom di Tablet */
        gap: 20px;
    }
    .ad-card-img {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .ad-card-grid {
        grid-template-columns: 1fr; /* Berubah jadi 1 kolom menyusun ke bawah di HP */
    }
    .ad-card-img {
        height: 250px;
    }
}
/* ==========================================================================
   TAMBAHAN: JUDUL SECTION & DESKRIPSI KARTU
   ========================================================================== */
/* Pengaturan Judul & Teks Pengantar Utama */
.ad-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}
.ad-section-header h2 {
    color: #1b4d3e;
    font-size: 32px;
    font-weight: none;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.ad-section-header p {
    color: #4a5568;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pengaturan Deskripsi Singkat di Dalam Kartu */
.ad-card-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

@media (min-width: 768px) {
    .layout-home-1 .t4-section-1.p-xl-0 {
        position: relative;
        margin-top: 80px;
        z-index: 1;
    }
}







/* ==========================================================================
   FIX SUBMENU TERPOTONG (T4 MEGAMENU)
   ========================================================================== */
.t4-megamenu .dropdown-menu,
.t4-megamenu .dropdown-menu-inner {
    overflow: visible !important;
}

/* Memastikan submenu level 2 posisinya bergeser ke kanan (tidak menumpuk) */
.t4-megamenu .dropdown-menu .dropright .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 0 !important;
}

/* ==========================================================================
   GAYA UNTUK JUDUL MENU (MENU HEADING) DI MEGAMENU
   ========================================================================== */
.t4-megamenu .dropdown-menu .nav-header,
.t4-megamenu .dropdown-menu .dropdown-header,
.t4-megamenu .dropdown-menu [data-level="2"] > .nav-header {
    font-family: Anton !important;     /* Baris ini untuk menyamakan jenis font */
    font-weight: 400 !important;         /* Membuat teks sangat tebal */
    text-transform: uppercase !important; /* Mengubah menjadi HURUF BESAR */
    color: #111827 !important;           /* Warna teks (hitam pekat) */
    font-size: 16px !important;          /* Ukuran huruf */
    padding-left: 0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
    border-bottom: 2px solid #f1f5f9;    /* Garis bawah tipis agar lebih rapi */
}

/* ==========================================================================
   UKURAN FONT ANAK MENU (SUBMENU)
   ========================================================================== */
.t4-megamenu .dropdown-menu .dropdown-item,
.t4-megamenu .dropdown-menu li > a {
    font-size: 15px !important; /* Silakan ubah angka ini sesuai selera (misal 13px atau 14px) */
    color: #475569 !important;  /* Opsional: Membuat warnanya sedikit lebih abu-abu agar judul lebih menonjol */
}

.djslider-default.img-vcenter img.dj-image {
    border-radius: 10px;
}