/* =============================================
   style.css — Stylesheet Utama YPIN
   Warna: #1B5E20 (hijau tua), #F9A825 (emas)
   ============================================= */

/* --------------------------
   RESET & BASE
   -------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #212121;
    background: #fff;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --------------------------
   VARIABEL WARNA
   -------------------------- */
:root {
    --hijau-tua:   #1B5E20;
    --hijau-mid:   #2E7D32;
    --hijau-muda:  #E8F5E9;
    --emas:        #F9A825;
    --emas-muda:   #FFF8E1;
    --putih:       #ffffff;
    --abu-ringan:  #f5f5f5;
    --abu-mid:     #e0e0e0;
    --teks-gelap:  #212121;
    --teks-abu:    #757575;
    --merah:       #C62828;
}

/* --------------------------
   CONTAINER & LAYOUT
   -------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section-alt { background: var(--abu-ringan); }
.text-center { text-align: center; }
.text-muted { color: var(--teks-abu); }

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hijau-tua);
    border-left: 4px solid var(--emas);
    padding-left: 14px;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header-row .section-title { margin-bottom: 0; }

/* --------------------------
   NAVBAR
   -------------------------- */
.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 #E8F5E9, 0 4px 20px rgba(27,94,32,0.06);
    border-bottom: 3px solid var(--hijau-tua);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hijau-tua);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.nav-logo-circle {
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-logo-circle img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.nav-logo-fallback {
    display: none;
    background: var(--hijau-tua);
    color: var(--emas);
    font-size: 16px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    color: #4a4a4a;
    font-size: 13.5px;
    padding: 7px 13px;
    border-radius: 7px;
    transition: all 0.18s;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--hijau-tua);
    background: #F0FAF0;
}

.nav-links a.active {
    color: #fff;
    background: var(--hijau-tua);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27,94,32,0.25);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hijau-tua);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --------------------------
   HERO
   -------------------------- */
.hero {
    background: linear-gradient(135deg, #F5FCF5 0%, #FEFFF8 55%, #FFFDF0 100%);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* Dekorasi background */
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27,94,32,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,168,37,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero > * { max-width: 1140px; }

.hero {
    max-width: 100%;
    padding-left: calc((100% - 1140px) / 2 + 24px);
    padding-right: calc((100% - 1140px) / 2 + 24px);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Label atas judul */
.hero-content::before {
    content: 'Madrasah Diniyah Takmiliyah Ibnu Nadzir';
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hijau-mid);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding: 5px 12px;
    background: rgba(27,94,32,0.08);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(27,94,32,0.15);
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--hijau-tua);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-highlight {
    color: var(--emas);
    position: relative;
}

.hero-sub {
    color: #4a5a4a;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 500;
}

.hero-sub2 {
    color: #7a8a7a;
    font-size: 13px;
    margin-bottom: 28px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    background: var(--hijau-tua);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 30px;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(27,94,32,0.3);
    letter-spacing: 0.2px;
}

.btn-hero:hover {
    background: var(--hijau-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27,94,32,0.35);
}

.btn-hero-outline {
    display: inline-block;
    border: 2px solid var(--hijau-tua);
    color: var(--hijau-tua);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.hero-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Lingkaran dekoratif di belakang logo */
.hero-logo::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27,94,32,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo img {
    width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(27,94,32,0.15));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.03);
}

.hero-logo-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--hijau-tua);
    color: var(--emas);
    font-size: 48px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

/* --------------------------
   STATS BAR
   -------------------------- */
.stats-bar {
    background: var(--emas);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    gap: 0;
    box-shadow: 0 4px 12px rgba(249,168,37,0.3);
}

.stat-item {
    text-align: center;
    padding: 0 36px;
    border-right: 1px solid rgba(27,94,32,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--hijau-tua);
    display: block;
}

