

/* ---------- Token header ---------- */
:root {
    --emerald-950: #062d26;
    --emerald-900: #0b3d2f;
    --emerald-800: #124f42;
    --emerald-700: #1d6653;
    --gold: #d7b669;
    --gold-strong: #f4c95d;
    --gold-soft: #f6e7b8;
    --ivory: #f5faf7;
    --sky: #eaf8f3;
    --mint: #dff2e8;
    --sun: #d9eedf;
    --cream: #fffaf0;
    --dark-panel: rgba(6, 34, 28, 0.72);
    --dark-panel-strong: rgba(3, 19, 16, 0.82);
    --glass: rgba(255, 255, 255, 0.22);
    --glass-strong: rgba(255, 255, 255, 0.34);
    --glass-border: rgba(255, 255, 255, 0.48);
    --glass-shadow: rgba(5, 42, 32, 0.12);

    --font-display: "Georgia", "Times New Roman", serif;
    --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --header-h: 5.25rem;
    --panel-title-size: clamp(2rem, 2.5vw, 2.9rem);
    --panel-body-size: clamp(1rem, 1.5vw, 1.12rem);
    --panel-content-width: min(100%, 47.5rem);
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.25rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --text-on-image: #ffffff;
    --text-on-image-soft: #fffefb;
    --text-box-bg: rgba(7, 33, 28, 0.64);
    --text-box-border: rgba(255, 255, 255, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    scrollbar-width: none;
    height: 100%;
}

body {
    width: 100%;
    min-width: 100%;
    margin: 0;
    overflow-x: hidden;
    scrollbar-width: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #edfdf7 0%, #eaf5f1 22%, #f6faf7 58%, #fefaf2 100%);
    color: var(--emerald-900);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

main {
    width: 100%;
    max-width: 100%;
    flex: 1;
    background: transparent;
    margin: 0;
    padding: 0;
    min-height: 0;
}

section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#content {
    width: 100%;
    max-width: 100%;
    background: transparent;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.page-panel {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    border-radius: 1.5rem;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(var(--space-5), 3vw, var(--space-6)) clamp(var(--space-5), 3vw, var(--space-6));
    max-width: none;
    min-height: calc(100vh - 9.5rem);
    height: auto;
    width: calc(100% - 1.5rem);
    margin: 0 auto;
    box-shadow: 0 1.25rem 2.5rem rgba(10, 34, 28, 0.12);
    color: #0a332a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(251, 252, 246, 0.72));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--space-3);
    overflow: hidden;
}

.page-panel p,
.page-panel ul,
.page-panel ol {
    color: #fffdf9;
    background: rgba(8, 31, 26, 0.7);
    border: 0.0625rem solid rgba(255, 255, 255, 0.26);
    border-radius: 1.125rem;
    padding: var(--space-3) var(--space-4);
    width: var(--panel-content-width);
    max-width: 100%;
    line-height: 1.7;
    font-weight: 600;
    font-size: var(--panel-body-size);
    margin: 0;
    box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.12);
}

.page-panel > * {
    position: relative;
    z-index: 1;
}

.page-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 24, 21, 0.28), rgba(7, 24, 21, 0.42));
    z-index: 0;
}

.page-panel h2 {
    margin: 0;
    color: var(--text-on-image);
    border-bottom: 0.125rem solid rgba(255, 255, 255, 0.32);
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + 0.125rem) var(--space-3);
    position: relative;
    z-index: 1;
    font-size: var(--panel-title-size);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 800;
    text-transform: none;
    background: linear-gradient(90deg, rgba(10, 50, 42, 0.78), rgba(17, 77, 65, 0.72));
    backdrop-filter: blur(0.0625rem);
    border-radius: 0.75rem 0.75rem 0 0;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.18);
}

.page-panel .lead {
    width: min(100%, 53.75rem);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    letter-spacing: 0.02em;
}


.gallery-image {
    width: 40%;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-image:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.2);
}

.page-panel ul,
.page-panel ol {
    list-style-position: outside;
    padding-left: var(--space-6);
}

