:root {
    /* Colors */
    --primary-color: #00a8e8;
    /* Light Blue (Brand) */
    --secondary-color: #da902f;
    /* Orange (Accent) */
    --accent-color: #da902f;
    /* Orange (Accent) */
    --background-dark: #162130;
    /* Dark Blue (Main BG) */
    --background-light: #ffffff;
    /* White (Content BG) */
    --background-card: #1a262f;
    /* Slightly lighter for cards */
    --text-color: #ffffff;
    /* White text for dark areas */
    --text-color-dark: #1a1a1a;
    /* Dark text for light areas */
    --text-muted: #b0b3b8;

    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    /* Dark text for content */
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--background-light);
    /* White background */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    /* Light weight as requested */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    /* Uppercase as requested */
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #da902f;
    /* Orange hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: #00a8e8;
    /* Cyan default */
    color: white;
}

.btn-accent:hover {
    background-color: #da902f;
    /* Orange hover */
    transform: translateY(-2px);
}

.section {
    padding: var(--spacing-lg) 0;
}

@media (min-width: 769px) {
    .section {
        padding: 80px 0;
    }
}

.section-dark {
    background-color: var(--background-dark);
    color: var(--text-color);
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Increased z-index to stay above everything */
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    /* Medium */
    color: #162130;
    /* Dark Blue as requested */
    text-transform: uppercase;
    /* Uppercase */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    color: #162130;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00a8e8;
}

.nav-links a.active {
    color: #da902f;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #162130;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    /* Changed from height to min-height for better responsiveness */
    /* min-height: 600px; Removed fixed min-height to allow flexibility */
    background-color: var(--background-dark);
    /* Fallback */
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    padding: 40px 0 !important;
    /* Added padding to prevent content touching edges on small screens */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 27, 33, 0.7);
    /* Dark blue overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    /* Medium */
}

.hero .subheading {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    color: var(--secondary-color);
    /* Orange accent */
}

.hero .body-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* AI Assistant Block in Hero */
.ai-hero-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 800px;
    /* Increased from 600px to allow text on one line */
}

.ai-mic-btn-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #da902f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    flex-shrink: 0;
}

.ai-mic-btn-large:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--background-dark);
    /* Keep footer dark */
    color: var(--text-muted);
    padding: var(--spacing-lg) 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

footer h3,
footer h4 {
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: 60px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-nav {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 0.5rem 2rem;
}

.footer-nav li {
    margin-bottom: 0;
}

.footer-nav a,
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-nav a:hover,
.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Floating AI Button */
.ai-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #da902f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s;
    border: none;
}

.ai-floating-btn:hover {
    transform: scale(1.1);
}

/* Pulse Animation for Voice Active State */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 45, 72, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 45, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 45, 72, 0);
    }
}

