/* ==================================================
   main.css overview

   Approx. section map
   - global and shared foundation: 1-255
   - info.html: 256-405
   - contact.html: 406-479
   - sponsor.html: 480-617
   - shared cards, filters, footer, nav helpers: 618-1693
   - event.html: 1694-1845
   - index.html: 1846-2322
   - ukeplan.html: 2323-2416
   - sponsor.html modal: 2417-2531
   - info.html modal: 2532-2604
   - artist.html: 2605-3037
   - event.html gallery and lightbox: 3038-3333
   - day.html: 3334-3550
   - ukeplan.html sliders: 3551-3730
   - shared footer sponsor banner overrides: 3731-3965

   Keep shared rules near the top and place new page-specific rules
   inside the matching file section instead of adding loose overrides.
================================================== */

/* --- Global / Shared foundation --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Posey Textured';
    src: url('../Fonts/PoseyTextured.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --background-color: #F7F7F7;
    --card-background: #2A2F36;
    --text-color: #333; /* Adjusted for light background */
    --highlight-color: #1A84DB;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adjusted for light background */
    --hero-rip-height: clamp(16px, 5vw, 100px);
    --hero-rip-overlap: 38px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Apply Posey Textured font to all titles and navbar */
h1, h2, h3, h4, h5, h6,
.navbar,
.nav-menu,
.nav-menu a,
.nav-logo {
    font-family: 'Posey Textured', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    background-image: url('../images/background.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat;
    color: var(--text-color);
    line-height: 1.6;
}


.container {
    max-width: 1200px;
    margin: 2.5rem auto 4rem auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative; /* For pseudo-element */
}

/* --- Shared / Header and navigation --- */
header, .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 400px;
    border-bottom: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Jagged bottom edge via pseudo-element to avoid masking the content */
header::after, .navbar::after {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 25px;
    background: inherit;
    background-position: bottom;

    -webkit-mask-image: url('../images/torn-edge-clean.svg');
    mask-image: url('../images/torn-edge-clean.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    z-index: -1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem clamp(1rem, 5%, 5rem);
    background: transparent; /* Paper texture from parent */
    backdrop-filter: none;
    position: relative;
    border-bottom: none;
}

/* Ensure navbar on specific pages matches */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1rem, 5%, 5rem);
    height: auto;
    min-height: 100px;
}

.logo img {
    height: clamp(50px, 8vw, 80px);
    width: auto;
    filter: brightness(0);
}

.nav-logo img {
    height: clamp(60px, 10vw, 90px);
    width: auto;
    filter: none;
}

.main-nav ul, .nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2.5rem);
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.main-nav a, .nav-menu li a {
    color: #222 !important;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1.2rem;
    position: relative;
    background: rgba(26, 132, 219, 0.1);
    border-radius: 0;
    display: inline-block;
}

/* Individual "Tape Strip" look for each link */
.main-nav li, .nav-menu li {
    margin: 0 0.2rem;
}

/* Desktop-specific Scrapbook Tapes */
@media (min-width: 769px) {
    .main-nav a, .nav-menu li a {
        box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
        border-left: 1px solid rgba(255,255,255,0.5);
        border-right: 1px solid rgba(255,255,255,0.5);
    }

    .main-nav li:nth-child(1) a { transform: rotate(-1.5deg) translateY(2px); }
    .main-nav li:nth-child(2) a { transform: rotate(1deg) translateY(-1px); }
    .main-nav li:nth-child(3) a { transform: rotate(-0.5deg) translateY(3px); }
    .main-nav li:nth-child(4) a { transform: rotate(2deg) translateY(0px); }
    .main-nav li:nth-child(5) a { transform: rotate(-1.2deg) translateY(2px); }
    .main-nav li:nth-child(6) a { transform: rotate(0.8deg) translateY(-2px); }

    .main-nav a:hover,
    .main-nav a.active,
    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: #fff !important;
        background: var(--highlight-color);
        transform: rotate(0deg) scale(1.1) translateY(-2px) !important;
        box-shadow: 3px 5px 12px rgba(0,0,0,0.15);
        z-index: 10;
    }
}

/* Mobile overrides for Scrapbook menu */
@media (max-width: 768px) {
    .nav-menu {
        background-image: url('../images/paper-texture.jpg') !important;
        background-color: #fff !important;
        padding: 4rem 2rem !important;
    }

    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }

    .nav-menu li a {
        font-size: 1.5rem;
        display: block;
        border-bottom: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
    }
}

/* --- Shared / Hero section --- */
.hero {
    text-align: center;
    padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
    color: var(--text-color); /* Adjusted for light background */
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight-color); /* Use highlight for hero title */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666; /* Darker grey for hero text */
    max-width: 600px;
    margin: 0 auto;
}

/* --- info.html | Bulletin Board Redesign --- */
.info-container.bulletin-board {
    max-width: 1100px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
    align-items: start;
}

.info-card {
    position: relative;
    padding: 2rem;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 1. Taped Note Style */
.taped-note {
    background: #fff;
    background-image:
        url('../images/crumpled_paper_texture.jpg'),
        url('../images/paper-texture.jpg');
    background-size: 450px 450px, 400px;
    background-blend-mode: soft-light, normal;
    grid-column: span 2;
    transform: rotate(-1deg);
    color: #333;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 3px 5px 15px rgba(0,0,0,0.12), inset 0 1px 2px rgba(255,255,255,0.6);
}

.taped-note::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 120px;
    height: 45px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
}

/* 2. Polaroid Style */
.polaroid {
    background: #fff;
    padding: 1.5rem 1.5rem 4rem 1.5rem;
    transform: rotate(2deg);
    box-shadow: 5px 10px 20px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.polaroid .map-image-wrapper img {
    width: 100%;
    height: auto;
    filter: sepia(0.1) contrast(1.1);
    border: 1px solid #ddd;
}

.polaroid-caption {
    font-family: 'Posey Textured', sans-serif;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #444;
}

/* 3. Tacked Note Style */
.tacked-note {
    background: #f0f7ff; /* Light blue paper */
    transform: rotate(-2deg);
    color: #2c3e50;
}

.tacked-note::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #e74c3c; /* Red thumbtack */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3), inset 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* 4. Emergency Note Style */
.emergency-note {
    background: #fffafa;
    border: 2px solid #ff4d4d;
    transform: rotate(1deg);
    color: #333;
}

.emergency-note::before,
.emergency-note::after {
    content: "WARNING";
    position: absolute;
    background: #ff4d4d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    padding: 2px 10px;
    font-size: 0.7rem;
    top: -10px;
}

.emergency-note::before { left: 10px; transform: rotate(-5deg); }
.emergency-note::after { right: 10px; transform: rotate(5deg); }

.info-card h2 {
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.info-card:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 10px 15px 30px rgba(0,0,0,0.2);
    z-index: 20;
}

@media (max-width: 900px) {
    .info-container.bulletin-board {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .taped-note {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .info-container.bulletin-board > #info {
        order: 1;
    }

    .info-container.bulletin-board > #krise {
        order: 2;
    }

    .info-container.bulletin-board > #kart {
        order: 3;
    }

    .info-container.bulletin-board > #bedriftsdagen {
        order: 4;
    }

    .info-card--mobile-static {
        cursor: default !important;
    }

    .info-card--mobile-static:hover {
        transform: inherit;
        box-shadow: 3px 5px 15px rgba(0,0,0,0.1);
        z-index: auto;
    }

    .info-card--mobile-clickable {
        cursor: zoom-in !important;
    }
}


/* --- contact.html | Contact Page --- */
.contact-page .contact-page-main {
    max-width: 1200px;
    position: relative;
}

.contact-page .contact-hero {
    margin: 0 auto 1.25rem auto;
    max-width: 900px;
    background: transparent;
    background-image: none;
    border-radius: 0;
    box-shadow: none;
    color: #333;
    position: relative;
    transform: none;
    padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.5rem);
    overflow: visible;
}

.contact-page .contact-hero::before,
.contact-page .contact-hero::after {
    display: none;
}

.contact-page .contact-hero::after {
    right: -24px;
    transform: rotate(34deg);
}

.contact-page .contact-hero::before {
    left: -24px;
    transform: rotate(-34deg);
}

.contact-page .contact-hero h1 {
    color: var(--highlight-color);
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(26, 132, 219, 0.15);
}

.contact-page .contact-hero p {
    color: #4f5f6e;
    max-width: 700px;
}

.contact-page .contact-board {
    max-width: 960px;
    margin: 2rem auto 0 auto;
    position: relative;
    padding: 0;
}

.contact-page .contact-board::before,
.contact-page .contact-board::after {
    display: none;
}

.contact-page .contact-board::after {
    right: auto;
    transform: none;
}

.contact-page .contact-board::before {
    left: auto;
    transform: none;
}

.contact-page .contact-board .event-grid {
    margin-top: 0.35rem;
    margin-bottom: 0;
    padding: 1rem clamp(1rem, 3vw, 1.8rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.4rem, 3vw, 2.1rem);
}

.contact-page .event-card {
    border-radius: 2px;
    border: none;
    box-shadow: 4px 8px 20px rgba(0,0,0,0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contact-page .event-card:nth-child(odd) {
    transform: rotate(-1.6deg);
}

.contact-page .event-card:nth-child(even) {
    transform: rotate(1.8deg);
}

.contact-page .event-card:nth-child(3n) {
    transform: rotate(0.4deg);
}

.contact-page .event-card::before {
    width: 105px;
    height: 36px;
    background: rgba(255, 255, 255, 0.48);
}

.contact-page .event-card::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--highlight-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.contact-page .event-card:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg) !important;
    box-shadow: 8px 18px 34px rgba(0,0,0,0.24);
}

.contact-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background:
        linear-gradient(135deg, #e8f4fd, #d0e8f7),
        repeating-linear-gradient(0deg, rgba(26,132,219,0.06) 0px, rgba(26,132,219,0.06) 2px, transparent 2px, transparent 8px);
    margin: 10px 10px 0 10px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 3.5rem;
    color: var(--highlight-color);
    overflow: hidden;
}

