
/* =========================================
   SMK BUNDA KANDUNG
   LANDING PAGE ADIWIYATA 2027
   STYLE.CSS
========================================= */


/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================
   HEADER
========================================= */

.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: relative;
    z-index: 10;
}

.navbar {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #205c36;
}

.brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand span {
    font-size: 12px;
    color: #777;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

nav a:hover {
    color: #278747;
}


/* =========================================
   HERO SECTION
   GAMBAR TAMPIL UTUH
========================================= */

.hero {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================
   BUTTON
========================================= */

.btn {
    display: inline-block;
    background: #70ad47;
    color: white;
    text-decoration: none;
    padding: 13px 27px;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #4d9135;
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    padding: 80px 0;
}

.section-label {
    color: #579747;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 2px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2,
.about-text h2 {
    font-size: 32px;
    color: #205c36;
    margin: 10px 0;
}

.section-heading p {
    color: #777;
}


/* =========================================
   ABOUT
========================================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

.about-text p {
    margin-top: 15px;
    color: #666;
}


/* =========================================
   PROGRAM ADIWIYATA
========================================= */

.program {
    background: #f2f8ee;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card {
    background: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    transition: .3s;
}

.program-card:hover {
    transform: translateY(-7px);
}

.program-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.program-card h3 {
    color: #27633b;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 14px;
    color: #777;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    transition: .3s;
}

.gallery img:hover {
    transform: scale(1.025);
}


/* =========================================
   CALL TO ACTION
========================================= */

.cta {
    background: linear-gradient(120deg, #205c36, #4b963f);
    color: white;
    text-align: center;
    padding: 65px 20px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta p {
    margin-bottom: 20px;
}

.cta strong {
    color: #d6f2a8;
    letter-spacing: 1px;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #153c27;
    color: white;
    text-align: center;
    padding: 30px 15px;
    font-size: 13px;
}

.footer a {
    color: #c6e7a8;
    text-decoration: none;
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 55px 0;
    }

}


/* =========================================
   RESPONSIVE SMARTPHONE
========================================= */

@media (max-width: 480px) {

    .brand strong {
        font-size: 14px;
    }

    .brand span {
        font-size: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .program-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 230px;
    }

    .section-heading h2,
    .about-text h2,
    .cta h2 {
        font-size: 25px;
    }

    .cta {
        padding: 45px 15px;
    }

}
