/* ==========================================
   ROOT
========================================== */

:root {
    --primary: #135aa6;
    --primary-dark: #0b3f78;
    --primary-light: #eef5fc;

    --yellow: #f4c430;

    --background: #f5f7fa;
    --white: #ffffff;

    --text: #27313b;
    --muted: #6d7884;

    --border: #dde5ed;

    --shadow-sm: 0 4px 14px rgba(20, 55, 90, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 55, 90, 0.09);
}


/* ==========================================
   GLOBAL
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

/* ==========================================
   HERO COVER
========================================== */

.top-header {
    position: relative;

    min-height: 82vh;

    background:
        linear-gradient(
            to bottom,
            rgba(4, 27, 52, 0.25) 0%,
            rgba(4, 27, 52, 0.05) 45%,
            rgba(4, 27, 52, 0.55) 100%
        ),
        url("../img/cover-sekolah.png") center center / cover no-repeat;

    border-bottom: 4px solid var(--yellow);

    color: #fff;

    overflow: hidden;
}


/* TOP BAR */

.hero-topbar {
    width: 100%;

    background: rgba(7, 49, 93, 0.88);

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-school {
    min-height: 112px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LEFT */

.hero-school-left {
    display: flex;
    align-items: center;

    gap: 17px;
}

.school-logo {
    width: 78px;
    height: 78px;

    object-fit: contain;

/*    padding: 6px;

    background: #fff;

    border-radius: 8px;*/

    box-shadow: 10px 4px 12px rgba(0, 0, 0, 0.15);
}

.header-text {
    min-width: 0;
}

.school-name {
    margin: 0 0 8px;

    color: #fff;

    font-size: 29px;
    font-weight: 700;
    line-height: 1.15;

    white-space: nowrap;
}

.school-address {
    margin: 0;

    display: flex;
    align-items: center;

    gap: 6px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
}


/* CONTACT */

.hero-contact {
    display: flex;
    align-items: center;

    gap: 26px;
}

.hero-contact-item {
    display: flex;
    align-items: center;

    gap: 10px;
}

.hero-contact-item > i {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 50%;

    color: #fff;

    font-size: 15px;
}

.hero-contact-item span {
    display: block;

    margin-bottom: 2px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hero-contact-item strong {
    display: block;

    color: #fff;

    font-size: 12px;
    font-weight: 600;
}


/* BOTTOM CAPTION */

.hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 38px;
}

.hero-caption {
    max-width: 520px;

    padding-left: 17px;

    border-left: 4px solid var(--yellow);
}

.hero-caption span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
}

.hero-caption strong {
    display: block;

    color: #fff;

    font-size: 25px;
    font-weight: 700;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* ==========================================
   MAIN CONTENT
========================================== */

.content {
    position: relative;
    z-index: 5;

    margin-top: -28px;

    padding-bottom: 55px;
}


/* ==========================================
   WELCOME
========================================== */

.welcome {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 24px 26px;

    margin-bottom: 38px;

    background: var(--white);

    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);

    border-radius: 10px;

    box-shadow: var(--shadow-md);
}

.welcome-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    border-radius: 7px;

    color: var(--primary);

    font-size: 21px;
}

.welcome h2 {
    margin: 0 0 7px;

    color: var(--primary-dark);

    font-size: 20px;
    font-weight: 700;
}

.welcome p {
    margin: 0;

    max-width: 950px;

    color: #59646f;

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================
   SECTION
========================================== */

.section-block {
    margin-top: 42px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;

    color: #263747;

    font-size: 20px;
    font-weight: 700;
}

.section-title p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* ==========================================
   SERVICE CARDS
========================================== */

.service-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    padding: 21px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    box-shadow: var(--shadow-sm);

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);

    border-color: #a9c5e1;

    box-shadow: var(--shadow-md);

    color: var(--text);
}

.service-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;
    margin-bottom: 12px;

    text-align: center;
}

.service-icon {
    width: 47px;
    height: 47px;
    min-width: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 7px;

    font-size: 21px;
}

.service-title {
    width: 100%;

    color: var(--primary-dark);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;

    text-align: center;
}

.service-description {
    flex: 1;

    min-height: 45px;

    color: #697581;

    font-size: 13px;
    line-height: 1.55;

    text-align: center;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid #edf1f4;

    color: var(--primary);

    font-size: 12px;
    font-weight: 600;
}

.service-card:hover .service-link i {
    transform: translateX(3px);
}

.service-link i {
    transition: transform 0.2s ease;
}


/* ==========================================
   KELAS PEMINATAN
========================================== */

.interest-card {
    display: flex;
    align-items: flex-start;

    height: 100%;

    gap: 17px;

    padding: 23px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    box-shadow: var(--shadow-sm);

    transition: 0.2s ease;
}

.interest-card:hover {
    transform: translateY(-3px);

    border-color: #a9c5e1;

    box-shadow: var(--shadow-md);
}

.interest-icon {
    width: 52px;
    height: 52px;

    min-width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    border-radius: 8px;

    color: var(--white);

    font-size: 22px;
}

.interest-content h3 {
    margin: 2px 0 7px;

    color: var(--primary-dark);

    font-size: 16px;
    font-weight: 700;
}

.interest-content p {
    margin: 0 0 10px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.55;
}

.interest-content span {
    color: var(--primary);

    font-size: 12px;
    font-weight: 600;
}


/* ==========================================
   SOCIAL MEDIA
========================================== */

.social-card {
    display: flex;
    align-items: center;

    gap: 13px;

    height: 100%;

    padding: 17px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    transition: 0.2s ease;
}