.contact-page .contact-icon-header i {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.12));
}

.contact-page .contact-icon-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-card-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #2b5f89;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(26, 132, 219, 0.11);
    border: 1px solid rgba(26, 132, 219, 0.2);
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    margin-bottom: 0.65rem;
}

.contact-page .event-card__content {
    gap: 0.4rem;
}

.contact-page .event-card__info {
    margin-bottom: 0.55rem;
}

.contact-page .event-card__info span {
    background: rgba(26, 132, 219, 0.06);
    border-left: 3px solid rgba(26, 132, 219, 0.25);
    border-radius: 4px;
    padding: 0.28rem 0.45rem;
}

.contact-page .event-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.65rem 1.05rem;
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(26,132,219,0.2);
}

.contact-page .event-card__cta i {
    transition: transform 0.2s ease;
}

.contact-page .event-card__cta:hover i {
    transform: translateX(2px);
}

.contact-page .contact-uis-card {
    max-width: 960px;
    margin: 2rem auto 0 auto;
    background: #f0f7ff;
    border: 1px solid rgba(26, 132, 219, 0.2);
    box-shadow: 4px 9px 20px rgba(0,0,0,0.15);
    padding: 1.3rem 1.2rem 1.4rem 1.2rem;
    transform: rotate(-0.55deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.contact-page .contact-uis-card::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.contact-page .contact-uis-card h2 {
    color: var(--highlight-color);
    margin-bottom: 0.3rem;
}

.contact-page .contact-uis-card p {
    color: #4d5a67;
    margin-bottom: 0.9rem;
}

.contact-page .contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.contact-page .contact-uis-content {
    flex: 1;
    min-width: 0;
}

.contact-page .contact-uis-logo {
    width: clamp(180px, 24vw, 280px);
    height: auto;
    object-fit: contain;
    margin-left: auto;
    display: block;
}

.contact-page .contact-methods .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 9px 20px rgba(26,132,219,0.2);
}

.contact-page .contact-form-board {
    max-width: 960px;
    margin: 2rem auto 0 auto;
    background: #ffffff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 500px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 5px 12px 26px rgba(0, 0, 0, 0.14);
    transform: rotate(0.5deg);
    padding: clamp(1.2rem, 3vw, 1.9rem);
    position: relative;
}

.contact-page .contact-form-board::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 42px;
    width: 98px;
    height: 32px;
    background: rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    transform: rotate(-8deg);
}

.contact-page .contact-form-board h2 {
    color: var(--highlight-color);
    margin-bottom: 0.35rem;
}

.contact-page .contact-form-board p {
    color: #4d5a67;
    margin-bottom: 1rem;
}

.contact-form,
.faq-question-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-field label {
    font-weight: 700;
    color: #33485b;
    font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid rgba(26, 132, 219, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #243444;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(26, 132, 219, 0.62);
    box-shadow: 0 0 0 3px rgba(26, 132, 219, 0.14);
    outline: none;
}

.form-field-full {
    grid-column: 1 / -1;
}

.contact-form button,
.faq-question-form button {
    width: fit-content;
}

.form-status {
    grid-column: 1 / -1;
    min-height: 1.4rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-status.is-success {
    color: #1f7a2a;
}

.form-status.is-error {
    color: #a12622;
}

@media (max-width: 900px) {
    .contact-page .contact-board .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

@media (max-width: 600px) {
    .contact-page .contact-hero,
    .contact-page .contact-board,
    .contact-page .contact-form-board,
    .contact-page .contact-uis-card {
        transform: none;
    }

    .contact-page .contact-uis-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-page .contact-uis-logo {
        margin-left: 0;
        width: min(240px, 100%);
    }

    .contact-page .contact-hero::before,
    .contact-page .contact-hero::after,
    .contact-page .contact-board::before,
    .contact-page .contact-board::after {
        width: 92px;
        height: 34px;
    }

    .contact-page .contact-board .event-grid {
        padding: 0.8rem;
    }

    .contact-page .event-card:nth-child(odd),
    .contact-page .event-card:nth-child(even),
    .contact-page .event-card:nth-child(3n) {
        transform: rotate(0deg);
    }

    .contact-form,
    .faq-question-form {
        grid-template-columns: 1fr;
    }
}
/* --- sponsor.html | Tiered Logo Stage --- */
.partners-page {
    background: linear-gradient(135deg, #1A84DB 0%, #93F087 100%);
    min-height: calc(100vh - 120px);
    padding: clamp(2.5rem, 8vw, 5rem) 1.5rem clamp(3rem, 6vw, 5rem);
}

.partners-stage {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.partners-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 7vw, 4rem);
}

.partners-title-line {
    display: block;
    width: clamp(90px, 14vw, 150px);
    height: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.partners-title-row h1 {
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(2rem, 5vw, 4rem);
}

.partners-tier-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.partners-tier-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.partner-logo-card {
    background: #f2f4f5;
    background-image:
        url('../images/crumpled_paper_texture.jpg');
    background-size: 500px 500px;
    background-blend-mode: overlay;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16), inset 0 1px 2px rgba(255,255,255,0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    /* Reset button defaults */
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    text-align: center;
}

.partner-logo-card:hover {
    transform: translateY(-4px);
}

.partner-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo-card.is-tier-1 {
    width: min(70vw, 340px);
    height: min(25vw, 130px);
}

.partner-logo-card.is-tier-2 {
    width: min(56vw, 280px);
    height: min(20vw, 100px);
}

.partner-logo-card.is-tier-3 {
    width: min(46vw, 230px);
    height: min(16vw, 78px);
}

.partner-logo-card.is-empty {
    color: rgba(40, 40, 40, 0.7);
    font-weight: 700;
}

.partners-subtitle {
    margin: clamp(2rem, 6vw, 4rem) 0 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 700;
}

@media (max-width: 768px) {
    .partners-title-row {
        gap: 0.6rem;
    }

    .partners-title-line {
        width: clamp(42px, 12vw, 70px);
    }

    .partners-tier-row {
        gap: 0.9rem;
    }

    .partner-logo-card.is-tier-1 {
        width: min(86vw, 320px);
        height: min(30vw, 118px);
    }

    .partner-logo-card.is-tier-2 {
        width: min(72vw, 260px);
        height: min(24vw, 92px);
    }

    .partner-logo-card.is-tier-3 {
        width: min(58vw, 220px);
        height: min(19vw, 72px);
    }
}


/* --- Event Grid (General Card Style) --- */
.event-grid {
    margin-bottom: 3rem;
    padding: 1rem clamp(1.5rem, 5%, 5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    align-items: start;
    gap: clamp(2rem, 4vw, 3rem); /* Increased gap for tilts */
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .event-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.event-card {
    background: #fff; /* White paper background */
    background-image:
        url('../images/crumpled_paper_texture.jpg'),
        url('../images/paper-texture.jpg');
    background-size: 400px 400px, 400px;
    background-blend-mode: soft-light, normal;
    border-radius: 2px; /* Sharper paper edges */
    overflow: visible; /* Show tape */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: #333; /* Dark text on white paper */
    width: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Tape Effect for Event Cards */
.event-card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 10;
}

/* Random Tilts */
.event-card:nth-child(odd) { transform: rotate(-1deg); }
.event-card:nth-child(even) { transform: rotate(1.2deg); }
.event-card:nth-child(3n) { transform: rotate(0.5deg); }

/* Fixed height only for ukeplan swiper cards */
.swiper-slide .event-card {
    height: auto;
    min-height: 360px;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02) rotate(0deg) !important;
    box-shadow: 5px 15px 30px rgba(0,0,0,0.2);
    z-index: 20;
}

.event-card__image {
    width: calc(100% - 20px); /* Padded look */
    margin: 10px 10px 0 10px;
    height: 170px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

.event-card__content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.2rem;
    min-height: 0;
}

.event-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--highlight-color);
    word-wrap: break-word;
}

.event-card-content p {
    margin: 0;
    font-weight: 600;
    color: #555;
}

.event-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    color: #666;
}

.event-card__info span {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card__info i {
    margin-right: 0.5rem;
    flex-shrink: 0;
    color: var(--highlight-color);
}

.event-card__cta {
    background: var(--highlight-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.event-card__cta:hover {
    background: #156BB5; /* Slightly darker highlight for hover */
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

/* Keep tag lists compact in small event cards so text content is not pushed out */
.event-card .event-tags {
    gap: 0.35rem;
    margin-top: 0.65rem;
    max-height: 2.2rem;
    overflow: hidden;
}

.event-card .event-tag {
    font-size: 0.69rem;
    line-height: 1;
    padding: 0.2rem 0.45rem;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: #e8f4ff;
    color: #1a84db;
    border: 1px solid #b8dcfb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.event-tags-detail {
    margin-bottom: 1.1rem;
}

.event-tags-detail {
    max-height: none;
    overflow: visible;
}

.event-filters {
    position: relative;
    margin: 1.6rem auto 2.1rem;
    width: min(1200px, calc(100% - 2.4rem));
    padding: 1.15rem 1.2rem 1.05rem;
    background-image:
        url('../images/crumpled_paper_texture.jpg'),
        url('../images/paper-texture.jpg'),
        linear-gradient(145deg, rgba(26,132,219,0.1) 0%, rgba(147,240,135,0.16) 100%);
    background-size: 450px 450px, 360px, cover;
    background-blend-mode: soft-light, normal, normal;
    border: 1px solid rgba(18, 78, 130, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 54, 86, 0.15), inset 0 1px 2px rgba(255,255,255,0.5);
    overflow: hidden;
}

.event-filters::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.35) 100%);
    pointer-events: none;
}

.event-filter-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0;
    padding-right: 7rem;
    border-bottom: 1px dashed rgba(15, 75, 127, 0.2);
}

.event-filter-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #1a84db;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.event-filter-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    align-items: center;
}

.event-filter-title-wrap p {
    margin: 0;
    color: #1a84db;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.event-filter-clear {
    position: absolute !important;
    right: 0;
    top: 50%;
    left: auto !important;
    margin: 0;
    z-index: 2;
    transform: translateY(-50%) !important;
}

.event-filter-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: min(100%, 900px);
    margin: 0.35rem auto 0;
    padding: 0.15rem 0;
}

