.navbar-custom {
    background-color: #004d99;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white;
}
.page-header {
    background: linear-gradient(rgba(0, 77, 153, 0.8), rgba(0, 77, 153, 0.8)),
                url('../images/school-building.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}
/* Hero Section Start */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: top;
    justify-content: center;
    text-align: center;
    color: rgb(255, 255, 255);
    overflow: hidden;
}

/* Layer untuk efek animasi background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: bgSlideshow 18s infinite linear;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Overlay untuk efek gelap agar teks terbaca */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 153, 0.3);
}

/* Efek Slideshow dengan CSS Animation */
@keyframes bgSlideshow {
    0%, 33% { background-image: url('../images/school-building1.jpg'); opacity: 1; }
    33.01%, 66% { background-image: url('../images/school-building2.jpg'); opacity: 1; }
    66.01%, 100% { background-image: url('../images/school-building3.jpg'); opacity: 1; }
}

/* Responsif: Tambahkan padding agar lebih rapi */
.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section .btn {
    font-size: 1.2rem;
    padding: 10px 20px;
}
/* Hero Section end */

.feature-box {
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.feature-box:hover {
    transform: translateY(-10px);
}
.feature-icon {
    font-size: 40px;
    color: #004d99;
    margin-bottom: 15px;
}
.news-card {
    height: 100%;
    transition: transform 0.3s;
    margin-bottom: 20px;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card img {
    height: 200px;
    object-fit: cover;
}
.news-meta {
    color: #6c757d;
    font-size: 0.9rem;
}
.search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .feature-box {
        margin-bottom: 20px;
    }
    .news-card img {
        height: 180px;
    }
    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .search-box {
        max-width: 100%;
    }
}

/* Event Carousel Styles */
.event-card {
    margin: 15px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-card img {
    height: 100%;
    object-fit: cover;
}

/* Tombol Prev & Next - Tanpa Blok Bayangan */
.carousel-control-prev,
.carousel-control-next {
    width: 30px; /* Lebih kecil */
    height: 30px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    background: none; /* Hapus background semi-transparan */
    border: none; /* Hapus border */
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Ikon tombol */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) drop-shadow(2px 2px 5px rgba(255, 255, 255, 0.5));
    width: 20px;
    height: 20px;
}
