body {
    /* Prefer the provided Univers Next Pro font, fallback to system fonts */
    font-family: 'Univers Next Pro', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #000; /* restored black background */
    color: #fff; /* force white text */
}
h1 {
    color: #b22222;
    text-align: center;
    margin-top: 2rem;
}
p {
    text-align: center;
    font-size: 1.2rem;
}

/* Load local font files */
@font-face {
    font-family: 'Univers Next Pro';
    src: url('fonts/univers-next-pro-extended-58f39ec1d8e7a.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Univers Next Pro';
    src: url('fonts/univers-next-pro-bold-extended-58f39f53743a3.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Header layout: keep columns slightly closer */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2vw 1rem 2vw; /* reduced horizontal padding */
    gap: 0.25rem; /* much smaller gap between columns */
    max-width: 1200px; /* keep content centered and constrained */
    margin: 0 auto;
}

.newsletter-center {
    text-align: center;
    margin-bottom: 0.5rem;
}
.header .left, .header .right {
    flex: 0 1 auto; /* don't force equal expansion */
    min-width: 0; /* allow flex shrinking */
}
.header .left { text-align: left; padding-right: 0.5rem; }
.header .right { text-align: right; padding-left: 0.5rem; }

/* Stack on narrow screens */
@media (max-width: 640px) {
    .header { flex-direction: column; text-align: center; gap: 0.5rem; }
    .header .left, .header .right { width: 100%; padding: 0; }
}

/* Hero (Asset 9) with small badge (Asset 10) */
.hero-row {
    display: grid;
    grid-template-columns: 3fr 1fr; /* left ~75%, right ~25% */
    gap: 1rem;
    max-width: 1200px;
    margin: 1.5rem auto;
    align-items: start;
    position: relative; /* allow absolute children anchored to the container */
}
.hero-row { padding-bottom: 3.5rem; }
.hero-left { grid-column: 1 / 2; }
.hero-right { grid-column: 2 / 3; align-self: start; }
.hero-row img { display: block; height: auto; width: 100%; }
.hero-row .asset9 { max-width: 100%; }
.hero-row .asset10 { max-width: 260px; width: 100%; }

@media (max-width: 768px) {
    .hero-row { grid-template-columns: 1fr; }
    .hero-right { margin-top: 0.5rem; }
    .hero-row .asset10 { max-width: 200px; }
    /* Keep the hero text flowing as normal content on tablets/smaller screens */
    .hero-text { position: static !important; width: 90% !important; margin-top: 0.75rem; padding: 0 1rem; transform: none !important; left: auto !important; right: auto !important; font-size: 0.95rem; }
}

/* Overlay text tucked into Asset 9 */
.root, :root {
    --hero-text-top-offset: 58%; /* adjust to align vertically with image */
    --hero-text-left-offset: 86%; /* moved further right toward page edge */
}
.hero-text {
    position: absolute;
    right: 2vw; /* anchor near the right edge of the page */
    top: var(--hero-text-top-offset);
    width: 40%; /* wider so the text isn't so skinny */
    color: #fff;
    text-align: left;
    background: transparent; /* no translucent backing as requested */
    padding: 0;
    font-size: 1rem;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.6);
}

@media (max-width: 1024px) {
    /* slightly larger block on tablet */
    .hero-text { width: 100%; position: static; transform: none; left: auto; right: auto; margin-top: 0.5rem; padding: 0 1rem; }
}

@media (max-width: 768px) {
    /* fall back to centered block on small screens */
    .hero-text { width: 90%; margin: 0.75rem auto; padding: 0 1rem; position: static !important; transform: none !important; left: auto !important; top: auto !important; text-shadow: 0 2px 6px rgba(0,0,0,0.9); }
}

/* Mobile-only hero copy and override: hide desktop overlay and show mobile block */
.hero-text-mobile {
    display: none;
    color: #fff;
    max-width: 1200px;
    margin: 0.75rem auto 1rem auto;
    padding: 0 1rem;
    font-size: 0.98rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .hero-text { display: none !important; }
    .hero-text-mobile { display: block; }
}

/* Note below hero, anchored in left column but right-aligned */
.below-hero {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
}
.note-left {
    grid-column: 1; /* explicitly place in left column */
    justify-self: end; /* right-align inside the left column */
    font-style: italic;
    color: #fff;
    font-size: 0.92rem;
    width: auto; /* shrink to content / note-inner max-width */
    padding-right: 1rem; /* inset from the inner edge of the left column */
}

.note-inner {
    display: inline-block;
    max-width: 56%; /* slightly wider so the note is less narrow (approx. 3 lines) */
}

.note-inner { text-align: right; display: inline-block; }

@media (max-width: 768px) {
    .below-hero { grid-template-columns: 1fr; }
    .note-left { text-align: center; padding-right: 0; }
    .note-inner { max-width: 90%; }
    .below-hero { margin-top: 1rem; }
}

/* prevent overlap: give space under hero for the below-hero note */
.hero-row { padding-bottom: 4rem; }

/* Festival details section */
.details {
    max-width: 1200px;
    margin: 1rem auto 3rem auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    column-gap: 2.25rem; /* more room between text and images */
    align-items: start; /* ensure both columns align to the top */
}
.details-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* span two rows so the paragraph stays beside the images */
}
.details-left h3 {
    color: #fff;
    font-size: 2rem; /* much bigger */
    font-weight: 700;
    margin: 0 0 0.5rem 1.25rem;
    text-align: left;
}
.details-left p {
    margin: 0 0 0 1.25rem;
    color: #fff;
    line-height: 1.4;
    font-size: 1rem;
    text-align: left;
}

