/* Banner section base styles */
.coupon-banner-section-5 {
    position: relative;
    overflow: hidden;
}

/* Coupon carousel container */
.coupon-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto 30px;
}

/* Controls container to properly position navigation */
.coupon-controls-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Swiper specific styles */
.coupon-swiper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
    margin: 0 auto;
}

/* Individual slide styles */
.coupon-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Content inside each slide */
.coupon-slide-content {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

/* Navigation buttons - consistent with c1 category listing */
.coupon-nav-btn {
    position: absolute;
    z-index: 10;
    width: 35px !important;
    height: 35px !important;
    background-color: var(--primary) !important;
    border-radius: 50%;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.coupon-nav-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.coupon-nav-prev {
    left: 0;
}

.coupon-nav-next {
    right: 0;
}

/* Navigation arrows */
.coupon-nav-btn:after {
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: bold;
}

.coupon-nav-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Pagination */
.coupon-pagination {
    position: absolute;
    bottom: 0 !important;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

/* Fix for card flipping */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 100%;
    width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: var(--primary);
    color: white;
}

.flip-card-back {
    background-color: white;
    color: var(--dark);
    transform: rotateY(180deg);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .coupon-slide-content {
        max-width: 260px;
    }
}

@media (max-width: 575px) {
    .coupon-nav-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        min-height: 32px;
        line-height: 32px;
    }
    
    .coupon-nav-btn:after {
        font-size: 12px !important;
    }
    
    .coupon-slide-content {
        max-width: 240px;
    }
}

/* Fix for coupon cards to have consistent height */
.coupon-slide-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.coupon-slide-content > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}