/* Section 0: Banner Section with Carousel */
.section-0 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Banner Carousel Container */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Banner Slides */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    cursor: pointer; /* Make banner clickable */
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Banner Overlay for Text Content */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none; /* Allow clicks to pass through to the banner slide */
}

/* Banner Content */
.banner-content {
    text-align: center;
    color: white;
    max-width: 90%;
    padding: 2rem;
    pointer-events: none;
}

.banner-caption {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

/* Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover,
.dot.active {
    background-color: white;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
    pointer-events: none;
}

.banner-nav-btn {
    background: none;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.7;
}

.banner-nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.banner-nav-btn:active {
    transform: scale(1.1);
}

.banner-nav-btn svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

/* Fallback styling for when no banners are available */
.mini-section-0 {
    height: 100%;
    background: #166534;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-section-0 .div h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 2rem;
}

/* Responsive Banner Adjustments */
/* Tablet devices (1024px and down) */
@media screen and (max-width: 1024px) {
    .banner-caption {
        font-size: 3rem;
        padding: 1.5rem;
    }
    
    .banner-content {
        padding: 1.5rem;
    }
}

/* Mobile devices (768px and down) */
@media screen and (max-width: 768px) {
    .section-0 {
        height: 150px !important; /* Override inline style from admin */
    }
    
    .banner-caption {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .banner-content {
        padding: 0.5rem;
        max-width: 95%;
    }
    
    .banner-nav {
        padding: 0 10px;
    }
    
    .banner-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .banner-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .banner-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .mini-section-0 .div h1 {
        font-size: 2rem;
        padding: 1rem;
    }
    
    .banner-slide {
        background-size: contain;
    }
}

/* Small mobile devices (576px and down) */
@media screen and (max-width: 576px) {
    .section-0 {
        height: 140px !important;
    }
    
    .banner-caption {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
        line-height: 1.0;
    }
    
    .banner-content {
        padding: 0.3rem;
    }
    
    .banner-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .banner-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .banner-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .mini-section-0 .div h1 {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}

/* Extra small devices (480px and down) */
@media screen and (max-width: 480px) {
    .section-0 {
        height: 140px !important;
    }
    
    .banner-caption {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
        line-height: 0.9;
    }
    
    .banner-content {
        padding: 0.2rem;
    }
    
    .banner-nav {
        padding: 0 5px;
    }
    
    .banner-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .banner-nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .mini-section-0 .div h1 {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
}