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

body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    color: #263247;
    line-height: 1.7;
}

/* NAVIGASI */
header {
    background: #071b3a;
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    color: #f5bd45;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #f5bd45;
}

/* BACKGROUND HERO */
.hero {
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    color: white;

    background:
        linear-gradient(
            rgba(3, 18, 45, 0.78),
            rgba(3, 18, 45, 0.55)
        ),
        url("assets/kegiatan-sekolah.png")
        center/cover no-repeat;
}

.hero-text {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 17px;
    margin-bottom: 25px;
}

/* TOMBOL */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #f5bd45;
    color: #071b3a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: white;
    transform: translateY(-3px);
}

/* BAGIAN KONTEN */
.section {
    padding: 65px 7%;
    text-align: center;
}

.section h2 {
    color: #071b3a;
    font-size: 32px;
    margin-bottom: 20px;
}

.section p {
    margin-bottom: 20px;
}

/* KARTU DAN FOTO */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cards img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px #0002;
    transition: 0.3s;
}

.cards img:hover {
    transform: scale(1.03);
}

/* KONTEN KARTU JURUSAN */
.cards div {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px #0001;
}

.cards div img {
    border-radius: 0;
    margin-bottom: 12px;
}

.cards div h3 {
    color: #071b3a;
    padding: 0 12px;
    font-size: 18px;
}

.cards div p {
    padding: 8px 15px;
    font-size: 14px;
    color: #68758a;
}

/* STATISTIK */
.stats {
    background: #071b3a;
    color: white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 40px 5%;
    gap: 20px;
}

.stats h2 {
    font-size: 40px;
    color: #f5bd45;
}

.stats p {
    font-weight: bold;
}

/* KONTAK */
.contact {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px #0001;
}

.contact h3 {
    color: #071b3a;
    font-size: 25px;
    margin-bottom: 15px;
}

.contact a:not(.btn) {
    color: #1764b0;
}

/* FOOTER */
footer {
    background: #041329;
    color: white;
    text-align: center;
    padding: 35px 15px;
}

footer h3 {
    color: #f5bd45;
    margin-bottom: 10px;
}

footer p {
    font-size: 13px;
}

/* CATATAN */
.note {
    color: #68758a;
    font-size: 13px;
    margin-top: 20px;
}

/* RESPONSIVE TABLET */
@media (max-width: 900px) {
    header {
        flex-direction: column;
    }

    nav {
        justify-content: center;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONSIVE HP */
@media (max-width: 600px) {
    .hero {
        min-height: 430px;
    }

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

    .hero p {
        font-size: 14px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 11px;
    }

    .section h2 {
        font-size: 26px;
    }
}
