body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    /* Memberikan ruang di atas untuk Navbar & di bawah untuk Footer */
    padding-top: 76px;    /* Sesuaikan dengan tinggi Navbar */
}

/* =========================================================
   NAVBAR GLASSMORPHISM (TRANSPARAN MODERN) & HOVER EFFECTS
   ========================================================= */

/* Efek Transparan Kaca Buram */
.navbar-glass {
    background-color: rgba(255, 255, 255, 0.82) !important; /* Putih transparan 82% */
    backdrop-filter: blur(12px); /* Efek blur kaca buram belakang */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Base Style Font Menu Navbar */
.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect Keren: Background Lembut + Animasi Geser Up */
.navbar-nav .nav-link:hover {
    color: #0d6efd !important; /* Warna biru profesional */
    background-color: rgba(13, 110, 253, 0.08); /* Highlight biru lembut */
    transform: translateY(-1px);
}

/* Highlight Khusus untuk Menu Perpustakaan */
.nav-highlight-item {
    font-weight: 600 !important;
}

/* Dropdown Menu Styling Modern */
.dropdown-menu {
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #0d6efd;
    color: #ffffff !important;
    padding-left: 20px; /* Efek geser kanan sedikit saat di-hover */
}

/* Tombol Login Glow Effect */
.btn-login-glow {
    transition: all 0.3s ease;
}
.btn-login-glow:hover {
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4) !important;
    transform: translateY(-2px);
}

/* Pastikan z-index Footer di bawah dropdown navbar agar tidak bertabrakan */
footer.fixed-bottom {
    z-index: 1000;
}

.navbar.fixed-top {
    z-index: 1030;
}

/* Navbar & Header Custom Styles */
.navbar {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 100px 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
    color: #1e3c72;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.small-news-img {
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.motto-section {
    background-color: #eef2f7;
    padding: 60px 0;
    margin-top: 50px;
}

.school-motto {
    font-style: italic;
    font-weight: 600;
    color: #1e3c72;
}

footer {
    background-color: #111;
    color: #aaa;
    font-size: 0.9rem;
}

/* Styling Custom Carousel & Responsif HP */
.custom-carousel-container {
    position: relative;
    padding: 0;
}

@media (min-width: 768px) {
    .custom-carousel-container {
        padding: 0 55px; /* Memberikan ruang tombol navigasi di desktop */
    }
    .ig-item-row {
        height: 720px; /* Tinggi optimal desktop */
    }
    .ig-media-col, .ig-text-col {
        height: 720px;
    }
}

@media (max-width: 767.98px) {
    .ig-item-row {
        height: auto; /* Otomatis menyesuaikan di layar HP */
    }
    .ig-media-col {
        min-height: 380px;
    }
    .ig-text-col {
        height: auto;
    }
}

.carousel-indicators-outside {
    position: static;
    margin-top: 15px;
    margin-bottom: 0;
    justify-content: center;
}

.carousel-indicators-outside [data-bs-target] {
    background-color: #0d6efd;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.carousel-indicators-outside .active {
    opacity: 1;
    width: 28px;
    border-radius: 10px;
}

.custom-nav-btn {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: #333;
    z-index: 5;
}

.custom-nav-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    opacity: 1;
}

.custom-nav-btn.carousel-control-prev {
    left: 0;
}

.custom-nav-btn.carousel-control-next {
    right: 0;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}