/* =========================
   MAIN EVENTS - inherit community-events layout
   ========================= */

/* 1) Copy y nguyên layout bằng cách áp selector chung */
.single-main-events {
    margin-bottom: 100px;
}

/* Layout show/hide (nếu main-events cũng có layout switch thì giữ, nếu không thì bỏ) */
.single-main-events .line-full {
    height: 1px;
    background: var(--primary-color);
    width: 100%;
}

/* HERO 2 cột (dùng lại y hệt) */
.single-main-events .event-hero-grid,
.single-main-events .main-event-hero-grid {
    display: flex;
    align-items: stretch;
}

/* Nếu anh/chị dùng class hero mới: .main-event-hero-grid / hero-left/right */
.single-main-events .event-hero-image,
.single-main-events .hero-left {
    width: 42%;
    padding: 25px 120px 25px 0;
    border-right: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.single-main-events .event-hero-main,
.single-main-events .hero-right {
    width: 58%;
    padding: 35px 0 36px 24px;
    display: flex;
    flex-direction: column;
}

.single-main-events .event-hero-image img,
.single-main-events .hero-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Title + excerpt (short desc) */
.single-main-events .event-title,
.single-main-events .hero-title {
    font-size: 35px;
    font-weight: 500;
    line-height: 42px;
    margin-top: 0;
    margin-bottom: 20px;
}

.single-main-events .event-excerpt,
.single-main-events .hero-short-desc {
    font-size: 18px;
    line-height: 27px;
    font-weight: 300;
    text-align: justify;
    margin-bottom: 50px;
}

.single-main-events .hero-short-desc p {
    margin: 0;
}

/* Meta 2 cột NGÀY / ĐỊA ĐIỂM (giống ảnh main-events) */
.single-main-events .hero-meta {
    display: flex;
    gap: 90px;
    margin-bottom: 24px;
}

.single-main-events .hero-meta .meta-label {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 18px;
}

.single-main-events .hero-meta .meta-value {
    font-size: 18px;
    font-weight: 300;
    line-height: 18px;
    margin-top: 8px;
}

.single-main-events .event-anchor-nav {
    display: flex;
    gap: 100px;
    margin-bottom: 24px;
    padding-left: 130px;
    margin-top: 83px;
}

.single-main-events .event-anchor-nav a {
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    padding: 2px 0;
    text-align: center;
}

.single-main-events .event-anchor-nav a.active {
    border-bottom: 2px solid #828282;
}

.single-main-events .schedule-heading {
    font-size: 20px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 16px;
    margin-top: 0;
}

.single-main-events .schedule-intro {
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    text-align: justify;
}

.single-main-events .schedule-tabs {
    margin-top: 0px;
    margin-bottom: 44px;
}

.single-main-events .schedule-tabs .schedule-tabs-inner {
    display: inline-flex;
    gap: 50px;
    background: #fff;
    padding: 7px 23px;
    border-radius: 8px;
}

.single-main-events .schedule-tabs .schedule-tab-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 36px;
    font-weight: 700;
    padding: 13.5px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    border-radius: 8px;
    min-width: 200px;
}

.single-main-events .schedule-tabs .schedule-tab-btn.active {
    background: #E0E0E0;
}

/* Button TICKETS (style giống btn-register) */
.single-main-events .btn-tickets {
    color: var(--primary-color);
    padding: 12px 36px;
    border-radius: 0;
    border: 1px solid #000;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: 24px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: fit-content;
}

.single-main-events .btn-tickets:hover {
    background: #000;
    color: #fff;
}

.single-main-events .main-event-tabs {
    margin-top: 83px;
}

/* Tabs (Thông tin / Lịch trình / Hạng vé) - reuse */
.single-main-events .tab-navigation {
    display: flex;
    gap: 100px;
    margin-bottom: 24px;
    padding-left: 20px;
}

.single-main-events .tab-btn {
    background: transparent;
    border: none;
    padding: 2px 0;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    /* color: #898989; */
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.single-main-events .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: #828282;
}

.single-main-events .tab-content {
    min-height: 300px;
    background: #E0E0E0;
    padding: 30px 30px 44px;
    border-radius: 8px;
}

.single-main-events .tab-pane {
    display: none;
}

.single-main-events .tab-pane.active {
    display: block;
}

/* Box meta trong tab Thông tin */
.single-main-events .event-detail-meta-box {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--primary-color);
}

.single-main-events .live-badge {
    font-size: 16px;
    line-height: 16px;
    padding: 5px 26px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    display: inline-block;
    margin-bottom: 22px;
}

.single-main-events .event-detail-meta-box .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.single-main-events .event-detail-meta-box .meta-row:last-child {
    margin-bottom: 0;
}

.single-main-events .event-detail-meta-box .meta-value {
    font-size: 20px;
    line-height: 28px;
}

/* Các block nội dung (reuse) */
.single-main-events .event-block {
    display: flex;
    margin-bottom: 42px;
}

