/* Fixa Offer Section Styles */

.fixa-offer {
    padding: 80px 0;
    background: var(--light-gray);
}

.fixa-offer .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.offer-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-slider-container::before,
.offer-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 5;
    pointer-events: none;
}

.offer-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}

.offer-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}

.offer-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden; /* Changed from auto to hidden for infinite scroll */
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.offer-slider::-webkit-scrollbar {
    display: none;
}

.offer-slide {
    flex: 0 0 auto;
    width: 200px;
    height: 355px; /* 9:16 aspect ratio (200 * 16/9 = 355.56) */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offer-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.offer-slide img,
.offer-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.offer-slide video {
    background: #000;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 11;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.slider-btn i {
    font-size: 1.2rem;
}

.prev-btn {
    margin-left: -25px;
}

.next-btn {
    margin-right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Loading State */
.offer-slider.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 355px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.offer-error {
    text-align: center;
    padding: 2rem;
    color: var(--dark-gray);
}

.offer-error i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fixa-offer {
        padding: 60px 0;
    }
    
    .fixa-offer .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .offer-slide {
        width: 160px;
        height: 284px; /* 9:16 aspect ratio (160 * 16/9 = 284.44) */
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i {
        font-size: 1rem;
    }
    
    .prev-btn {
        margin-left: -20px;
    }
    
    .next-btn {
        margin-right: -20px;
    }
}

@media (max-width: 480px) {
    .fixa-offer {
        padding: 40px 0;
    }
    
    .fixa-offer .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .offer-slide {
        width: 140px;
        height: 249px; /* 9:16 aspect ratio (140 * 16/9 = 248.89) */
    }
    
    .offer-slider {
        gap: 1rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn i {
        font-size: 0.9rem;
    }
    
    .prev-btn {
        margin-left: -17px;
    }
    
    .next-btn {
        margin-right: -17px;
    }
}

@media (max-width: 360px) {
    .offer-slide {
        width: 120px;
        height: 213px; /* 9:16 aspect ratio (120 * 16/9 = 213.33) */
    }
    
    .offer-slider {
        gap: 0.8rem;
    }
}
