/* =========================================================
   Event & Experience Page — Custom CSS
   Chỉ chứa styles không thể làm bằng Tailwind utility
   ========================================================= */

/* -------------------------------------------------------
   Line clamp helper
   ------------------------------------------------------- */
.ev-exp-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   1. BANNER / HERO SLIDER — Figma node 120-3012
   Total desktop layout: 1440px wide
   Padding: top 190px, bottom 100px, left 76px, right 75px
   Inner row: arrow(26) + gap(80) + content(1154) + gap(80) + arrow(26)
   ========================================================= */

/* --- Wrapper Section --- */
.event-exp-banner-section {
    position: relative;
    width: 100%;
    /* Figma: 688px desktop height */
    height: 688px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .event-exp-banner-section {
        height: 480px;
    }
}

@media (max-width: 480px) {
    .event-exp-banner-section {
        height: 360px;
    }
}

/* --- Slick: Full height for all slider elements --- */
.event-exp-banner-section .slick-list,
.event-exp-banner-section .slick-track,
.event-exp-banner-section .slick-slide,
.event-exp-banner-section .slick-slide>div,
.event-exp-banner-slider,
.event-banner-slide,
.event-banner-slide__bg {
    height: 100%;
}

.event-exp-banner-slider {
    width: 100%;
}

/* --- Overlay (if needed in future, currently removed to keep original image colors) --- */
.event-banner-slide__overlay {
    display: none;
}

/* --- Slide content (text + button) --- */
/* Figma node 120-3016: max-width 1154px, gap 80px, centered */
.event-banner-slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 1154px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Figma node 120-3016: gap 80px between title, button, dots */
    gap: 80px;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .event-banner-slide__content {
        padding-top: 120px;
        padding-bottom: 60px;
        padding-left: 24px;
        padding-right: 24px;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .event-banner-slide__content {
        padding-top: 100px;
        padding-bottom: 40px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 24px;
    }
}

