.festival-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.festival-slider {
    position: relative;
    overflow: hidden;
}

/* Force Swiper to show correct number of slides */
.festival-slider .swiper-wrapper {
    display: flex;
}

.festival-slider .swiper-slide {
    flex-shrink: 0;
    height: auto;
}

/* Mobile - 1 slide (default) */
@media (max-width: 767px) {
    .festival-slider .swiper-slide {
        width: 100% !important;
    }
}

/* Tablet - 2 slides */
@media (min-width: 768px) and (max-width: 1023px) {
    .festival-slider .swiper-slide {
        width: 50% !important;
    }
}

/* Desktop - 3 slides */
@media (min-width: 1024px) {
    .festival-slider .swiper-slide {
        width: 33.33% !important;
    }
}

/* Festival card design */
.festival-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column; /* default for mobile/tablet */
}
.festival-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Desktop layout: info left, products right */
@media (min-width: 1024px) {
    .festival-card {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }
    .festival-info {
        flex: 0 0 40%;
        max-width: 40%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .festival-products {
        flex: 0 0 60%;
        max-width: 60%;
        overflow: hidden; /* Prevent overflow outside festival-card */
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Fixed 2-column grid */
        gap: 15px;
        align-content: flex-start;
    }
    .product-card {
        width: 100%;
        max-width: none;
        min-height: 220px;
    }
}

/* Festival date badge */
.festival-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b6b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 2;
}

/* Festival Info */
.festival-info {
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}
.festival-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.festival-info h3 {
    font-size: 1.4em;
    margin: 10px 0 4px;
    color: #333;
    font-weight: 600;
}
.festival-subtitle {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}
.countdown span {
    background: #0073aa;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
}

/* Products */
.festival-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Fixed 2-column grid for mobile/tablet */
    gap: 15px;
    align-content: flex-start;
    margin-top: auto;
}

/* Product cards */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 150px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.product-title {
    font-size: 1em;
    margin: 6px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.price {
    color: #e74c3c;
    font-weight: bold;
}

/* Tablet & Mobile: products in 2-column grid */
@media (max-width: 1023px) {
    .festival-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Fixed 2-column grid */
        gap: 10px;
    }
    .product-card {
        max-width: 100%;
    }
}

/* Swiper Controls */
.swiper-pagination {
    position: relative;
    margin-top: 12px;
}
.swiper-pagination-bullet {
    background: #0073aa;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.swiper-progress-bar {
    display: block;
    height: 4px;
    background: #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}
.swiper-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: #0073aa;
    width: var(--progress, 0);
    transition: width linear;
}
.swiper-button-next,
.swiper-button-prev {
    color: #0073aa;
    font-size: 20px;
    font-weight: bold;
}