/*
 * Banner Fix CSS - PPID SMAN 1 Lubuk Sikaping
 * Ensures banner colors display correctly and consistently
 */

/* ===== HERO SECTION BANNER FIX ===== */
.hero-section {
    background: #0056b3 !important;
    background: -webkit-linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    background: -moz-linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    background: -ms-linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    background: -o-linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    background-size: 400% 400% !important;
    -webkit-animation: gradientShift 8s ease-in-out infinite !important;
    -moz-animation: gradientShift 8s ease-in-out infinite !important;
    -ms-animation: gradientShift 8s ease-in-out infinite !important;
    -o-animation: gradientShift 8s ease-in-out infinite !important;
    animation: gradientShift 8s ease-in-out infinite !important;
    color: white !important;
    padding: 5rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
}

/* Enhanced gradient animation */
@-webkit-keyframes gradientShift {
    0% {
        background: -webkit-linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    50% {
        background: -webkit-linear-gradient(135deg, #3380c5 0%, #0056b3 25%, #004494 50%, #3380c5 75%, #0056b3 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    100% {
        background: -webkit-linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

@-moz-keyframes gradientShift {
    0% {
        background: -moz-linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    50% {
        background: -moz-linear-gradient(135deg, #3380c5 0%, #0056b3 25%, #004494 50%, #3380c5 75%, #0056b3 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    100% {
        background: -moz-linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    50% {
        background: linear-gradient(135deg, #3380c5 0%, #0056b3 25%, #004494 50%, #3380c5 75%, #0056b3 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    100% {
        background: linear-gradient(135deg, #0056b3 0%, #004494 25%, #3380c5 50%, #0056b3 75%, #004494 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

/* Banner overlay effects */
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    z-index: 1 !important;
}

.hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom !important;
    background-size: cover !important;
    z-index: 1 !important;
}

/* Hero content positioning */
.hero-content {
    position: relative !important;
    z-index: 3 !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    opacity: 0.95 !important;
    color: white !important;
}

.hero-section .lead {
    font-size: 1.25rem !important;
    opacity: 0.9 !important;
    margin-bottom: 2rem !important;
    color: white !important;
}

/* ===== CAROUSEL BANNER STYLING ===== */
.banner-carousel .carousel-item {
    height: 500px !important;
    position: relative !important;
}

.banner-carousel .carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.carousel-caption {
    background: rgba(0, 86, 179, 0.85) !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    bottom: 2rem !important;
    left: 2rem !important;
    right: 2rem !important;
    text-align: left !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.carousel-caption h5 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.carousel-caption p {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
}

.carousel-caption .btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.carousel-caption .btn:hover {
    background: white !important;
    color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5% !important;
    opacity: 0.8 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 86, 179, 0.8) !important;
    border-radius: 50% !important;
    padding: 1rem !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 1rem !important;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid white !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 0.25rem !important;
}

.carousel-indicators .active {
    background-color: white !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
        min-height: 350px !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    .banner-carousel .carousel-item {
        height: 300px !important;
    }
    
    .carousel-caption {
        padding: 1.5rem !important;
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.25rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 !important;
        min-height: 300px !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .banner-carousel .carousel-item {
        height: 250px !important;
    }
    
    .carousel-caption {
        padding: 1rem !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
}

/* ===== BUTTON FIXES ===== */
.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004494 0%, #003d73 100%) !important;
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    color: white !important;
}
