
:root {
    --navy: #244b8c;
    --navy-dark: #14243a;
    --gold: #f2bd42;
    --text: #233247;
    --muted: #68788e;
    --light: #f4f7fb;
    --line: #e3eaf2;
    --container: 1200px;
    --shadow: 0 16px 42px rgba(17, 37, 66, .09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* HEADER STICKY SDIPO */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(18, 42, 76, .08);
    box-shadow: 0 3px 18px rgba(12, 30, 54, .08);
}




.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    border-radius: 13px;
    font-size: 18px;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-text strong {
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 650;
    color: #27364b;
    white-space: nowrap;
    transition: .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #d99b16;
}

.main-nav .nav-spmb {
    color: var(--navy);
    font-weight: 800;
}

.main-nav .nav-login {
    padding: 11px 17px;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

.main-nav .nav-login:hover {
    background: var(--navy-dark);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    border-radius: 3px;
}

/* FOTO UTAMA */

.hero-slider {
    position: relative;
    width: 100%;
    height: min(610px, 68vw);
    min-height: 460px;
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 48%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(7, 25, 49, .88),
        rgba(12, 38, 72, .62) 48%,
        rgba(12, 38, 72, .18)
    );
}

.hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(690px, 75%);
    color: #fff;
    padding: 35px 0 48px;
}

.eyebrow,
.section-eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-content h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(36px, 4.2vw, 60px);
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -.8px;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 590px;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 27px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 13px 22px;
    border-radius: 9px;
    background: var(--gold);
    color: #172942;
    font-size: 14px;
    font-weight: 850;
    transition: transform .2s;
}

.hero-button:hover {
    transform: translateY(-2px);
}


.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(15, 45, 85, 0.45);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 9px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: .2s;
}

.hero-secondary-button:hover {
    background: #ffffff;
    color: #205A9B;
    border-color: #ffffff;
}


.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(12, 32, 59, .42);
    color: #fff;
    cursor: pointer;
}

.slider-prev {
    left: 22px;
}

.slider-next {
    right: 22px;
}

.slider-arrow:hover {
    background: var(--navy);
}

.slider-dots {
    position: absolute;
    bottom: 23px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
}

.slider-dot.active {
    width: 28px;
    border-radius: 8px;
    background: var(--gold);
}

/* STATISTIK */

.stats-wrap {
    padding: 0 0 55px;
    background: #fff;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 28px 20px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(120deg, #14243a, #244b8c);
    color: #fff;
    box-shadow: 0 18px 35px rgba(15, 28, 46, .14);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
}

.stat-item strong {
    color: #fff;
    font-size: clamp(23px, 3vw, 37px);
    line-height: 1.25;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.stat-item:last-child strong {
    font-size: clamp(18px, 2vw, 25px);
}

.stat-item span {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    margin-top: 5px;
}

.data-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 13px;
}

/* BAGIAN UMUM */

