/* Hero Slider Styles */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay to ensure text readability */
.heroSwiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.heroSwiper .slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 15px;
}

.heroSwiper .slide-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.heroSwiper .slide-content p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Custom Pagination */
.heroSwiper .custom-progress-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    opacity: 1;
    position: relative;
    overflow: hidden;
    margin: 0 !important; /* Override Swiper default margin */
    cursor: pointer;
}

/* The Progress Bar inside the bullet */
.heroSwiper .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

/* Animation for the active bullet */
.heroSwiper .swiper-pagination-bullet-active::before {
    /* The duration is handled by JS based on autoplay delay, 
       but we can set a CSS transition or animation.
       Using a CSS animation allows restarting it when slide changes */
    animation: progressBar 5s linear forwards; /* 5s should match JS autoplay delay */
}

/* If Swiper is paused (e.g. on hover), pause animation */
.heroSwiper.is-paused .swiper-pagination-bullet-active::before {
    animation-play-state: paused;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}
