/* ==================================================
   STYLE WEBSITE SMKN 1 ASAHI KERTAJATI
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
    color: #333;
}


/* ==================================================
   NAVBAR
   ================================================== */

.navbar {
    background: #0d47a1 !important;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
}

.navbar-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 4px;
}

.navbar .nav-link:hover {
    color: #dbe9ff !important;
}


/* LOGIN ADMIN */

.btn-login {
    background: #0d66c2 !important;
    color: white !important;
    border-radius: 25px;
    padding: 8px 18px !important;
    font-weight: bold !important;
    margin-left: 8px;
}

.btn-login:hover {
    background: #09549f !important;
    color: white !important;
}


/* ==================================================
   CONTAINER
   ================================================== */

.container {
    position: relative;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    min-height: 500px;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    display: flex;
    align-items: center;
    color: white;
}

.hero h1 {
    font-size: 45px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
}


/* ==================================================
   CAROUSEL BERANDA
   ================================================== */

.carousel {
    position: relative;
    width: 100%;
    z-index: 1;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* ==================================================
   TULISAN DI ATAS CAROUSEL
   ================================================== */

.carousel-caption {
    position: absolute;
    z-index: 20;

    bottom: 190px;
    left: 50%;

    transform: translateX(-50%);

    width: 95%;

    text-align: center;

    pointer-events: none;
}

.carousel-caption h1 {
    font-size: 58px;
    font-weight: 800;

    margin-bottom: 18px;

    color: white;

    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.carousel-caption p {
    font-size: 21px;
    font-weight: 500;

    margin-bottom: 25px;

    line-height: 1.5;

    color: white;
}

.carousel-caption .btn {
    position: relative;
    z-index: 30;

    pointer-events: auto;

    padding: 13px 25px;

    font-size: 17px;

    border-radius: 10px;
}


/* ==================================================
   TOMBOL
   ================================================== */

.btn-primary {
    background: #316fcc !important;
    border-color: #316fcc !important;
}

.btn-primary:hover {
    background: #2459a8 !important;
    border-color: #2459a8 !important;
}


/* ==================================================
   STATISTIK BERANDA
   ================================================== */

section.statistik {
    position: relative;

    background: transparent !important;

    margin-top: -100px;

    padding-bottom: 60px;

    z-index: 10;
}


/* Bagian putih di bawah kartu */

section.statistik::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 100px;
    bottom: 0;

    background: #ffffff;

    z-index: -1;
}


/* Row statistik */

section.statistik .row.statistik {
    margin-top: 0;
}


/* Link kartu */

.statistik .stat-link {
    display: block;

    height: 100%;

    text-decoration: none;

    color: inherit;
}


/* ==================================================
   KARTU STATISTIK
   ================================================== */

.statistik .card-stat {
    background: #ffffff;

    border-radius: 20px;

    min-height: 200px;

    padding: 30px 25px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);

    transition: all 0.3s ease;
}

