:root {
    --bg: #f9fafb;
    --bg-soft: #ffffff;
    --border-soft: #e5e7eb;
    --primary: #c9a227;
    --primary-soft: #f3e8c9;
    --primary-dark: #b0891e;
    --text-main: #111827;
    --text-muted: #6b7280;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --shadow-soft: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* RESET DASAR */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* NAVBAR */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(249, 250, 251, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav {
    max-width: min(1280px, 100% - 3rem); /* fleksibel: max 1280px, sisakan margin di layar kecil */
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #1f2933;
}

.nav-links {
    display: flex;
    gap: 1.3rem;
    font-size: 0.9rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 0.25rem;
    color: #4b5563;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #facc15, #c9a227);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: #111827;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    font-size: 0.82rem;
    color: #92400e;
    background: linear-gradient(to right, #fefce8, #fef9c3);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-cta span {
    font-size: 0.95rem;
}

/* MAIN LAYOUT */
main {
    max-width: min(1280px, 100% - 3rem); /* fleksibel sama seperti nav */
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* HERO / HOME */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-left {
    padding-right: 0.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fefce8;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    border: 1px solid #facc15;
    font-size: 0.8rem;
    color: #854d0e;
    margin-bottom: 0.8rem;
}

.hero-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.hero-title span {
    background: linear-gradient(to right, #c9a227, #facc15);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-right {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}

.hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.18), transparent 55%);
    pointer-events: none;
}

.hero-right-inner {
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.8rem;
    color: #9ca3af;
}

.hero-right-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-right-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.hero-stat {
    padding: 0.6rem 0.5rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    text-align: left;
}

.hero-stat strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: #92400e;
}

.hero-stat span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* SECTION GENERIC */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

/* --- REVISI JUDUL SECTION (Tanpa Garis Bawah) --- */
.section-title {
    font-size: 2rem; 
    font-weight: 800;
    color: var(--primary-dark);
    display: flex; /* Flexbox memastikan elemen sejajar kiri-kanan */
    align-items: center; /* Ini kunci agar teks dan badge rata tengah secara vertikal */
    gap: 1rem;
    margin-bottom: 0; 
    flex-wrap: wrap;
}

/* --- REVISI POSISI BADGE IZIN PRAKTIK --- */
/* Aturan ini hanya berlaku untuk badge yang ada di dalam judul */
.section-title .hero-badge {
    margin-bottom: 0; /* Menghilangkan efek dorongan ke atas dari kode aslinya */
    font-size: 0.85rem; /* Menjaga teks tetap kecil */
    font-weight: 600; /* Sedikit ditebalkan agar mudah dibaca */
    padding: 0.4rem 0.8rem; /* Merapikan bantalan dalam kotak */
    transform: translateY(2px); /* Penyesuaian mikro agar benar-benar presisi di tengah teks "Testing" */
}


.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* BOX INFO / PLACEHOLDER */
.placeholder-box {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-soft);
    padding: 1.3rem 1.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* BUTTONS */
.btn-primary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(to right, #c9a227, #facc15);
    box-shadow: 0 10px 20px rgba(202, 138, 4, 0.35);
    color: #1f2933;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.97);
}

.btn-ghost {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    color: #6b7280;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #f9fafb;
}

.btn-outline {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--primary-dark);
    background: transparent;
    font-size: 0.8rem;
    color: #92400e;
    cursor: pointer;
}

.btn-outline:hover {
    background: #fef9c3;
}

/* FORM ELEMENTS (untuk kelas_add) */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-soft);
    font: inherit;
    color: var(--text-main);
    background-color: #ffffff;
}

textarea {
    resize: vertical;
}

/* ==== CARD INFO KELAS ==== */
/* Grid: desktop 2 card / baris, mobile 1 card */
.classes-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card dasar */
.class-card {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

/* Layout dalam card: kiri gambar, kanan teks */
.class-card-horizontal {
    display: flex;
    align-items: stretch;
    height: 100%;
}

/* Bungkus gambar – portrait, rasio 4:5 (lebar 4, tinggi 5) */
.class-img-wrap {
    flex: 0 0 auto;
    width: 40%;           /* kira-kira 40% lebar card */
    max-width: 210px;     /* batas maksimum di desktop */
    aspect-ratio: 4 / 5;  /* poster vertikal */
    overflow: hidden;
}

/* Gambar poster */
.class-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder kalau tidak ada gambar */
.class-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7, #facc15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
    text-align: center;
    padding: 0 0.75rem;
}

/* Bagian teks di kanan */
.class-body {
    flex: 1;
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.class-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fef9c3;
    color: #92400e;
}

.class-title {
    font-size: 1rem;
    font-weight: 600;
}

.class-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.class-desc {
    font-size: 0.9rem;
    color: #4b5563;
}

