/* Hero Slider Main Styles */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Media Styles */
.hero-slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 2;
}

/* Video oynayanda poster-i gizlət */
.hero-slide-video.is-playing + .hero-slide-poster {
    opacity: 0;
    visibility: hidden;
}

/* Poster fallback - video yüklənənə qədər */
.hero-slide-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* iOS video fix */
.hero-slide-video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}

.hero-slide-video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}

.hero-slide-video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero-slide-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero-slide-video::--webkit-media-controls-enclosure {
    display: none !important;
}

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content */
.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 3;
    padding-left: 120px;
    padding-right: 20px;
    max-width: 700px;
}

/* Title */
.hero-slide-title {
    font-size: 42px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
.hero-slide-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 32px 0;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button */
.hero-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #f89435;
    text-decoration: none;
    border: 1.5px solid #f89435;
    border-radius: 30px;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slide-button:hover {
    background: #f89435;
    color: #ffffff;
}

.hero-slide-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hero-slide-button:hover svg {
    transform: translateX(4px);
}

/* =====================================================
   Progress Pagination Styles (User Provided)
   ===================================================== */

.hero-progress-pagination .swiper-pagination-bullets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    bottom: 32px !important;
}

/* Dot base – EXACT SIZE */
.hero-progress-pagination .swiper-pagination-bullet {
    position: relative;
    width: 112px;
    height: 4px;
    border-radius: 4px;
    background-color: #ffffffb3;
    opacity: 0.35;
    margin: 0 !important;
    overflow: hidden;
}

/* Inner progress */
.hero-progress-pagination .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #f89435;
    animation: none;
}

/* Non-active bullets should not show progress */
.hero-progress-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active)::before {
    width: 0% !important;
    animation: none !important;
}

/* Active */
.hero-progress-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.hero-progress-pagination .swiper-pagination-bullet-active::before {
    animation: bulletProgress 5s linear forwards;
}

/* Progress animation */
@keyframes bulletProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Disable hover / focus color change */
.hero-progress-pagination .swiper-pagination-bullet:hover,
.hero-progress-pagination .swiper-pagination-bullet:focus,
.hero-progress-pagination .swiper-pagination-bullet:active {
    background-color: #ffffffb3 !important;
    opacity: inherit !important;
    filter: none !important;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

/* Tablet */
@media (max-width: 991px) {
    .hero-slide-content {
        padding-left: 60px;
        max-width: 600px;
    }
    
    .hero-slide-title {
        font-size: 36px;
    }
    
    .hero-slide-subtitle {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-slider-wrapper {
        min-height: auto;
        height: 700px;
        max-height: 700px;
    }
    
    .hero-slider {
        height: 100%;
        min-height: auto;
    }
    
    .hero-slide {
        height: 700px;
        max-height: 700px;
    }
    
    .hero-slide-media {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .hero-slide-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        object-fit: cover;
    }
    
    .hero-slide-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero-slide-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-slide-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.4;
    }
    
    .hero-slide-button {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    /* Mobile pagination size */
    .hero-progress-pagination .swiper-pagination-bullet {
        width: 34.75px;
        height: 4px;
        border-radius: 4px;
    }
    
    .hero-progress-pagination .swiper-pagination-bullets {
        bottom: 24px !important;
        gap: 8px;
    }
    
    /* Overlay adjustment for mobile - stronger gradient */
    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 24px;
    }
    
    .hero-slide-subtitle {
        font-size: 15px;
    }
    
    .hero-slide-button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Animation for slide content */
.swiper-slide-active .hero-slide-title,
.swiper-slide-active .hero-slide-subtitle,
.swiper-slide-active .hero-slide-button {
    animation: fadeInUp 0.8s ease forwards;
}

.swiper-slide-active .hero-slide-title {
    animation-delay: 0.2s;
    opacity: 0;
}

.swiper-slide-active .hero-slide-subtitle {
    animation-delay: 0.4s;
    opacity: 0;
}

.swiper-slide-active .hero-slide-button {
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