.statistik .card-stat:hover {
    transform: translateY(-7px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}


/* Icon */

.statistik .card-stat i {
    color: #0d6efd;

    font-size: 27px;

    display: block;

    margin-bottom: 10px;
}


/* Angka */

.statistik .card-stat h2 {
    color: #316fcc;

    font-size: 34px;

    font-weight: bold;

    margin: 0 0 7px 0;
}


/* Nama statistik */

.statistik .card-stat p {
    color: #316fcc;

    font-size: 17px;

    margin: 0;

    text-decoration: underline;
}


/* ==================================================
   TENTANG / PROFIL
   ================================================== */

.tentang {
    background: #ffffff;
}

.tentang img {
    max-width: 100%;

    border-radius: 15px;
}


/* ==================================================
   JUDUL SECTION
   ================================================== */

section h2 {
    font-weight: bold;

    color: #316fcc;
}

section h3 {
    font-weight: bold;
}


/* ==================================================
   CARD UMUM
   ================================================== */

.card {
    border-radius: 15px;

    border: none;

    background: #ffffff;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}


/* ==================================================
   VISI MISI
   ================================================== */

.visi-misi .card {
    height: 100%;

    padding: 25px;
}


/* ==================================================
   FASILITAS
   ================================================== */

.fasilitas-card {
    border-radius: 15px;

    overflow: hidden;

    background: white;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.fasilitas-card:hover {
    transform: translateY(-7px);
}

.fasilitas-card img {
    width: 100%;

    height: 200px;

    object-fit: cover;
}


/* ==================================================
   GALERI
   ================================================== */

.galeri img {
    width: 100%;

    height: 230px;

    object-fit: cover;

    border-radius: 15px;

    transition: 0.3s;
}

.galeri img:hover {
    transform: scale(1.03);
}


/* ==================================================
   BERITA
   ================================================== */

.berita-list {
    display: flex;

    flex-direction: column;

    gap: 35px;
}


/* KOTAK BERITA */

.berita-card {
    display: flex;

    align-items: stretch;

    width: 100%;

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    min-height: 330px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);

    transition: all 0.3s ease;
}


/* Hover */

.berita-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}


/* Berita selang-seling */

.berita-card.reverse {
    flex-direction: row-reverse;
}


/* FOTO BERITA */

.berita-card img {
    width: 42%;

    min-height: 330px;

    object-fit: cover;

    display: block;
}


/* ISI BERITA */

.berita-content {
    width: 58%;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* Judul berita */

.berita-content h3 {
    color: #0b2a58;

    font-size: 25px;

    font-weight: bold;

    line-height: 1.3;

    margin: 0 0 15px 0;
}


/* Isi berita */

.berita-content p {
    color: #555;

    font-size: 16px;

    line-height: 1.7;

    margin: 0 0 15px 0;
}


/* Tanggal */

.berita-date {
    color: #0d6efd;

    font-size: 14px;

    font-weight: 500;

    margin-bottom: 5px;
}


/* ==================================================
   TOMBOL BACA SELENGKAPNYA
   ================================================== */

.berita-content .btn,
.berita-content .btn-baca {
    display: inline-block;

    width: fit-content;

    background: #1976d2 !important;

    color: #ffffff !important;

    font-size: 16px;

    font-weight: bold;

    padding: 13px 23px;

    border-radius: 25px;

    margin-top: 10px;

    text-decoration: none;

    border: none;

    transition: all 0.3s ease;
}


/* Hover tombol */

.berita-content .btn:hover,
.berita-content .btn-baca:hover {
    background: #0B2A58 !important;

    color: white !important;

    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(13, 71, 161, 0.25);
}


/* ==================================================
   PROFIL BANNER
   ================================================== */

.profil-banner {
    background: linear-gradient(135deg, #1565c0, #42a5f5);

    color: white;

    padding: 70px 0;
}


/* ==================================================
   FOTO KELAS
   ================================================== */

.kelas-img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 15px;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    background: #316fcc;

    color: white;

    padding: 30px 0;
}

footer a {
    color: white;

    text-decoration: none;
}

footer a:hover {
    color: #dbe9ff;
}


/* ==================================================
   RESPONSIVE / HP
   ================================================== */

@media (max-width: 768px) {

    /* HERO */

    .hero {
        min-height: 400px;

        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }


    /* CAROUSEL */

    .carousel-item img {
        width: 100%;

        height: auto;

        object-fit: contain;
    }

    .carousel-caption {
        bottom: 55px;

        width: 95%;
    }

    .carousel-caption h1 {
        font-size: 27px;

        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 14px;

        margin-bottom: 12px;
    }

    .carousel-caption .btn {
        font-size: 14px;

        padding: 8px 15px;
    }


    /* STATISTIK */

    section.statistik {
        margin-top: -80px;

        padding-bottom: 40px;
    }

    section.statistik::before {
        top: 80px;
    }

    .statistik .card-stat {
        min-height: 145px;

        padding: 20px;
    }

    .statistik .card-stat h2 {
        font-size: 27px;
    }


    /* BERITA */

    .berita-list {
        gap: 25px;
    }

    .berita-card,
    .berita-card.reverse {
        flex-direction: column;

        min-height: auto;
    }

    .berita-card img {
        width: 100%;

        height: 230px;

        min-height: 230px;
    }

    .berita-content {
        width: 100%;

        padding: 25px;
    }

    .berita-content h3 {
        font-size: 21px;
    }

    .berita-content p {
        font-size: 15px;
    }

    .berita-content .btn,
    .berita-content .btn-baca {
        font-size: 15px;

        padding: 11px 20px;
    }
}