.class-footer {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.class-note {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* FOOTER */
footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    background: #f3f4f6;
}

/* FLOATING WHATSAPP BUTTON */
.wa-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
}

.wa-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    cursor: pointer;
}

.wa-btn span {
    font-size: 1.7rem;
    color: #ffffff;
}

.wa-label {
    position: absolute;
    right: 65px;
    bottom: 14px;
    background: rgba(17,24,39,0.95);
    color: #f9fafb;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-left {
        order: 1;
        padding-right: 0;
    }
    .hero-right {
        order: 0;
    }

    /* mobile: 1 card per baris */
    .classes-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .class-img-wrap {
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    main {
        max-width: 100%;
        padding-inline: 1rem;
    }

    .class-img-wrap {
        width: 35%;
        max-width: 160px;
    }
}

/* CAROUSEL BASE */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-top: 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    max-height: 450px; /* Membatasi tinggi maksimal gambar agar tidak terlalu raksasa di desktop */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Menjaga fokus gambar tetap di tengah */
}

/* LABEL DI ATAS GAMBAR (BOTTOM SIDE) */
.carousel-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(17, 24, 39, 0.85)); /* Gradien agar teks terbaca */
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* NAVIGASI CAROUSEL */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-btn:hover { background: #fff; }
.prev { left: 10px; }
.next { right: 10px; }

/* BLOK KEUNGGULAN & LAYANAN (THEME MATCHED) */
.testing-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.info-card {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.note-star {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* QUOTE BANNER */
.quote-banner {
    margin-top: 2rem;
    padding: 1.5rem 2rem; /* Padding dikurangi drastis */
    text-align: center;
    background: #ffffff; /* Latar belakang putih bersih agar tidak menonjol */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary); /* Aksen garis kiri seperti info-card */
    position: relative;
}

.quote-text {
    font-size: 1.05rem; /* Ukuran teks diperkecil */
    font-weight: 500;
    color: var(--text-muted); /* Warna teks dibuat lebih redup */
    font-style: italic;
    line-height: 1.5;
}

.quote-banner::after {
    content: '"';
    position: absolute;
    top: -5px;
    left: 15px;
    font-size: 3.5rem; /* Tanda kutip diperkecil */
    color: rgba(201, 162, 39, 0.15);
}

@media (max-width: 768px) {
    .testing-info-grid { grid-template-columns: 1fr; }
}
.section-title {
        gap: 0.5rem; /* Jarak antara teks "Testing" dan badge diperkecil */
    }
    
    .section-title .hero-badge {
        font-size: 0.65rem; /* Ukuran huruf dikecilkan drastis untuk HP */
        padding: 0.25rem 0.6rem; /* Kotak kuningnya dibuat lebih ramping */
        line-height: 1.4; /* Memberi ruang baca jika teks izin terpaksa turun menjadi 2 baris */
        transform: translateY(0); /* Mereset posisi agar sejajar natural */
        margin-top: 0.3rem;
    }

/* --- SETTING AWAL TOMBOL BURGER --- */
.hamburger {
    display: none; /* Sembunyikan di laptop/desktop */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100; /* Pastikan tombol selalu di atas */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Pastikan nav-menu formatnya flex di desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- RESPONSIVE UNTUK MOBILE (BURGER MENU) --- */
@media (max-width: 768px) {
    /* Munculkan tombol burger */
    .hamburger {
        display: flex; 
    }

    /* Ubah navigasi menjadi dropdown absolute */
    .nav-menu {
        position: absolute;
        top: 100%; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: rgba(249, 250, 251, 0.98); /* Sesuai warna background header */
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(229, 231, 235, 0.8);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        gap: 1rem;
        
        /* Animasi Sembunyi (Slide up & Hilang) */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.3s ease-in-out;
    }

    /* Saat ditambahkan class 'active' lewat JavaScript */
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    /* Rapikan link di dalam mobile menu */
   .nav-links {
        display: flex !important; /* Gunakan !important untuk menimpa display: none yang lama */
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
        color: #4b5563; /* Warna standar teks link */
    }

    /* 2. UBAH TOMBOL MENJADI TEKS BIASA DI MOBILE */
    .nav-cta {
        background: transparent; /* Hilangkan background gradient kuning */
        border: none; /* Hilangkan garis pinggir */
        padding: 0.5rem 0;
        color: #4b5563; /* Samakan warna teks dengan link lainnya */
        justify-content: center; /* Ketengahkan teks */
        width: 100%;
        font-size: 1rem;
        box-shadow: none;
    }

    /* Opsional: Hilangkan ikon panah (↗) di layar HP agar benar-benar seragam */
    .nav-cta span {
        display: none; 
    }

    /* Animasi Tombol Burger menjadi tanda Silang (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}