/* css/event.css */

/* Template Background */
body.es-event-page {
    background-color: #FDFBF7; /* Very light ivory to match mockup */
    color: var(--color-text-main);
}

.es-main-content {
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .es-main-content {
        padding-bottom: 4rem;
    }
}

/* Hero Section */
.es-hero-section {
    width: 100%;
}

.es-hero-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.es-hero-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

@media (min-width: 992px) {
    .es-hero-image {
        height: 700px;
        object-position: center 20%;
    }
}

/* Main Layout Grid */
.es-event-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

@media (min-width: 992px) {
    .es-event-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 3rem;
        padding: 0 1.5rem;
        align-items: start;
    }
    
    .es-event-left {
        padding-top: 2rem;
    }
    
    .es-event-right {
        margin-top: 2rem; /* Move ticket card down to sit beside the hero/content, NO overlap */
        position: sticky;
        top: 40px;
        z-index: 10;
        display: block;
    }
}

@media (max-width: 991px) {
    .es-event-right {
        display: none; /* Hide desktop sidebar on mobile */
    }
}

/* Header Content (Left Column Top) */
.es-event-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .es-event-title {
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
        max-width: 600px;
    }
}

.es-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.es-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.es-meta-item strong {
    font-weight: 600;
    color: var(--color-text-main);
}

.es-meta-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.es-icon-gold {
    fill: var(--color-secondary);
    stroke: none;
}

.es-icon-navy {
    stroke: var(--color-primary);
}

.es-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Mobile CTA (Hidden on desktop) */
.es-mobile-cta {
    display: block;
    margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .es-mobile-cta {
        display: none;
    }
}

/* Ticket Card Components (Shared) */
.es-ticket-btn {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s;
}

.es-ticket-btn:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

.es-ticket-reassurance {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Desktop Sidebar / Ticket Card */
.es-ticket-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    overflow: hidden;
}

.es-ticket-card-top {
    padding: 2rem;
    background: #ffffff;
}

.es-ticket-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.es-ticket-date {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
}

.es-ticket-card-bottom {
    padding: 2rem;
    background: #F4EFE6; /* Cream background */
}

/* Good to know list */
.es-card-overview-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.es-good-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.es-good-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.es-good-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

.es-good-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

.es-good-content strong {
    display: block;
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.es-good-content span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Mobile Good To Know (Hidden on desktop) */
.es-mobile-good-to-know {
    display: block;
    margin-bottom: 3rem;
    background: #F4EFE6;
    padding: 1.5rem;
    border-radius: 8px;
}

@media (min-width: 992px) {
    .es-mobile-good-to-know {
        display: none;
    }
}

/* Body Content (Left Column Bottom) */
.es-overview-text {
    margin-bottom: 3rem;
}

.es-overview-text h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.es-overview-content-wrapper {
    position: relative;
    overflow: hidden;
    /* CSS line clamp approach for elegant fade */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Mobile default ~4 lines */
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .es-overview-content-wrapper {
        -webkit-line-clamp: 5; /* Desktop default ~5 lines */
    }
}

.es-overview-content-wrapper.is-expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.es-overview-full-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.es-overview-full-text p:last-child {
    margin-bottom: 0;
}

/* Fading effect at the bottom when collapsed */
.es-overview-content-wrapper:not(.is-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0), rgba(253, 251, 247, 1));
    pointer-events: none;
}

/* Read More Toggle */
.es-read-more-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    color: var(--color-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.es-read-more-btn:hover {
    color: var(--color-secondary); /* Gold hover */
}

.es-read-more-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.es-read-more-btn[aria-expanded="true"] .es-read-more-icon {
    transform: rotate(180deg);
}

/* FAQ Section */
.es-faq-section {
    margin-bottom: 2rem;
}

.es-faq-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.es-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.es-faq-item {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.es-faq-item:first-of-type {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.es-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
}

.es-faq-question-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.es-faq-plus {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    width: 16px;
    text-align: center;
}

.es-faq-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-secondary);
    stroke-width: 2;
    transition: transform 0.2s;
}

.es-faq-question[aria-expanded="true"] .es-faq-arrow {
    transform: rotate(90deg);
}

.es-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.es-faq-answer-inner {
    padding: 0 0 1.25rem 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Bottom CTA Layouts */
.es-bottom-cta-mobile {
    display: none;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding: 2rem 1.5rem;
    background: #F4EFE6;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 991px) {
    .es-bottom-cta-mobile {
        display: block;
    }
}

.es-bottom-cta-desktop {
    display: none;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .es-bottom-cta-desktop {
        display: block;
    }
}

.es-bottom-cta-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

/* Bottom Desktop Registration - Two Column Override */
@media (min-width: 992px) {
    .es-bottom-cta-desktop .es-registration-group {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
    }

    .es-bottom-cta-desktop .es-registration-item {
        flex: 1;
        max-width: 280px;
    }
}

/* Dual Registration Button Layout */
.es-registration-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the buttons */
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.es-registration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.es-registration-link {
    display: block;
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s ease;
}

.es-registration-link:hover {
    transform: scale(1.02);
}

.es-registration-img {
    width: 100%;
    height: auto;
    display: block;
}

.es-tickets-left {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

.es-ticket-btn {
    display: none; /* Hide old single buttons if they still exist anywhere */
}
/* Mobile / Tablet */
@media (max-width: 991px) {
    .es-hero-image {
        height: auto;
        object-fit: contain;
        object-position: center center;
    }
}