.tag-filter-btn {
    border: 1px solid #9ec8ef;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #1a84db;
    font-weight: 700;
    font-size: 0.92rem;
    min-height: 0;
    padding: 0.38rem 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    position: static;
    transform: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(17, 68, 108, 0.12);
}

.tag-filter-btn.active,
.tag-filter-btn:active {
    background: #1a84db;
    border-color: #1a84db;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(26,132,219,0.2);
}

.tag-filter-clear {
    background: rgba(255,255,255,0.95);
    color: #1a84db;
    border-color: #1a84db;
    border-style: solid;
    width: auto;
    height: auto;
    border-radius: 999px;
    min-height: 0;
    padding: 0.34rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: normal;
    column-gap: 0;
    overflow-wrap: normal;
    transform: translateY(-50%) !important;
    font-size: 0.84rem;
    line-height: 1;
}

.day-date-badge {
    display: none !important;
}

.event-filter-clear:hover {
    transform: translateY(-50%) !important;
    background: rgba(26,132,219,0.08);
    color: #1a84db;
    text-shadow: none;
    border-color: #1a84db;
}

/* --- index.html | Sponsor Section --- */
.sponsors {
    text-align: center;
    padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
}

.sponsors h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1rem, 4vw, 2rem);
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 3rem);
}

.sponsor-logo img {
    height: clamp(40px, 12vw, 80px);
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sponsor-logo img:hover {
    opacity: 1;
}


/* --- Shared / Footer --- */
.main-footer {
    position: relative;
    background-color: #4c9de0;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5rem 2rem 4rem 2rem; 
    margin-top: 8rem;
    color: #fff !important;
    border: none;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
}

/* Single torn top edge using pseudo-element */
.main-footer::before {
    content: "";
    position: absolute;
    top: -48px; 
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit; /* Inherits the dual background and blend mode */
    background-position: top;
    
    -webkit-mask-image: url('../images/torn-edge-clean.svg');
    mask-image: url('../images/torn-edge-clean.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform: scaleY(-1); 
    z-index: 1;
}

.footer-newsletter {
    max-width: 760px;
    margin: 2.2rem auto 0 auto;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-newsletter h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    margin: 0 0 0.95rem 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.footer-newsletter-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.footer-newsletter-form input[type="email"] {
    width: min(420px, 100%);
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.95);
    color: #1f1f1f;
    border-radius: 6px;
    padding: 0.72rem 0.95rem;
    font-size: 0.96rem;
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.footer-newsletter-form .sticker-button {
    margin-top: 0;
    padding: 0.74rem 1.15rem;
    font-size: 1rem;
}

.footer-newsletter-success {
    margin-top: 0.7rem;
    color: #fff;
    font-weight: 700;
    min-height: 1.4rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding-top: 2.2rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2rem));
}

.footer-language-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.6rem;
    color: #fff !important;
    font-size: 0.9rem;
    opacity: 0.9;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 900;
}

.navbar-socials {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.navbar-socials a {
    font-size: 1.8rem;
    color: #222 !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-socials a:hover {
    color: var(--highlight-color) !important;
    transform: translateY(-10px) scale(1.3) rotate(10deg);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.82;
}

.mobile-social-links {
    display: none;
}

@media (max-width: 768px) {
    .mobile-social-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .navbar-socials {
        display: none;
        overflow-x: auto;

    .swiper-slide .event-card {
        min-height: 340px;
    }

        align-self: flex-start;
        width: auto;
        height: 158px;
    }

    .event-card .event-tags {
        max-height: 1.95rem;
        margin-top: 0.55rem;
    }
        align-items: flex-start;
    .event-card .event-tag {
        font-size: 0.66rem;
        padding: 0.18rem 0.38rem;
    }

    .event-filters {
        width: calc(100% - 1.2rem);
        margin: 1.15rem auto 1.35rem;
        padding: 0.9rem 0.85rem;
        border-radius: 12px;
    }

    .footer-newsletter {
        margin-top: 1.8rem;
        padding: 1rem 0.8rem;
    }

    .footer-newsletter p {
        font-size: 0.88rem;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-form input[type="email"],
    .footer-newsletter-form .sticker-button {
        width: 100%;
        max-width: 100%;
    }

    .event-filter-header {
        margin-bottom: 0.72rem;
        padding: 0.25rem 0 0.55rem;
        padding-right: 0;
        align-items: flex-start;
    }

    .event-filter-header h3 {
        font-size: 1.08rem;
    }

    .event-filter-title-wrap p {
        font-size: 0.8rem;
    }

    .event-filter-clear {
        right: 0.35rem;
        top: 0.1rem;
        transform: none !important;
    }

    .tag-filter-clear.event-filter-clear {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: auto;
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
        line-height: 1;
        column-gap: 0;
    }

    .event-filter-tags {
        gap: 0.45rem;
        width: min(100%, 520px);
        margin-top: 0.55rem;
    }

    .tag-filter-btn {
        font-size: 0.84rem;
        padding: 0.34rem 0.66rem;
    }

    .main-footer {
        padding: 4rem 1.5rem 3rem 1.5rem;
        margin-top: 5rem;
    }
    .footer-bottom {
        margin-top: 3rem;
    }

    .mobile-menu-logo {
        display: flex;
        justify-content: center;
        padding: 1rem 0.5rem 1rem;
        margin-top: -0.5rem;
        border: none !important;
        border-bottom: none !important;
        transform: none !important;
    }

    .mobile-menu-logo img {
        width: min(78vw, 320px);
        max-width: 100%;
        height: auto;
        filter: brightness(0) invert(1);
    }

    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 2.25rem;
        margin-top: clamp(1rem, 4vh, 2rem);
        padding: clamp(1.25rem, 4vh, 2.25rem) 1rem calc(clamp(1.25rem, 4vh, 2.25rem) + env(safe-area-inset-bottom));
        flex-wrap: wrap;
    }

    .mobile-social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.4rem;
        width: clamp(64px, 20vw, 86px);
        height: auto;
        min-height: clamp(64px, 20vw, 86px);
        color: #222 !important;
        font-size: clamp(2rem, 8vw, 3rem);
        text-decoration: none;
        border: none !important;
        border-bottom: none !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0;
        padding: 0;
    }

    .mobile-social-links a i {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1;
    }

    .mobile-language-switcher {
        display: flex;
        justify-content: center;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.75rem 0.6rem calc(0.75rem + env(safe-area-inset-bottom));
        border: none !important;
        background: transparent;
        z-index: 10;
    }

    .mobile-language-switcher .language-switcher {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0.45rem;
        flex-wrap: wrap;
        color: #222;
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.85rem, 3.2vw, 0.95rem);
        font-weight: 700;
    }

    .mobile-language-switcher .language-switcher .lang-option {
        color: #222 !important;
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.75rem, 2.8vw, 0.9rem) !important;
        font-weight: 800;
        text-decoration: none;
        padding: 0.1rem 0.15rem !important;
    }

    .mobile-language-switcher .language-switcher .lang-option.active {
        color: var(--highlight-color) !important;
    }
}

/* --- Shared / Mobile navigation and language controls --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: 0 clamp(1rem, 5vw, 5%);
    background: linear-gradient(135deg, #1A84DB 0%, #93F087 100%);
    color: #fff;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: clamp(70px, 15vw, 120px);
}
.nav-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 2rem);
    height: 100%;
}
.nav-logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-logo img {
    height: clamp(110px, 13vw, 152px);
    width: auto;
    display: block;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu styling */
@media (max-width: 768px) {
    body {
        padding-top: var(--mobile-nav-offset, 82px);
    }

    header {
        position: static;
        background: transparent;
        background-image: none;
        box-shadow: none;
    }

    header::after {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3000;
        min-height: clamp(74px, 12vw, 88px);
        height: clamp(74px, 12vw, 88px);
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: nowrap;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .nav-left {
        width: 100%;
        height: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-logo img {
        height: clamp(82px, 19vw, 110px);
        width: auto;
    }

    .hamburger {
        display: flex;
        width: 60px;
        height: 60px;
        padding: 10px;
        flex: 0 0 auto;
        margin-right: -6px;
    }

    .nav-menu::before {
        content: '';
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: -1;
        pointer-events: none;
    }

    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: linear-gradient(135deg, #1A84DB 0%, #93F087 100%) !important;
        width: min(78vw, 420px) !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100svh !important;
        min-height: 100vh !important;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2) !important;
        margin: 0;
        list-style: none;
        padding: 0 !important;
        border-radius: 0 !important;
        gap: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        color: #fff;
        z-index: 2999;
        position: relative;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .menu-close,
    .menu-close-item {
        display: none !important;
    }

    .nav-menu li {
        width: 100%;
        margin: 0 !important;
        border: none !important;
        transform: none !important;
        transition: none !important;
    }

    .nav-menu li a {
        display: block;
        padding: clamp(1rem, 3vw, 1.5rem);
        border: none;
        transition: color 0.2s ease, opacity 0.2s ease;
        font-size: clamp(1.3rem, 4.5vw, 1.6rem);
        color: #222 !important;
        pointer-events: auto;
        background: transparent !important;
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
        text-shadow: none;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--highlight-color) !important;
        opacity: 1;
    }

    .navbar-socials {
        display: none !important;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }
}

/* Desktop menu styling */
@media (min-width: 769px) {
    .menu-close,
    .mobile-menu-logo,
    .mobile-language-switcher,
    .mobile-social-links {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        gap: clamp(0.8rem, 2vw, 1.5rem);
        flex-wrap: wrap;
        justify-content: center;
        position: static !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        left: auto !important;
        top: auto !important;
        border-radius: 0 !important;
        list-style: none;
        margin: 0;
        overflow: visible;
    }

    .nav-menu::before {
        display: none;
    }

    .nav-menu li {
        margin: 0 !important;
        border: none !important;
    }

    .nav-menu li a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s;
        font-size: clamp(0.9rem, 2vw, 1rem);
        padding: 0 !important;
        border: none !important;
        display: inline !important;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--highlight-color);
    }

    .nav-left {
        width: auto;
        justify-content: flex-start;
    }
}
.nav-right {
    display: none;
    align-items: center;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.lang-option {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}
.lang-option.active,
.lang-option:hover {
    color: var(--highlight-color);
    opacity: 1;
}

/* --- Shared / Buttons --- */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}


