/* Web Fonts Definition */
@font-face {
    font-family: 'Montserrat';
    src: url('../includes/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../includes/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../includes/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
}

:root {
    --maroon: #800020;
    --forest-green: #2C5530;
    --gold: #B4975A;
    --rich-black: #1A1A1A;
    --off-white: #F8F8F8;
    --purple: #9b59b6;
    --soft-purple: #d2b0e3;
    --orange: #e67e22;
    --soft-orange: #f3b08c;
}

a{
    color: #eaeaea;
}

@font-face {
    font-family: 'Montserrat Underline';
    src: url('../includes/MontserratUnderline-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Underline';
    src: url('../includes/MontserratUnderline-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

html {
    scroll-behavior: smooth;
}

a.red
{
    color:darkred;
}
.center
{
    text-align: center;
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: var(--off-white);
    color: var(--rich-black);
    font-weight: 400;
    margin: 0;
}

/* Navigation Styles */
.header-bar {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-bar-brand {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header-bar-brand:hover {
    color: var(--gold);
}

.header-bar-brand img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.header-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Navigation link styling */
.header-bar .watch-live-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header-bar .watch-live-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.contact-btn {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.contact-btn:hover {
    color: var(--gold);
}

.nav-donate-btn {
    background-color: var(--maroon);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-donate-btn:hover {
    background-color: var(--gold);
}

/* Menu toggle button - hidden by default */
.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    margin-top: 74px; /* Height of navbar */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(155, 89, 182, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay h2 {
    font-size: 2rem;
    color: var(--soft-orange);
    margin: 0 0 1.5rem 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-overlay h2::after {
    display: none;
}

.hero-content-box {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
    max-width: 850px;
    backdrop-filter: blur(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.event-description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.event-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--soft-orange);
    margin-bottom: 2rem;
}

.livestream-btn {
    background-color: var(--orange);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.livestream-btn:hover {
    background-color: var(--soft-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--maroon);
}

.section-title {
    color: var(--purple);
    text-align: center;
    margin-top: 3rem;
}

.section-title::after {
    background: linear-gradient(90deg, var(--purple), transparent);
}

h1 {
    font-size: 3.5rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

h1.star::before, h1.star::after {
    content: '  ★  ';
    color: var(--gold);
    font-size: 3rem;
    vertical-align: top;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Side by Side Sections */
.side-by-side-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.info-section {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.info-section h2 {
    margin-top: 0;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Admission Section Styling */
.admission-section {
    background: linear-gradient(135deg, #f9f1ff, #fff);
    border: 1px solid var(--soft-purple);
}

.admission-section h2 {
    color: var(--purple);
}

.admission-section h2::after {
    background: linear-gradient(90deg, var(--purple), transparent);
}

.themed-list {
    list-style: none;
    padding-left: 0;
}

.themed-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
    font-size: 1.2rem;
}

.themed-list li:last-child {
    border-bottom: none;
}

.themed-list li::before {
    content: '✦';
    color: var(--purple);
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 1rem;
}

/* Watch Live Section Styling */
.watch-live-section {
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 1px solid var(--soft-orange);
}

.watch-live-section h2 {
    color: var(--orange);
}

.watch-live-section h2::after {
    background: linear-gradient(90deg, var(--orange), transparent);
}

.watch-live-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.school-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.school-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    line-height: 1.4;
}

.themed-link {
    color: var(--orange);
    transition: color 0.3s ease;
    text-decoration: none;
    border-bottom: 1px dotted var(--orange);
}

.themed-link:hover {
    color: var(--soft-orange);
}

.donate-btn {
    background-color: var(--orange);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
}

.donate-btn:hover {
    background-color: var(--soft-orange);
    transform: translateY(-2px);
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 1rem 0;
    background: white;
    position: relative;
}

.content-row {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    gap: 3rem;
    position: relative;
}

/* Temple Image Section */
.temple-image-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 3rem 0;
    gap: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.temple-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    object-fit: cover;
}

.temple-text {
    flex: 1;
    padding: 2rem;
    min-width: 300px;
}

.temple-text h2 {
    color: var(--maroon);
    margin-top: 0;
}

.content-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text {
    flex: 1;
}

/* Event Details */
.event-details {
    position: relative;
    padding: 2rem;
    background: white;
    border: 1px solid var(--gold);
    margin: 2rem 0;
}

.event-details::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--gold);
    z-index: -1;
    opacity: 0.5;
}

.event-details li {
    margin-bottom: 1rem;
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.event-details li::before {
    content: '★';
    color: var(--maroon);
    position: absolute;
    left: 0;
    font-size: 0.8em;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(45deg, var(--maroon), var(--forest-green));
    padding: 4rem 0;
    position: relative;
}

.donation-content {
    display: flex;
    align-items: flex-start;  /* Change from center to flex-start */
    gap: 3rem;
    margin: 2rem 0;
}


.donation-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;

}

.donation-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.donation-info {
    flex: 1;
    text-align: center;
    padding-top: 0;  /* Add this to remove any top padding */
}

.donation-info h2 {
    margin-top: 0;  /* Add this to remove top margin from the heading */
}

.donation-section h2 {
    color: white;
}

.donation-section p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.donate-btn {
    background-color: var(--gold);
    color: var(--rich-black);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
}

.donate-btn:hover {
    background-color: #C9AB6E;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-headers {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.section-headers h2 {
    margin: 0;
    text-align: center;
}

.performance-info li {
    margin-bottom: 1rem;
}

.performance-info li strong {
    font-weight: 600;
}

.vertical-header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.3rem 0;
    margin-bottom: -1rem; /* Added negative margin to pull content up */
}

.vertical-header-stack h2 {
    margin: 0;
    color: #8B0000;
}

.vertical-header-stack h4 {
    margin: -0.2rem 0 -1rem 0; /* Negative margin to pull it closer to h2 */
}

.vertical-header-stack a {
    color: #8B0000;  /* Changed to match header color */
    text-decoration: none;
    font-weight: 500;  /* Slightly bolder */
    padding: 0.2rem 0.5rem;  /* Add some padding for hover effect */
    border-radius: 4px;  /* Rounded corners */
    transition: all 0.2s ease;  /* Smooth transition for hover effects */
}

.vertical-header-stack a:hover {
    background-color: rgba(139, 0, 0, 0.1);  /* Light burgundy background on hover */
    text-decoration: underline;
    transform: translateY(-1px);  /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Subtle shadow on hover */
}

.vertical-header-stack a:active {
    transform: translateY(0);  /* Press effect */
    box-shadow: none;
}

/* Update content-row to remove top margin on first row */
.content-row:first-of-type {
    margin-top: 0;
}

/* Navigation Watch Live Link Styles */
.watch-live-link {
    color: var(--maroon);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.watch-live-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Optional: Add a subtle icon */
.watch-live-link::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.watch-live-link:hover::after {
    transform: translateY(2px);
}

/* Section heading styling */
#watch-live {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    scroll-behavior: smooth;
}

/* Optional hover effect for the heading */
#watch-live:hover {
    color: #d4b36b; /* slightly lighter gold */
}

/* Performances List Styles */
.performances-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.performance-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.performance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--orange));
}

.performance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.performance-item h3 {
    color: var(--purple);
    margin-top: 0;
    margin-bottom: 1rem;
}

.performance-item p {
    color: var(--rich-black);
    margin-bottom: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-bar {
        background: rgba(0, 0, 0, 0.9);
        padding: 0;
        height: auto;
    }

    .header-bar-content {
        flex-direction: column;
        padding: 1rem;
        position: relative;
    }

    .header-bar-brand {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Donate button container */
    .donate-container {
        width: 100%;
        text-align: center;
        margin: 1rem 0;
        order: 2;
    }

    /* Menu toggle button */
    .menu-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

    /* Hamburger menu animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Navigation links container */
    .header-bar-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        order: 3;
        padding-top: 1rem;
    }

    /* Show navigation when active */
    .header-bar-right.active {
        display: flex !important;
    }

    /* Links in mobile menu */
    .watch-live-link,
    .contact-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .content-row {
        flex-direction: column;
        gap: 2rem;
    }

    /* Mobile styles for donation section */
    .donation-content {
        flex-direction: column;
        gap: 2rem;
    }

    .donation-image {
        width: 100%;
    }

    .donation-info {
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h1.star::before, h1.star::after {
        content: '';
        font-size: 0;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 80vh;
        margin-top: 140px;
    }
    
    .hero-overlay h1 {
        font-size: 2.2rem;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
    }
    
    .event-description {
        font-size: 1rem;
    }
    
    .event-time {
        font-size: 1.2rem;
    }
    
    .hero-content-box {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .performances-list {
        flex-direction: column;
        align-items: center;
    }
    
    .performance-item {
        width: 100%;
        max-width: 100%;
    }
    
    .temple-image-container {
        flex-direction: column;
    }
    
    .temple-image {
        width: 100%;
        height: 300px;
    }
    
    .temple-text {
        width: 100%;
        padding: 1.5rem;
    }
    
    .info-section {
        flex: 100%;
        margin-bottom: 1.5rem;
    }
    
    .side-by-side-container {
        gap: 0;
    }

    /* Listing cards: narrower poster thumb, tighter text column on phones */
    .event-card-media {
        flex-basis: 38%;
    }

    .event-card-body {
        padding: 1.25rem;
    }

    .event-card-title {
        font-size: 1.3rem;
    }

    .event-card-sub {
        font-size: 1rem;
    }
}

/* Events Section Styles */
.events-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f8f8, #ffffff);
}

.events-section h2 {
    text-align: center;
    color: var(--maroon);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.events-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

.event-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-item h3 {
    color: var(--purple);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.event-item h4 {
    color: var(--forest-green);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.event-item p {
    margin: 0.5rem 0;
    color: var(--rich-black);
}

.event-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.ticket-btn {
    background-color: var(--orange);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.ticket-btn:hover {
    background-color: var(--soft-orange);
}

/* ===== Events listing (compact cards) ===== */
.events-empty {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 2rem 0 3rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 820px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    text-decoration: none;
    color: var(--rich-black);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.event-card-media {
    flex: 0 0 40%;
    max-width: 260px;
    min-width: 110px;
}

/* Portrait 3:4 thumbnail. A 3:4 poster fills it exactly (no crop); other
   aspect ratios are center-cropped rather than stretched. */
.event-card-media img,
.event-card-media-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.event-card-media-placeholder {
    background: linear-gradient(135deg, var(--soft-purple), var(--gold));
}

.event-card-body {
    flex: 1;
    min-width: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-date {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.event-card-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.event-card-sub {
    color: var(--forest-green);
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

.event-card-more {
    margin-top: 1.25rem;
    color: var(--purple);
    font-weight: 600;
}

.event-card:hover .event-card-more {
    color: var(--maroon);
}

/* ===== Sub-pages ===== */
/* Interior pages lead with a compact hero banner that clears the fixed nav,
   so the main content only needs modest top spacing. */
.subpage {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Shorter hero banner for interior pages (e.g. event detail).
   Height scales with viewport WIDTH (not height) so wide/ultra-wide screens
   get a proportionally taller band instead of a thin slice that crops the
   dome and cuts the foreground. Clamped so it stays a banner, never a full
   hero. */
.hero--compact {
    height: clamp(300px, 26vw, 560px);
    min-height: 0; /* override .hero's 600px floor so the clamp governs */
}

/* Center the crop on the temple mass (dome + structure) rather than the sky. */
.hero--compact .hero-image {
    object-position: center 42%;
}

/* ===== Event detail page ===== */
.event-detail {
    max-width: 1000px;
    margin: 0 auto;
}

/* Top hero: portrait poster (left) beside the intro — title, key facts, CTA. */
.event-detail-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.event-detail-poster {
    flex: 0 1 360px;
    max-width: 100%;
}

.event-detail-poster img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.event-detail-intro {
    flex: 1 1 340px;
    min-width: 0;
}

.event-detail-title {
    font-size: 2.6rem;
    text-align: left;
    margin: 0 0 0.5rem;
}

.event-detail-sub {
    color: var(--forest-green);
    font-size: 1.35rem;
    font-style: italic;
    margin: 0 0 1.5rem;
}

.event-detail-copy {
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 70ch;
}

.event-detail-copy p {
    margin: 0 0 1rem;
}

.event-detail-extra {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0 0;
}

.event-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.event-website-btn {
    background-color: var(--maroon);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.event-website-btn:hover {
    background-color: var(--gold);
}

.event-back-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--purple);
}

.event-back-link:hover {
    color: var(--maroon);
}

.event-detail-rail {
    background: linear-gradient(135deg, #f9f1ff, #fff);
    border: 1px solid var(--soft-purple);
    border-radius: 8px;
    padding: 0.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.event-fact {
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(155, 89, 182, 0.15);
}

.event-fact:last-child {
    border-bottom: none;
}

.event-fact-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--purple);
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.event-fact-value {
    font-size: 1.1rem;
    margin: 0;
    color: var(--rich-black);
}

.event-fact-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0.3rem 0 0;
}

.event-not-found {
    text-align: center;
    padding: 3rem 0;
}

.event-not-found h1 {
    text-align: center;
}

@media (max-width: 768px) {
    .event-detail-title {
        font-size: 2rem;
    }

    /* Poster leads full-width (centered, capped) above the intro on phones. */
    .event-detail-poster {
        flex-basis: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