.stat-lbl {
    font-size: 11px;
    color: rgba(27,94,32,0.75);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

/* --------------------------
   PROGRAM CARDS
   -------------------------- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.program-card {
    border: 1px solid var(--abu-mid);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.program-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.program-head {
    padding: 18px 20px;
}

.program-head.level-1 { background: var(--hijau-muda); }
.program-head.level-2 { background: var(--emas-muda); }
.program-head.level-3 { background: #E3F2FD; }

.program-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

.badge-1 { background: var(--hijau-muda); color: var(--hijau-tua); border: 1px solid #A5D6A7; }
.badge-2 { background: var(--emas-muda); color: #E65100; border: 1px solid #FFE082; }
.badge-3 { background: #E3F2FD; color: #0D47A1; border: 1px solid #90CAF9; }

.program-head h3 { font-size: 16px; font-weight: 700; }
.program-head.level-1 h3 { color: var(--hijau-tua); }
.program-head.level-2 h3 { color: #E65100; }
.program-head.level-3 h3 { color: #0D47A1; }

.program-dur {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.75;
}

.program-body { padding: 16px 20px; }

.program-body p {
    font-size: 13px;
    color: var(--teks-abu);
    margin-bottom: 10px;
}

.program-body ul li {
    font-size: 13px;
    color: var(--teks-abu);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.program-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--hijau-tua);
    font-weight: 700;
}

/* --------------------------
   NEWS CARDS
   -------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid var(--abu-mid);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-img {
    height: 180px;
    overflow: hidden;
    background: var(--hijau-muda);
}

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

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

.news-body { padding: 14px 16px; }

.news-tag {
    font-size: 11px;
    background: var(--hijau-muda);
    color: var(--hijau-tua);
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--teks-gelap);
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-date {
    font-size: 12px;
    color: var(--teks-abu);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --------------------------
   TOMBOL-TOMBOL
   -------------------------- */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--hijau-tua);
    color: var(--hijau-tua);
    padding: 9px 22px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

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

.btn-primary {
    display: inline-block;
    background: var(--hijau-tua);
    color: #fff;
    padding: 9px 22px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--hijau-mid); }

.btn-text {
    color: var(--hijau-tua);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--hijau-tua);
    transition: opacity 0.2s;
}

.btn-text:hover { opacity: 0.7; }

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 11px 24px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-wa:hover { background: #1DA851; }

/* --------------------------
   PAGE HEADER (breadcrumb)
   -------------------------- */
.page-header {
    background: var(--hijau-tua);
    padding: 24px 20px;
}

.page-header-inner { max-width: 1140px; margin: 0 auto; }

.breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--emas); }

.page-header h1 {
    color: var(--emas);
    font-size: 24px;
    font-weight: 700;
}

/* --------------------------
   PENGAJAR CARDS
   -------------------------- */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.teacher-card {
    border: 1px solid var(--abu-mid);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.2s;
}

.teacher-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.teacher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
}

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

.avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hijau-muda);
    border: 3px solid #A5D6A7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--hijau-tua);
}

.teacher-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--teks-gelap);
    margin-bottom: 4px;
}

.teacher-role {
    font-size: 12px;
    color: var(--hijau-tua);
    font-weight: 600;
    margin-bottom: 4px;
}

.teacher-edu {
    font-size: 12px;
    color: var(--teks-abu);
}

/* --------------------------
   GALERI
   -------------------------- */
.gallery-featured {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-bottom: 28px;
}

.gallery-feat-main { grid-row: span 2; }

.gallery-feat-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--hijau-muda);
}