.btn.btn-primary {
    background: var(--highlight-color);
    color: #fff;
    padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(1rem, 2.5vw, 1.4rem);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn.btn-primary:hover {
    background: #176bb3;
}

/* Event page maps button should match ticket button blue */
.event-detail-body .btn.btn-secondary {
    background: var(--highlight-color);
    color: #fff;
    padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(1rem, 2.5vw, 1.4rem);
    border-radius: 2rem;
    font-weight: 700;
}

.event-detail-body .btn.btn-secondary:hover {
    background: #176bb3;
}

/* --- Shared / Button responsive tweaks --- */
@media (max-width: 768px) {
    .main-nav ul {
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }

    .logo img {
        height: clamp(40px, 6vw, 60px);
    }
}
/* --- event.html | Event Detail Page --- */
.event-detail-container {
    max-width: 900px;
    margin: 4rem auto;
    background: #fff;
    background-image:
        url('../images/crumpled_paper_texture.jpg'),
        url('../images/paper-texture.jpg');
    background-size: 500px 500px, 600px;
    background-blend-mode: soft-light, normal;
    border-radius: 2px;
    box-shadow: 5px 10px 30px rgba(0,0,0,0.2), inset 0 1px 3px rgba(255,255,255,0.7);
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    padding: 0;
    transform: rotate(-0.5deg);
}

/* Tape for the big poster */
.event-detail-container::before,
.event-detail-container::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.event-detail-container::before { top: -20px; left: -30px; transform: rotate(-35deg); }
.event-detail-container::after { top: -20px; right: -30px; transform: rotate(35deg); }

.event-detail-image {
    width: calc(100% - 40px);
    margin: 20px 20px 0 20px;
    height: clamp(300px, 50vh, 500px);
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.event-detail-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
}

.event-detail-header h1 {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--highlight-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.event-location, .event-datetime {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-detail-body {
    padding: 0 2.5rem 3rem 2.5rem;
}

.event-desc-title {
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.event-detail-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .event-detail-container {
        margin: 2rem 1rem;
        transform: none;
    }
    .event-detail-container::before,
    .event-detail-container::after {
        width: 100px;
        height: 35px;
    }
    .event-detail-header, .event-detail-body {
        padding: 1.5rem;
    }
}

.event-detail-cta:hover {
    background: #176bb3;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 32px rgba(26,132,219,0.22);
}

/* --- faq.html | Assorted Scraps Redesign --- */
.faq-container.assorted-scraps {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
}

.faq-item {
    position: relative;
    padding: 2rem;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: visible;
}

/* 1. Lined Paper Scrap */
.lined-scrap {
    background: #fff;
    background-image: repeating-linear-gradient(#fff, #fff 31px, #e5f4ff 31px, #e5f4ff 32px);
    border-left: 2px solid #ffadad;
    transform: rotate(1deg);
    padding-left: 3rem;
}

.lined-scrap::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #555; /* Binder clip */
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    z-index: 10;
}

/* 2. Grid Paper Scrap */
.grid-scrap {
    background: #fff;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(-1.5deg);
}

.grid-scrap::after {
    content: "";
    position: absolute;
    top: -15px;
    right: 20%;
    width: 80px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
    transform: rotate(5deg);
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* 3. Craft Paper Scrap */
.craft-scrap {
    background: #d2b48c; /* Brown paper */
    background-image:
        url('../images/cardboard_brown.jpg'),
        url('../images/paper-texture.jpg');
    background-size: 500px 500px, 400px;
    background-blend-mode: overlay, multiply;
    transform: rotate(0.5deg);
    color: #4a3728;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.4);
}

.craft-scrap::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    background: #bdc3c7; /* Silver tack */
    border-radius: 50%;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 4. Notebook Torn Scrap */
.notebook-scrap {
    background: #fffdf0;
    border-top: 10px solid #eee; /* "Torn" top edge feel */
    transform: rotate(-0.8deg);
}

.notebook-scrap::before {
    content: "••••••••••";
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 1.5rem;
    letter-spacing: 15px;
}

/* 5. Sticky Note Scrap */
.sticky-note-scrap {
    background: #fff2a8;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
    transform: rotate(1.2deg);
    box-shadow: 4px 8px 18px rgba(0,0,0,0.18);
}

.sticky-note-scrap::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 90px;
    height: 28px;
    background: rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255,255,255,0.35);
    border-right: 1px solid rgba(255,255,255,0.35);
}

/* 6. Receipt Scrap */
.receipt-scrap {
    background: #fff;
    background-image:
        repeating-linear-gradient(to bottom, rgba(0,0,0,0.045), rgba(0,0,0,0.045) 1px, transparent 1px, transparent 24px);
    transform: rotate(-1deg);
    border-top: 2px dashed rgba(0,0,0,0.18);
    border-bottom: 2px dashed rgba(0,0,0,0.18);
}

.receipt-scrap::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    transform: rotate(10deg);
}

/* 7. Blueprint Scrap */
.blueprint-scrap {
    background: #2f5f93;
    color: #f3f9ff;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    transform: rotate(0.8deg);
}

.blueprint-scrap .faq-question,
.blueprint-scrap .faq-answer p {
    color: #f3f9ff;
}

.blueprint-scrap .faq-item.active .faq-answer {
    border-top-color: rgba(255,255,255,0.35);
}

.faq-question {
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding-right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "\f067"; /* Plus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 900px;
    margin-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 1rem;
}

.faq-answer p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.faq-item:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 5px 10px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.faq-question-board {
    max-width: 900px;
    margin: 1.5rem auto 2.5rem auto;
    background: #f0f7ff;
    border: 1px solid rgba(26, 132, 219, 0.2);
    box-shadow: 5px 10px 24px rgba(0, 0, 0, 0.14);
    padding: clamp(1.1rem, 3vw, 1.8rem);
    transform: rotate(-0.55deg);
    position: relative;
}

.faq-question-board::before {
    content: "";
    position: absolute;
    top: -11px;
    right: 56px;
    width: 92px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(7deg);
}

.faq-question-board h2 {
    color: var(--highlight-color);
    margin-bottom: 0.35rem;
}

.faq-question-board p {
    color: #4d5a67;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .faq-question-board {
        transform: none;
    }
}


/* --- index.html | Hero Video Section --- */
.hero-video-section {
    position: relative;
    width: 100% !important;
    min-height: clamp(300px, 60vh, 600px);
    max-height: clamp(400px, 70vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/background.png'); /* Match site background */
    background-size: 4000px auto; 
    background-position: center top;
    background-repeat: repeat;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    z-index: 1;
}

@media (min-width: 769px) {
    .hero-video-section {
        min-height: clamp(480px, 74vh, 780px);
        max-height: clamp(620px, 86vh, 980px);
    }
}

/* Edge PNG Containers */
.kant {
    position: absolute;
    width: 100% !important;
    height: 100% !important; 
    background-repeat: no-repeat !important;
    background-size: 100% auto !important; 
    z-index: 20;
    pointer-events: none;
}

.kant.top {
    top: 0 !important;
    background-image: url('../images/top.png') !important;
    background-position: center top !important; 
}

.kant.bottom {
    bottom: 0 !important;
    background-image: url('../images/bot.png') !important;
    background-position: center bottom !important; 
}

.video-player {
    position: absolute;
    top: -25%; 
    left: 0;
    width: 100%;
    height: 150%; /* Taller for more movement */
    z-index: 0;
}

/* Fallback for browsers without animation-timeline support */
.video-player iframe {
    transform: translate(-50%, -50%) scale(1.5);
}

@supports (animation-timeline: scroll()) {
    .video-player iframe {
        animation: strongParallax linear forwards;
        animation-timeline: scroll();
    }
}

@keyframes strongParallax {
    from { transform: translate(-50%, -30%) scale(1.5); }
    to { transform: translate(-50%, -70%) scale(1.5); }
}

.video-player .video-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: 2;
}

.video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .video-player iframe {
    height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  .video-player iframe {
    width: 177.78vh;
  }
}

.text-video {
    position: relative;
    z-index: 10; /* Above video, below edges */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    pointer-events: none;
}

.hero-video-section + .container {
    position: relative;
    z-index: 2;
    margin-top: calc(2.5rem - var(--hero-rip-height) - var(--hero-rip-overlap));
    padding-top: var(--hero-rip-height);
}

.hero-video-section + .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: var(--hero-rip-height);
    transform: translateX(-50%);
    background: url('../images/bot.png') center top / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 3;
}

.text-video .logo-centered {
    pointer-events: auto;
}

.text-video .logo-centered img {
    height: clamp(80px, 20vw, 180px);
    width: auto;
    filter: brightness(0) invert(1);
}

.video-countdown-timer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    pointer-events: auto;
    flex-wrap: wrap;
    width: 100%;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 clamp(0.1em, 1vw, 0.2em);
}