.single-main-events .event-block-title {
    width: 24%;
    padding-right: 20px;
    font-size: 20px;
    line-height: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.schedule-tab-pane .event-block-title-ticket {
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    margin-top: 60px;
    margin-bottom: 15px;
}

.schedule-tab-pane .schedule-actions .btn-register {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 11px 16px;
    border: 1px solid #000;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
}

.single-main-events .event-block-body {
    width: 76%;
    margin-top: 40px;
}

.single-main-events .event-block-body p,
.single-main-events .event-block-body li {
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    white-space: normal;
    color: rgba(0, 0, 0, 0.75);
    text-align: justify;
    margin-top: 0;
}

.single-main-events .event-block-body li {
    /* line-height: 48px; */
}

.single-main-events .event-block-body ul {
    margin-top: 0;
}

.single-main-events .event-block.event-performers .event-block-body {
    margin-top: 0;
}

.single-main-events .event-block.event-performers .event-block-body p {
    line-height: 48px;
}

.single-main-events .production-sponsors {
    display: flex;
}

.single-main-events .event-block.event-production,
.single-main-events .event-block.event-sponsors {
    width: 50%;
    flex-direction: column;
}

.single-main-events .event-block.event-sponsors {
    padding-left: 100px;
}

.single-main-events .event-block.event-production .event-block-title,
.single-main-events .event-block.event-sponsors .event-block-title {
    width: 100%;
    margin-bottom: 0px;
}

.single-main-events .event-block.event-production .event-block-body,
.single-main-events .event-block.event-sponsors .event-block-body {
    width: 100%;
    margin-top: 0;
}

.single-main-events .schedule-timeline {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-bottom: 60px;
}

.single-main-events .timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 44px;
    align-items: start;
    padding-left: 34px;
}

.single-main-events .timeline-dot {
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff0000;
}

.single-main-events .timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -40px;
    width: 2px;
    background: #7a7a7a;
}

.single-main-events .timeline-item:last-child::before {
    display: none;
}

/* time */
.single-main-events .timeline-time {
        font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: -2px;
    white-space: nowrap;
}

/* title + desc */
.single-main-events .timeline-title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: -2px;
}

.single-main-events .timeline-desc {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    color: rgba(0, 0, 0, .75);
}

.single-main-events .timeline-content:has(.timeline-desc) .timeline-title {
    
}

.single-main-events .main-event-sections #section-ticket {
    margin-top: 60px;
}

#section-schedule .schedule-tab-pane {
    display: none;
    /* mặc định ẩn hết */
}

#section-schedule .schedule-tab-pane.active {
    display: block;
    /* chỉ active mới hiện */
}

.single-main-events .main-event-sections {}

.single-main-events .section-content-main-event {
    background: #E0E0E0;
    padding: 30px 130px 100px;
    border-radius: 8px;
}

.single-main-events .ticket-box {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.single-main-events .ticket-row {
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    padding: 20px 30px 15px 15px;
}

.single-main-events .ticket-row .ticket-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.single-main-events .ticket-row .ticket-price {
    font-size: 28px;
    font-weight: 700;
    line-height: 48px;
    text-align: right;
    margin-bottom: 16px;
}

.single-main-events .ticket-row .ticket-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: rgba(0, 0, 0, .75);
}

.single-main-events .schedule-actions {
    margin-top: 60px;
}

/* =========================
   Responsive - inherit
   ========================= */
@media (max-width: 1024px) {
    .single-main-events .section-content-main-event {
        padding: 30px 30px 100px;
    }

    .single-main-events .event-anchor-nav {
        padding-left: 20px;
    }

    .single-main-events .event-block-title {
        width: 30%;
    }

    .single-main-events .event-block-body {
        width: 70%;
    }

    .single-main-events .schedule-tabs .schedule-tabs-inner {
        gap: 0;
    }

    .single-main-events .schedule-tabs .schedule-tab-btn {
        font-size: 18px;
        line-height: 27px;
        min-width: 170px;
    }
}

@media (max-width: 767px) {
    .single-main-events .production-sponsors {
        flex-wrap: wrap;
    }

    .single-main-events .event-block.event-production,
    .single-main-events .event-block.event-sponsors {
        width: 100%;
        padding-left: 0;
    }

    .single-main-events .event-hero-grid,
    .single-main-events .main-event-hero-grid {
        flex-direction: column;
    }

    .single-main-events .event-hero-image,
    .single-main-events .hero-left {
        width: 100%;
        padding: 40px 0 20px;
        border-right: none;
    }

    .single-main-events .event-hero-main,
    .single-main-events .hero-right {
        width: 100%;
        padding: 20px 0 40px;
    }

    .single-main-events .tab-navigation {
        gap: 20px;
        margin-left: 0;
    }

    .single-main-events .event-block {
        flex-direction: column;
    }

    .single-main-events .event-block-title {
        width: 100%;
        margin-bottom: 20px;
    }

    .single-main-events .event-block-body {
        width: 100%;
        margin-top: 0;
    }

    .single-main-events .event-anchor-nav {
        margin-top: 40px;
        gap: 40px;
    }

}

@media (max-width: 600px) {
    .single-main-events .tab-btn {
        font-size: 21px;
    }

    .single-main-events .event-title,
    .single-main-events .hero-title {
        font-size: 28px;
        line-height: 34px;
    }

    .single-main-events .tab-content {
        padding: 16px;
    }

    .single-main-events .hero-meta {
        gap: 24px;
        flex-wrap: wrap;
    }

    .single-main-events .schedule-tabs .schedule-tabs-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .single-main-events .timeline-time {
        font-size: 16px;
        line-height: 24px;
    }

    .single-main-events .timeline-title {
        font-size: 16px;
        line-height: 24px;
    }

    .single-main-events .timeline-item {
        column-gap: 0;
    }

    .single-main-events .timeline-dot {
        top: 4px;
    }

    .single-main-events .timeline-item::before {
        top: 23px;
        bottom: -36px;
    }

    .single-main-events .timeline-content:has(.timeline-desc) .timeline-title {
        font-size: 18px;
        line-height: 27px;
    }

    .single-main-events .main-event-sections {
        max-width: 100% !important;
    }
}