/* Infinite Scroll Events CSS */

.scroll-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 20px;
    background: transparent;
}

.scroll-container .infinite-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.infinite-scroll-wrapper .infinite-scroll-content {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    animation: scroll 200s linear infinite;
    width: 100%;
    gap: 16px;
}

.infinite-scroll-wrapper .infinite-scroll-items {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    gap: 16px;
}

.infinite-scroll-items .item-wrap {
    position: relative;
    width: 280px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.item-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-wrap .text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    color: #fff;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-size: 19px;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(38, 35, 35, 0.85) 0%, rgba(38, 35, 35, 0.6) 70%, rgba(0,0,0,0) 100%); /* Using brand black color */
    border-bottom: 2px solid rgba(197, 156, 80, 0.6); /* Metallic gold border */
    letter-spacing: 0.5px;
}

.item-wrap .date {
    position: absolute;
    left: 16px;
    top: 52px;
    font-size: 18px;
    font-family: 'Pattaya', cursive;
    color: #ffffff;
    z-index: 15;
    background-color: #d4af37;
    padding: 4px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    display: inline-block;
}

.item-wrap .event-link {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    text-align: center;
    z-index: 10;
}

.item-wrap .event-link a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #d4af37;
    color: white;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.item-wrap .event-link a:hover {
    background-color: #c09e33;
}

.item-wrap:hover img {
    transform: scale(1.05);
}

/* Add an overlay to make text more readable */
.item-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    z-index: 5;
}

@media (min-width: 1024px) {
    .infinite-scroll-wrapper:hover .infinite-scroll-content {
        animation-play-state: paused;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .infinite-scroll-items .item-wrap {
        width: 240px;
        height: 260px;
    }
    
    .item-wrap .text {
        font-size: 16px;
        padding: 12px;
    }
    
    .item-wrap .date {
        top: 48px;
        left: 12px;
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .item-wrap .event-link a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Adjust section margins for better spacing - make it tighter */
.custom-events-slider-section {
    padding-top: 20px;
    padding-bottom: 30px;
}

/* Adjust section margins for better spacing - add more padding above the title */
.custom-events-slider-section {
    padding-top: 60px;
    padding-bottom: 30px;
}

/* Match section title style with other sections */
.custom-events-slider-section .section-header h1 {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #d4af37; /* Updated gold color */
}

.custom-events-slider-section .section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    color: #333; /* Black color */
}

/* Section header styling for consistency */
.custom-events-slider-section .section-header {
    margin-bottom: 20px;
} 