.countdown-number {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: bold;
    line-height: 1;
    color: var(--highlight-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.countdown-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    margin-top: 0.3em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- index.html | Landing Page Grid --- */
.landing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: 2rem;
    padding: 1rem 0;
    align-items: stretch;
}

.landing-grid > .grid-left,
.landing-grid > .grid-right {
    min-height: 100%;
}

/* Large Card now a Post-it Note */
.grid-left .large-card {
    background-color: #9fd6ff;
    background-image:
        linear-gradient(180deg, #9fd6ff 0%, #86cbf3 42%, #84dc99 100%),
        linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%),
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 34px;
    background-repeat: no-repeat, no-repeat, repeat;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.6);
    color: #444;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.15);
    height: 100%;
}

.grid-left .large-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 45px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 10;
}

/* Peeling corner shadow for Large Post-it */
.grid-left .large-card::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 150px;
    height: 30px;
    background: rgba(0,0,0,0.15);
    filter: blur(8px);
    transform: rotate(2deg);
    z-index: -1;
}

.grid-left .large-card:hover {
    transform: scale(1.01) rotate(0deg);
}

.large-card img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
}
.large-card h3 {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    color: #222;
}
.btn-square {
    display: inline-block;
    background: var(--highlight-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s;
}
.btn-square:hover {
    background: #156BB5;
}

.grid-right {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 3rem);
}

/* Small Cards now Taped Posters */
.small-card {
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 400px;
    padding: 1.5rem;
    border-radius: 2px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    color: #333;
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    transform: rotate(1.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible; /* Show tape */
    height: 100%;
}

/* Tape for small cards */
.small-card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 80px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    z-index: 10;
}

.small-card:nth-child(even) { transform: rotate(-1.5deg); }

.small-card:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 5px 15px 30px rgba(0,0,0,0.2);
}

.small-card-text h4 {
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.3rem;
    color: var(--highlight-color);
}
.small-card-text {
    flex: 1;
    min-width: 0;
}
.small-card-text p {
    color: #555;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}
.btn-small {
    background: none;
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    align-self: flex-start;
}
.btn-small:hover {
    background: var(--highlight-color);
    color: white;
}

/* Mobile Overrides (Desktop First) */
@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
}
.small-card-icon {
    flex-shrink: 0;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    color: var(--highlight-color);
    opacity: 0.7;
    align-self: center;
}

@media (max-width: 700px) {
    .small-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .small-card-icon {
        align-self: flex-end;
    }
}

/* --- index.html | Featured Events Section --- */
.featured-events-section {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: clamp(2rem, 5vw, 3rem) 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.featured-events-title {
    color: var(--highlight-color);
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(2.1rem, 6vw, 3.8rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
}
.featured-swiper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 3rem 0;
}
.featured-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.featured-swiper .swiper-slide {
    height: auto;
    padding: 15px;
}
.featured-card {
    position: relative;
    border-radius: 2px;
    overflow: visible;
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 400px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Tape for Featured Cards */
.featured-card::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
}

.featured-card:nth-child(odd) { transform: rotate(-0.8deg); }
.featured-card:nth-child(even) { transform: rotate(0.5deg); }

.featured-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(0deg) !important;
    box-shadow: 5px 20px 40px rgba(0,0,0,0.25);
    z-index: 20;
}
.featured-card__image {
    width: calc(100% - 24px);
    margin: 12px 12px 0 12px;
    height: clamp(200px, 30vw, 280px);
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
}
.featured-card__overlay {
    padding: 1.5rem;
    color: #333;
}
.featured-card__title {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--highlight-color);
}
.featured-card__info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #666;
}
.featured-card__info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.featured-card__info i {
    color: var(--highlight-color);
    font-size: 0.85em;
}

/* Featured carousel navigation arrows */
.featured-swiper-next,
.featured-swiper-prev {
    position: absolute;
    top: 55%; /* Centered better with card body */
    transform: translateY(-50%);
    z-index: 100;
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    color: var(--highlight-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}
.featured-swiper-next:hover,
.featured-swiper-prev:hover {
    background-color: #fff;
    color: #156BB5;
    transform: translateY(-50%) rotate(0deg) scale(1.1);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.25);
}
.featured-swiper-next {
    right: clamp(0.2rem, 1vw, 0.8rem);
    transform: translateY(-50%) rotate(5deg);
}
.featured-swiper-prev {
    left: clamp(0.2rem, 1vw, 0.8rem);
    transform: translateY(-50%) rotate(-5deg);
}
/* Hide default Swiper arrows inside featured carousel */
.featured-swiper .swiper-button-next,
.featured-swiper .swiper-button-prev {
    display: none !important;
}

/* --- ukeplan.html | Page Refinements (Cleaned up for Paper Sheets) --- */
body.ukeplan-page {
    overflow-x: hidden;
}

#week-plan {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    background: transparent;
    width: 100%;
    margin: 0;
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}
.swiper-slide {
    width: clamp(250px, 90vw, 300px) !important;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    height: auto !important;
}

body {
    overflow-x: hidden;
}

/* --- sponsor.html | Popup Modal --- */
.sponsor-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sponsor-modal-overlay.is-open {
    display: flex;
}

.sponsor-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: min(90vw, 520px);
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sponsor-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.sponsor-modal__close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111;
}

.sponsor-modal__logo-wrap {
    padding: 2rem 2rem 1.2rem;
    background: linear-gradient(135deg, #1A84DB 0%, #176bb3 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.sponsor-modal__logo-wrap img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.sponsor-modal__body {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sponsor-modal__name {
    align-self: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--highlight-color);
}

.sponsor-modal__short-bio {
    margin: 0;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.sponsor-modal__bio {
    margin: 0;
    color: #333;
    line-height: 1.65;
    font-size: 0.95rem;
}

.sponsor-modal__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.65rem 1.4rem;
    background: var(--highlight-color);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sponsor-modal__link:hover {
    background: #176bb3;
    color: #fff;
    transform: translateY(-1px);
}

/* --- info.html | Lightbox and Modal --- */
.info-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.info-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: min(90vw, 800px);
    max-height: 85vh;
    z-index: 10;
    overflow-y: auto;
    padding: 20px;
}

.lightbox-controls {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lightbox-control-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.32);
    color: white;
    background: rgba(17, 25, 40, 0.46);
    backdrop-filter: blur(8px);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.lightbox-control-btn:hover {
    transform: translateY(-1px);
    background: rgba(26, 132, 219, 0.75);
    border-color: rgba(255,255,255,0.54);
}

.lightbox-close {
    font-size: 2rem;
    line-height: 1;
}

.expanded-view {
    transform: none !important; /* No rotation in expanded view */
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    cursor: default !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    padding: 3rem !important;
}

.expanded-view h2 {
    font-size: 2.5rem !important;
}

.expanded-view p {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
}

/* Ensure tape/tacks don't interfere with readability in expanded view */
.expanded-view::before,
.expanded-view::after {
    opacity: 0.5;
}

.info-map-lightbox-view {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.info-map-lightbox-view img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.38);
}

@media (max-width: 768px) {
    .info-lightbox--map .lightbox-content {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-controls {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        right: 14px;
        gap: 0.55rem;
    }

    .lightbox-control-btn {
        width: 48px;
        height: 48px;
    }

    .info-lightbox--map #lightbox-body {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .info-lightbox--map .info-map-lightbox-view {
        width: 100%;
        height: 100%;
    }

    .info-lightbox--map .info-map-lightbox-view img {
        width: 100%;
        max-width: 100%;
        max-height: calc(100% - 84px);
        border-radius: 0;
        box-shadow: none;
    }
}

/* --- artist.html | Diagonal Torn Sheets --- */

.artist-card-cutout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 112vh;
    background-size: 100% auto;
    background-position: center 16%;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: url('../images/artist_card.png'), linear-gradient(#fff 0 0);
    mask-image: url('../images/artist_card.png'), linear-gradient(#fff 0 0);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center top;
    mask-position: center top;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: height 0.32s ease, background-size 0.32s ease, background-position 0.32s ease, transform 0.32s ease;
    will-change: height, background-size, background-position, transform;
}
.shredded-lineup-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
}

.lineup-hero {
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    margin: 0;
    padding: 2rem 2rem;
    position: relative;
    z-index: 5;
}

#shredded-container {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    position: relative;
}

/* --- artist.html | Responsive Diagonal Torn Sheets --- */
.artist-sheet {
    position: relative;
    width: 100%;
    height: 80vh;
    margin-top: -30vh;
    margin-bottom: 0;
    cursor: pointer;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: none;
    transition: margin-bottom 0.32s ease;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.9));
}

.artist-card-cutout,
.sheet-main-content {
    pointer-events: none;
}

.artist-card-hitarea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    clip-path: polygon(0 36%, 100% 0%, 100% 64%, 0% 100%);
}

.artist-sheet.active {
    margin-bottom: 35vh;
}

@media (min-width: 769px) {
    .artist-sheet.artist-kygo.active {
        margin-bottom: 16vh;
    }
}

/* Long bios can extend beyond the base card height. Increase the image layer
   while expanded so the torn sheet always looks filled. */
.artist-sheet.active .artist-card-cutout {
    height: 165vh;
    background-size: 102% auto;
    background-position: center 18%;
    transform: scale(1.015);
}

.sheet-main-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: calc(14vw + 2.4rem) clamp(2rem, 10%, 15rem) 5rem clamp(2rem, 10%, 15rem);
    pointer-events: none;
    width: 100%;
    top: calc(7.5rem + 15vh);
}

.artist-sheet.active .sheet-expandable-content {
    pointer-events: auto;
}

.artist-card-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.artist-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
}

.artist-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: url('../images/artist_card.png');
    mask-image: url('../images/artist_card.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.sheet-artist-name {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(3rem, 15vw, 10rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 0.85;
    text-shadow: 0 5px 25px rgba(0,0,0,0.8);
}

.sheet-artist-genre {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.sheet-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, opacity 0.22s ease;
    opacity: 0;
    pointer-events: auto; /* Enable clicks for Spotify btn */
}