.gallery-feat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-feat-item img:hover { transform: scale(1.04); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border: 1px solid var(--abu-mid);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.gallery-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

.gallery-item-img {
    height: 180px;
    overflow: hidden;
    background: var(--hijau-muda);
}

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

.gallery-item:hover .gallery-item-img img { transform: scale(1.05); }

.gallery-caption { padding: 10px 12px; }
.gallery-caption h3 { font-size: 13px; font-weight: 600; color: var(--teks-gelap); }
.gallery-caption p { font-size: 12px; color: var(--teks-abu); margin-top: 3px; }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* --------------------------
   PENDAFTARAN / STEP
   -------------------------- */
.step-list { display: flex; flex-direction: column; gap: 16px; }

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hijau-tua);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-num.gold { background: var(--emas); color: #4E2800; }

.step-content h3 { font-size: 14px; font-weight: 700; color: var(--teks-gelap); margin-bottom: 3px; }
.step-content p { font-size: 13px; color: var(--teks-abu); }

.info-box {
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.info-box.green { background: var(--hijau-muda); border: 1px solid #A5D6A7; }
.info-box.yellow { background: var(--emas-muda); border: 1px solid #FFE082; }
.info-box.dark { background: var(--hijau-tua); }

.info-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.info-box.green h4 { color: var(--hijau-tua); }
.info-box.yellow h4 { color: #E65100; }

.biaya-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.biaya-row .biaya-lbl { color: var(--teks-abu); }
.biaya-row .biaya-val { font-weight: 700; color: var(--hijau-tua); font-size: 15px; }
.biaya-note { font-size: 11px; color: var(--hijau-mid); border-top: 1px solid #A5D6A7; padding-top: 8px; margin-top: 6px; }

/* --------------------------
   KONTAK
   -------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--abu-mid);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hijau-muda);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: var(--hijau-tua);
}

.contact-info h4 { font-size: 13px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 4px; }
.contact-info p, .contact-info a { font-size: 13px; color: var(--teks-abu); }

.map-box {
    background: var(--hijau-muda);
    border-radius: 10px;
    height: 320px;
    overflow: hidden;
    border: 1px solid #A5D6A7;
}

.map-box iframe { width: 100%; height: 100%; border: none; }

.sosmed-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.sosmed-btn {
    padding: 8px 16px;
    background: var(--hijau-muda);
    border: 1px solid #A5D6A7;
    border-radius: 7px;
    font-size: 13px;
    color: var(--hijau-tua);
    font-weight: 600;
    transition: background 0.2s;
}

.sosmed-btn:hover { background: #C8E6C9; }

/* --------------------------
   FILTER BAR
   -------------------------- */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--abu-mid);
    color: var(--teks-abu);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.filter-btn:hover { border-color: var(--hijau-tua); color: var(--hijau-tua); }
.filter-btn.active { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }

/* --------------------------
   PAGINATION
   -------------------------- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a, .pagination span {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    border: 1px solid var(--abu-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--teks-abu);
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--hijau-tua); color: var(--hijau-tua); }
.pagination span.active { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }

/* --------------------------
   FOOTER
   -------------------------- */
.footer { background: var(--hijau-tua); margin-top: 0; }

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    color: var(--emas);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 2;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--emas); }

.footer-col ul li { padding: 2px 0; }

.footer-bottom {
    background: #0d3d12;
    text-align: center;
    padding: 12px 20px;
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 12px; }

/* --------------------------
   SMART FAQ WIDGET
   -------------------------- */
.faq-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.faq-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hijau-tua);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle:hover { background: var(--hijau-mid); transform: scale(1.05); }

.faq-box {
    display: none;
    flex-direction: column;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    margin-bottom: 12px;
    background: #fff;
}

.faq-box.open { display: flex; }

.faq-header {
    background: var(--hijau-tua);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.faq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
}

.faq-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.faq-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 280px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.faq-msg.bot {
    background: #fff;
    border: 1px solid var(--abu-mid);
    border-radius: 0 10px 10px 10px;
    align-self: flex-start;
    color: var(--teks-gelap);
}

.faq-msg.user {
    background: var(--hijau-tua);
    color: #fff;
    border-radius: 10px 0 10px 10px;
    align-self: flex-end;
}

.faq-msg.typing {
    background: #fff;
    border: 1px solid var(--abu-mid);
    border-radius: 0 10px 10px 10px;
    align-self: flex-start;
    color: var(--teks-abu);
    font-style: italic;
    font-size: 12px;
}

.faq-input-area {
    display: flex;
    border-top: 1px solid var(--abu-mid);
    padding: 8px 10px;
    gap: 8px;
    background: #fff;
    align-items: center;
}

#faqInput {
    flex: 1;
    border: 1px solid var(--abu-mid);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    outline: none;
    color: var(--teks-gelap);
    transition: border-color 0.2s;
}

#faqInput:focus { border-color: var(--hijau-tua); }

#faqSend {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hijau-tua);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.2s;
}

#faqSend:hover { background: var(--hijau-mid); }

/* --------------------------
   RESPONSIVE MOBILE
   -------------------------- */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 66px; left: 0; right: 0; background: #fff; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-top: 2px solid var(--hijau-tua); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 20px; border-radius: 0; font-size: 14px; color: #333; }
    .nav-hamburger { display: flex; }
    .nav-container { position: relative; }

    .hero { flex-direction: column; text-align: center; padding: 40px 20px; gap: 24px; }
    .hero-content h1 { font-size: 24px; }
    .hero-logo { width: 90px; height: 90px; }

    .stats-bar { gap: 20px; flex-wrap: wrap; }

    .program-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-featured { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-feat-main { grid-row: span 1; grid-column: span 2; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 20px; }

    .faq-box { width: 290px; }
    .faq-widget { bottom: 16px; right: 16px; }

    .section { padding: 32px 0; }
}

@media (max-width: 480px) {
    .teacher-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}