:root {
    --green: #0b3d2e;
    --green2: #145c3f;
    --gold: #d6a928;
    --gold2: #f3d36b;
    --cream: #f7f4ea;
    --ink: #18302a;
}

/* =========================
   RESET DASAR
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, sans-serif;
    color: var(--ink);
    background: #fff;
    margin: 0;
    padding: 0;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: var(--green);
    color: #e9f3ee;
    font-size: 12px;
    padding: 8px 0;
}

/* =========================
   NAVBAR
========================= */

.mainnav {
    background: #fff;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.navbar-brand strong {
    display: block;
    color: var(--green);
    font-size: 15px;
    line-height: 1.1;
}

.navbar-brand small {
    display: block;
    font-size: 9px;
    color: #6b756f;
    margin-top: 3px;
}

.nav-link {
    font-weight: 600;
    color: #234138 !important;
    font-size: 13px;
    transition: 0.2s ease;
}

.nav-link:hover {
    color: var(--green2) !important;
}

/* Tombol Kontak */

.btn-gold {
    background: var(--gold);
    border: 0;
    color: #173127;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 18px;
    transition: 0.2s ease;
}

.btn-gold:hover {
    background: var(--gold2);
    color: #173127;
}

/* =========================
   TOMBOL GARIS TIGA
   Hanya muncul di HP/tablet
========================= */

/* Desktop: tombol garis tiga disembunyikan */
.navbar-toggler {
    display: none !important;
}

/* HP dan tablet: tombol garis tiga ditampilkan */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        border: 1px solid var(--gold) !important;
        background: #fff !important;
        color: var(--green) !important;
        border-radius: 12px;
        padding: 7px 12px;
        font-size: 25px;
        line-height: 1;
        box-shadow: none !important;
    }

    .navbar-toggler:hover {
        background: #fff8dc !important;
        color: var(--green2) !important;
    }

    .navbar-toggler:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(214, 169, 40, 0.25) !important;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px 0;
        border-top: 1px solid #edf0ec;
    }

    .navbar-nav {
        gap: 5px;
    }

    .navbar-nav .nav-link {
        padding: 11px 15px !important;
        border-radius: 8px;
    }

    .navbar-nav .nav-link:hover {
        background: #f7f4ea;
    }

    .btn-gold {
        display: inline-block;
        margin: 10px 15px 0;
    }
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, #073323, #0e5b3e);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.23;
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 32, 23, 0.95),
        rgba(5, 32, 23, 0.55),
        rgba(5, 32, 23, 0.25)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--gold2);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    margin: 14px 0;
}

.hero h1 span {
    color: var(--gold2);
}

.hero p {
    max-width: 700px;
    color: #e8f1ec;
    font-size: 16px;
    line-height: 1.8;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 18px;
    max-width: 390px;
}

/* =========================
   SECTION
========================= */

.section {
    padding: 70px 0;
}

.section.alt {
    background: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 38px;
}

.section-title .tag {
    color: var(--green2);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    color: var(--green);
    margin: 8px 0;
}

.section-title p {
    color: #68746e;
    max-width: 680px;
    margin: auto;
}

/* =========================
   STATISTIK
========================= */

.stat-card {
    height: 100%;
    padding: 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 50, 37, 0.08);
    border-top: 3px solid var(--gold);
    text-align: center;
}

.stat-card i {
    font-size: 24px;
    color: var(--gold);
}

.stat-card h3 {
    font-size: 34px;
    color: var(--green);
    margin: 8px 0 0;
}

.stat-card p {
    margin: 0;
    color: #6b746f;
    font-size: 13px;
}

/* =========================
   PROFIL / SAMBUTAN
========================= */

.welcome-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.quote {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    color: #4f5d56;
    line-height: 1.9;
}

/* =========================
   KARTU PENGURUS / GURU
========================= */

.person-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.person-card img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center top;
}

.person-card .body {
    padding: 20px;
}

.person-card h5 {
    color: var(--green);
    font-weight: 800;
    margin-bottom: 4px;
}

.badge-gold {
    background: #f8e8a9;
    color: #624b00;
}

/* =========================
   BERITA
========================= */

.news-card {
    height: 100%;
    background: #fff;
    border: 1px solid #edf0ec;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.news-card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.news-card .body {
    padding: 20px;
}

.news-card h5 {
    font-size: 18px;
    color: var(--green);
    font-weight: 800;
}

.meta {
    font-size: 12px;
    color: #7b8780;
}

/* =========================
   GALERI HOMEPAGE
========================= */

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.gallery-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: 0.3s;
}

.gallery-card:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.85)
    );
}

/* =========================
   PENGUMUMAN
========================= */

.notice {
    background: #fff;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

/* =========================
   AGENDA
========================= */

.agenda-card {
    background: var(--green);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    height: 100%;
}

.agenda-date {
    color: var(--gold2);
    font-weight: 800;
}

/* =========================
   CTA
========================= */

.cta {
    background: linear-gradient(120deg, var(--green), #176a47);
    color: #fff;
    border-radius: 24px;
    padding: 50px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #07271d;
    color: #d8e5df;
    padding: 55px 0 22px;
}

.footer h5,
.footer h6 {
    color: #fff;
    font-weight: 800;
}

.footer a {
    display: block;
    color: #c6d5ce;
    text-decoration: none;
    margin: 8px 0;
    font-size: 13px;
}

.footer a:hover {
    color: var(--gold2);
}

.footer-brand {
    display: flex;
    gap: 16px;
}

.footer-brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.footer p {
    font-size: 13px;
    line-height: 1.8;
    color: #b7c8c0;
}

.footer-admin {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 13px;
    border-radius: 8px;
}

/* =========================
   HALAMAN DALAM
========================= */

.page-head {
    background: linear-gradient(120deg, var(--green), #176a47);
    color: #fff;
    padding: 65px 0;
}

.page-head h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
}

.article {
    font-size: 16px;
    line-height: 1.9;
}

.article img {
    max-width: 100%;
    border-radius: 15px;
}

/* =========================
   FORM DAN TABEL
========================= */

.form-control,
.form-select {
    border-radius: 10px;
    padding: 11px 13px;
}

.table-custom {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 991.98px) {
    .navbar-brand img {
        width: 48px;
        height: 48px;
    }

    .navbar-brand strong {
        font-size: 14px;
    }

    .hero {
        min-height: 580px;
    }

    .hero-content {
        padding: 65px 0;
    }

    .section {
        padding: 55px 0;
    }

    .person-card img {
        height: 280px;
    }
}

/* =========================
   RESPONSIVE HP
========================= */

@media (max-width: 767px) {
    .topbar {
        font-size: 10px;
        padding: 7px 0;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 31px;
    }

    .section-title p {
        font-size: 14px;
    }

    .navbar-brand small {
        display: none;
    }

    .navbar-brand strong {
        font-size: 13px;
    }

    .navbar-brand img {
        width: 45px;
        height: 45px;
    }

    .welcome-img {
        max-height: 350px;
    }

    .person-card img {
        height: 300px;
    }

    .news-card img {
        height: 220px;
    }

    .gallery-card img {
        height: 220px;
    }

    .cta {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .page-head {
        padding: 45px 0;
    }

    .page-head h1 {
        font-size: 36px;
    }
}

/* =========================
   HP KECIL
========================= */

@media (max-width: 400px) {
    .navbar-brand strong {
        font-size: 12px;
    }

    .navbar-toggler {
        font-size: 22px;
        padding: 6px 10px;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}