.details-bullets {
    margin: 0.5rem 0 0 1.25rem; /* slightly less gap under the bullets */
    padding-left: 1.2rem; /* show bullet symbols */
}
.details-bullets li {
    margin: 0.45rem 0;
    font-size: 1rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .details { grid-template-columns: 1fr; margin: 1rem; }
    .details-left h3, .details-left p { margin-left: 0; }
}

/* Alliance header and signup styles */
.alliance-header {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 1.25rem 0 1.25rem 0;
    text-align: center;
    background: #fff;
}
.alliance-logo {
    max-height: 56px;
    height: 56px;
    width: auto;
    display: inline-block;
}

.signup-block { max-width: 1200px; margin: 1rem auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 1rem; }
.signup-text h4 { margin: 0; font-size: 1rem; letter-spacing: 0.8px; }
.signup-text p { margin: 0; font-size: 0.9rem; opacity: 0.95; }
.join-button { display: inline-block; background: transparent; border: 2px solid #fff; color: #fff; padding: 0.6rem 1rem; text-decoration: none; font-weight: 700; }

@media (max-width: 768px) {
    .signup-block { flex-direction: column; align-items: center; text-align: center; }
    .signup-text { margin-bottom: 0.5rem; }
}

/* Mailchimp embed + bottom join button styles */
.mc-container { max-width: 1200px; margin: 2rem auto 3rem auto; padding: 0 1rem; text-align: center; }
.mc-container #mc_embed_signup { margin: 0 auto; }
.join-bottom { margin-top: 1rem; }
.join-bottom .join-button { display: inline-block; background: transparent; border: 2px solid #fff; color: #fff; padding: 0.6rem 1rem; text-decoration: none; font-weight: 700; }

/* Mailchimp two-column fields */
.mc-two-cols { display: flex; gap: 0.75rem; flex-wrap: nowrap; }
.mc-two-cols .mc-field-group { flex: 1; min-width: 0; }
.mc-two-cols .mc-field-group input { width: 100% !important; box-sizing: border-box; }

/* Normalize input paddings so fields visually match */
.mc-container input[type="email"], .mc-container input[type="text"] { padding: 0.75rem !important; border-radius: 6px !important; }
.mc-container .mc-field-group { margin-bottom: 0.75rem; }

/* Join Now button */
.join-now-button { display: inline-block; background: #fff; color: #000; padding: 0.6rem 1rem; margin-left: 1rem; text-decoration: none; font-weight: 800; border-radius: 2px; border: none; }

@media (max-width: 768px) {
    .mc-container { margin-top: 2.5rem; }
    .mc-two-cols { flex-direction: column; }
    .join-now-button { margin-left: 0; margin-top: 0.5rem; }
}

/* Tidy Mailchimp form: labels, spacing, and button alignment */
.mc-container { max-width: 660px; }
.mc-container #mc_embed_signup { width: 100%; }
.mc-container label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.mc-container .mc-field-group { margin-bottom: 0.6rem; }
.mc-container input[type="email"], .mc-container input[type="text"] { padding: 0.7rem !important; border-radius: 6px !important; }
.mc-container .clear { text-align: center; }
.mc-container .button {
    background: none !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0.5rem auto 0 auto !important;
    display: inline !important;
    text-align: center !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 0 !important;
    position: relative;
    top: -0.25rem;
    box-sizing: content-box !important;
    outline: none !important;
}
.mc-container .button:hover,
.mc-container .button:focus {
    text-decoration: underline !important;
    background: none !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}
.mc-container .clear { text-align: center; }

/* Center the join block and its buttons */
.join-bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; }
.join-bottom .join-button { max-width: 900px; }
.join-now-button { margin-left: 0; }

/* Dark theme overrides for the Mailchimp embed */
.mc-container #mc_embed_signup { background: transparent !important; color: #fff !important; }
.mc-container #mc_embed_signup h2 { color: #fff !important; }
.mc-container label { color: #fff !important; }
.mc-container input[type="email"], .mc-container input[type="text"] { background: #111 !important; border: 1px solid #444 !important; color: #fff !important; padding: 0.5rem; width: 100% !important; box-sizing: border-box; }
.mc-container .button { background: #fff !important; border: none !important; color: #000 !important; padding: 0.6rem 1rem !important; cursor: pointer; border-radius: 6px !important; }
.mc-container .response { color: #fff !important; }

/* Join CTA styling (block with title + description) */
.join-bottom .join-button { display: block; text-align: left; padding: 1rem; border-radius: 3px; border: none; }
.join-bottom .join-title { display: block; font-weight: 900; font-size: 1.1rem; }
.join-bottom .join-desc { display: block; font-weight: 400; font-size: 0.95rem; margin-top: 0.25rem; opacity: 0.95; }

@media (max-width: 768px) {
    .join-bottom .join-button { text-align: center; }
}

/* right column images stacked */
.details-right {
    grid-column: 2 / 3;
    grid-row: 1; /* align with heading */
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* larger gap between stacked images */
    align-items: flex-end; /* align children to the right edge of the column */
    padding-right: 1.25rem;
    align-self: start; /* align with the top of the details section (heading) */
}
.details-right .detail-img { width: 100%; max-width: 200px; height: auto; display: block; }

/* Submit CTA under right images */
.submit-cta {
    display: block;
    margin-top: 1.25rem;
    font-size: 2.4rem; /* bigger and more prominent */
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: right; /* make the text sit at the images' right edge */
    white-space: nowrap; /* keep it on one line */
    overflow: hidden;
    text-overflow: ellipsis; /* fallback if there's not enough space */
}


@media (max-width: 768px) {
    .details-right { grid-column: 1 / 2; flex-direction: row; gap: 0.5rem; justify-content: center; }
    .details-right .detail-img { max-width: 120px; }
    .submit-cta { font-size: 1.1rem; margin-top: 0.75rem; width: auto; text-align: center; white-space: normal; }
}

/* Additional mobile fixes to prevent overlap and prevent duplication of image blocks */
@media (max-width: 768px) {
    /* Make the hero overlay flow as normal content under the hero image */
    .hero-text {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0 1rem;
        transform: none;
        left: auto; right: auto;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Give the details section more vertical space and ensure proper stacking */
    .details { grid-template-columns: 1fr; row-gap: 1rem; margin: 0.75rem; }
    .details-left { grid-row: auto; }

    /* Hide the desktop right-column images and show the mobile-only assets block */
    .details-right { display: none !important; }
    /* ensure the mobile assets sit after all page content and do not overlap */
    .mobile-assets { display: flex !important; flex-direction: column; align-items: center; gap: 0.75rem; margin: 3.5rem 0 3rem 0; width: 100%; clear: both; }

    /* mobile layout: images side-by-side, no wrapping */
    .mobile-asset-row { display: flex; gap: 0.5rem; justify-content: center; width: 100%; flex-wrap: nowrap; }
    .mobile-assets .mobile-asset { width: 48%; max-width: 240px; height: auto; display: block; object-fit: contain; }
    .mobile-submit { display: inline-block; margin-top: 0.5rem; font-size: 1.25rem; text-decoration: underline; text-align: center; }

    /* Extra safety: hide any desktop images or desktop CTA that might still render */
    .detail-img { display: none !important; }
    .details-right .submit-cta { display: none !important; }

    /* Reserve vertical space so mobile assets sit below all text and don't overlap */
    .details-left { margin-bottom: 6rem; }
}

/* On larger screens, ensure the mobile block stays hidden and restore desktop images */
@media (min-width: 769px) {
    .mobile-assets { display: none !important; }
    .details-right { display: flex !important; }
}