.voice-active {
    animation: pulse-red 2s infinite;
    background-color: #fa2d48 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        gap: 0 !important;
        /* Remove vertical gap */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        /* Optional separator */
        margin-bottom: 20px;
        /* Increased margin as requested */
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 22px;
        display: block;
        padding: 0;
        /* No vertical padding as requested */
        width: 100%;
        line-height: 1.5;
        /* Ensure reasonable height for text */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .ai-hero-block {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Events Ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #162130;
    /* Light Blue */
    color: white;
    padding: 10px 0;
    white-space: nowrap;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.ticker {
    display: inline-block;
    /* Changed from flex to inline-block for better scrolling behavior */
    width: max-content;
    white-space: nowrap;
    /* Animate from 0 to -50% for seamless loop */
    animation: ticker 60s linear infinite;
    padding-left: 100%;
    /* Start off-screen */
}

.ticker-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    /* Ensure items don't shrink */
    flex-shrink: 0;
}

.ticker-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.ticker.no-anim {
    animation: none;
    transform: none;
    width: 100%;
    text-align: center;
    padding-left: 0;
    display: block;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
}

.ticker-item strong {
    font-weight: 600;
    color: #ffffff;
    /* White Bold */
}

.ticker-item span {
    color: #ffffff;
    opacity: 1;
}

.ticker-separator {
    margin: 0 10px;
    color: #ffffff;
}

@keyframes ticker {
    0% {
        transform: translate3d(100vw, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* --- Agenda Event Cards (List View) --- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    display: flex;
    background: var(--background-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
}

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

.event-card-image {
    width: 300px;
    background-image: url('../images/album-cover.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    min-height: 200px;
}

.event-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.event-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--secondary-color);
    /* Orange */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.event-teaser {
    color: var(--text-muted);
    margin-bottom: auto;
    /* Pushes footer to bottom */
}

.event-footer {
    margin-top: 1.5rem;
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive List View */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-card-image {
        width: 100%;
        height: 200px;
    }
}

/* --- Calendar View --- */
.calendar-wrapper {
    background: var(--background-card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-200);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    margin: 0;
    color: var(--text-color);
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--gray-200);
    border-left: 1px solid var(--gray-200);
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px;
    position: relative;
    background-color: var(--background-card);
}

.calendar-day.empty {
    background-color: rgba(255, 255, 255, 0.02);
}

.calendar-day.today {
    background-color: rgba(0, 168, 232, 0.1);
    /* Light blue tint */
}

.day-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-align: right;
}

.today .day-number {
    color: var(--primary-color);
    font-weight: bold;
}

/* Calendar Events */
.calendar-event-item {
    display: block;
    font-size: 0.75rem;
    padding: 3px 6px;
    margin-bottom: 4px;
    border-radius: 3px;
}

/* --- Upcoming Shows Section --- */
.upcoming-section {
    background-color: var(--background-light);
    padding: var(--spacing-lg) 0;
}

.upcoming-grid {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.upcoming-list-col {
    flex: 2;
    /* 60-65% width */
}

.upcoming-image-col {
    flex: 1;
    /* 35-40% width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.upcoming-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upcoming-event-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gray-200);
}

.upcoming-event-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
}

.upcoming-event-item:hover {
    background-color: var(--gray-100);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 4px;
}

.upcoming-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 100px;
    flex-shrink: 0;
}

.upcoming-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upcoming-city {
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 1.1rem;
}

.upcoming-venue {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upcoming-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.upcoming-link:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Responsive Stacking */
@media (max-width: 768px) {
    .upcoming-grid {
        flex-direction: column;
    }

    .upcoming-list-col,
    .upcoming-image-col {
        flex: auto;
        width: 100%;
    }

    .upcoming-image-col {
        order: 2;
        /* Image below list on mobile */
        margin-top: var(--spacing-md);
    }

    .upcoming-event-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .upcoming-date {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .upcoming-details {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .upcoming-link {
        margin-left: auto;
    }
}

.calendar-event-item {
    display: block;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}

.calendar-event-item:hover {
    opacity: 0.9;
    color: white;
}

.type-concert {
    background-color: var(--primary-color);
}

.type-festival {
    background-color: var(--secondary-color);
}

.type-workshop {
    background-color: #28a745;
}

/* Green */
.type-private {
    background-color: #6c757d;
}

/* Grey */
.type-club {
    background-color: #6f42c1;
}

/* Purple */

/* Tooltip */
#event-tooltip {
    position: fixed;
    background: var(--background-card);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    pointer-events: none;
    /* Let mouse events pass through so it doesn't flicker */
}

.tooltip-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-200);
}

.tooltip-content {
    padding: 12px;
}

.tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.tooltip-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-teaser {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Thumbnail Styles */
.video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.video-thumbnail:hover img {
    opacity: 1 !important;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background-color: #c4302b;
    /* YouTube Red */
    border-color: #c4302b;
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    /* Above tooltip and navbar */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-card);
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gray-200);
    animation: modalSlideIn 0.3s ease-out;
    color: var(--text-color);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary-color);
}

/* Position reCAPTCHA badge to bottom left */
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
    bottom: 4px !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/* --- Upcoming Shows Section --- */
.upcoming-section {
    background-color: var(--background-light);
    padding: var(--spacing-lg) 0;
}

.upcoming-grid {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.upcoming-list-col {
    width: 100%;
}

/* Removed .upcoming-image-col styles */


.upcoming-event-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gray-200);
}

.upcoming-event-item {
    display: flex;
    flex-direction: row;
    /* Changed to row for image */
    align-items: center;
    /* Center vertically */
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
}

.upcoming-event-item:hover {
    background-color: var(--gray-100);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 4px;
}

.upcoming-event-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    margin-right: 1.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    /* Prevent shrinking */
    max-width: 30%;
    /* Safety cap */
}

.upcoming-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upcoming-event-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    /* Orange */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: left;
    /* Explicitly left align */
}

.upcoming-event-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.upcoming-col-date {
    width: 120px;
    flex-shrink: 0;
}

.upcoming-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    /* Blue */
    text-transform: uppercase;
    line-height: 1.2;
}

.upcoming-time {
    font-size: 1rem;
    color: var(--text-color-dark);
    margin-top: 2px;
}

.upcoming-col-loc {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upcoming-city {
    font-size: 1.1rem;
    color: var(--text-color-dark);
    line-height: 1.2;
}

.upcoming-venue {
    font-size: 1rem;
    color: var(--text-color-dark);
    margin-top: 2px;
}

.upcoming-col-link {
    margin-left: auto;
}

.upcoming-link {
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.upcoming-link:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Responsive Stacking */
@media (max-width: 768px) {
    .upcoming-grid {
        flex-direction: column;
    }

    .upcoming-list-col,
    .upcoming-image-col {
        flex: auto;
        width: 100%;
    }

    .upcoming-image-col {
        order: 2;
        /* Image below list on mobile */
        margin-top: var(--spacing-md);
    }

    .upcoming-event-row {
        flex-wrap: wrap;
    }

    .upcoming-col-date {
        width: 100%;
        margin-bottom: 0.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .upcoming-col-loc {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .upcoming-col-link {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* --- No Image Layout --- */
/* Applied via JS when showImage: false */
.layout-no-image .col-image,
.layout-no-image img,
.layout-no-image [data-content-id$=".image"] {
    display: none !important;
}

.layout-no-image .col-text {
    flex: 0 0 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.layout-no-image h2,
.layout-no-image p,
.layout-no-image div {
    text-align: center !important;
}

/* Ensure flex container centers the single child */
.layout-no-image>div {
    justify-content: center !important;
}

/* --- Video Grid Layout --- */
.video-category-frame {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-item {
    width: 100%;
    border: 1px solid #333;
    background: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Show More Functionality --- */
.extra-video {
    display: none;
}

.video-category-frame.expanded .extra-video {
    display: block;
}

.show-more-link,
.show-more-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: center;
    color: #CDA961;
    font-size: 16px;
    margin-top: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.show-more-link:hover,
.show-more-btn:hover {
    text-decoration: underline;
    color: #b8934a;
}