
        body {
            font-family: 'Poppins', sans-serif;
            color: #333;
            line-height: 1.7;
        }

        /* Logo */
        .logo-smk {
            max-height: 65px;
            width: 100%;
        }

        /* Navbar */
        .navbar-custom {
            background-color: #ffffff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 0.6rem 0;
        }

        .navbar-custom .nav-link {
            color: #004080;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            position: relative;
            margin: 0 8px;
        }

        .navbar-custom .nav-link::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            left: 0;
            bottom: -5px;
            background-color: #c49b08;
            transition: 0.3s;
        }

        .navbar-custom .nav-link:hover::after,
        .navbar-custom .nav-link.active::after {
            width: 100%;
        }

        .navbar-custom .nav-link:hover {
            color: #c49b08;
        }

        .navbar-custom .dropdown-menu {
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

     /* Carousel */
.carousel-item {
    height: 80vh;                       /* tinggi relatif layar */
    min-height: 400px;                  /* biar tetap bagus di layar kecil */
    background-position: center center; /* posisi tengah */
    background-repeat: no-repeat;
    background-size: cover;             /* gambar penuh (bisa terpotong) */
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);     /* overlay gelap biar teks lebih jelas */
    z-index: 1;
}

 .carousel-caption {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            text-align: center;
            z-index: 2;
            animation: fadeUp 1.2s ease-out;
        }

.carousel-caption h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #f1f1f1;
    margin: 0;
}


/* Dedicated class for justified text */
.justify-text {
text-align: justify !important;
text-justify: auto; /* Optimizes justification, reduces large gaps */
hyphens: auto; /* Enables hyphenation for long words */
white-space: normal; /* Ensures no preformatted line breaks */
line-height: 1.5; /* Tightens line spacing for better readability */
word-spacing: -0.05em; /* Slightly reduces word spacing to minimize gaps */
word-break: normal; /* Avoids breaking words unnecessarily */
font-size: 1rem;
color: #444;
margin-bottom: 1rem;
}

        /* Handle inner HTML elements to enforce consistent justification */
        .justify-text p,
        .justify-text div,
        .justify-text span {
            text-align: justify !important;
            white-space: normal !important;
            display: block;
            margin: 0;
            word-spacing: -0.05em;
        }

        /* Specific handling for Arabic text like "Assalamu’alaikum" */
        .justify-text span[lang="ar"],
        .justify-text .arabic-text {
            text-align: right !important; /* Right-align Arabic text */
            display: inline-block; /* Prevents justification from stretching */
            word-break: keep-all; /* Prevents breaking Arabic words */
        }

        /* Sambutan */
        #sambutan {
            background: #f9f9f9;
        }

        #sambutan h2 {
            font-family: 'Merriweather', serif;
            font-size: 2rem;
            color: #004080;
            margin-bottom: 20px;
        }

        #sambutan img {
            transition: transform 0.4s ease;
        }

        #sambutan img:hover {
            transform: scale(1.05);
        }

        /* Animasi */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hover-card {
            transition: all 0.3s ease;
            border-radius: 15px;
        }

        .hover-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* Responsive Adjustments for Mobile */
        @media (max-width: 767.98px) {
            .justify-text {
                font-size: 0.9rem; /* Slightly smaller font for mobile */
                text-align: justify !important;
                text-justify: auto;
                hyphens: auto;
                line-height: 1.4; /* Tighter line height for mobile */
                word-spacing: -0.1em; /* Further reduce word spacing */
                word-break: normal;
                margin-bottom: 1.5rem;
            }

            .justify-text p,
            .justify-text div,
            .justify-text span {
                text-align: justify !important;
                white-space: normal !important;
                word-spacing: -0.1em;
                margin: 0;
            }

            /* Arabic text on mobile */
            .justify-text span[lang="ar"],
            .justify-text .arabic-text {
                text-align: right !important;
                display: inline-block;
                word-break: keep-all;
            }

            #sambutan h2 {
                font-size: 1.5rem;
            }

            #sambutan img {
                max-width: 200px;
            }

            .swiper-button-next,
            .swiper-button-prev {
                display: none !important;
            }

            /* Ensure container doesn't overflow */
            #sambutan .container {
                padding-left: 10px;
                padding-right: 10px;
                max-width: 100%; /* Prevents overflow */
            }
        }

        section {
            position: relative;
            transition: box-shadow 0.3s ease;
        }

        section.section-shadow {
            box-shadow: inset 0px 10px 15px -10px rgba(0, 0, 0, 0.5),
                inset 0px -10px 15px -10px rgba(0, 0, 0, 0.5);
        }

        /* Preloader */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        #preloader img {
            width: 150px;
            animation: pulse 1.5s infinite ease-in-out;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        #preloader.fade-out {
            opacity: 0;
            pointer-events: none;
        }
