
:root {
    --primary: #0878d1;
    --primary-dark: #07569c;
    --yellow: #ffc928;
    --dark: #172b46;
    --muted: #64748b;
    --light: #f3f8ff;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */

.navbar {
    width: 100%;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #e9eef5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    border-bottom: 4px solid var(--yellow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-text strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.brand-text span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-size: 12px;
    font-weight: 600;
    color: #536278;
    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu .nav-button {
    background: var(--primary);
    color: white;
    padding: 12px 17px;
    border-radius: 8px;
}

.nav-menu .nav-button:hover {
    background: var(--primary-dark);
    color: white;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
}


/* HERO SECTION */

.hero {
    background:
        radial-gradient(circle at 85% 20%, #dceeff 0, transparent 35%),
        linear-gradient(120deg, #f5f9ff, #ffffff 70%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    min-height: 580px;
    margin: auto;
    padding: 75px 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #e3f1ff;
    color: var(--primary-dark);
    padding: 9px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.label-dot {
    width: 8px;
    height: 8px;
    background: #16a36a;
    border-radius: 50%;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(34px, 4.2vw, 53px);
    line-height: 1.2;
    letter-spacing: -2px;
    font-weight: 800;
    color: var(--dark);
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    max-width: 490px;
    margin-top: 22px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 19px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary span {
    margin-left: 10px;
}

.btn-secondary {
    border: 1px solid #d8e1ed;
    background: white;
    color: var(--dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-location {
    margin-top: 35px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(140deg, #c5e4ff, #e8f3ff 65%, #fff1c4);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(24, 85, 145, 0.10);
}

.placeholder-icon {
    font-size: 65px;
    margin-bottom: 17px;
}

.school-image-placeholder h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    margin-bottom: 8px;
}

.school-image-placeholder p {
    font-size: 12px;
    color: var(--muted);
}

.visual-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.decoration-one {
    width: 110px;
    height: 110px;
    background: var(--yellow);
    top: -20px;
    right: -20px;
}

.decoration-two {
    width: 80px;
    height: 80px;
    background: #b6dcff;
    bottom: -15px;
    left: -20px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px 19px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(20, 50, 90, 0.12);
}

.floating-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff4cc;
    color: #bd8500;
    font-size: 20px;
}

.floating-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.floating-card strong {
    font-size: 11px;
}

.floating-card span {
    color: var(--muted);
    font-size: 10px;
}


/* FOOTER */

.footer {
    padding: 25px;
    text-align: center;
    background: #102f55;
    color: #dce9f7;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 950px) {
    .nav-menu {
        gap: 13px;
    }

    .nav-menu a {
        font-size: 11px;
    }

    .hero-container {
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .nav-container {
        padding: 13px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #edf1f6;
        box-shadow: 0 15px 25px rgba(0,0,0,0.07);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        padding: 13px 5px;
        font-size: 13px;
    }

    .nav-menu .nav-button {
        text-align: center;
        margin-top: 10px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 60px 22px;
        gap: 45px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .school-image-placeholder {
        height: 290px;
    }

    .floating-card {
        left: -5px;
        bottom: 5px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 33px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 8px;
    }
}


/* =================================
   IDENTITAS LOGO SEKOLAH
================================= */

.brand-logo-image {
    width: 46px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    gap: 3px;
}

.brand-text strong {
    font-size: 14px;
    white-space: nowrap;
}

.brand-text span {
    font-size: 8px;
    letter-spacing: 0.7px;
}


/* =================================
   VISI SEKOLAH
================================= */

.vision-title {
    font-size: clamp(30px, 3.4vw, 43px) !important;
    line-height: 1.27 !important;
    letter-spacing: -1.5px !important;
}

.vision-title span {
    display: inline;
    color: var(--primary);
}


/* =================================
   SLIDESHOW FOTO SEKOLAH
================================= */

.school-slideshow {
    width: 100%;
    height: 350px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(
        140deg,
        #c5e4ff,
        #e8f3ff 65%,
        #fff1c4
    );
    box-shadow: 0 20px 50px rgba(24, 85, 145, 0.10);
}

.school-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.school-slide.changing {
    opacity: 0;
}

.slide-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.slide-fallback .placeholder-icon {
    font-size: 65px;
    margin-bottom: 17px;
}

.slide-fallback h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    margin-bottom: 8px;
}

.slide-fallback p {
    font-size: 12px;
    color: var(--muted);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 20px 28px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.65)
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.school-slideshow:hover .slide-caption {
    opacity: 1;
}

.slide-indicators {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    padding: 0;
    cursor: pointer;
}

.slide-dot.active {
    width: 20px;
    border-radius: 10px;
    background: white;
}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 950px) {
    .brand-text strong {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 7px;
    }
}

@media (max-width: 760px) {
    .brand-logo-image {
        width: 42px;
        height: 46px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 7px;
    }

    .vision-title {
        font-size: 34px !important;
    }

    .school-slideshow {
        height: 290px;
    }
}

@media (max-width: 400px) {
    .vision-title {
        font-size: 29px !important;
    }
}


/* =====================================
   PENYEMPURNAAN HERO SLIDESHOW
===================================== */

/* Memperluas area foto */
.hero-container {
    max-width: 1250px;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 35px;
}

/* Memperbesar tinggi dan area slideshow */
.hero-visual {
    width: 100%;
    min-width: 0;
    min-height: 420px;
}

.school-slideshow {
    width: 100%;
    height: 400px;
    border-radius: 22px;
}

/* Foto memenuhi area slideshow */
.school-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================
   KARTU SEKOLAH RAMAH ANAK
===================================== */

.floating-card {
    top: 18px;
    left: 18px;
    bottom: auto;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 25px rgba(20, 50, 90, 0.16);
}

/* Logo Sekolah Ramah Anak */
.ramah-anak-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.floating-card strong {
    font-size: 11px;
    white-space: nowrap;
}

.floating-card span {
    font-size: 10px;
    white-space: nowrap;
}


/* =====================================
   RESPONSIVE TABLET DAN HP
===================================== */

@media (max-width: 950px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .school-slideshow {
        height: 350px;
    }
}

@media (max-width: 760px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .school-slideshow {
        height: 320px;
    }

    .floating-card {
        top: 12px;
        left: 12px;
        bottom: auto;
        padding: 8px 11px;
    }

    .ramah-anak-logo {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .school-slideshow {
        height: 270px;
    }
}


/* =====================================
   STATISTIK SEKOLAH
===================================== */

.stats-section {
    padding: 85px 24px;
    background: #ffffff;
}

.stats-container {
    max-width: 1200px;
    margin: auto;
}

.stats-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.stats-heading h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.stats-heading p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: left;
    transition: 0.25s ease;
    box-shadow: 0 5px 20px rgba(20, 50, 90, 0.035);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(20, 50, 90, 0.09);
    border-color: #c9e3ff;
}

.stat-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 20px;
}

.stat-icon.blue {
    background: #e5f2ff;
    color: #0878d1;
}

.stat-icon.yellow {
    background: #fff5d5;
    color: #d69b00;
}

.stat-icon.green {
    background: #e2f7ec;
    color: #17965a;
}

.stat-icon.purple {
    background: #f0eaff;
    color: #8055cf;
}

.stat-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.stat-card p {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.stat-card span {
    display: block;
    margin-top: 9px;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
}

/* RESPONSIVE STATISTIK */

@media (max-width: 850px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 60px 18px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h3 {
        font-size: 32px;
    }

    .stat-card p {
        font-size: 12px;
    }

    .stat-card span {
        font-size: 9px;
    }
}

.stat-icon {
    width: 76px;
    height: 76px;
    padding: 0;
    background: transparent !important;
    margin-bottom: 16px;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* =====================================
   SAMBUTAN KEPALA SEKOLAH
===================================== */

.principal-section {
    padding: 95px 24px;
    background: #f4f8ff;
    overflow: hidden;
}

.principal-container {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 75px;
}

/* FOTO KEPALA SEKOLAH */

.principal-visual {
    position: relative;
    padding: 15px 15px 35px 0;
}

.principal-decoration {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #ffda65;
    top: -25px;
    left: -35px;
}

.principal-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 410px;
    border-radius: 20px;
    overflow: hidden;
    background: #dcecff;
    box-shadow: 0 18px 40px rgba(20, 50, 90, 0.10);
}

.principal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.principal-photo-label {
    position: absolute;
    z-index: 3;
    bottom: 5px;
    right: -15px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(20, 50, 90, 0.12);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.principal-photo-label span {
    font-size: 10px;
    color: var(--muted);
}

.principal-photo-label strong {
    font-size: 12px;
    color: var(--dark);
}

/* TEKS SAMBUTAN */

.principal-content {
    max-width: 560px;
}

.principal-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(27px, 3vw, 37px);
    line-height: 1.35;
    letter-spacing: -1px;
    margin-top: 12px;
    margin-bottom: 22px;
}

.principal-content h2 span {
    color: var(--primary);
}

.principal-greeting {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.principal-content p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 13px;
}

.principal-closing {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 20px;
}

.principal-signature {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 27px;
}

.principal-signature span {
    font-size: 11px;
    color: var(--muted);
}

.principal-signature strong {
    font-size: 14px;
    color: var(--primary-dark);
}

.principal-signature small {
    font-size: 11px;
    color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 760px) {

    .principal-section {
        padding: 65px 20px;
    }

    .principal-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .principal-visual {
        max-width: 380px;
        width: 100%;
        margin: auto;
    }

    .principal-photo {
        height: 390px;
    }

    .principal-content {
        max-width: 100%;
    }

    .principal-photo-label {
        right: -5px;
    }
}
