.event-slider-wrap {
    position: relative;
    margin: 60px 0;
}

h2.section-title {
    font-family: 'Roboto', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.event-slider {
    position: relative;
}

.event-slider .custom-slider-viewport {
    overflow: hidden;
    width: calc(100% + 12px);
    margin: 0 -12px;
}
.event-slider .custom-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    padding: 10px 0;
}

.event-slider .event-item {
    margin: 0 12px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: width 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
    /* Default smaller width for inactive items */
    width: 362px !important;
}
.event-slider .event-item.is-active {
    /* Larger width for active item */
    width: 748px !important;
}

.event-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.event-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.event-item__title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    transition: all 0.3s;
}
.is-active .event-item__title {
    overflow: hidden;
    color: var(--Content-text-white, #FFF);
    text-overflow: ellipsis;
    font-family: "Roboto";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    -webkit-line-clamp: 2;
    align-self: stretch;
    margin-bottom: 16px;
}

.event-item__meta {
    overflow: hidden;
    color: var(--Content-text-white, #FFF);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    /* Body/Large */
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-item__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}
.event-item__meta-item svg {
    flex-shrink: 0;
}

/* Countdown */
.event-item__countdown {
    display: none; /* Hide in inactive items */
    position: absolute;
    bottom: 24px;
    right: 24px;
    gap: 8px;
    z-index: 3;
}
.is-active .event-item__countdown {
    display: flex; /* Show in active item */
}
.countdown-box {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    color: #fff;
    min-width: 50px;
    backdrop-filter: blur(4px);
}
.countdown-box__num {
    color: var(--Content-text-white, #FFF);

    /* Display/Small */
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 44px; /* 122.222% */
    margin-bottom: 0;
}
.countdown-box__label {
    color: var(--Content-text-white, #FFF);

    /* Body/Medium */
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.25px;
    margin-bottom: 0;
}

/* Custom Arrows */
.event-slider-wrap .slick-prev,
.event-slider-wrap .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.event-slider-wrap .slick-prev:hover,
.event-slider-wrap .slick-next:hover {
    background: #f8f9fa;
}
.event-slider-wrap .slick-prev.is-disabled,
.event-slider-wrap .slick-next.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.event-slider-wrap .slick-prev {
    left: -24px;
}
.event-slider-wrap .slick-next {
    right: -24px;
}
.event-slider-wrap .slick-prev::before,
.event-slider-wrap .slick-next::before {
    content: none;
    color: #000;
    font-size: 24px;
    opacity: 1;
}

/* =======================================================
   Section: Lịch sự kiện (Calendar & List)
   ======================================================= */
.event-calendar-section {
    margin-bottom: 60px;
}

/* Header: Lịch sự kiện + Nút */
.calendar-layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.calendar-layout-header h3 {
    font-family: 'Roboto', serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #212529;
    margin: 0;
}
.calendar-layout-header .btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    color: #7008e7;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
}
.calendar-layout-header .btn-view-all:hover {
    background: #F5F3FF;
}

.calendar-layout-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

/* - Cột Lịch (Sidebar) - */
.calendar-sidebar {
    width: calc(100% / 12 * 3);
    flex-shrink: 0;
    background: #f5f3ff;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calendar-header h4 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #212529;
    letter-spacing: 0.15px;
}
.calendar-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    color: #212529;
    transition: background 0.2s;
}
.calendar-header button:hover {
    background: rgba(112, 8, 231, 0.1);
}

.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: space-between;
}
.cal-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 999px;
    width: 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #212529;
    letter-spacing: 0.1px;
}
.cal-day-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 999px;
    width: 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #212529;
    letter-spacing: 0.1px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}
.cal-day-cell:not(.out-month):hover {
    background: rgba(112, 8, 231, 0.1);
}
.cal-day-cell.out-month {
    opacity: 0.5;
    pointer-events: none;
}
.cal-day-cell.is-selected {
    background: #7008e7 !important;
    color: #fff !important;
}

.cal-day-cell .event-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #7008E7;
    border-radius: 50%;
    display: none;
}
.cal-day-cell.has-event .event-dot {
    display: block;
}
.cal-day-cell.is-selected .event-dot {
    background-color: #fff;
}

/* - Cột Danh sách Sự Kiện (Bên phải) - */
.calendar-events-list {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    /* Dòng height: 336px cố định đã xóa bỏ, chừa quyền quyết định cho Js */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    scroll-behavior: smooth;
}
.calendar-events-list::-webkit-scrollbar {
    width: 6px;
}
.calendar-events-list::-webkit-scrollbar-track {
    background: transparent;
}
.calendar-events-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

/* Event Item Row */
.event-item-row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
    padding: 12px 24px;
}

.event-item-row:first-child {
    padding-top: 12px;
}
.event-item-row:last-child {
    padding-bottom: 12px;
}

.event-item-row:hover {
    background: #EDE9FE;
}
.event-item-row__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #7008e7;
    white-space: nowrap;
}
.event-item-row__date-num {
    font-family: 'Roboto', serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    margin: 0;
}
.event-item-row__date-month {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.event-item-row__time {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #212529;
    white-space: nowrap;
    margin: 0;
    min-width: 55px;
}

.event-item-row__img {
    width: 137px;
    height: 89px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.event-item-row__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 1px;
}
.event-item-row__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #4d179a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-item-row__location {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: #4d5154;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge Trạng thái */
.event-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.event-badge.state-disabled {
    background: #e5e7eb;
    color: #212529;
}
.event-badge.state-info {
    background: #eff6ff;
    color: #1447e6;
}
.event-badge.state-warning {
    background: #fffbeb;
    color: #ffb900;
}

.event-list-divider {
    height: 1px;
    background: #e5e7eb;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}