/* Biar semua card sama tinggi */
.prestasiSwiper .swiper-slide,
.programSwiper .swiper-slide {
    display: flex;
    height: auto;
}

.prestasiSwiper .card,
.programSwiper .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.prestasiSwiper .card-img-top,
.programSwiper .card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.prestasiSwiper .card-body,
.programSwiper .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


 /* Ekstrakurikuler Section */
#ekstrakurikuler {
    padding: 60px 0;
    background: linear-gradient(135deg, #1E90FF);
}

#ekstrakurikuler h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #f1f1f1;
    margin-bottom: 40px;
}
    
/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 130px; /* Below top bar (~40px) and navbar (~80px) */
}

#berita .card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain; /* biar gambar tidak kepotong */
    background-color: #fff; /* opsional: kasih background kalau ada area kosong */
    padding: 5px; /* opsional: kasih jarak supaya lebih rapi */
}


#berita .input-group {
    border-radius: 8px;
    overflow: hidden;
}

#berita .form-control {
    border: 1px solid #c49b08;
    font-size: 0.9rem;
    padding: 10px;
}

#berita .btn-primary {
    background-color: #004080;
    border-color: #004080;
    transition: background-color 0.3s ease;
}

#berita .btn-primary:hover {
    background-color: #c49b08;
    border-color: #c49b08;
}

#berita .category-list {
    padding: 0;
}

#berita .category-item {
    display: block;
    padding: 10px 15px;
    color: #004080;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#berita .category-item:hover {
    background-color: #f1f1f1;
    color: #c49b08;
}

#berita .category-item.active {
    background-color: #004080;
    color: #fff;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
        margin-top: 30px;
    }
}

/* Video E-Learning */
#video-elearning {
    padding: 60px 0;
}

#video-elearning h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 40px;
}

#video-elearning .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

#video-elearning .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#video-elearning .ratio iframe {
    border-radius: 10px 10px 0 0;
}


/* PPDB Section */
#ppdb {
    padding: 60px 0;
}

#ppdb h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 40px;
}

#ppdb .card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

#ppdb .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#ppdb .btn-primary {
    background-color: #004080;
    border-color: #004080;
    transition: background-color 0.3s ease;
}

#ppdb .btn-primary:hover {
    background-color: #c49b08;
    border-color: #c49b08;
}

#ppdb .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#ppdb .modal-header {
    background-color: #004080;
    color: #fff;
    border-bottom: none;
}

#ppdb .modal-title {
    font-family: 'Merriweather', serif;
}

#ppdb .modal-body {
    font-size: 1rem;
    color: #333;
}

#ppdb .modal-body .btn-primary {
    background-color: #004080;
    border-color: #004080;
}

#ppdb .modal-body .btn-primary:hover {
    background-color: #c49b08;
    border-color: #c49b08;
}


.card-img-top {
    width: 100%;
    object-fit: cover;
}

.card-img-top.main-news {
    width: 100%;
    height: 300px;
    object-fit: contain; 
    background-color: #fff; 
}

.card-img-top.small-news {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: #fff;
}

@media (max-width: 576px) {
    .card-img-top.main-news,
    .card-img-top.small-news {
        height: auto;
        object-fit: contain; 
    }
}

.whatsapp-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.2s;
}

.whatsapp-cta i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.whatsapp-cta:hover {
    transform: scale(1.1);
}
