:root {
    --primary: #0e7a5f;
    --primary-dark: #0a5d48;
    --primary-light: #e8f6f1;
    --accent: #c9a227;
    --dark: #12352c;
    --text: #33423d;
    --muted: #6b7a75;
    --bg: #f7faf8;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(14, 122, 95, 0.08);
    --shadow-lg: 0 12px 40px rgba(14, 122, 95, 0.14);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.05); color: #fff; }

/* ===== Topbar ===== */
.topbar {
    background: var(--dark);
    color: #cfe6dd;
    font-size: .85rem;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe6dd; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a { margin: 0; font-size: 1rem; }

/* ===== Navbar ===== */
.navbar { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; color: var(--primary-dark); font-size: 1.15rem; letter-spacing: .5px; }
.logo-text span { font-size: .72rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    border-radius: 8px;
    transition: all .2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: var(--primary); background: var(--primary-light); }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    display: none;
    list-style: none;
}
.nav-links > li:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 14px; border-radius: 6px; font-weight: 500; color: var(--text); }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark); cursor: pointer; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.hero::before {
    content: '';
    position: absolute;
    left: -80px; bottom: -160px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.25; margin-bottom: 16px; }
.hero h1 span { color: #ffd76e; }
.hero p { font-size: 1.05rem; opacity: .92; margin-bottom: 28px; max-width: 520px; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stats strong { display: block; font-size: 1.7rem; }
.hero-stats span { font-size: .85rem; opacity: .85; }
.hero-image { text-align: center; }
.hero-image .badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 30px;
    border-radius: 20px;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}
.hero-image .badge i { font-size: 2.4rem; display: block; margin-bottom: 10px; color: #ffd76e; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .tag { color: var(--primary); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: 2rem; color: var(--dark); margin: 8px 0 10px; }
.section-head p { color: var(--muted); }

/* ===== Cards grid ===== */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.split-thin { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.sticky-side { position: sticky; top: 96px; }
.mobile-first { order: 2; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { height: 190px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.noimg i { font-size: 3rem; color: var(--primary); opacity: .6; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.card-body p { font-size: .92rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }

.icon-badge {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

/* ===== Bank / Donasi ===== */
.bank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.bank-card { background: #fff; border: 1px dashed var(--primary); border-radius: 12px; padding: 16px 18px; }
.bank-card .bank-name { font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.bank-card .bank-name i { color: var(--primary); }
.bank-card .acc-num { font-size: 1.25rem; letter-spacing: 1px; color: var(--primary); font-weight: 700; margin: 6px 0 2px; }
.bank-card .acc-holder { font-size: .85rem; color: var(--muted); }

/* ===== Article / news ===== */
.article-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.badge-cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== SPMB / school ===== */
.school-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    padding: 60px 0;
}
.school-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.school-hero .crumb { opacity: .85; font-size: .9rem; margin-bottom: 14px; }
.school-hero p { opacity: .95; max-width: 680px; }

/* ===== Forms ===== */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8e2de;
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    background: #fbfdfc;
    color: var(--text);
    transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.alert {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .92rem;
}
.alert-success { background: #e7f7ee; color: #0a5d48; border: 1px solid #b7e6cb; }
.alert-error { background: #fdeaea; color: #a01b1b; border: 1px solid #f5c6c6; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow); }

/* Clickable expenditure proof (nota) */
.nota-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; }
.nota-thumb img { display: block; transition: transform .3s; }
.nota-thumb:hover img { transform: scale(1.06); }
.nota-zoom {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(10, 61, 47, .82); color: #fff;
    font-size: .72rem; text-align: center; padding: 5px 4px;
    opacity: 0; transition: opacity .25s;
}
.nota-thumb:hover .nota-zoom { opacity: 1; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(10, 61, 47, .85));
    display: flex; align-items: flex-end;
    padding: 16px;
    color: #fff;
    font-weight: 600;
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--accent), #e0b02f);
    color: #fff;
    padding: 52px 0;
    text-align: center;
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-band p { opacity: .95; margin-bottom: 24px; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #b8d6cc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer a { color: #b8d6cc; display: block; margin-bottom: 8px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-about p { font-size: .92rem; margin-bottom: 14px; }
.footer .social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: .85rem; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { opacity: .9; max-width: 620px; margin: 0 auto; }

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    z-index: 150;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, .5);
    animation: waPulse 2s infinite;
    z-index: -1;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .7; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
.wa-float .wa-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@media (max-width: 480px) {
    .wa-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 18px; right: 18px; }
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; list-style: none; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2eae6;
    color: var(--text);
    font-weight: 600;
}
.pagination .active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled span { opacity: .4; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .split, .split-thin { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .mobile-first { order: -1; }
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero .btn-group { justify-content: center; }
    .hero-stats { justify-content: center; }
    .section-head { margin-bottom: 34px; }
}

@media (max-width: 900px) {
    .navbar { position: relative; }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(18, 53, 44, .4);
        backdrop-filter: blur(3px);
        z-index: 200;
    }
    .nav-overlay.open { display: block; }
    .nav-links {
        display: flex;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 85vw);
        background: var(--white);
        box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
        overflow-y: auto;
        padding: 18px;
        margin: 0;
        flex-direction: column;
        gap: 4px;
        transform: translateX(100%);
        transition: transform .28s ease;
        align-items: stretch;
    }
    .nav-overlay.open .nav-links { transform: translateX(0); }
    .nav-links > li > a {
        font-size: 1rem;
        padding: 13px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .nav-links > li > a > i { margin-left: auto; }
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        border-left: 2px solid var(--primary-light);
        margin-left: 14px;
        border-radius: 0;
    }
    .nav-links > li.open .dropdown-menu { display: block; }
    .hamburger { display: block; z-index: 300; position: relative; }
    .nav-cta { margin: 10px 0 4px; }
    .nav-cta a { justify-content: center; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .grid-4, .grid-3, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 54px; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: .98rem; }
    .hero .btn-group { flex-direction: column; align-items: stretch; }
    .hero .btn-group .btn { width: 100%; text-align: center; }
    .hero-stats { flex-wrap: wrap; gap: 18px; }
    .hero-stats strong { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-head h2 { font-size: 1.55rem; }
    .card-img { height: 170px; }
    .gallery-item img { height: 220px; }
    .school-hero { padding: 40px 0; }
    .school-hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 40px 0; }
    .page-hero h1 { font-size: 1.7rem; }
    .container { padding: 0 16px; }
    .cta-band h2 { font-size: 1.4rem; }
    .form-card { padding: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .btn { padding: 11px 20px; font-size: .95rem; }
    .section-head h2 { font-size: 1.4rem; }
    .hero-image .badge { padding: 22px; }
    .pagination a, .pagination span { min-width: 34px; height: 34px; }
    .navbar .container { min-height: 62px; }
    .logo-img { width: 38px; height: 38px; }
    .logo-text strong { font-size: 1rem; }
    .bank-list { grid-template-columns: 1fr; }
    .acc-num { font-size: 1.1rem; }
    .hero-stats { gap: 14px; }
    .hero-stats div { flex: 1; min-width: 96px; }
}