.page-panel li {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.page-panel p,
.page-panel ul,
.page-panel ol {
    color: var(--text-on-image-soft);
    background: var(--text-box-bg);
    border: 0.0625rem solid var(--text-box-border);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(0.125rem);
    align-items: center;
    align-content: center;
}

.panel-beranda,
.panel-profil,
.panel-visimisi,
.panel-guru,
.panel-artikel,
.panel-contact {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f6fbf8;
}

.panel-beranda {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/beranda.jpg');
}

.panel-profil {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/profil.jpg');
}

.panel-visimisi {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/misi.jpg');
}

.panel-guru {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/guru.jpg');
}

.panel-artikel {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/belajar.jpg');
}

.panel-contact {
    background-image: linear-gradient(rgba(10, 28, 24, 0.16), rgba(10, 28, 24, 0.22)), url('../asset/kontak.jpg');
}

footer {
    position: sticky;
    bottom: 0;
    z-index: 90;
    background: linear-gradient(90deg, #0d473b 0%, #0c654f 45%, #0d473b 100%);
    color: #f5faf7;
    text-align: center;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    margin: 0;
    border-top: 0.1875rem solid #d7b669;
    box-shadow: 0 -0.375rem 1rem rgba(7, 35, 29, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 4.5rem;
    padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
    font-family: var(--font-body);
    color: #f5faf7;
    background: linear-gradient(135deg, #0a312d 0%, #0d4a3e 40%, #123f35 100%);
    background-size: auto;
    border-bottom: 0.125rem solid #d7b669;
    box-shadow: 0 0.75rem 1.6rem rgba(6, 45, 35, 0.16);
    backdrop-filter: saturate(1.1);
    -webkit-backdrop-filter: saturate(1.1);
}

/* pita ornamen */
.site-header::after {
    display: none;
}

/* ---------- Identitas ---------- */
.judul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex-shrink: 0;
}

#logo {
    width: 3rem;
    height: 3rem;
    padding: 0.2rem;
    object-fit: contain;
    background: var(--ivory);
    border-radius: 50%;
    box-shadow:
        0 0 0 0.125rem var(--emerald-900),
        0 0 0 0.1875rem var(--gold);
}

#judul {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.5vw + 0.7rem, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
    color: #f5faf7;
    text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

/* ---------- Navigasi ---------- */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    flex: 1 1 auto;
}

.main-nav button {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.0625rem solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    font: inherit;
    font-size: clamp(0.78rem, 0.75vw + 0.5rem, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fffdf7;
    padding: 0.45rem 1rem;
    border-radius: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* garis emas yang tumbuh saat hover / aktif */
.main-nav button::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 0.125rem;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav button:hover {
    color: var(--gold-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(212, 180, 98, 0.18));
    border-color: rgba(215, 182, 105, 0.6);
    transform: translateY(-1px);
}

.main-nav button:hover::after,
.main-nav button.active::after,
.main-nav button[aria-current="page"]::after {
    transform: scaleX(1);
}

.main-nav button.active,
.main-nav button[aria-current="page"] {
    color: var(--gold-soft);
    background: linear-gradient(180deg, rgba(244, 201, 93, 0.22), rgba(15, 70, 58, 0.2));
    border-color: rgba(215, 182, 105, 0.65);
    box-shadow: inset 0 0 0 1px rgba(244, 201, 93, 0.35), 0 0.2rem 0.6rem rgba(244, 201, 93, 0.14);
}

.main-nav button:focus-visible {
    outline: 0.125rem solid var(--gold);
    outline-offset: 0.125rem;
    border-radius: 0.625rem;
}

/* ---------- Responsif ---------- */
@media (max-width: 51.25rem) {
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.75rem;
        padding-top: 0.9rem;
        padding-bottom: 0.5rem;
        width: 100%;
    }

    .judul {
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
        flex-wrap: wrap;
        overflow: visible;
    }

    .main-nav button {
        font-size: 0.8rem;
        padding: 0.45rem 0.7rem;
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 7.5rem;
        text-align: center;
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    #logo {
        width: 2.875rem;
        height: 2.875rem;
    }
}

@media (min-width: 52rem) and (max-width: 90rem) {
    .page-panel {
        padding-inline: clamp(var(--space-5), 2.5vw, var(--space-6));
    }

    .main-nav {
        gap: 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-nav button,
    .main-nav button::after {
        transition: none;
    }
}

.sosmed {
    background: rgba(10, 23, 28, 0.82);
    color: #f3faf7;
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    max-width: 80%;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
     box-shadow: 0 0.75rem 1.2rem rgba(0, 0, 0, 0.15);
}

.info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
    color: #f9fdfb;
    font-weight: 600;
}

.info:last-child {
    margin-bottom: 0;
}

.info img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.2));
}

.info span {
    letter-spacing: 0.02em;
}