.section {
    padding: 76px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.about-copy h2 {
    color: var(--navy-dark);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: -.4px;
}

.section-heading > p:not(.section-eyebrow) {
    max-width: 650px;
    color: var(--muted);
    margin-top: 10px;
}

.section-heading-center {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading-center > p:not(.section-eyebrow) {
    margin-inline: auto;
}

/* PROGRAM UNGGULAN */

.program-section,
.news-section {
    background: #f7f9fc;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.program-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(18, 41, 72, .045);
    transition: transform .2s, box-shadow .2s;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.program-icon {
    height: 125px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #2879f6, #174bd8);
}

.program-icon.color-1 {
    background: linear-gradient(135deg, #a53df1, #7416d5);
}

.program-icon.color-2 {
    background: linear-gradient(135deg, #0bbd64, #008846);
}

.program-card-body {
    padding: 22px 23px 25px;
}

.program-card h3 {
    color: #14243a;
    font-size: 19px;
    margin-bottom: 8px;
}

.program-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* PROFIL SEKOLAH */

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 55px;
}

.about-copy h2 {
    max-width: 700px;
    margin-bottom: 18px;
}

.about-copy > p:not(.section-eyebrow) {
    color: var(--muted);
    margin-bottom: 13px;
}

.about-copy strong {
    color: var(--navy);
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 13px;
    padding: 12px 19px;
    border: 1px solid var(--navy);
    border-radius: 9px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.outline-button:hover {
    background: var(--navy);
    color: #fff;
}

.about-highlight {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #244b8c, #14243a);
    box-shadow: var(--shadow);
}

.about-highlight > span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.about-highlight h3 {
    max-width: 390px;
    color: #fff;
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 13px;
}

.about-highlight p {
    max-width: 420px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

/* FASILITAS */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.facility-item {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 18px 10px;
    background: #f7f9fc;
    border: 1px solid #f0f3f8;
    border-radius: 14px;
    text-align: center;
}

.facility-item > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e1ecff;
    color: #1c61d8;
    font-size: 25px;
    font-weight: 800;
}

.facility-item strong {
    color: #24334a;
    font-size: 13px;
    line-height: 1.4;
}

/* BERITA */

.news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.text-link {
    flex-shrink: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 15px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .035);
}

.news-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 18px 23px;
    background: linear-gradient(120deg, #eaf1ff, #f4f7fc);
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.news-card-top span {
    color: #d99b16;
    font-size: 18px;
}

.news-card-content {
    padding: 22px 23px 25px;
}

.news-card h3 {
    color: var(--navy-dark);
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 17px;
}

.news-card-content > a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
}

.news-empty {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.news-empty h3 {
    color: var(--navy-dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.news-empty p {
    color: var(--muted);
}

/* PENDAFTARAN */

.spmb-section {
    padding: 80px 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(120deg, #1458e8, #293ec5 60%, #4b2cbf);
}

.spmb-content {
    max-width: 820px;
}

.spmb-section .section-eyebrow {
    color: #ffe18a;
}

.spmb-section h2 {
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.spmb-section p:not(.section-eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
}

.spmb-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
    margin: 27px 0 0;
}

.spmb-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 23px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 9px;
    color: #174fd0;
    font-size: 14px;
    font-weight: 850;
}


.spmb-button-outline {
    background: rgb(255, 255, 255);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

.spmb-button-outline:hover {
    background: #ffffff;
    color: #205A9B;
    border-color: #ffffff;
}


/* FOOTER */

.site-footer {
    padding: 52px 0 0;
    background: linear-gradient(135deg, #182538, #101a29);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 38px;
}

.footer-brand .brand-text strong {
    color: #fff;
}

.footer-brand .brand-text small {
    color: #d7deea;
}

.footer-description {
    max-width: 360px;
    color: #aeb9c9;
    font-size: 13px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 7px;
}

.footer-links a,
.footer-links p {
    color: #aeb9c9;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.6;
}

.footer-label {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
    color: #aeb9c9;
    font-size: 12px;
}

.footer-bottom strong {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 1px;
}

/* TABLET */

@media (max-width: 1100px) {
    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .facility-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slider {
        height: 560px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MENU MOBILE */

@media (max-width: 850px) {
    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 78px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 22px 22px;
        background: #fff;
        box-shadow: 0 15px 25px rgba(0, 0, 0, .1);
        border-top: 1px solid var(--line);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 5px;
        font-size: 14px;
    }

    .main-nav .nav-login {
        text-align: center;
        margin-top: 8px;
    }

    .hero-slider {
        height: 520px;
        min-height: 440px;
    }

    .hero-content {
        width: 88%;
    }

    .hero-actions {
        gap: 9px;
    }

    .hero-secondary-button {
        padding: 11px 15px;
    }

    .stats-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        gap: 32px;
    }
}

/* HP */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 34px);
    }

    .brand {
        gap: 9px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .hero-slider {
        height: 490px;
        min-height: 430px;
    }

    .hero-content {
        width: 100%;
        padding: 25px 0 45px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 9vw, 43px);
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .eyebrow,
    .section-eyebrow {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .slider-arrow {
        top: auto;
        bottom: 13px;
        transform: none;
        width: 34px;
        height: 34px;
    }

    .slider-dots {
        bottom: 25px;
    }

    .stats-wrap {
        padding-bottom: 35px;
    }

    .stats-panel {
        gap: 7px;
        padding: 20px 10px;
    }

    .stat-item {
        padding: 8px 4px;
    }

    .stat-item strong {
        font-size: 25px;
    }

    .stat-item:last-child strong {
        font-size: 17px;
    }

    .stat-item span {
        font-size: 11px;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading h2,
    .about-copy h2 {
        font-size: 27px;
    }

    .section-heading-center {
        margin-bottom: 27px;
    }

    .program-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .program-icon {
        height: 100px;
    }

    .program-card-body {
        padding: 20px;
    }

    .about-highlight {
        min-height: 250px;
        padding: 27px;
    }

    .about-highlight h3 {
        font-size: 23px;
    }

    .facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .facility-item {
        min-height: 115px;
    }

    .news-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .news-empty {
        padding: 24px;
    }

    .spmb-section {
        padding: 60px 0;
    }

    .spmb-section h2 {
        font-size: 30px;
    }

    .spmb-section p:not(.section-eyebrow) {
        font-size: 14px;
    }

    .spmb-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .spmb-button {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


.program-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #eaf0f9;
}

.program-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.facility-item {
    overflow: hidden;
}

.facility-photo {
    width: 100%;
    height: 90px;
    display: block;
    object-fit: cover;
    border-radius: 9px;
}

.facility-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e1ecff;
    color: #1c61d8;
    font-size: 25px;
    font-weight: 800;
}

.facility-item p {
    color: #68788e;
    font-size: 12px;
    line-height: 1.5;
}



/* Logo media sosial footer */
.social-icons {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 5px 0 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icons a svg {
    width: 22px;
    height: 22px;
    display: block;
}

.social-icons a:hover {
    background: #244b8c;
    transform: translateY(-3px);
    color: #ffffff;
}



/* =========================================
   PERBAIKAN POSISI FOOTER SDIPO
========================================= */

.site-footer {
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.9fr;
    column-gap: 70px;
    row-gap: 32px;
    align-items: start;
    padding-bottom: 38px;
}

/* Kolom identitas sekolah */
.footer-grid > div:first-child {
    max-width: 360px;
}

/* Judul setiap kolom sejajar */
.footer-links h3 {
    margin-top: 3px;
    margin-bottom: 16px;
}

/* Jarak informasi kontak */
.footer-links {
    gap: 12px;
}

/* Ikon media sosial */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Garis dan bagian bawah footer */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Tablet */
@media (max-width: 850px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 35px;
    }
}

/* HP */
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid > div:first-child {
        max-width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}



/* Logo resmi SD Diponegoro */
.brand-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Ukuran logo pada layar HP */
@media (max-width: 560px) {
    .brand-logo {
        width: 42px;
        height: 42px;
    }
}


body {
    padding-top: 76px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}



/* HEADER SDIPO - FIXED */
body > header.site-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    transform: none !important;
    margin: 0 !important;
}

/* Ruang untuk header tetap */
body {
    padding-top: 86px !important;
}

@media (max-width: 850px) {
    body {
        padding-top: 78px !important;
    }
}


/* =========================================
   HERO TENTANG KAMI — SDIPO
   Tampilan biru cerah dan profesional
========================================= */

.about-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #174b8c 0%,
        #2169b5 52%,
        #3190d5 100%
    );
    color: #ffffff;
}

/* Dekorasi lengkung transparan */
.about-hero::before,
.about-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.about-hero::before {
    width: 420px;
    height: 420px;
    left: -230px;
    top: -100px;
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, 0.035),
        0 0 0 130px rgba(255, 255, 255, 0.025);
}

.about-hero::after {
    width: 520px;
    height: 520px;
    right: -300px;
    bottom: -330px;
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, 0.035),
        0 0 0 130px rgba(255, 255, 255, 0.025);
}

/* Isi hero */
.about-hero .container,
.about-hero .about-hero-inner {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.8;
}

/* Label kecil dengan aksen emas */
.about-hero .section-eyebrow,
.about-hero .eyebrow {
    color: #ffd66b;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Tampilan HP */
@media (max-width: 768px) {
    .about-hero::before {
        left: -290px;
        top: -150px;
    }

    .about-hero::after {
        right: -370px;
        bottom: -370px;
    }

    .about-hero h1 {
        letter-spacing: -0.4px;
    }
}


/* ==========================================
   SDIPO GLOBAL COLOR UPDATE
   Tema biru muda, cerah, modern, profesional
========================================== */

:root {
    --navy: #2878C8;
    --navy-dark: #173B63;
    --gold: #F2C75C;
    --text: #26384D;
    --muted: #647891;
    --light: #EFF6FD;
    --line: #DCE8F5;
    --container: 1200px;
    --shadow: 0 16px 42px rgba(28, 77, 130, 0.09);
}

/* HEADER DAN NAVIGASI */
.site-header {
    background: #FFFFFF;
    border-bottom-color: #E0ECF8;
    box-shadow: 0 3px 18px rgba(37, 91, 145, 0.09);
}

.brand-logo {
    background: transparent;
}

.brand-text strong {
    color: #205A9B;
}

.main-nav a:hover,
.main-nav a.active {
    color: #D99B16;
}

.main-nav .nav-login {
    background: #2878C8;
    color: #FFFFFF;
}

.main-nav .nav-login:hover {
    background: #1D609F;
    color: #FFFFFF;
}

.menu-toggle {
    border-color: #DCE8F5;
}

.menu-toggle span {
    background: #2878C8;
}

/* HERO BERANDA */
.hero-slider {
    background: #173B63;
}

/* PANEL STATISTIK */
.stats-panel {
    background: linear-gradient(
        120deg,
        #1D609F 0%,
        #2878C8 58%,
        #48A5E8 100%
    );
    box-shadow: 0 18px 35px rgba(37, 91, 145, 0.15);
}

/* LATAR BAGIAN PROGRAM DAN BERITA */
.program-section,
.news-section {
    background: #F2F7FD;
}

.program-card,
.news-card {
    border-color: #E0EAF6;
}

.program-icon {
    background: linear-gradient(135deg, #48A5E8, #2878C8);
}

.program-icon.color-1 {
    background: linear-gradient(135deg, #A78BFA, #7656D6);
}

.program-icon.color-2 {
    background: linear-gradient(135deg, #34C99A, #168B70);
}

/* BAGIAN PROFIL SEKOLAH */
.about-highlight {
    background: linear-gradient(
        135deg,
        #2878C8 0%,
        #48A5E8 100%
    );
}

/* FASILITAS */
.facility-item {
    background: #F2F7FD;
    border-color: #E1ECF8;
}

.facility-item > span,
.facility-icon {
    background: #DCEEFF;
    color: #216DB5;
}

/* KARTU BERITA */
.news-card-top {
    background: linear-gradient(
        120deg,
        #E5F2FF,
        #F5F9FF
    );
}

/* BAGIAN SPMB */
.spmb-section {
    background: linear-gradient(
        120deg,
        #216DB5 0%,
        #2878C8 55%,
        #48A5E8 100%
    );
}

.spmb-button {
    color: #205A9B;
}

/* HERO TENTANG KAMI */
.about-hero {
    background: linear-gradient(
        115deg,
        #216DB5 0%,
        #328BD1 52%,
        #58B3ED 100%
    );
}

/* MENU MOBILE */
@media (max-width: 850px) {
    .main-nav {
        background: #FFFFFF;
        border-top-color: #DCE8F5;
        box-shadow: 0 15px 25px rgba(37, 91, 145, 0.12);
    }
}

/* FOOTER TETAP GELAP UNTUK KONTRAS */
.site-footer {
    background: linear-gradient(
        135deg,
        #173B63,
        #102A46
    );
}

/* AKSESIBILITAS: FOKUS KEYBOARD */
.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.hero-button:focus-visible,
.spmb-button:focus-visible {
    outline: 3px solid #F2C75C;
    outline-offset: 3px;
}


/* Isi artikel berita: rata kiri dan kanan */
.news-page .article-detail .article-content {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.9;
    overflow-wrap: break-word;
}

/* Tampilan artikel di layar HP */
@media (max-width: 768px) {
    .news-page .article-detail .article-content {
        text-align: justify !important;
        line-height: 1.85;
    }
}


/* FIX KONTRAS TOMBOL HUBUNGI SEKOLAH */
.hero-slider .hero-secondary-button {
    background-color: rgba(15, 45, 85, 0.65) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.hero-slider .hero-secondary-button:hover {
    background-color: #ffffff !important;
    color: #205A9B !important;
    border-color: #ffffff !important;
}


/* CTA SPMB pada halaman berita */
.news-cta {
    padding: 65px 24px;
    background: linear-gradient(
        120deg,
        #216DB5 0%,
        #2878C8 55%,
        #48A5E8 100%
    );
    color: #ffffff;
    text-align: center;
}

.news-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-cta-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffe18a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.news-cta h2 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.25;
}

.news-cta p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

.news-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 27px;
}

.news-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border: 1px solid #ffffff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: 0.2s ease;
}

.news-cta-primary {
    background: #ffffff;
    color: #205A9B;
}

.news-cta-primary:hover {
    background: #f0f6ff;
}

.news-cta-secondary {
    background: rgb(255, 255, 255);
    color: #205A9B;
}

.news-cta-secondary:hover {
    background: #ffffff;
    color: #205A9B;
}

@media (max-width: 560px) {
    .news-cta {
        padding: 48px 20px;
    }

    .news-cta-actions {
        flex-direction: column;
    }

    .news-cta-actions a {
        width: 100%;
    }
}

.news-cta {
    background: #216DB5 !important;
    color: #ffffff !important;
    padding: 65px 24px !important;
    text-align: center !important;
}


/* CTA SPMB - HALAMAN KONTAK */
.contact-cta {
    padding: 65px 24px;
    background: linear-gradient(
        120deg,
        #216DB5 0%,
        #2878C8 55%,
        #48A5E8 100%
    );
    color: #ffffff;
    text-align: center;
}

.contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffe18a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.contact-cta h2 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.3;
}

.contact-cta p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

.contact-cta-actions {
    display: flex;
    justify-content: center;
    margin-top: 27px;
}

.contact-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid #ffffff;
    border-radius: 9px;
    background: #ffffff;
    color: #205A9B;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-cta-primary:hover {
    background: #f0f6ff;
    border-color: #f0f6ff;
    transform: translateY(-2px);
}

.contact-cta-primary:focus-visible {
    outline: 3px solid #ffe18a;
    outline-offset: 4px;
}

@media (max-width: 560px) {
    .contact-cta {
        padding: 48px 20px;
    }

    .contact-cta h2 {
        font-size: 28px;
    }
}


/* POPUP POSTER SPMB */
.spmb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.spmb-modal.is-open {
    display: flex;
}

.spmb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 44, 0.78);
}

.spmb-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.spmb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #173B63;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.spmb-modal-poster {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
}

.spmb-modal-register {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 9px;
    background: #2878C8;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

body.spmb-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .spmb-modal {
        padding: 12px;
    }

    .spmb-modal-dialog {
        padding: 10px;
    }

    .spmb-modal-poster {
        max-height: 75vh;
    }
}



/* Tombol navigasi poster popup SPMB */
.spmb-modal-dialog {
    position: relative;
}

.spmb-poster-arrow {
    position: absolute;
    top: 45%;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(16, 43, 82, 0.88);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.spmb-poster-prev {
    left: 10px;
}

.spmb-poster-next {
    right: 10px;
}

.spmb-poster-arrow:hover {
    background: #f2c75c;
    color: #102b52;
}

.spmb-poster-arrow:focus-visible {
    outline: 3px solid #f2c75c;
    outline-offset: 3px;
}

.spmb-poster-arrow[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .spmb-poster-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}



/* Tampilan sambutan kepala sekolah di HP */
@media (max-width: 768px) {
    .principal-message,
    .principal-content,
    .headmaster-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .principal-message img,
    .principal-content img,
    .headmaster-profile img {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto 20px;
        display: block;
    }

    .principal-message .principal-text,
    .principal-content .principal-text,
    .headmaster-profile .principal-text {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        text-align: left;
    }
}

