/* Modern Hero Slider Styles */

.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    /* Allow scrolling through the slider */
    pointer-events: auto;
}

.hero-slider {
    width: 100%;
    height: 100%;
    /* Allow page scrolling through the slider */
    touch-action: pan-y;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Allow scrolling through slides */
    pointer-events: auto;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.swiper-slide-active .slide-background {
    transform: scale(1);
    filter: brightness(0.9);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    /* Better desktop placement - vertically centered with more breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding-top: 80px;
    padding-bottom: 120px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    /* Better desktop spacing */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.slide-title .highlight {
    color: #01c057;
    display: inline-block;
}

.slide-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 20px 35px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    /* Better desktop placement */
    backdrop-filter: blur(5px);
}

.slide-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    background: #01c057;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 192, 87, 0.3);
    border: 2px solid #01c057;
}

.slide-button:hover {
    background: #00a048;
    border-color: #00a048;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 192, 87, 0.4);
    color: #ffffff;
}

.slide-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.slide-button:hover i {
    transform: translateX(5px);
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #ffffff;
    /* Better desktop placement */
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
    font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #01c057;
    border-color: #01c057;
    transform: scale(1.1);
}

/* Pagination */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 16px;
    background: #01c057;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Progress Bar */
.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.swiper-progress-fill {
    height: 100%;
    background: #01c057;
    width: 0%;
    transition: width 0.1s linear;
}

.swiper-slide-active ~ .swiper-slide .swiper-progress-fill,
.swiper-slide-active .swiper-progress-fill {
    animation: progressBar linear;
    animation-duration: var(--swiper-autoplay-delay, 5000ms);
    animation-fill-mode: forwards;
}

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

/* Desktop improvements */
@media (min-width: 992px) {
    .slide-content {
        padding-top: 100px;
        padding-bottom: 140px;
    }
    
    .slide-title {
        font-size: 80px;
        margin-bottom: 35px;
    }
    
    .slide-subtitle {
        font-size: 24px;
        padding: 22px 40px;
        margin-bottom: 45px;
    }
    
    .slide-button {
        padding: 18px 45px;
        font-size: 18px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 55px;
        height: 55px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 24px;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-slider-section {
        min-height: 500px;
    }
    
    .slide-content {
        padding-top: 22px; /* Half of previous value for minimal spacing */
        padding-bottom: 100px;
    }
    
    .slide-title {
        font-size: 48px;
    }
    
    .slide-subtitle {
        font-size: 18px;
        padding: 15px 25px;
    }
    
    .slide-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-slider-section {
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .slide-subtitle {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 25px;
    }
    
    .slide-button {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20px;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
    }
}

@media (max-width: 575px) {
    .hero-slider-section {
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .slide-subtitle {
        font-size: 14px;
        padding: 10px 18px;
        margin-bottom: 20px;
    }
    
    .slide-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none; /* Hide on very small screens */
    }
}