.social-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-md);

    color: var(--text);
}

.social-icon {
    width: 45px;
    height: 45px;

    min-width: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f5f8;

    border-radius: 50%;

    font-size: 20px;
}

.social-content {
    min-width: 0;
}

.social-content strong {
    display: block;

    margin-bottom: 3px;

    color: #344454;

    font-size: 13px;
}

.social-content span {
    display: block;

    overflow: hidden;

    color: var(--muted);

    font-size: 11px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.instagram .social-icon {
    color: #c13584;
}

.facebook .social-icon {
    color: #1877f2;
}

.youtube .social-icon {
    color: #ff0000;
}

.tiktok .social-icon {
    color: #111111;
}


/* ==========================================
   TAUTAN PERSYARIKATAN
========================================== */

.related-card {
    display: flex;
    align-items: center;

    gap: 14px;

    height: 100%;

    padding: 18px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    transition: 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);

    border-color: #a9c5e1;

    box-shadow: var(--shadow-md);

    color: var(--text);
}

.related-logo {
    width: 70px;
    height: 70px;
    min-width: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

/*    border: 1px solid #edf1f4;
    border-radius: 8px;
*/
    padding: 6px;
}

.related-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.related-card {
    display: flex;
    align-items: center;
    gap: 14px;

    height: 100%;
    min-height: 88px;

    padding: 16px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    transition: .2s ease;
}

.related-content {
    flex: 1;
}

.related-content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--primary-dark);

    font-size: 13px;
}

.related-content span {
    display: block;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}

.related-arrow {
    color: #9ba7b3;

    font-size: 13px;
}


/* ==========================================
   INFORMASI SEKOLAH
========================================== */

.school-info {
    margin-top: 42px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 9px;

    box-shadow: var(--shadow-sm);
}

.school-info-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 17px 20px;

    background: var(--primary-dark);

    color: var(--white);
}

.school-info-header > div:first-child {
    font-size: 22px;
}

.school-info-header h2 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;
}

.school-info-header p {
    margin: 3px 0 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;
}

.school-info-body {
    padding: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;
}

.info-icon {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    border-radius: 7px;

    color: var(--primary);

    font-size: 17px;
}

.info-item span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 11px;
}

.info-item strong {
    display: block;

    color: #3f4e5c;

    font-size: 13px;
    font-weight: 600;
}


/* ==========================================
   FOOTER
========================================== */

.footer {
    background: #ffffff;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 25px 0 20px;
}

.footer-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;
}

.footer-content strong {
    display: block;

    color: var(--primary-dark);

    font-size: 13px;
}

.footer-content p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.footer-bottom {
    padding: 15px 0 20px;

    border-top: 1px solid #edf1f4;

    color: #88939e;

    text-align: center;

    font-size: 11px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    .top-header,
    .header-overlay,
    .header-content {
        min-height: 620px;
    }

    .school-name {
        font-size: 24px;
    }

    .hero-contact {
        gap: 14px;
    }


}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    .top-header {
        min-height: 520px;

        background-position: center center;
    }


    .hero-school {
        min-height: auto;

        padding: 14px 0;

        display: block;
    }


    .hero-school-left {
        gap: 12px;
    }


    .school-logo {
        width: 62px;
        height: 62px;
    }


    .school-name {
        font-size: 18px;

        white-space: normal;

        margin-bottom: 6px;
    }


    .school-address {
        font-size: 11px;
    }


    .hero-contact {
        margin-top: 13px;
        padding-top: 12px;

        border-top: 1px solid rgba(255, 255, 255, 0.13);

        gap: 20px;
    }


    .hero-contact-item > i {
        width: 32px;
        height: 32px;

        font-size: 13px;
    }


    .hero-contact-item strong {
        font-size: 11px;
    }


    .hero-bottom {
        bottom: 25px;
    }


    .hero-caption strong {
        font-size: 21px;
    }




    .school-name {
        font-size: 24px;
    }

    .school-address {
        justify-content: center;

        font-size: 12px;
    }

    .header-contact {
        justify-content: center;

        gap: 7px 14px;

        font-size: 11px;
    }

    .scroll-indicator {
        bottom: 14px;
    }


    /* CONTENT */

    .content {
        margin-top: -20px;

        padding-bottom: 40px;
    }


    /* WELCOME */

    .welcome {
        gap: 13px;

        padding: 19px;

        margin-bottom: 30px;
    }

    .welcome-icon {
        width: 42px;
        height: 42px;

        min-width: 42px;

        font-size: 18px;
    }

    .welcome h2 {
        font-size: 17px;
    }

    .welcome p {
        font-size: 12px;
    }


    /* SECTION */

    .section-block {
        margin-top: 34px;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .section-title p {
        font-size: 12px;
    }


    /* SERVICE */

    .service-card {
        padding: 18px;
    }

    .service-description {
        min-height: auto;
    }


    /* SOCIAL */

    .social-card {
        display: block;

        padding: 17px 10px;

        text-align: center;
    }

    .social-icon {
        margin: 0 auto 10px;
    }


    /* SCHOOL INFO */

    .school-info {
        margin-top: 34px;
    }

    .school-info-body {
        padding: 20px;
    }


    /* FOOTER */

    .footer-content {
        justify-content: center;

        text-align: center;
    }

}


/* ==========================================
   EXTRA SMALL
========================================== */

@media (max-width: 420px) {

    .school-name {
        font-size: 21px;
    }

    .header-card {
        padding: 18px 15px;
    }

}