/* --- Slide Title --- */
/* Figma node 120-3017: Quicksand SemiBold 48px/60px, white, center */
.event-banner-slide__title {
    color: #FFFFFF;
    font-family: 'Quicksand', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 60px;
    letter-spacing: 0;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

@media (max-width: 1024px) {
    .event-banner-slide__title {
        font-size: 40px;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    .event-banner-slide__title {
        font-size: 28px;
        line-height: 38px;
    }
}

@media (max-width: 480px) {
    .event-banner-slide__title {
        font-size: 22px;
        line-height: 30px;
    }
}

/* --- CTA Button "See more" --- */
/* Figma node 120-3018: bg #85A443, rounded 3px, Roboto 21px/33px, px 22.5px py 6px */
.event-banner-slide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 22.5px;
    background-color: #85A443;
    border-radius: 3px;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 33px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* Figma: button container 171×45px — achieved naturally via padding */
}

.event-banner-slide__btn:hover {
    background-color: #4C512A;
    color: #FFFFFF;
    text-decoration: none;
}

@media (max-width: 768px) {
    .event-banner-slide__btn {
        font-size: 18px;
        padding: 6px 20px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .event-banner-slide__btn {
        font-size: 16px;
        padding: 6px 18px;
    }
}

/* -------------------------------------------------------
   Custom Navigation Arrows — Figma nodes 120-3015, 120-3024
   Size: 26×103px, chevron stroke #FFFEF3, 3px width
   Position: 76px from edges on desktop (≈5.27% of 1440px)
   ------------------------------------------------------- */
.event-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Figma: 26×103px */
    width: 26px;
    height: 103px;
    padding: 0;
    transition: opacity 0.2s ease;
}

.event-banner-arrow:hover {
    opacity: 0.7;
}

.event-banner-arrow:focus {
    outline: none;
}

/* Figma: left arrow at 76px from left edge — use percentage for responsive */
.event-banner-arrow--prev {
    left: 5.27%; /* 76 / 1440 ≈ 5.27% */
}

/* Figma: right arrow at 75px from right edge */
.event-banner-arrow--next {
    right: 5.2%; /* 75 / 1440 ≈ 5.2% */
}

@media (max-width: 1024px) {
    .event-banner-arrow--prev {
        left: 3%;
    }

    .event-banner-arrow--next {
        right: 3%;
    }
}

@media (max-width: 768px) {
    .event-banner-arrow--prev {
        left: 12px;
    }

    .event-banner-arrow--next {
        right: 12px;
    }

    .event-banner-arrow {
        width: 20px;
        height: 64px;
    }

    .event-banner-arrow svg {
        width: 20px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .event-banner-arrow {
        width: 16px;
        height: 48px;
    }

    .event-banner-arrow svg {
        width: 16px;
        height: 48px;
    }
}

/* -------------------------------------------------------
   Slick Dots — Figma node 120-3019
   Gap: 5px, inactive: 7×7px rounded #FFFEF3
   Active: 18×7px rounded #85A443
   Position: near bottom of banner
   ------------------------------------------------------- */
.event-exp-banner-section .slick-dots {
    position: absolute;
    /* 688 total - 190 pt - 180 title - 80 gap - 45 btn - 80 gap - 7 dot = 106px from bottom */
    bottom: 106px;
    left: 0;
    right: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.event-exp-banner-section .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

/* Figma node 120-3020: inactive dot = 7×7px, rounded-full, #FFFEF3 */
.event-exp-banner-section .slick-dots li button {
    width: 7px;
    height: 7px;
    border-radius: 20px;
    background-color: #FFFEF3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.event-exp-banner-section .slick-dots li button:before {
    display: none;
}

/* Figma node 120-3021: active dot = 18×7px, rounded-full, #85A443 */
.event-exp-banner-section .slick-dots li.slick-active button {
    background-color: #85A443;
    width: 18px;
    height: 7px;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .event-exp-banner-section .slick-dots {
        bottom: 20px;
    }
}

/* =========================================================
   2. EVENT LISTING — Filter Tabs
   ========================================================= */

.ev-listing-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    height: 40px;
    border-radius: 9999px;
    /* pill */
    border: 1px solid #4C512A;
    background-color: transparent;
    color: #4C512A;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.ev-listing-tab:hover {
    background-color: #4C512A;
    color: #FFFFFF;
    border-color: #4C512A;
}

.ev-listing-tab--active {
    background-color: #4C512A;
    color: #FFFFFF;
    border-color: #4C512A;
}

.ev-listing-tab:focus {
    outline: none;
}

/* -------------------------------------------------------
   Event Listing Items — transition for filter animation
   ------------------------------------------------------- */
.ev-listing-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}



/* --- Filter Tabs --- */
.ev-listing-tab-new {
    display: inline-flex;
    /* Use vertical padding from Figma (approx 10px), let flex-1 handle horizontal width */
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    transition: all 0.3s ease;
    outline: none;
    background: transparent;
    color: #9ca3af;
    /* text-gray-400 */
    cursor: pointer;
    white-space: nowrap;
    
    /* Base border setup */
    border: 2px solid transparent;
}

/* Desktop: Vertical lines on BOTH sides of EACH tab, overlapping to avoid 4px thickness */
@media (min-width: 769px) {
    .ev-listing-tab-new {
        border-top: none;
        border-bottom: none;
        border-left: 2px solid #9FA5B3;
        border-right: 2px solid #9FA5B3;
        margin-left: -2px; /* Collapse adjacent borders */
    }
    .ev-listing-tab-new:first-child {
        margin-left: 0;
    }
}

/* Mobile: Horizontal lines on BOTH sides of EACH tab, overlapping */
@media (max-width: 768px) {
    .ev-listing-tab-new {
        border-left: none;
        border-right: none;
        border-top: 2px solid #9FA5B3;
        border-bottom: 2px solid #9FA5B3;
        margin-top: -2px; /* Collapse adjacent borders */
    }
    .ev-listing-tab-new:first-child {
        margin-top: 0;
    }
}

.ev-listing-tab-new.active {
    background-color: #85A443;
    color: #FFFFFF;
    /* Increase z-index so the active tab's borders (or background) sit cleanly on top if needed */
    z-index: 2;
}

.ev-listing-tab-new:hover:not(.active) {
    color: #85A443;
}

@media (max-width: 768px) {
    .ev-listing-tab-new {
        padding: 12px 32px;
        font-size: 18px;
        width: 100%;
    }

    .ev-listing-tab-new.tab-bordered {
        border-right: none;
        border-left: none;
        border-top: 2px solid #9FA5B3;
        border-bottom: 2px solid #9FA5B3;
    }
}