.artist-sheet.active .sheet-expandable-content {
    max-height: 1200px;
    opacity: 1;
    margin-top: 2rem;
}

.sheet-bio-wrapper {
    padding: 2rem 0;
    border-top: 2px dashed rgba(255,255,255,0.2);
}

.sheet-bio {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.sheet-spotify-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #1DB954;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    pointer-events: auto;
}

.sheet-hint {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .artist-sheet { 
        height: 62vh;
        margin-top: -24vh;
    }
    #shredded-container .artist-sheet:first-child {
        margin-top: 1rem;
    }
    .artist-sheet.active {
        margin-bottom: 20vh;
    }

    .artist-sheet.active .artist-card-cutout {
        height: 136vh;
        background-size: cover;
        background-position: center 12%;
        transform: none;
    }

    .sheet-main-content {
        padding: calc(17vw + 1.4rem) 1.5rem 2rem 1.5rem;
        top: calc(5.5rem + 15vh);
    }
    .artist-card-cutout {
        height: 110vh;
        width: 100%;
        left: 0;
        background-size: cover;
        background-position: center 12%;
        -webkit-mask-size: cover;
        mask-size: cover;
    }
    .artist-card-hitarea {
        height: 150%;
        clip-path: polygon(0 30%, 100% 0%, 100% 70%, 0% 100%);
    }
    .sheet-artist-name {
        font-size: clamp(2rem, 12vw, 5rem);
    }
    .sheet-artist-genre {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }
    .sheet-bio {
        font-size: 1rem;
    }
    .sheet-spotify-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .sheet-hint {
        margin-top: 1rem;
        position: relative;
        z-index: 12;
        opacity: 0.85;
    }
    .lineup-hero {
        padding: 2rem 1.5rem 2.8rem;
    }
    #shredded-container {
        margin-top: 0.75rem;
    }
}

.sticky-tickets-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 30px;
    background: rgba(26, 132, 219, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 0; /* Square tape edges */
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    box-shadow: 3px 3px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 90vw;
    transform: rotate(-3deg);
    border-left: 2px solid rgba(255,255,255,0.3);
    border-right: 2px solid rgba(255,255,255,0.3);
}

.sticky-tickets-btn:hover {
    transform: rotate(0deg) scale(1.1) translateY(-5px);
    box-shadow: 5px 10px 25px rgba(0,0,0,0.3);
    background: rgba(26, 132, 219, 1);
}

.sticky-tickets-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .sticky-tickets-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        bottom: clamp(0.8rem, 3vh, 1.5rem);
        right: clamp(0.8rem, 3vw, 1.5rem);
    }

    /* Mobile landing page optimizations */
    .text-video .logo-centered img {
        height: clamp(160px, 48vw, 304px);
    }

    .text-video {
        padding-top: clamp(0.8rem, 2vw, 1.5rem);
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }

    .text-video .countdown-video {
        margin-top: clamp(1rem, 4vw, 2rem);
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
        gap: clamp(0.6rem, 1.5vw, 1rem);
    }

    .btn-buy-tickets {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        padding: clamp(0.6rem, 1.2vw, 0.8rem) clamp(1.2rem, 3vw, 1.8rem);
    }

    .countdown-number {
        font-size: clamp(1.8rem, 7.4vw, 2.95rem);
    }

    .countdown-label {
        font-size: clamp(0.82rem, 1.9vw, 1.05rem);
    }
}
.countdown-video {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 2.5rem);
    width: 100%;
    flex-wrap: wrap;
}

/* Mobile optimizations for landing page grid and cards */
@media (max-width: 480px) {
    .large-card {
        padding: 1rem !important;
    }

    .large-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
    }

    .large-card p {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .btn-square {
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
    }

    .grid-right .card {
        padding: 1rem;
    }

    .grid-right .card h4 {
        font-size: 1rem;
    }

    .grid-right .card p {
        font-size: 0.8rem;
    }

    .grid-right .card-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
.event-detail-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    width: 96% !important;
    margin: 4% !important;
    padding: 1% !important;
}
.event-detail-header > * {
    text-align: left !important;
    align-self: flex-start !important;
}
.event-detail-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    width: 96% !important;
    margin: 4% !important;
    padding: 0 !important;
}
.event-detail-body > * {
    text-align: left !important;
    align-self: flex-start !important;
}

/* --- event.html | Bulletin Board Gallery --- */
.event-bulletin-board {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    padding: 0 1rem;
}

.event-bulletin-board > .event-detail-container {
    margin: 4rem 0;
}

.pinned-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 5rem;
    align-items: center;
}

.pinned-left {
    padding-right: 0.5rem;
}

.pinned-right {
    padding-left: 0.5rem;
}

.pinned-photo {
    position: relative;
    background: #fff;
    padding: 8px 8px 24px 8px;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    z-index: 1;
    max-width: 180px;
}

.pinned-photo:hover {
    transform: rotate(0deg) scale(1.12) !important;
    box-shadow: 6px 10px 30px rgba(0,0,0,0.3);
    z-index: 20;
}

.thumbtack {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.thumbtack::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}

.pinned-photo-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* --- event.html | Event Image Lightbox --- */
.event-image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.event-image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.event-image-lightbox-content {
    position: relative;
    z-index: 10;
    width: min(94vw, 1120px);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
}

.event-image-polaroid {
    position: relative;
    background: #fff;
    padding: 10px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.42);
    transform: none;
}

.event-image-polaroid .thumbtack {
    top: -10px;
}

.event-image-lightbox-img {
    width: min(82vw, 980px);
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}

.event-image-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    background: #fffef3;
    color: #2d4f69;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.event-image-lightbox-close:hover {
    transform: scale(1.07) rotate(4deg);
    filter: brightness(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.32);
}

.event-image-lightbox-nav {
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255, 255, 245, 0.92);
    color: #2d5c82;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.24);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.event-image-lightbox-nav:hover {
    background: #edf6ff;
    transform: scale(1.06);
}

.event-image-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    font-size: 0.82rem;
    color: #eaf5ff;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(19, 50, 76, 0.74);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* Responsive: stack pinned photos below on smaller screens */
@media (max-width: 1100px) {
    .event-bulletin-board {
        grid-template-columns: 150px 1fr 150px;
    }
    .pinned-photo {
        max-width: 140px;
    }
}

@media (max-width: 900px) {
    .event-bulletin-board {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .pinned-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0;
        gap: 1rem;
    }
    .pinned-left {
        order: 2;
        padding-right: 0;
    }
    .pinned-right {
        order: 3;
        padding-left: 0;
    }
    .event-bulletin-board > .event-detail-container {
        order: 1;
        margin: 2rem 1rem;
    }
    .pinned-photo {
        max-width: 130px;
    }
}

@media (max-width: 600px) {
    .event-image-lightbox-content {
        width: calc(100vw - 0.2rem);
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "polaroid polaroid"
            "prev next";
        gap: 0.55rem;
        justify-items: center;
    }

    .event-image-polaroid {
        grid-area: polaroid;
    }

    .event-image-lightbox-img {
        width: min(94vw, 560px);
        max-height: 66vh;
    }

    .event-image-lightbox-nav {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .event-image-lightbox-prev {
        grid-area: prev;
    }

    .event-image-lightbox-next {
        grid-area: next;
    }

    .event-image-lightbox-close {
        top: -14px;
        right: 2px;
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }

    .event-image-lightbox-counter {
        bottom: 44px;
        font-size: 0.74rem;
        padding: 0.25rem 0.58rem;
    }

    .event-image-polaroid {
        padding: 6px;
    }

    .pinned-photo {
        max-width: 110px;
        padding: 5px 5px 16px 5px;
    }
}
/* --- day.html | GSAP 3D Image Slider --- */
.day-events-page main.container {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

.day-page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}

.day-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 3rem 0 5rem;
    overflow: hidden;
}

/* The 3-D stage � perspective applied here */
.day-slider-stage {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    width: 100%;
    height: clamp(340px, 52vw, 560px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card container � transform-style so children get 3-D */
.day-slider-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual card */
.dslider-card {
    position: absolute;
    width: clamp(240px, 34vw, 420px);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 4px 8px 32px rgba(0,0,0,0.28);
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 400px;
    will-change: transform, opacity;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* GSAP drives opacity/transform; this just prevents FOUC */
    opacity: 0;
}

.dslider-card__img-wrap {
    width: 100%;
    height: clamp(180px, 24vw, 320px);
    overflow: hidden;
}

.dslider-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Slight zoom on active/hovered centre card */
.dslider-card:hover .dslider-card__img-wrap img {
    transform: scale(1.04);
}

.dslider-card__info {
    padding: 1rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dslider-card__title {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    color: var(--highlight-color);
    margin: 0 0 0.3rem;
    line-height: 1.2;
}

.dslider-card__info span {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dslider-card__info i {
    color: var(--highlight-color);
    font-size: 0.85em;
    flex-shrink: 0;
}

/* Prev / Next arrow buttons */
.day-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: clamp(40px, 5vw, 54px);
    height: clamp(40px, 5vw, 54px);
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 300px;
    color: var(--highlight-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

.day-slider-prev { left:  clamp(0.5rem, 2vw, 2.5rem); transform: translateY(-50%) rotate(-4deg); }
.day-slider-next { right: clamp(0.5rem, 2vw, 2.5rem); transform: translateY(-50%) rotate(4deg); }

.day-slider-btn:hover {
    background-color: #fff;
    color: #156BB5;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.25);
    transform: translateY(-54%) rotate(0deg) scale(1.08);
}

.day-slider-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Dots */
.day-slider-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 20;
}

.dslider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.dslider-dot.active {
    background: var(--highlight-color);
    transform: scale(1.3);
}

.dslider-empty {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
}

/* -- Mobile tweaks ----------------------------- */
@media (max-width: 768px) {
    .day-slider-stage {
        height: clamp(300px, 88vw, 420px);
    }

    .dslider-card {
        width: clamp(200px, 72vw, 300px);
    }

    .dslider-card__img-wrap {
        height: clamp(140px, 44vw, 220px);
    }

    .day-slider-btn {
        top: 40%;
    }
}

/* Event-detail page: slider takes full width */
.event-slider-page {
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.event-slider-page #event-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ukeplan.html | Week day stacked sheets */
.day-section {
    position: relative;
    --day-rip-offset-x: 50%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fcfaf0; /* Default warm paper-like color */
    background-image: url('../images/paper-texture.jpg');
    background-size: 500px;
    background-blend-mode: multiply; /* Blend the pastel colors with the texture */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    min-height: 400px;
    
    /* Ensure the background image only starts from the mask area */
    background-origin: border-box;
    padding-top: 60px; /* Increased offset to ensure content is below the rip */
    overflow: visible; /* Changed to visible to allow stacked sheets to overlap correctly */

    /* Ripped edge implementation using kant.png as a mask */
    -webkit-mask-image: url('../images/kant.png'), linear-gradient(black, black);
    mask-image: url('../images/kant.png'), linear-gradient(black, black);
    -webkit-mask-size: 100% 80px, 100% calc(100% - 80px); /* Changed to -80px to align with rip image height */
    mask-size: 100% 80px, 100% calc(100% - 80px);
    -webkit-mask-position: var(--day-rip-offset-x, 50%) top, 0 80px; /* Changed from 40px to 80px */
    mask-position: var(--day-rip-offset-x, 50%) top, 0 80px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.day-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('../images/kant.png');
    background-size: 100% 80px; /* Match mask size exactly */
    background-position: var(--day-rip-offset-x, 50%) top;
    background-repeat: no-repeat;
    
    pointer-events: none;
    z-index: 10;
    opacity: 0.7; /* Increased opacity to make white details visible */
    mix-blend-mode: screen; /* Keep white texture, hide black */
}

.see-more-btn {
    justify-self: end;
    background: var(--highlight-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

.see-more-btn:hover {
    background: #156BB5;
    transform: scale(1.05);
}


/* Sticky effect with increasing top offsets to create stacking view */
.day-section:nth-child(1) { z-index: 1; top: 0px; background-color: #bbdefb; }
.day-section:nth-child(1) .dslider-card { background-color: #90caf9; }

.day-section:nth-child(2) { z-index: 2; top: 40px; margin-top: -120px; background-color: #b2ebf2; }
.day-section:nth-child(2) .dslider-card { background-color: #80deea; }

.day-section:nth-child(3) { z-index: 3; top: 80px; margin-top: -120px; background-color: #c8e6c9; }
.day-section:nth-child(3) .dslider-card { background-color: #a5d6a7; }

.day-section:nth-child(4) { z-index: 4; top: 120px; margin-top: -120px; background-color: #fff9c4; }
.day-section:nth-child(4) .dslider-card { background-color: #fff59d; }

.day-section:nth-child(5) { z-index: 5; top: 160px; margin-top: -120px; background-color: #ffe0b2; }
.day-section:nth-child(5) .dslider-card { background-color: #ffcc80; }

.day-section:nth-child(6) { z-index: 6; top: 200px; margin-top: -120px; background-color: #f8bbd0; }
.day-section:nth-child(6) .dslider-card { background-color: #f48fb1; }

.day-section:nth-child(7) { z-index: 7; top: 240px; margin-top: -120px; background-color: #ffcdd2; }
.day-section:nth-child(7) .dslider-card { background-color: #ef9a9a; }

.day-section {
    position: sticky;
}

.day-header {
    padding: 3rem clamp(0.75rem, 2vw, 2rem) 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
}

.day-header h2 {
    grid-column: 2;
    justify-self: center;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--highlight-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}

/* Override the slider to be a horizontal scroll area */
.day-slider-wrapper--week {
    width: 100%;
    margin: 0;
    padding: 0 0 4rem 0;
    position: relative; /* Container for absolute buttons */
}

.day-slider-wrapper--week .day-slider-opening {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
}

.day-slider-wrapper--week .day-slider-opening::before,
.day-slider-wrapper--week .day-slider-opening::after {
    display: none !important;
}

.day-slider-stage--week {
    height: auto !important;
    perspective: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 2rem 2rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.day-slider-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    width: max-content;
    transform: none !important;
    padding-bottom: 1rem;
}

/* Override GSAP inline styles on cards */
.day-slider-wrapper--week .dslider-card {
    width: clamp(280px, 40vw, 400px) !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.day-slider-wrapper--week .dslider-card:hover {
    transform: translateY(-5px) !important;
}

/* Make event cards look attached to paper */
.day-slider-wrapper--week .dslider-card .event-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.day-slider-wrapper--week .event-card__content {
    padding: 1.5rem;
}

/* Day slider buttons (prev/next) styled like featured carousel */
.day-slider-wrapper--week .day-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: #fff;
    background-image: url(../images/paper-texture.jpg);
    color: var(--highlight-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.day-slider-wrapper--week .day-slider-btn:hover {
    background-color: #fff;
    color: #156BB5;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.25);
}

.day-slider-wrapper--week .day-slider-prev {
    left: clamp(0.2rem, 1vw, 0.8rem);
    transform: translateY(-50%) rotate(-5deg);
}

.day-slider-wrapper--week .day-slider-next {
    right: clamp(0.2rem, 1vw, 0.8rem);
    transform: translateY(-50%) rotate(5deg);
}

.day-slider-wrapper--week .day-slider-prev:hover {
    transform: translateY(-50%) rotate(-5deg) scale(1.1);
}

.day-slider-wrapper--week .day-slider-next:hover {
    transform: translateY(-50%) rotate(5deg) scale(1.1);
}

/* Hide dots as we use native scroll */
.day-slider-dots {
    display: none !important;
}

@media (max-width: 768px) {
    body.ukeplan-page .featured-events-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        overflow-x: clip;
    }

    body.ukeplan-page .featured-swiper {
        overflow-x: clip;
    }

    body.ukeplan-page .featured-swiper .swiper-wrapper {
        width: 100% !important;
        max-width: 100%;
    }

    body.ukeplan-page #week-plan {
        padding-top: 1.5rem;
    }

    body.ukeplan-page .day-section {
        position: sticky;
    }

    body.ukeplan-page .day-section:nth-child(1) { top: var(--mobile-nav-offset, 88px); z-index: 1; margin-top: 0; }
    body.ukeplan-page .day-section:nth-child(2) { top: calc(var(--mobile-nav-offset, 88px) + 28px); z-index: 2; margin-top: -72px; }
    body.ukeplan-page .day-section:nth-child(3) { top: calc(var(--mobile-nav-offset, 88px) + 56px); z-index: 3; margin-top: -72px; }
    body.ukeplan-page .day-section:nth-child(4) { top: calc(var(--mobile-nav-offset, 88px) + 84px); z-index: 4; margin-top: -72px; }
    body.ukeplan-page .day-section:nth-child(5) { top: calc(var(--mobile-nav-offset, 88px) + 112px); z-index: 5; margin-top: -72px; }
    body.ukeplan-page .day-section:nth-child(6) { top: calc(var(--mobile-nav-offset, 88px) + 140px); z-index: 6; margin-top: -72px; }
    body.ukeplan-page .day-section:nth-child(7) { top: calc(var(--mobile-nav-offset, 88px) + 168px); z-index: 7; margin-top: -72px; }

    .day-header {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
        justify-items: center;
        text-align: center;
    }

    .day-header h2,
    .see-more-btn {
        grid-column: 1;
        justify-self: center;
        text-align: center;
    }

    .day-slider-wrapper--week .day-slider-btn {
        display: none !important; /* Hide buttons on mobile for native swipe */
    }
}

/* Ensure content is visible even if not "active" */
.day-slider-wrapper--week .dslider-card .event-card__content {
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

.day-slider-wrapper--week .dslider-card .event-card__image {
    height: clamp(160px, 20vw, 250px) !important;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

/* Custom scrollbar for horizontal scroll */
.day-slider-stage--week::-webkit-scrollbar {
    height: 6px;
}
.day-slider-stage--week::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.day-slider-stage--week::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .day-header {
        padding: 2.5rem 1.5rem 0.5rem;
    }
    .day-slider-stage--week {
        padding: 1rem 1.5rem 2rem;
    }
    body.ukeplan-page .day-section {
        min-height: 480px; /* Increased to ensure cards don't poke through on mobile */
    }
}

.day-slider-wrapper--week .dslider-card.is-active {
    box-shadow: 0 18px 38px rgba(0,0,0,0.25);
}

.day-slider-wrapper--week .dslider-card:not(.is-active) .event-card__image {
    filter: none;
}

.day-slider-wrapper--week .day-slider-btn {
    top: 50%;
    width: clamp(36px, 4vw, 46px);
    height: clamp(36px, 4vw, 46px);
    border: 2px solid rgba(255,255,255,0.75);
    background: #fff;
    color: var(--highlight-color);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.18);
}

.day-slider-wrapper--week .day-slider-prev {
    left: clamp(0.2rem, 0.8vw, 0.7rem);
}

.day-slider-wrapper--week .day-slider-next {
    right: clamp(0.2rem, 0.8vw, 0.7rem);
}

.day-slider-wrapper--week .day-slider-dots {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin-top: 0.8rem;
    z-index: 6;
}

.day-slider-wrapper--week .dslider-dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: rgba(26, 132, 219, 0.35);
    opacity: 1;
}

.day-slider-wrapper--week .dslider-dot.active {
    width: 34px;
    transform: none;
    background: var(--highlight-color);
}

@media (max-width: 768px) {
    .day-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;

        /* Don't force the whole width of the rip image into a narrow screen; 
           let it maintain a natural scale and just repeat/center it. */
        -webkit-mask-size: auto 80px, 100% calc(100% - 80px);
        mask-size: auto 80px, 100% calc(100% - 80px);
        -webkit-mask-position: var(--day-rip-offset-x, 50%) top, 0 80px;
        mask-position: var(--day-rip-offset-x, 50%) top, 0 80px;
    }

    .day-section::before {
        background-size: auto 80px;
        background-position: var(--day-rip-offset-x, 50%) top;
    }

    .day-slider-wrapper--week {
        padding: 0.3rem 0 1.5rem;
    }

    .day-slider-wrapper--week .day-slider-opening {
        margin: 0;
        padding: 2.2rem 0 2.1rem;
    }

    .day-slider-wrapper--week .day-slider-opening::before,
    .day-slider-wrapper--week .day-slider-opening::after {
        height: clamp(36px, 12vw, 58px);
    }

    .day-slider-stage--week {
        height: clamp(250px, 74vw, 360px);
    }

    .day-slider-wrapper--week .dslider-card {
        width: clamp(200px, 68vw, 300px);
    }

    .day-slider-wrapper--week .day-slider-prev {
        left: 0.15rem;
    }

    .day-slider-wrapper--week .day-slider-next {
        right: 0.15rem;
    }
}

/* --- Shared / Footer sponsor banner overrides --- */
.footer-sponsors-section {
    max-width: 1200px;
    margin: 0 auto 1.8rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-partner-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: #1a84db;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    overflow: hidden;
    z-index: 5;
}

.footer-partner-banner-track {
    display: flex;
    align-items: center;
    gap: clamp(2.1rem, 4vw, 3.8rem);
    padding: 1.75rem 1.6rem;
    min-width: max-content;
    animation: footer-partner-marquee var(--footer-partner-duration, 30s) linear infinite;
    will-change: transform;
}

@keyframes footer-partner-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-partner-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-partner-banner-item img {
    height: clamp(52px, 5.2vw, 76px);
    width: auto;
    filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
    .footer-partner-banner-track {
        animation: none;
    }
}

.footer-sponsors-title {
    display: none !important;
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(1.45rem, 3.1vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.footer-sponsors-title::before,
.footer-sponsors-title::after {
    display: none;
    content: '';
    display: inline-block;
    width: clamp(80px, 12vw, 170px);
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
}

.main-footer .footer-sponsors-section {
    margin-top: clamp(4.4rem, 7vw, 6.2rem);
}

.footer-sponsors-pyramid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
}

.footer-sponsors-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-sponsor-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    background: transparent;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-sponsor-logo:hover {
    transform: translateY(-2px);
    background: transparent;
}

.footer-sponsor-logo img {
    display: block;
    object-fit: contain;
    width: var(--logo-w, 82px);
    height: var(--logo-h, 34px);
    filter: none;
}

.footer-sponsors-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.45rem;
    padding: 0.82rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    background: var(--highlight-color);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Posey Textured', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    outline: 4px solid #fff;
    outline-offset: 4px;
    box-shadow: 8px 8px 0 rgba(17, 68, 108, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-sponsors-btn:hover {
    color: #fff;
    background: #176bb3;
    transform: translate(-1px, -1px);
    box-shadow: 10px 10px 0 rgba(17, 68, 108, 0.16);
}

.sponsor-page #sponsors-section {
    max-width: 1240px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.sponsor-layout {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-top: 2.5rem;
}

.sponsor-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    padding: 3rem 1.5rem 1rem;
}

.sponsor-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--highlight-color);
    line-height: 1.1;
}

.sponsor-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 200px;
    padding: 0.95rem 1.7rem;
    margin-top: 0;
    white-space: nowrap;
}

.sponsor-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(17, 68, 108, 0), rgba(17, 68, 108, 0.22) 20%, rgba(17, 68, 108, 0.22) 80%, rgba(17, 68, 108, 0));
}

.sponsor-tier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.6rem 3.6rem;
}

.sponsor-tier--featured,
.sponsor-tier--secondary {
    align-items: stretch;
}

.sponsor-card {
    width: min(100%, 470px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #111;
}

.sponsor-card--secondary {
    width: min(100%, 360px);
}

.sponsor-card__logo-link,
.sponsor-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.sponsor-card__logo-link {
    width: 100%;
    min-height: 170px;
    margin-bottom: 1.5rem;
}

.sponsor-card__logo-link:hover,
.sponsor-logo-tile:hover {
    transform: translateY(-2px);
}

.sponsor-card__logo-link__image {
    width: 100%;
    max-width: 340px;
    max-height: 150px;
    object-fit: contain;
    display: block;
}

.sponsor-card__content {
    width: 100%;
}

.sponsor-card .event-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.sponsor-card__bio,
.sponsor-card__short-bio {
    margin: 0;
    color: #111;
    font-size: 0.98rem;
    line-height: 1.75;
}

.sponsor-card__short-bio {
    font-size: 0.94rem;
    line-height: 1.65;
}

.sponsor-tier--logos {
    gap: 1.5rem 2rem;
}

.sponsor-logo-tile {
    flex: 0 1 180px;
    min-height: 82px;
    padding: 0.25rem 0.5rem;
}

.sponsor-logo-tile__image,
.sponsor-card__logo-fallback {
    width: 100%;
    max-width: 170px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.sponsor-card__logo-fallback {
    color: var(--highlight-color);
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {
    .sponsor-page #sponsors-section {
        padding: 0 1rem;
    }

    .sponsor-layout {
        gap: 1.8rem;
    }

    .sponsor-cta {
        padding: 2.2rem 1rem 0.5rem;
        gap: 0.9rem;
    }

    .sponsor-cta h2 {
        font-size: clamp(1.25rem, 7vw, 2rem);
    }

    .sponsor-cta__button {
        min-width: 168px;
        padding: 0.8rem 1.25rem;
        font-size: 1.05rem;
    }

    .sponsor-tier {
        gap: 2rem;
    }

    .sponsor-card,
    .sponsor-card--secondary {
        width: 100%;
    }

    .sponsor-card__logo-link {
        min-height: 130px;
        margin-bottom: 1rem;
    }

    .sponsor-card__logo-link__image {
        max-width: 280px;
        max-height: 120px;
    }

    .sponsor-card .event-card__title {
        font-size: 1.05rem;
    }

    .sponsor-card__bio,
    .sponsor-card__short-bio {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .sponsor-tier--logos {
        gap: 1rem 1.25rem;
    }

    .sponsor-logo-tile {
        flex-basis: 140px;
        min-height: 68px;
    }

    .sponsor-logo-tile__image,
    .sponsor-card__logo-fallback {
        height: 58px;
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .footer-partner-banner {
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
    }

    .footer-partner-banner-track {
        gap: 1.2rem;
        padding: 1.25rem 0.9rem;
    }

    .footer-partner-banner-item {
        font-size: 1.35rem;
    }

    .footer-partner-banner-item img {
        height: 44px;
    }

    .main-footer .footer-sponsors-section {
        margin-top: 4.2rem;
    }

    .footer-sponsors-section {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .footer-sponsors-title {
        gap: 0.55rem;
        letter-spacing: 0.06em;
    }

    .footer-sponsors-row {
        gap: 0.35rem 0.45rem;
    }

    .footer-sponsors-row[data-tier="1"] {
        flex-wrap: nowrap;
    }

    .footer-sponsors-row[data-tier="2"] {
        flex-wrap: nowrap;
    }

    .footer-sponsors-row[data-tier="3"] {
        flex-wrap: nowrap;
    }

    .footer-sponsor-logo {
        padding: 0.18rem 0.25rem;
    }

    .footer-sponsor-logo[data-tier="1"] img {
        width: 134px;
        height: 58px;
    }

    .footer-sponsor-logo[data-tier="2"] img {
        width: 84px;
        height: 38px;
    }

    .footer-sponsor-logo[data-tier="3"] img {
        width: 62px;
        height: 28px;
    }

    .footer-bottom {
        gap: 0.65rem;
        padding-top: 1.6rem;
    }

    .footer-language-section {
        font-size: 0.82rem;
    }

    .footer-bottom p {
        font-size: 0.76rem;
    }

    .footer-sponsors-btn {
        margin-top: 0.3rem;
        padding: 0.62rem 0.9rem;
        font-size: 0.74rem;
        letter-spacing: 0.035em;
        outline-width: 3px;
        outline-offset: 3px;
        box-shadow: 5px 5px 0 rgba(17, 68, 108, 0.18);
        white-space: nowrap;
    }
}

/* --- Newsletter Popup --- */
#newsletter-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.newsletter-popup-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: #fff;
    background-image: url('../images/paper-texture.jpg');
    background-size: 400px;
    padding: clamp(2rem, 6vw, 3.5rem) 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    transform: rotate(-1.5deg) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

#newsletter-popup-overlay.active .newsletter-popup-card {
    transform: rotate(-1.5deg) translateY(0);
}

/* Tape effect */
.newsletter-popup-card::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 120px;
    height: 45px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 10;
}

.newsletter-popup-content h2 {
    font-family: 'Posey Textured', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--highlight-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.newsletter-popup-content p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-popup-card input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.newsletter-popup-card input[type="email"]:focus {
    outline: none;
    border-color: var(--highlight-color);
}

.sticker-button {
    background-color: var(--highlight-color);
    color: white;
    border: 3px solid #fff;
    padding: 1rem 2rem;
    font-family: 'Posey Textured', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sticker-button:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
    background-color: #156BB5;
}

.sticker-button:active {
    transform: scale(0.98);
}

/* Success State */
#newsletter-success-state {
    padding: 2rem 0;
}

#newsletter-success-state h3 {
    font-family: 'Posey Textured', sans-serif;
    font-size: 2.5rem;
    color: #28a745;
}

/* Close Button */
#newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 20;
    font-family: cursive; /* Scribble look */
}

#newsletter-popup-close:hover {
    color: #333;
    transform: scale(1.2) rotate(90deg);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .newsletter-popup-card {
        padding: 2.5rem 1.5rem 2rem 1.5rem;
    }
    
    .newsletter-popup-card::before {
        width: 80px;
    }
}

