﻿/**
 * SAAB FINAL - Modern Cinematic WordPress Theme
 * Complete consolidated CSS with innovative gallery systems
 * Author: Mohamed Serag
 * Date: 2025-01-27
 * Version: 2.0.0
 */

/* Google Fonts for Multilingual Support - Now loaded via wp_enqueue_style() in functions.php */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
  /* Colors */
  --brand-slate: #708090;
  --brand-slate-light: #9FB3C8;
  --brand-slate-dark: #5A6B7D;
  --brand-blue: #5A6B7D; /* Changed from blue to slate for consistency */
  --brand-midnight: #111827;
  --brand-cream: #FEFEFE;
  --brand-white: #FFFFFF;
  --brand-gray: #6B7280;
  --gray-light: #F9FAFB;
  --gray-medium: #9CA3AF;
  --gray-dark: #374151;
  
  /* Typography */
  --font-heading: 'Epilogue', sans-serif;
  --font-body: 'Epilogue', sans-serif;
  --font-arabic: 'Tajawal', 'Cairo', 'Amiri', 'Noto Sans Arabic', sans-serif;
  
  /* Font Sizes - Matching theme.json */
  --font-size-small: 0.875rem;      /* 14px */
  --font-size-normal: 1rem;         /* 16px */
  --font-size-medium: 1.125rem;     /* 18px */
  --font-size-large: 1.25rem;        /* 20px */
  --font-size-x-large: 1.5rem;      /* 24px */
  --font-size-xx-large: 2rem;       /* 32px */
  --font-size-xxx-large: 3rem;       /* 48px */
  
  /* Additional font sizes for non-standard use cases */
  --font-size-xs: 0.75rem;           /* 12px - for small text */
  --font-size-sm: 0.875rem;         /* 14px - alias for small */
  --font-size-base: 1rem;           /* 16px - alias for normal */
  --font-size-lg: 1.25rem;           /* 20px - alias for large */
  --font-size-xl: 1.5rem;            /* 24px - alias for x-large */
  --font-size-2xl: 2rem;             /* 32px - alias for xx-large */
  --font-size-3xl: 3rem;             /* 48px - alias for xxx-large */
  --font-size-4xl: 4rem;             /* 64px - for very large headings */
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Section Padding Standards */
  --section-padding-top: 3rem;
  --section-padding-bottom: 2rem;
  --section-padding-sides: 2rem;
  
  /* Breakpoints */
  --bp-mobile: 320px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-large: 1200px;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Enhanced Background Gradients */
  --gradient-news: linear-gradient(135deg, #FEFEFE 0%, #f8f9fa 50%, #F8F9FA 100%);
  --gradient-workshops: linear-gradient(135deg, #F8F9FA 0%, #F1F3F4 50%, #E5E7EB 100%);
  --gradient-map: linear-gradient(135deg, #374151 0%, #4B5563 50%, #5A6B7D 100%);
  
  /* Film Page Background Gradients */
  --gradient-film-hero-spacing: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.95) 100%);
  --gradient-film-meta: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #F8F9FA 100%);
  --gradient-film-stills: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #000000 100%);
  --gradient-film-quotes: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #F8F9FA 100%);
  --gradient-related-films: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
  
  /* Workshop Page Background Gradients */
  --gradient-workshop-hero: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #F8F9FA 100%);
  --gradient-workshop-content: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-workshop-people: linear-gradient(135deg, #F8F9FA 0%, #E5E7EB 100%);
  --gradient-workshop-gallery: linear-gradient(135deg, #374151 0%, #4B5563 100%);
  --gradient-workshop-related: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);

  /* Screening Page Background Gradients */
  --gradient-screening-hero: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #F8F9FA 100%);
  --gradient-screening-content: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #F8F9FA 100%);
  --gradient-screening-sidebar: linear-gradient(135deg, #F8F9FA 0%, #F1F3F4 50%, #E5E7EB 100%);
  --gradient-premiere-modern: linear-gradient(135deg, #374151 0%, #4B5563 50%, #5A6B7D 100%);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

body.home {
    background: var(--brand-midnight);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-normal);
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--brand-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-midnight);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl)); }
h2 { font-size: clamp(var(--font-size-xx-large), 4vw, var(--font-size-xxx-large)); }
h3 { font-size: clamp(var(--font-size-x-large), 3vw, var(--font-size-xx-large)); }
h4 { font-size: var(--font-size-x-large); }
h5 { font-size: var(--font-size-large); }
h6 { font-size: var(--font-size-normal); }

p {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--brand-slate);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-slate-light);
}

a:focus {
  outline: 2px solid var(--brand-slate-light);
  outline-offset: 2px;
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  contain: layout style; /* Prevent layout interference between hosting environments */
}

.section {
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
  width: 100%;
}

.section-white {
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--gray-light) 100%);
  color: var(--brand-midnight);
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

.section-cream {
  background: linear-gradient(135deg, var(--brand-cream) 0%, var(--gray-light) 100%);
  color: var(--brand-midnight);
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--brand-midnight) 0%, var(--brand-midnight) 100%);
  color: var(--brand-white);
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

.section-gradient {
  background: linear-gradient(135deg, var(--brand-slate-light) 0%, var(--brand-slate) 100%);
  color: var(--brand-white);
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

/* Removed redundant section margin - sections have adequate padding */

.section-midnight {
  background: linear-gradient(135deg, var(--brand-midnight) 0%, var(--brand-midnight) 100%);
  color: var(--brand-white);
}

.section-header {
  text-align: center;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-12 { grid-template-columns: repeat(12, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-heading);
  font-size: var(--font-size-normal);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  border-color: var(--brand-slate-light);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-midnight);
  color: var(--brand-slate-light);
  border-color: var(--brand-midnight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--brand-midnight);
  color: var(--brand-white);
  border-color: var(--brand-midnight);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  border-color: var(--brand-slate-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--brand-white);
  border-color: var(--brand-white);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  border-color: var(--brand-slate-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-medium);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-small);
}

/* Enhanced Card Styles */
.card {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-large);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.card-title a {
  color: var(--brand-midnight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--brand-slate-light);
}

.card-excerpt {
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.card-meta {
  color: var(--gray-medium);
  font-size: var(--font-size-small);
  margin-top: auto;
}

/* ========================================
   Enhanced Header Styles
   ======================================== */

/* Main header container */
/* Site Header - Completely Transparent like Hero Buttons */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
    overflow: visible; /* Allow dropdowns to show */
}

/* Ensure header container is relative for menu positioning */
.site-header .container {
    position: relative;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    gap: var(--spacing-lg);
}

.header-content .desktop-nav {
    order: 2;
    flex: 1;
    justify-content: center;
}

.header-content .mobile-menu-toggle {
    order: 3;
}

.header-burger {
    flex: 0 0 auto;
    order: 1;
    position: relative;
    z-index: 1500; /* Hamburger button - highest for clickability */
}

.header-logo {
    display: flex;
    align-items: center;
    z-index: 1600;
    flex-shrink: 0;
    order: 1;  /* Ensure it's first */
    margin-left: 0; /* Logo on the left */
}

.header-logo img,
.header-logo a {
    display: block;
    max-height: 85px; /* Increased - make logo bigger */
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-logo img {
    max-height: 70px; /* Bigger when scrolled */
}

.logo-placeholder-modern {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--brand-midnight);
    font-family: var(--font-heading); /* Use Epilogue consistently */
    font-weight: 600;
}

/* Header Language Switcher - Right Side */
.header-language-switcher-wrapper {
    margin-left: auto;
    order: 2;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1600;
}

.header-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header-language-switcher .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--brand-white);
    font-family: var(--font-heading); /* Use Epilogue consistently */
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.header-language-switcher .lang-toggle:focus {
    outline: none;
}

.header-language-switcher .lang-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.header-language-switcher .lang-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.header-language-switcher .lang-toggle .flag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

.header-language-switcher .lang-toggle .chevron {
    font-size: 0.75rem;
    line-height: 1;
    transition: transform var(--transition-normal);
}

.header-language-switcher.is-open .lang-toggle .chevron,
.header-language-switcher:focus-within .lang-toggle .chevron {
    transform: rotate(180deg);
}

.header-language-switcher .lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: 110px;
    display: none;
}

.header-language-switcher.is-open .lang-dropdown,
.header-language-switcher:focus-within .lang-dropdown {
    display: block;
}

.header-language-switcher .lang-dropdown__item + .lang-dropdown__item {
    border-top: none;
}

.header-language-switcher .lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.55rem;
    color: var(--brand-white);
    text-decoration: none;
    font-family: var(--font-heading); /* Use Epilogue consistently */
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background var(--transition-normal), transform var(--transition-normal);
}

.header-language-switcher .lang-dropdown a:hover,
.header-language-switcher .lang-dropdown a:focus {
    background: none;
    transform: translateX(3px);
}

.header-language-switcher .lang-dropdown .flag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

.site-header.scrolled .header-language-switcher .lang-toggle {
    color: var(--brand-white);
}

/* Screening Gallery Carousel Styles */
.screening-carousel-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.screening-swiper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    overflow: visible;
}

.screening-swiper .swiper-slide {
    width: auto;
    max-width: 420px;
    margin-right: 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screening-swiper .swiper-slide:hover {
    transform: scale(1.02);
}

.screening-swiper .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

/* Navigation Arrows - Enhanced */
.screening-swiper .swiper-button-next,
.screening-swiper .swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid white;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.screening-swiper .swiper-button-next {
    right: 10px;
}

.screening-swiper .swiper-button-prev {
    left: 10px;
}

.screening-swiper .swiper-button-next:after,
.screening-swiper .swiper-button-prev:after {
    font-size: var(--font-size-medium);
    font-weight: bold;
}

.screening-swiper .swiper-button-next:hover,
.screening-swiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Pagination */
.screening-pagination {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.screening-pagination .swiper-pagination-bullet {
    background: #6c757d;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.screening-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .screening-swiper {
        padding: 0 50px;
    }
    
    .screening-swiper .swiper-slide {
        max-width: 380px;
    }
    
    .screening-swiper .swiper-button-next,
    .screening-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .screening-swiper .swiper-button-next {
        right: 5px;
    }
    
    .screening-swiper .swiper-button-prev {
        left: 5px;
    }
}

@media (max-width: 480px) {
    .screening-swiper {
        padding: 0 40px;
    }
    
    .screening-swiper .swiper-slide {
        max-width: 300px;
        margin-right: 1rem;
    }
    
    .screening-swiper .swiper-button-next,
    .screening-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
}


/* Center film title in hero */
.film-hero-title {
    text-align: center !important;
}

.film-hero-content {
    text-align: center !important;
}

/* Move film details to left and improve card */
.film-details,
.film-sidebar {
    float: left;
    width: 100%;
}

.film-details-card,
.sidebar-section {
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.film-details h3,
.film-details h4 {
    font-size: var(--font-size-x-large);
    margin-bottom: var(--spacing-md);
    color: var(--brand-midnight);
}

/* View all work link - black color */
.view-all-work-link,
a[href*="films"] {
    color: #000000 !important;
    font-weight: 600;
}

/* Keep logo in exact same position when menu is open */
.navigation-active .header-logo {
    position: relative; /* Keep in normal flow */
    z-index: 1002; /* Header logo when menu active - consistent with normal state */
}

.navigation-active .header-logo img {
    filter: none; /* Ensure logo stays visible */
}

/* Ensure site header stays in exact position when menu opens */
.navigation-active .site-header {
    position: fixed; /* Maintain fixed positioning */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400; /* Site header when menu active */
    background: var(--brand-slate-dark); /* Solid background when menu open - matches menu background */
}
.navigation-active .header-flex {
    /* Prevent any layout shifts when menu opens */
    min-height: 80px;
    max-height: 80px; /* Prevent stretching */
    padding: 0.5rem 0; /* Reduce padding to prevent overflow */
    overflow: hidden; /* Prevent content from expanding beyond bounds */
}
/* Homepage Background Reset */
.homepage-news-only { 
    transition: none !important; 
}

/* Film Archive Hero */
.film-archive-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.film-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.film-archive-hero h1 {
    position: relative;
    z-index: 2;
    color: var(--brand-white);
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-family: var(--font-heading);
}
/* Film Archive Biography Section */
.film-archive-bio {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--brand-cream);
}

.bio-text {
    font-family: var(--font-body);
    font-size: var(--font-size-medium);
    line-height: 1.7;
    color: var(--brand-slate-dark);
}

.bio-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.bio-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bio-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .film-archive-bio {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .film-archive-hero {
        height: 50vh;
        min-height: 300px;
    }
}

/* Film Single Page Enhancements */
.film-hero-meta {
    margin-top: 1rem;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
}

.film-year {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--brand-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.film-genre {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
    transition: all 0.3s ease;
}

.film-genre a {
    color: var(--brand-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.film-genre:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.film-restored-label {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: var(--font-size-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.film-restoration-details {
    background: var(--brand-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.film-restoration-details h3 {
    color: var(--brand-midnight);
    font-family: var(--font-heading);
    font-size: var(--font-size-x-large);
    margin-bottom: var(--spacing-sm);
}

.film-details {
    background: var(--brand-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: var(--spacing-lg);
}

/* Single News Hero Background */
body.single-news .hero-background { 
    background: var(--brand-white) !important; 
    background-image: none !important; 
}

body.single-news .hero-overlay { 
    background: none !important; 
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: opacity 0.2s ease, transform 0.3s ease;
    display: block;
    z-index: 2;
}

.mobile-menu-toggle.menu-active::before,
.mobile-menu-toggle[aria-expanded="true"]::before,
body.navigation-active #menu-trigger::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle.menu-active::after,
.mobile-menu-toggle[aria-expanded="true"]::after,
body.navigation-active #menu-trigger::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-toggle .hamburger-icon {
    transition: opacity 0.2s ease;
}

.mobile-menu-toggle.menu-active .hamburger-icon,
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon,
body.navigation-active #menu-trigger .hamburger-icon {
    opacity: 0;
}
.mobile-menu-toggle.menu-active,
.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(17, 24, 39, 0.18);
}

.site-header.scrolled .mobile-menu-toggle {
    color: var(--brand-white);
    background: rgba(17, 24, 39, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

body.navigation-active #menu-trigger {
    color: #111;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(17, 24, 39, 0.25);
}


.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hamburger-icon {
    position: relative;
    width: 26px;
    height: 20px;
    pointer-events: none; /* Clicks pass through to button */
}

.hamburger-icon .bar {
    width: 100%;
    height: 3px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
    transform-origin: center;
    position: absolute;
    left: 0;
}
/* Overlap positions */
.hamburger-icon .bar.bar1 { top: 0; }
.hamburger-icon .bar.bar2 { top: 50%; transform: translateY(-50%); }
.hamburger-icon .bar.bar3 { bottom: 0; }

/* Smooth hamburger to X animation - using JavaScript-controlled classes for better browser support */
.site-header.menu-open .hamburger-icon .bar.bar1,
.mobile-menu-toggle.menu-active .hamburger-icon .bar.bar1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg) !important;
}
.site-header.menu-open .hamburger-icon .bar.bar2,
.mobile-menu-toggle.menu-active .hamburger-icon .bar.bar2 {
    opacity: 0 !important;
    transform: scale(0) !important;
}
.site-header.menu-open .hamburger-icon .bar.bar3,
.mobile-menu-toggle.menu-active .hamburger-icon .bar.bar3 {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg) !important;
}
/* Attribute-based fallback using ARIA (robust) */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .bar.bar1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg) !important;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .bar.bar2 {
    opacity: 0 !important;
    transform: scale(0) !important;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .bar.bar3 {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg) !important;
}

/* Redundant high-specificity state using body lock to avoid conflicts */
body.navigation-active #menu-trigger .hamburger-icon .bar.bar1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg) !important;
}
body.navigation-active #menu-trigger .hamburger-icon .bar.bar2 {
    opacity: 0 !important;
    transform: translateY(-50%) scale(0) !important;
}
body.navigation-active #menu-trigger .hamburger-icon .bar.bar3 {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg) !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.95);
    color: var(--brand-white);
    z-index: 2000;
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* Ensure logo doesn't interfere with hamburger icon */
.header-logo {
    margin-left: 0; /* Logo on the left */
    z-index: 1500; /* Lower than hamburger icon to ensure X icon is always clickable */
}

/* Hamburger Menu Toggle Button */
.hamburger-menu-toggle {
    position: fixed;
    top: 25px; /* Lower to align with menu */
    left: 20px;
    z-index: 2000; /* Increased z-index to ensure X icon is always on top and clickable */
    background: var(--gray-light); /* Solid background matching submenu color */
    border: 3px solid var(--brand-midnight); /* Bold midnight border */
    border-radius: 50%; /* Circle shape */
    padding: 7px; /* Increased from 6px for better usability */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* Increased from 35px for better usability */
    height: 38px; /* Increased from 35px for better usability */
}

.hamburger-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
    transform: scale(1.05);
}

.hamburger-menu-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Hamburger Icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
}

.hamburger-icon .bar {
    width: 100%;
    height: 2px;
    background: #000000; /* Changed from white to black */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X Animation - Fixed for better clickability */
.hamburger-menu-toggle[aria-expanded="true"] .bar1 {
    transform: rotate(45deg) translate(2px, 2px); /* Reduced from translate(5px, 5px) */
}

.hamburger-menu-toggle[aria-expanded="true"] .bar2 {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu-toggle[aria-expanded="true"] .bar3 {
    transform: rotate(-45deg) translate(2px, -2px); /* Reduced from translate(7px, -6px) */
}

/* Hamburger Menu Overlay - Centered horizontally in header */
.hamburger-menu-overlay {
    position: absolute; /* Positioned relative to header */
    top: 50%; /* Center vertically in header */
    left: 50%; /* Center horizontally in header */
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    right: auto;
    width: auto; /* Natural width based on content */
    max-width: calc(100vw - 80px); /* Prevent overflow with margins */
    background: transparent; /* Transparent background */
    backdrop-filter: none;
    z-index: 1510; /* Above header content, below logo */
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow: visible; /* Allow submenus to overflow */
    pointer-events: none; /* Prevent interaction when hidden */
}

/* Show menu on header hover */
.site-header:hover .hamburger-menu-overlay,
.header-content:hover ~ .hamburger-menu-overlay,
.hamburger-menu-overlay:hover,
.site-header:hover .hamburger-menu-overlay:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interaction when visible */
}

/* Keep menu visible when hovering over menu items or submenus */
.hamburger-menu-overlay:hover .hamburger-menu,
.hamburger-menu:hover,
.hamburger-menu .sub-menu:hover {
    /* Menu stays visible - handled by parent hover state */
}

.hamburger-menu-overlay.is-open,
.hamburger-menu-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/* Hamburger Menu Content - Inline with logo in header */
.hamburger-menu-content {
    position: relative; /* Changed from fixed to relative - within overlay */
    width: auto; /* Natural width */
    max-width: 100%;
    padding: 0.5rem;
    display: flex;
    justify-content: flex-start; /* Left-align menu items */
    align-items: center;
    overflow: visible;
    z-index: 1520;
    min-height: auto; /* Remove fixed height for inline positioning */
    background: rgba(255, 255, 255, 0.05); /* Transparent background */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border-radius: 8px; /* Rounded corners */
    gap: var(--spacing-sm);
    margin-top: 0; /* No margin - inline with header */
}

/* Hamburger Menu Navigation */
.hamburger-menu-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible; /* Ensure no scrollbars */
}

/* Hamburger Menu List */
.hamburger-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Always horizontal */
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    gap: var(--spacing-xs); /* Reduced from 1rem for tighter layout */
    overflow: visible;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Hamburger Menu Items */
.hamburger-menu > li {
    position: relative;
}

.hamburger-menu > li > a {
    display: inline-flex; /* Change to inline-flex for better arrow positioning */
    align-items: center;
    justify-content: space-between; /* Change from flex-start to space-between to put arrows next to text */
    padding: 0.2rem 0.3rem; /* Smaller padding - closer to text */
    color: var(--brand-midnight); /* Black text for good contrast with off-white background */
    text-decoration: none;
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-small); /* Reduced from 0.95rem for more space */
    font-weight: 600; /* Reduced font weight */
    text-transform: uppercase;
    letter-spacing: 0.02em; /* Better letter spacing */
    border-bottom: none; /* Remove the bottom border */
    transition: all 0.1s ease; /* Reduced from 0.3s to 0.1s for faster animation */
    white-space: nowrap;
    background: transparent; /* Semi-transparent background like hero buttons */
    border-radius: 28px; /* Match hero buttons - pill shape */
    margin: 0; /* Remove gaps since container provides seamless background */
}




/* Disable transitions during click to prevent weird animation */
.hamburger-menu > li > a:active {
    transition: none !important; /* Keep - critical to prevent animation issues */
}

/* Dropdown Arrows */
.dropdown-arrow {
    font-size: 0.5rem; /* Smaller arrow */
    color: var(--brand-midnight); /* Black arrows to match black text */
    font-weight: 900;
    transition: all 0.3s ease;
    margin-left: 0.2rem; /* Closer to text */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3); /* White shadow for contrast */
    display: inline; /* Inline to stay next to text */
    line-height: 1;
    vertical-align: middle; /* Better alignment with text */
    flex-shrink: 0; /* Prevent arrow from shrinking */
}

.hamburger-menu > li > a:hover .dropdown-arrow {
    color: var(--brand-midnight); /* Keep black arrows on hover */
    transform: rotate(180deg); /* Rotate arrow on hover */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5); /* Stronger white shadow */
}

/* Sub-menus */
.hamburger-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1); /* Transparent background with slight opacity */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light white border for contrast */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lighter shadow for off-white theme */
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 180px;
    padding: 0.8rem;
    z-index: 1001;
}

.hamburger-menu > li:hover > .sub-menu {
    display: flex;
}

/* Slow down submenu close with transition delay */
.hamburger-menu .sub-menu {
    transition: opacity 0.15s ease 0.2s, visibility 0.15s ease 0.2s;
}

.hamburger-menu > li:hover > .sub-menu,
.hamburger-menu .sub-menu li:hover > .sub-menu {
    transition-delay: 0s;
}

.hamburger-menu .sub-menu li {
    position: relative;
}

.hamburger-menu .sub-menu a {
    display: inline-flex; /* Change from flex to inline-flex to match main menu items */
    align-items: center;
    justify-content: space-between; /* Change from flex-start to space-between to put arrows next to text */
    padding: 0.45rem 0; /* Smaller increase from 0.4rem 0 for larger text */
    color: var(--brand-midnight); /* Black text for good contrast with gray-medium background */
    text-decoration: none;
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-normal); /* Standardized to 1rem for better readability */
    font-weight: 500; /* Reduced font weight */
    text-transform: none;
    letter-spacing: 0.01em;
    transition: all 0.15s ease; /* Smooth transition for hover */
}

.hamburger-menu .sub-menu a:hover {
    color: var(--brand-midnight); /* Keep black text on hover */
    padding-left: 1rem;
    background: rgba(0, 0, 0, 0.05); /* Light black overlay for hover */
}

/* Disable transitions during click to prevent weird animation */
.hamburger-menu .sub-menu a:active {
    transition: none !important; /* Keep - critical to prevent animation issues */
}

/* Nested Sub-menus */
.hamburger-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0; /* Align with top of parent item */
    left: 100%; /* Position to the right of parent item */
    background: rgba(255, 255, 255, 0.1); /* Transparent background with slight opacity */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px; /* Add rounded corners */
    padding: 0.8rem; /* Add padding */
    min-width: 180px; /* Increase from 160px for larger fonts */
    z-index: 1002; /* Higher z-index */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Add shadow */
    display: none; /* Hide by default */
}

.hamburger-menu .sub-menu .sub-menu a {
    display: inline-flex; /* Add inline-flex to match main menu items */
    align-items: center; /* Add center alignment */
    justify-content: space-between; /* Add space-between to put arrows next to text */
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-small); /* Smaller increase from 0.9rem to 0.95rem */
    font-weight: 400; /* Lighter weight */
    color: var(--brand-midnight); /* Black text for nested submenus */
    padding: 0.35rem 0; /* Smaller increase padding for larger text */
}

.hamburger-menu .sub-menu .sub-menu a:hover {
    color: var(--brand-midnight); /* Keep black text on hover */
    background: rgba(0, 0, 0, 0.05); /* Light black overlay for hover */
}

/* Show level 2 submenu on hover */
.hamburger-menu .sub-menu li:hover > .sub-menu {
    display: flex; /* Show on hover */
}

/* Arrow rotation for submenu items */
.hamburger-menu .sub-menu a:hover .dropdown-arrow {
    color: var(--brand-midnight); /* Black text for contrast with gray background */
    transform: rotate(180deg); /* Rotate arrow on hover */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5); /* White shadow for contrast */
}

/* Sub-sub-sub-menus (4th level) */
.hamburger-menu .sub-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0; /* Align with top of parent item */
    left: 100%; /* Position to the right of parent item */
    background: rgba(255, 255, 255, 0.1); /* Transparent background with slight opacity */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light white border for subtle definition */
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Lighter shadow for off-white theme */
    min-width: 160px; /* Increase from 140px for larger fonts */
    padding: 0.6rem; /* Increase from 0.5rem for larger fonts */
    display: none; /* Hide by default */
}

.hamburger-menu .sub-menu .sub-menu .sub-menu a {
    display: inline-flex; /* Add inline-flex to match main menu items */
    align-items: center; /* Add center alignment */
    justify-content: space-between; /* Add space-between to put arrows next to text */
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-small); /* Smaller increase from 0.85rem to 0.9rem */
    font-weight: 400;
    color: var(--brand-midnight); /* Black text for good contrast */
    padding: 0.3rem 0; /* Smaller increase padding for larger text */
}

/* Level 5 submenus */
.hamburger-menu .sub-menu .sub-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0; /* Align with top of parent item */
    left: 100%; /* Position to the right of parent item */
    background: rgba(255, 255, 255, 0.1); /* Transparent background with slight opacity */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light white border for subtle definition */
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Lighter shadow for off-white theme */
    min-width: 160px; /* Increase from 140px for larger fonts */
    padding: 0.6rem; /* Increase from 0.5rem for larger fonts */
    display: none; /* Hide by default */
}

.hamburger-menu .sub-menu .sub-menu .sub-menu .sub-menu a {
    display: inline-flex; /* Add inline-flex to match main menu items */
    align-items: center; /* Add center alignment */
    justify-content: space-between; /* Add space-between to put arrows next to text */
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-small); /* Smaller increase from 0.85rem to 0.9rem */
    font-weight: 400;
    color: var(--brand-midnight); /* Black text for good contrast */
    padding: 0.3rem 0; /* Smaller increase padding for larger text */
}

/* Show level 4 submenu on hover */
.hamburger-menu .sub-menu .sub-menu .sub-menu li:hover > .sub-menu {
    display: block; /* Show on hover */
}

/* Level 6 submenus */
.hamburger-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0; /* Align with top of parent item */
    left: 100%; /* Position to the right of parent item */
    background: rgba(255, 255, 255, 0.1); /* Transparent background with slight opacity */
    backdrop-filter: blur(10px); /* Subtle blur for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light white border for subtle definition */
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Lighter shadow for off-white theme */
    min-width: 160px; /* Increase from 140px for larger fonts */
    padding: 0.6rem; /* Increase from 0.5rem for larger fonts */
    display: none; /* Hide by default */
}

.hamburger-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu a {
    display: inline-flex; /* Add inline-flex to match main menu items */
    align-items: center; /* Add center alignment */
    justify-content: space-between; /* Add space-between to put arrows next to text */
    font-family: var(--font-heading); /* Use Epilogue consistently across all pages */
    font-size: var(--font-size-small); /* Smaller increase from 0.85rem to 0.9rem */
    font-weight: 400;
    color: var(--brand-midnight); /* Black text for good contrast */
    padding: 0.3rem 0; /* Smaller increase padding for larger text */
}

/* Show level 5 submenu on hover */
.hamburger-menu .sub-menu .sub-menu .sub-menu .sub-menu li:hover > .sub-menu {
    display: block; /* Show on hover */
}


/* Arrow rotation for level 3 submenu items */
.hamburger-menu .sub-menu .sub-menu a:hover .dropdown-arrow {
    color: var(--brand-midnight); /* Black text for contrast with gray background */
    transform: rotate(180deg); /* Rotate arrow on hover */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5); /* White shadow for contrast */
}
/* Responsive Design */
@media (max-width: 768px) {
    /* Hamburger toggle removed - menu appears on hover */
    
    .header-content {
        padding: 0 15px;
    }
    
    /* Language switcher responsive styles */
    .header-language-switcher-wrapper {
        margin-left: auto;
    }
    
    .header-language-switcher .lang-toggle {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .header-language-switcher .lang-toggle .flag {
        font-size: 0.9rem;
    }
    
    .header-language-switcher .lang-dropdown {
        min-width: 110px;
    }
    
    .header-language-switcher .lang-dropdown a {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    .hamburger-menu-overlay {
        top: 50%; /* Center vertically in header */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Center both */
        max-width: calc(100vw - 60px); /* Adjust for available space */
    }
    
    .hamburger-menu-content {
        /* Position relative to overlay now, not fixed */
        min-height: 45px;
        padding: 0.4rem;
    }
    
    .hamburger-menu {
        gap: var(--spacing-sm); /* Reduced gap for mobile horizontal layout */
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        justify-content: center;
    }
    
    .hamburger-menu > li > a {
        font-size: 1rem; /* Reduce from 1.1rem for tablet */
        padding: 0.3rem 0.6rem; /* Reduce padding for tablet */
    }
    
    .hamburger-menu .sub-menu a {
        font-size: var(--font-size-small); /* Reduce from 1rem for tablet */
    }
    
    .hamburger-menu .sub-menu .sub-menu a {
        font-size: var(--font-size-small); /* Reduce from 0.9rem for tablet */
    }
    
    .hamburger-menu .sub-menu .sub-menu .sub-menu a {
        font-size: 0.75rem; /* Reduce from 0.85rem for tablet */
    }
    
    .dropdown-arrow {
        font-size: 0.45rem; /* Smaller arrow on mobile */
        margin-left: 0.15rem; /* Closer to text */
    }
    
    .hamburger-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%); /* Center dropdowns on mobile */
        min-width: 160px;
    }
    
    .hamburger-menu .sub-menu a {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
}

@media (max-width: 480px) {
    .hamburger-menu-toggle {
        top: 10px;
        left: 10px;
        width: 30px;
        height: 30px;
        padding: 4px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    /* Language switcher mobile styles */
    .header-language-switcher {
        gap: 0.35rem;
    }
    
    .header-language-switcher .lang-toggle {
        font-size: 0.78rem;
        gap: 0.2rem;
    }
    
    .header-language-switcher .lang-toggle .flag {
        font-size: 0.85rem;
    }
    
    .header-language-switcher .lang-dropdown {
        min-width: 110px;
    }
    
    .header-language-switcher .lang-dropdown a {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }
    
    .hamburger-menu-overlay {
        top: 50%; /* Center vertically in header */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Center both */
        max-width: calc(100vw - 40px); /* Adjust for available space */
    }
    
    .hamburger-menu-content {
        /* Position relative to overlay now, not fixed */
        min-height: 40px;
        padding: 0.3rem;
    }
    
    .hamburger-menu {
        gap: 0.8rem; /* Even smaller gap for very small screens */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hamburger-menu > li > a {
        font-size: var(--font-size-small); /* Reduce from 1.1rem for mobile */
        padding: 0.25rem 0.5rem; /* Reduce padding for mobile */
    }
    
    .hamburger-menu .sub-menu a {
        font-size: var(--font-size-small); /* Reduce from 1rem for mobile */
    }
    
    .hamburger-menu .sub-menu .sub-menu a {
        font-size: 0.7rem; /* Reduce from 0.9rem for mobile */
    }
    
    .hamburger-menu .sub-menu .sub-menu .sub-menu a {
        font-size: 0.65rem; /* Reduce from 0.85rem for mobile */
    }
    
    .dropdown-arrow {
        font-size: 0.35rem; /* Smallest arrow on small mobile */
        margin-left: 0.1rem; /* Very close to text */
    }
    
    .hamburger-menu .sub-menu {
    position: absolute;
        top: 100%;
    left: 50%;
    transform: translateX(-50%);
        min-width: 140px; /* Smaller dropdowns on mobile */
    }
    
    .hamburger-menu .sub-menu a {
        font-size: 0.6rem;
        padding: 0.2rem 0;
    }
}

/* Accessibility - Removed conflicting display rules */

/* Focus Management */
.hamburger-menu a:focus {
    outline: 2px solid #000000; /* Changed from white to black outline */
    outline-offset: 2px;
}

/* Smooth Scrolling for Sub-menus */
.hamburger-menu-overlay {
    scroll-behavior: smooth;
}

/* Animation for Menu Items */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hamburger-menu > li {
    animation: slideInFromLeft 0.3s ease forwards;
}

.hamburger-menu > li:nth-child(1) { animation-delay: 0.1s; }
.hamburger-menu > li:nth-child(2) { animation-delay: 0.2s; }
.hamburger-menu > li:nth-child(3) { animation-delay: 0.3s; }
.hamburger-menu > li:nth-child(4) { animation-delay: 0.4s; }
.hamburger-menu > li:nth-child(5) { animation-delay: 0.5s; }
.hamburger-menu > li:nth-child(6) { animation-delay: 0.6s; }

/* Workshops Masonry Grid */
.workshops-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.workshops-masonry-grid .workshop-card {
    break-inside: avoid;
    margin-bottom: 0;
    height: fit-content;
}

/* Responsive masonry adjustments */
@media (min-width: 768px) {
    .workshops-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .workshops-masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced workshop card styling for masonry */
.workshops-masonry-grid .workshop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshops-masonry-grid .workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Partners Section - Text Only */
#partners-section .partners-text-only {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

#partners-section .partners-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xxx-large);
    font-weight: 700;
    color: var(--brand-midnight);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

#partners-section .partners-subtitle {
    font-family: var(--font-heading);
    font-size: var(--font-size-medium);
    font-weight: 400;
    color: var(--brand-midnight);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Aggregated Updates Grid */
.aggregated-updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.aggregated-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--brand-white);
}

.aggregated-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* News cards without images */
.aggregated-card.news-card .news-only-content {
    padding: var(--spacing-lg);
}

.aggregated-card.news-card {
    min-height: auto;
}

/* Cards with images (Workshops/Screenings) */
.aggregated-card:not(.news-card) .aggregated-card-image {
    height: 200px;
    overflow: hidden;
}

.aggregated-card:not(.news-card) .aggregated-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aggregated-card:hover .aggregated-card-image img {
    transform: scale(1.05);
}

/* Post type badges */
.post-type-badge {
    display: inline-block;
    padding: calc(var(--spacing-xs) * 0.5) calc(var(--spacing-sm) * 0.75);
    border-radius: 15px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-type-badge.news-badge {
    background: var(--gray-light);
    color: var(--brand-slate);
    font-weight: 600;
}

.post-type-badge.training_workshop-badge {
    background: var(--gray-light);
    color: var(--brand-slate-light);
    font-weight: 600;
}

.post-type-badge.screening-badge {
    background: var(--gray-light);
    color: var(--brand-slate-dark);
    font-weight: 600;
}

/* Additional meta styling */
.additional-meta {
    margin: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.additional-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-small);
    color: var(--brand-gray);
}

.additional-meta .meta-item i {
    width: 12px;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aggregated-updates-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .aggregated-card.news-card .news-only-content {
        padding: var(--spacing-md);
    }
}

/* Featured News Section */
.featured-news-section {
    padding: var(--spacing-lg) 0;
}

.featured-news-card {
    background: var(--brand-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.featured-news-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 300px;
}

/* Featured Image (1/3 width) */
.featured-news-image {
    position: relative;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    text-align: center;
}

.news-icon {
    font-size: var(--font-size-xxx-large);
    margin-bottom: var(--spacing-sm);
    color: var(--brand-slate-light);
}

/* Featured Content (2/3 width) */
.featured-news-content {
    padding: calc(var(--spacing-lg) * 1.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.featured-badge {
    background: var(--brand-slate-light);
    color: var(--brand-midnight);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--font-size-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    color: var(--brand-gray);
    font-size: var(--font-size-small);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.featured-news-title {
    font-size: var(--font-size-xx-large);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--brand-midnight);
}

.featured-news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: var(--brand-slate-light);
}

.featured-news-excerpt {
    font-size: var(--font-size-medium);
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.featured-news-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-sm) * 0.75);
    background: var(--brand-midnight);
    color: var(--brand-white);
    padding: calc(var(--spacing-sm) * 0.875) calc(var(--spacing-md) * 1.75);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: fit-content;
}

.featured-news-btn:hover {
    background: transparent;
    color: var(--brand-midnight);
    border-color: var(--brand-midnight);
    transform: translateX(4px);
}

/* News Grid Section */
.news-grid-section {
    padding: var(--spacing-xl) 0;
    background: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.news-grid-card {
    background: var(--brand-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px; /* Increased standard height for all cards */
}

.news-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Consistent height for all card types */
.news-grid-card.news-card,
.news-grid-card.training_workshop-card,
.news-grid-card.screening-card {
    min-height: 460px; /* Unified height to accommodate additional meta */
}

/* Grid Card Image */
.news-grid-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-grid-card:hover .news-grid-image img {
    transform: scale(1.04);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 100%);
}

/* Grid Card Content */
.news-grid-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Better distribution */
    min-height: 260px; /* Increased to match total card height */
}

.news-grid-content.no-image {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 440px; /* Full card height minus padding for no-image cards */
}

.news-grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.news-grid-meta .post-type-badge {
    font-size: var(--font-size-xs);
}

.news-grid-meta .post-date {
    color: var(--gray-medium);
    font-size: var(--font-size-small);
}

.news-grid-title {
    font-size: var(--font-size-medium);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-sm) * 0.75);
    flex-grow: 1;
}

.news-grid-title a {
    color: var(--brand-midnight);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-grid-title a:hover {
    color: var(--brand-slate-light);
}

.news-grid-excerpt {
    color: var(--brand-gray);
    line-height: 1.5;
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.news-grid-action {
    margin-top: auto;
}

.news-grid-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--brand-midnight);
    padding: var(--spacing-xs) 0;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--brand-slate-light);
}

.news-grid-btn:hover {
    color: var(--brand-slate-light);
    transform: translateX(2px);
}

/* News Grid Additional Meta (for workshops/screenings) */
.news-grid .additional-meta {
    margin: calc(var(--spacing-sm) * 0.75) 0 var(--spacing-sm) 0;
    display: flex;
    flex-direction: column; /* Stack vertically for better organization */
    gap: var(--spacing-xs); /* Smaller gap for tighter layout */
}

.news-grid .additional-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--brand-gray);
    font-size: var(--font-size-small);
    font-weight: 500;
    padding: calc(var(--spacing-xs) * 0.8) calc(var(--spacing-sm) * 0.75); /* Better padding for consistent spacing */
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03); /* Light background for all meta items */
}

.news-grid .additional-meta .meta-item i {
    color: var(--brand-slate-light);
    width: 16px;
    font-size: var(--font-size-normal);
    text-align: center;
}

/* Specific styling for workshop and screening cards */
.news-grid-card.training_workshop-card .additional-meta .meta-item {
    background: rgba(245, 124, 0, 0.08); /* Consistent with badge color */
    color: var(--brand-slate-light);
    border-left: 3px solid var(--brand-slate-light);
}

.news-grid-card.screening-card .additional-meta .meta-item {
    background: rgba(123, 31, 162, 0.08); /* Consistent with badge color */
    color: var(--brand-slate-dark);
    border-left: 3px solid var(--brand-slate-dark);
}

/* Featured/Grid Responsive Design */
@media (max-width: 900px) {
    .featured-news-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-news-content {
        padding: var(--spacing-lg);
    }
    
    .featured-news-title {
        font-size: var(--font-size-xx-large);
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger min-width */
        gap: var(--spacing-md);
    }
    
    .news-grid-card {
        min-height: 420px; /* Adjusted height for tablet */
    }
}

@media (max-width: 600px) {
    .featured-news-content {
        padding: var(--spacing-md);
    }
    
    .featured-news-title {
        font-size: 1.4rem;
    }
    
    .featured-news-excerpt {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem; /* Slightly larger gap for mobile */
    }
    
    .news-grid-card {
        min-height: 400px; /* Adjusted height for mobile */
    }
    
    .news-grid-content,
    .news-grid-content.no-image {
        padding: 1.25rem;
        min-height: auto; /* Let content determine height on mobile */
    }
}

/* Sticky Film Title */
.film-sticky-title {
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.film-sticky-title.visible {
    transform: translateY(0);
}

.film-sticky-title h1 {
    margin: 0;
    font-size: var(--font-size-x-large);
    font-weight: 700;
    color: var(--brand-midnight);
    text-align: center;
}
/* Related Films Section - Above Footer */
#related-films.section-enhanced {
    background: var(--gradient-related-films);
    padding: var(--spacing-2xl) 0 0 0;
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
}
/* Ensure no gap between Related Films and footer */
#related-films.section-enhanced + .site-footer,
#related-films + footer {
    margin-top: 0 !important;
}

#related-films .section-title-enhanced {
    text-align: center;
    font-size: var(--font-size-xx-large);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--brand-midnight);
}

/* View All Films Clickable Title */
.view-all-films-link {
    text-decoration: none;
    color: var(--brand-white);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.3s ease, transform 0.3s ease;
}

.view-all-films-link:hover {
    color: var(--brand-slate-light);
    text-decoration: none;
    transform: translateX(5px);
}

.arrow-right {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.view-all-films-link:hover .arrow-right {
    transform: translateX(5px);
}

.related-films-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 2rem;
}

/* Now the Related Films uses .films-carousel class so existing CSS will apply automatically */

/* Ensure no gap between Related Films and Footer */
#related-films + * {
    margin-top: 0 !important;
}

footer,
.site-footer {
    margin-top: 0 !important;
}

/* Film Quotes Section - Minimalist Typography */
.film-quotes-section {
    background: var(--brand-white);
    padding: 6rem 0 3rem 0;
    position: relative;
}

.quotes-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quotes-carousel {
    position: relative;
    overflow: hidden;
}

.quote-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.quote-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.film-quote {
    border: none;
    margin: 0;
    padding: 0;
}

.quote-text {
    font-size: clamp(var(--font-size-x-large), 4vw, calc(var(--font-size-xx-large) * 1.125));
    line-height: 1.4;
    font-style: italic;
    font-weight: 300;
    color: var(--brand-midnight);
    margin-bottom: calc(var(--spacing-lg) * 1.25);
    font-family: var(--font-body);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-xs) * 0.25);
    font-style: normal;
}

.quote-source {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--gray-dark);
    font-family: var(--font-heading, sans-serif);
}

.quote-publication {
    font-size: var(--font-size-small);
    color: var(--brand-gray);
    font-weight: 400;
    font-family: var(--font-heading, sans-serif);
}

/* Navigation */
.quote-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-x-large);
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.quote-nav:hover {
    background: var(--gray-light);
    border-color: var(--gray-medium);
    transform: translateY(-50%) scale(1.1);
}

.quote-prev {
    left: -60px;
}

.quote-next {
    right: -60px;
}

/* Dots */
.quotes-dots {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-sm) * 0.75);
    margin-top: var(--spacing-xl);
}

.quote-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-dot.active,
.quote-dot:hover {
    background: var(--gray-dark);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .film-quotes-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .quotes-carousel-container {
        padding: 0 var(--spacing-md);
    }
    
    .quote-nav {
        display: none;
    }
    
    .quote-text {
        font-size: var(--font-size-large);
        margin-bottom: var(--spacing-lg);
    }
    
    .quote-slide {
        padding: var(--spacing-sm) 0;
    }
}

@media (max-width: 480px) {
    .quotes-carousel-container {
        padding: 0 var(--spacing-sm);
    }
    
    .quote-text {
        font-size: var(--font-size-medium);
        line-height: 1.5;
    }
    
    .quote-source {
        font-size: 1rem;
    }
    
    .quote-publication {
        font-size: var(--font-size-small);
    }
}

/* Screenings Archive Layout */
.screenings-map-section {
    background: var(--gray-light);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--gray-medium);
}

.map-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-title {
    font-size: clamp(var(--font-size-x-large), 4vw, var(--font-size-xx-large));
    font-weight: 700;
    color: var(--brand-midnight);
    margin-bottom: var(--spacing-sm);
}

.map-subtitle {
    font-size: var(--font-size-medium);
    color: var(--brand-gray);
    line-height: 1.6;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--brand-white);
}

#screenings-leaflet-map {
    height: 500px;
    width: 100%;
    border: none;
    background: var(--gray-light);
}

.screenings-archive-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.screenings-archive-header h2 {
    font-size: var(--font-size-xx-large);
    font-weight: 700;
    color: var(--brand-midnight);
    margin-bottom: var(--spacing-sm);
}

.screenings-archive-header p {
    font-size: var(--font-size-medium);
    color: var(--brand-gray);
    line-height: 1.6;
}

.screening-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xs);
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: transparent;
    color: var(--brand-gray);
    font-size: var(--font-size-normal);
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: var(--brand-white);
    color: var(--brand-midnight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header-distinct {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid #f0f0f0;
}

.section-distinct-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-midnight);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.section-distinct-subtitle {
    font-size: var(--font-size-medium);
    color: var(--brand-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.screening-section {
    display: none;
}

.screening-section.active {
    display: block;
}

.screenings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.year-group {
    margin-bottom: var(--spacing-2xl);
}

.year-heading {
    font-size: var(--font-size-x-large);
    font-weight: 700;
    color: var(--brand-midnight);
    margin-bottom: var(--spacing-lg);
    padding: calc(var(--spacing-sm) * 0.75) var(--spacing-md);
    background: var(--brand-slate-light);
    display: inline-block;
    border-radius: var(--border-radius);
}

.no-content-message {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--gray-medium);
}

.no-content-message i {
    font-size: var(--font-size-xxx-large);
    color: var(--gray-medium);
    margin-bottom: var(--spacing-sm);
}

.no-content-message h4 {
    font-size: var(--font-size-medium);
    font-weight: 700;
    color: var(--brand-gray);
    margin-bottom: var(--spacing-xs);
}

.no-content-message p {
    color: var(--gray-medium);
    font-size: var(--font-size-normal);
}

@media (max-width: 768px) {
    .map-title {
        font-size: var(--font-size-xxx-large);
    }
    
    #screenings-leaflet-map {
        height: 400px;
    }
    
    .screening-tabs {
        flex-direction: column;
        max-width: 300px;
    }
    
    .screenings-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-distinct-title {
        font-size: var(--font-size-x-large);
    }
}


/* Related Workshops Section */
.related-workshops-section {
    background: var(--gray-light);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-lg);
}

.related-workshops-section .section-title {
    text-align: center;
    font-size: var(--font-size-xx-large);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--brand-midnight);
}

.related-workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.related-workshops-actions {
    text-align: center;
}

/* Workshop Title Section */
.workshop-title-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.workshop-meta-badge {
    margin-bottom: var(--spacing-sm);
}

.workshop-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(159, 179, 200, 0.15);
    color: var(--brand-slate);
    border-radius: 20px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(159, 179, 200, 0.2);
    box-shadow: 0 4px 12px rgba(90, 107, 125, 0.08);
}

.workshop-title-centered {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-size-xxx-large);
    font-weight: 700;
    color: var(--brand-midnight);
    margin: var(--spacing-sm) 0;
    line-height: 1.2;
}

.workshop-basic-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: 1rem;
}

.workshop-basic-meta .meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--brand-gray);
    font-size: 1rem;
}

.workshop-basic-meta .meta-item i {
    color: var(--brand-slate-dark);
}

@media (max-width: 768px) {
    .workshop-title-centered {
        font-size: var(--font-size-xx-large);
    }
    
    .workshop-basic-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Film Synopsis Left Alignment */
.film-synopsis {
    text-align: left;
}

.film-synopsis h3 {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.film-synopsis-content {
    text-align: left;
    font-size: var(--font-size-large);    /* larger type */
    line-height: 1.8;      /* more breathing room */
    color: var(--gray-dark);
}

/* Film Stills Gallery */
.film-stills-section {
    background: var(--brand-midnight);
    padding: var(--spacing-2xl) 0;
    color: var(--brand-white);
    position: relative;
    overflow: hidden;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.02) 30px,
            rgba(255, 255, 255, 0.02) 32px
        );
}

.film-strip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.film-stills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.film-still {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 3px solid #2a2a2a;
    box-shadow: 
        inset 0 0 0 1px #333,
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.film-still::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    height: 20px;
    background: #2a2a2a;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            #1a1a1a 8px,
            #1a1a1a 12px,
            transparent 12px,
            transparent 20px
        );
    z-index: 2;
}

.film-still::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -3px;
    right: -3px;
    height: 20px;
    background: #2a2a2a;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            #1a1a1a 8px,
            #1a1a1a 12px,
            transparent 12px,
            transparent 20px
        );
    z-index: 2;
}

.film-still:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.film-still:hover::before,
.film-still:hover::after {
    background-color: rgba(255, 255, 255, 0.05);
}

.film-frame {
    position: relative;
    width: 100%;
    background: #222;
}

.film-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 1;
}

.film-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 3px 3px, 2px 2px, 4px 4px;
    pointer-events: none;
    z-index: 2;
    border-radius: 8px 8px 0 0;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.film-caption {
    padding: 1rem;
    background: #1a1a1a;
    border-top: 2px solid #333;
}

.film-frame-number {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-small);
    color: var(--brand-midnight);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
    position: relative;
}

.film-frame-number::before {
    content: '•';
    margin-right: var(--spacing-xs);
    color: var(--brand-gray);
}

.film-frame-number::after {
    content: '•';
    margin-left: var(--spacing-xs);
    color: var(--brand-gray);
}

.film-caption-text {
    font-size: var(--font-size-small);
    color: var(--gray-medium);
    line-height: 1.4;
}

/* Film Sidebar Adjustments */
.film-sidebar {
    padding-left: 3rem;
}

.film-sidebar .sidebar-section {
    margin-left: auto;
}

.film-sidebar .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* top-align names and labels */
    padding: 0.4rem 0;
    margin-bottom: 0;
    white-space: normal;     /* allow wrapping */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.film-sidebar .meta-item:last-child {
    border-bottom: none;
}

.film-sidebar .meta-item strong {
    flex-shrink: 0;
    margin-right: 1rem;
    font-size: var(--font-size-small);
    font-weight: 600;
}

.film-sidebar .meta-item span {
    font-size: var(--font-size-small);
	flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

/* Film Gallery Responsive Design */
@media (max-width: 768px) {
    .film-stills-section {
        padding: var(--spacing-xl) 0;
    }
    
    .film-sidebar {
        padding-left: 0;
    }
    
    .film-sidebar .sidebar-section {
        margin-left: 0;
    }
    
    .film-strip-container {
        padding: 0 1rem;
    }
    
    .film-stills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .film-caption {
        padding: 0.75rem;
    }
}
@media (max-width: 480px) {
    .film-stills-section {
        padding: var(--spacing-lg) 0;
    }
    
    .film-stills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .film-still {
        max-width: 100%;
    }
    
    /* Related Films Responsive */
    .related-films-wrapper {
        padding: 0 1rem;
        gap: var(--spacing-sm);
    }
}
@media (max-width: 768px) {
    .related-films-wrapper {
        gap: var(--spacing-md);
    }
}
/* Horizontal Credits Card */
.film-credits-horizontal {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
}

.film-credits-horizontal .section-title {
    font-size: var(--font-size-x-large);
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--brand-midnight);
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm) var(--spacing-lg);
}

.credits-grid .credit-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.credits-grid .credit-item:last-child {
    border-bottom: none;
}

.credits-grid .credit-item strong {
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.credits-grid .credit-item span {
    text-align: right;
    flex: 1;
}

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

/* Film Carousel Container - Simple style for related films */
.films-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 3rem;
}

.films-carousel-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Exclude films-carousel-container from general films-carousel film strip borders */
.films-carousel-container .films-carousel::before,
.films-carousel-container .films-carousel::after {
    display: none !important;
}

/* Ensure films-carousel-container .films-carousel doesn't get general styles */
.films-carousel-container .films-carousel {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    position: relative;
}

/* Swiper wrapper - match archive behavior */
.films-carousel-container .films-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Cards in Swiper slides - ensure proper sizing */
.films-carousel-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.films-carousel-container .swiper-slide .film-card.film-still-style {
    width: 100%;
    height: 100%;
    min-height: 350px;
    margin: 0;
}

.films-carousel-container .film-card.awards-style-card {
    width: 100%;
    height: 280px;
    max-width: 400px;
    margin: 0 auto;
}

.films-carousel .film-still-style {
    /* Match exact film-still styling */
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 3px solid #2a2a2a;
    box-shadow: 
        inset 0 0 0 1px #333,
        0 4px 20px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.films-carousel .film-still-style::before,
.films-carousel .film-still-style::after {
    /* Perforation borders - exact match to film-still */
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    height: 20px;
    background: #2a2a2a;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            #1a1a1a 8px,
            #1a1a1a 12px,
            transparent 12px,
            transparent 20px
        );
    z-index: 2;
    pointer-events: none;
}

.films-carousel .film-still-style::before {
    top: -3px;
}

.films-carousel .film-still-style::after {
    bottom: -3px;
}

.films-carousel .film-still-style:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.films-carousel .film-still-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.films-carousel .film-still {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image - match film stills frame sizing */
.films-carousel .film-frame {
    position: relative;
    width: 100%;
    background: #222;
    overflow: hidden;
    min-height: 200px;
}

.films-carousel .film-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ensure carousel cards match film still grid item size */
.films-carousel .swiper-slide {
    /* width: auto; */ /* Removed - let Swiper calculate width */
    height: auto;
}

.films-carousel .film-still-style {
    width: 100%;
    max-width: 100%;
}

.films-carousel .film-poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #ccc;
    text-align: center;
    padding: 2rem;
}

/* Caption styling - simple title only */
.films-carousel .film-caption {
    padding: 1rem;
    background: #1a1a1a;
    border-top: 2px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.films-carousel .film-caption-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    text-align: center;
}

/* Related films carousel navigation */
.films-carousel-container .swiper-button-next,
.films-carousel-container .swiper-button-prev {
    color: var(--brand-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.films-carousel-container .swiper-button-next {
    right: 10px !important;
}

.films-carousel-container .swiper-button-prev {
    left: 10px !important;
}

.films-carousel-container .swiper-button-next:after,
.films-carousel-container .swiper-button-prev:after {
    font-size: var(--font-size-medium);
}

.films-carousel-container .swiper-button-next:hover,
.films-carousel-container .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.films-carousel-container .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    z-index: 20;
}

.films-carousel-container .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
}

.films-carousel-container .swiper-pagination-bullet-active {
    background: var(--brand-white);
}

/* Ensure archive navigation buttons are visible */
.archive-film .films-carousel-container .swiper-button-next,
.archive-film .films-carousel-container .swiper-button-prev {
    display: flex !important;
    z-index: 20;
}

/* Awards card image and content styling for related films */
.films-carousel .awards-card-image {
    width: 100% !important;
    height: 100% !important;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative;
    min-width: 0;
    min-height: 0;
}

.films-carousel .film-poster-img,
.films-carousel .awards-card-image img,
.films-carousel img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

.films-carousel .awards-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 2.5rem 1.5rem 1.2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.films-carousel .awards-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.films-carousel .awards-card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.films-carousel .awards-card-title a:hover {
    color: var(--brand-slate-light);
}

.films-carousel .film-meta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    margin-top: 0.4rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .films-carousel-container {
        padding: 2rem 1.5rem;
    }
    
    .films-carousel-container .film-card.awards-style-card {
        max-width: 350px;
        height: 245px;
    }
    
    .films-carousel .awards-card-title {
        font-size: 1rem;
    }
    
    .films-carousel-container .swiper-button-next,
    .films-carousel-container .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .films-carousel-container {
        padding: 1.5rem 1rem;
    }
    
    .films-carousel-container .film-card.awards-style-card {
        max-width: 300px;
        height: 210px;
    }
    
    .films-carousel .awards-card-content {
        padding: 1.8rem 0.8rem 0.8rem 0.8rem;
    }
    
    .films-carousel .awards-card-title {
        font-size: 0.9rem;
    }
    
    .films-carousel-container .swiper-button-next,
    .films-carousel-container .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .films-carousel-container .swiper-button-next:after,
    .films-carousel-container .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* News Archive Left-Aligned Header */
.archive-header-left {
    max-width: 800px;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.archive-title-left {
    font-family: var(--font-heading);
    font-size: var(--font-size-xxx-large);
    font-weight: 800;
    color: var(--brand-midnight);
    margin-bottom: var(--spacing-sm);
    text-align: left;
    line-height: 1.1;
}

.archive-description-left {
    font-family: var(--font-heading);
    font-size: var(--font-size-medium);
    font-weight: 400;
    color: var(--gray-dark);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
}

/* Contact Page Spacing Fix */
.contact-page .contact-preference-section {
    padding-top: var(--spacing-lg);
    margin-top: calc(var(--spacing-lg) * -1);
}

.contact-hero {
    margin-bottom: 0;
}

/* ========================================
   Enhanced Hero Section
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh + 80px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px; /* Compensate for fixed header */
    padding-top: 80px; /* Add padding to prevent content overlap */
    background: transparent;
    transition: background 0.8s ease-in-out;
}

/* Explicit transparency for homepage hero to prevent conflicts */
.hero-section .hero-background {
    background-color: transparent !important;
}

.hero-section .hero-overlay {
    background: transparent !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Show poster immediately - no loading delay */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Hero video element specific styles */
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none; /* Prevents any interaction with the video */
}

/* Hide video controls */
.hero-video video::-webkit-media-controls {
    display: none !important;
}

.hero-video video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-video.loaded,
.hero-image.loaded {
    opacity: 1;
}

.hero-video-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-video-fallback.loaded {
    opacity: 1;
}

/* Hero Video Loading States */
.hero-background.poster-ready {
    /* Poster is visible, no loading state needed */
}



/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: block;
        /* Mobile-optimized video settings */
        max-height: 100vh;
        object-position: center top;
    }
    
    .hero-video-fallback,
    .hero-image {
        display: block !important;
        opacity: 1;
    }
}

/* Mobile video optimization - allow video but optimize performance */
@media (max-width: 768px) {
    .hero-video {
        /* Allow video on mobile but optimize */
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.rotating-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.rotating-text-prefix {
    display: inline-block;
    margin-right: var(--spacing-xs);
}

.rotating-text-words {
    display: inline-block;
    position: relative;
}

.rotating-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(var(--font-size-large), 3vw, calc(var(--font-size-large) * 1.4));
    color: var(--brand-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
    opacity: 0.9;
}

.hero-cta {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    border-radius: 28px;
    font-size: var(--font-size-medium);
    letter-spacing: 0.08em;
    padding: 0.9rem 2.4rem;
    text-transform: uppercase;
    transition: all var(--transition-normal);
}

.hero-cta .btn-primary {
    background: transparent;
    color: var(--brand-white);
    border: 2px solid var(--brand-white);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: calc(var(--spacing-sm) * 0.6) var(--spacing-md) !important; /* Smaller buttons */
    font-size: var(--font-size-small) !important;
}

.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--brand-white);
    border-color: var(--brand-white);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-outline {
    background: transparent;
    color: var(--brand-white);
    border: 2px solid var(--brand-white);
    padding: calc(var(--spacing-sm) * 0.6) var(--spacing-md) !important; /* Smaller buttons */
    font-size: var(--font-size-small) !important; /* Reduced font */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-cta .btn-outline:hover,
.hero-cta .btn-outline:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--brand-white);
    border-color: var(--brand-white);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-sm) * 0.75);
}

.btn-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.hero-cta .btn-with-icon .btn-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .btn-with-icon:hover .btn-icon,
.hero-cta .btn-with-icon:focus .btn-icon {
    transform: translateX(6px);
}

.hero-cta .btn-with-icon:active .btn-icon {
    transform: translateX(3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down-btn {
    background: rgba(159, 179, 200, 0.1);
    border: 2px solid var(--brand-slate-light);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--brand-slate-light);
}

.scroll-down-btn:hover,
.scroll-down-btn:focus {
    background: var(--brand-slate-light);
    color: var(--brand-midnight);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(159, 179, 200, 0.4);
}

.scroll-down-btn:hover .pulse-ring {
    border-color: var(--brand-midnight);
    animation-duration: 1s;
}

.scroll-down-btn:hover .arrow-down {
    color: var(--brand-midnight);
    animation-duration: 1s;
}
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--brand-slate-light);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite ease-out;
}

.arrow-down {
    position: relative;
    z-index: 2;
    color: var(--brand-slate-light);
    animation: arrow-bounce 2s infinite ease-in-out;
}
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   Responsive Design Updates
   ======================================== */

@media (max-width: 1024px) {
    /* Menu automatically uses 3 columns via CSS variables */
    .navigation-active .header-logo {
        position: relative; /* Keep in same position on tablet */
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-flex {
        min-height: 70px;
    }
    
    .header-logo img {
        max-height: 65px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: var(--font-size-large);
    }
    
    .site-title-text {
        font-size: 1rem;
    }
    
    .hamburger-icon .bar {
        width: 20px;
    }
    
    
    /* Removed: Duplicate menu-overlay-menu padding - more specific rule exists earlier */
    
    /* Menu automatically uses 2 columns via CSS variables */
    .navigation-active .header-logo {
        position: relative; /* Keep in same position on mobile */
    }
    
    /* Mobile responsive spacing */
    .menu-overlay-menu {
        padding: 0.5rem;
    }
    
    .hero-section {
        height: calc(100vh + 40px);
        min-height: 520px;
    }

    @supports (height: 100dvh) {
        .hero-section {
            height: 100dvh;
        }
    }

    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl);
    }

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

    .rotating-text {
        font-size: clamp(var(--font-size-x-large), 8vw, var(--font-size-xxx-large));
    }
    
    .hero-subtitle {
        font-size: clamp(var(--font-size-normal), 4vw, var(--font-size-large));
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-md) * 0.83);
        margin-top: var(--spacing-lg);
    }
    
    .hero-cta .btn {
        font-size: var(--font-size-small);
        padding: 0.75rem 1.5rem;
        width: min(260px, 100%);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-flex {
        min-height: 65px;
    }
    
    .header-logo img {
        max-height: 55px;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    /* Menu automatically uses 1 column via CSS variables */
    .navigation-active .header-logo {
        position: relative; /* Keep in same position on small mobile */
    }
    
    /* Extra small screen menu adjustments */
    .menu-overlay-menu {
        padding: 0.5rem 0.25rem;
    }
    
    /* Compact header elements are already sized appropriately above */
    
    .menu-language-switcher {
        flex-direction: row; /* Horizontal layout for mobile */
        gap: var(--spacing-xs);
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .menu-language-switcher a {
        font-size: var(--font-size-small);
        padding: 0.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .site-title-text {
        font-size: var(--font-size-small);
    }
    
    .hamburger-icon .bar {
        width: 18px;
    }
    
    
    .hero-content {
        padding: 3.5rem 1rem 2.5rem;
    }

    .rotating-text {
        font-size: clamp(1.25rem, 10vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.05rem);
        margin-bottom: 1.75rem;
    }

    .hero-cta {
        margin-top: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .hero-cta .btn {
        font-size: var(--font-size-small);
        padding: 0.75rem 1.5rem;
        width: min(220px, 100%);
    }
    
    .scroll-down-btn {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   Accessibility Enhancements
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .rotating-word,
    .scroll-down-btn svg {
        animation: none;
        transition: none;
    }
    
    .hero-video {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.transparent-burger:focus-visible,
.scroll-down-btn:focus-visible {
    outline: 3px solid var(--brand-slate-light);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header {
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 2px solid var(--brand-white);
    }
    
    .hamburger-icon .bar {
        background: var(--brand-midnight);
        height: 3px;
    }
    
    .mobile-menu-toggle {
        color: var(--brand-midnight);
    }


    /* CRITICAL FIX: Ensure hamburger X is visible on white background */
    .hamburger-icon .bar.bar1,
    .hamburger-icon .bar.bar3 {
        background: var(--brand-midnight);
    }
    
    /* X state - MAXIMUM SPECIFICITY to override any other rules */
    .site-header.menu-open .hamburger-icon .bar.bar1,
    .site-header.menu-open .hamburger-icon .bar.bar3 {
        background: #000000 !important;
    }
    
}

/* RTL Support */
[dir="rtl"] .header-flex {
    flex-direction: row-reverse;
}


[dir="rtl"] .menu-language-switcher {
    direction: rtl;
}

/* Removed: Empty media query */

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  .news-card { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  :root {
    --section-padding-top: 2rem;
    --section-padding-bottom: 1.5rem;
    --section-padding-sides: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Removed: Duplicate mobile-menu-toggle with conflicting display: block */
  
  .grid-12,
  .grid-6,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .films-grid {
    grid-template-columns: 1fr;
  }
  
  
  
  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: var(--font-size-xxx-large);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-large);
  }
  
  .section-header {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .rotating-text {
    font-size: 1rem;
  }
  
  .rotating-text-prefix {
    display: none;
  }
  
  .rotating-text-words {
    display: none;
  }
  
  .rotating-word {
    display: none;
  }
  
  .film-filters,
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-small);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle,
  .filter-btn,
  .social-icons {
    display: none;
  }
  
  .hero {
    height: auto;
    min-height: 300px;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  body {
    font-size: var(--font-size-normal);
    line-height: 1.4;
    color: var(--brand-midnight);
    padding-top: 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .film-overlay,
  .hero-video::after,
  .hero-image::after {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-video video {
    animation-play-state: paused;
  }
  
  .rotating-text span {
    position: static;
    opacity: 1;
    transform: none;
  }
  
  .rotating-text span:not(:first-child) {
    display: none;
  }
  
  .animated-fadeinup, .animated-fadeinup.visible, .hero-content.animated-fadeinup, .hero-content.animated-fadeinup.visible {
    transition: none !important;
    animation: none !important;
  }
}

.swiper-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--brand-slate);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-x-large);
  transition: background var(--transition-fast);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
}
.swiper-pagination-bullet {
  background: var(--brand-slate);
  opacity: 0.7;
}
.swiper-pagination-bullet-active {
  background: var(--brand-slate-light);
  opacity: 1;
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: var(--brand-slate);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-x-large);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.back-to-top:hover {
  background: var(--brand-slate-light);
  color: var(--white);
}
/* RTL Support */
body[dir="rtl"] .swiper-button-next {
  right: auto;
  left: 10px;
}
body[dir="rtl"] .swiper-button-prev {
  left: auto;
  right: 10px;
}
body[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}

/* Screening Components */
.screening-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 1rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-medium);
  color: var(--gray-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  border-radius: 4px;
  position: relative;
}

.tab-button:hover,
.tab-button:focus {
  color: var(--brand-slate);
  outline: 2px solid var(--brand-slate-light);
  outline-offset: 2px;
}

.tab-button.active {
  color: var(--brand-slate);
  background: var(--brand-cream);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-slate);
  border-radius: 2px;
}

.screening-section {
  display: none;
}

.screening-section.active {
  display: block;
}

.screenings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.screening-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-light);
}

.screening-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.screening-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.screening-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.screening-card:hover .screening-image img {
  transform: scale(1.05);
}

.screening-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  font-size: var(--font-size-xxx-large);
  text-align: center;
  padding: 1rem;
  min-height: 320px;
}

.screening-placeholder svg {
  margin-bottom: var(--spacing-sm);
  color: var(--brand-slate);
}

.screening-placeholder span {
  font-size: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
  max-width: 100%;
  color: var(--brand-midnight);
  font-family: var(--font-heading);
  font-weight: 700;
}


.screening-content {
  padding: 1.5rem;
}

.screening-title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.screening-title a {
  color: var(--brand-midnight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.screening-title a:hover {
  color: var(--brand-slate);
}

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

.screening-meta .meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-small);
  color: var(--gray-medium);
}

.screening-meta .meta-item i {
  width: 16px;
  color: var(--brand-slate);
}

.screening-excerpt {
  margin-bottom: var(--spacing-md);
  color: var(--gray-dark);
  line-height: 1.6;
}

.screening-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--gray-dark);
}

.btn-secondary:hover {
  background: var(--gray-medium);
  color: var(--white);
}

.year-group {
  margin-bottom: var(--spacing-xl);
}

.year-heading {
  font-size: var(--font-size-xx-large);
  color: var(--brand-midnight);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-cream);
  text-align: center;
}

.no-screenings {
  text-align: center;
  padding: 3rem;
  color: var(--gray-medium);
  font-style: italic;
}

/* ========================================
   RTL (Right-to-Left) Language Support
   ======================================== */

[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* RTL Language Switcher */
[dir="rtl"] .menu-language-switcher {
    direction: rtl;
}

[dir="rtl"] .menu-language-switcher a {
    margin-left: var(--spacing-xs);
    margin-right: 0;
}

/* RTL Typography adjustments */
[dir="rtl"] h1,
[dir="rtl"] h2, 
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

[dir="rtl"] p,
[dir="rtl"] .content-text {
    font-family: var(--font-arabic);
    text-align: right;
    line-height: 1.8;
}

[dir="rtl"] .nav-menu a {
    text-align: right;
}

/* RTL Card layouts */
[dir="rtl"] .card-content {
    text-align: right;
}

[dir="rtl"] .film-card,
[dir="rtl"] .news-card,
[dir="rtl"] .workshop-card {
    text-align: right;
}

/* RTL Form elements */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
    font-family: var(--font-arabic);
}

/* RTL Button text */
[dir="rtl"] .btn,
[dir="rtl"] button {
    font-family: var(--font-arabic);
}
[dir="rtl"] .hero-tagline {
  flex-direction: row-reverse;
}


[dir="rtl"] .screening-meta .meta-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .screening-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .tab-button.active::after {
  left: auto;
  right: 0;
}
/* Responsive Design for Screenings */
@media (max-width: 768px) {
  .screening-tabs {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .tab-button {
    text-align: center;
  }
  
  .screenings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-tagline {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .tagline-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .screening-content {
    padding: 1rem;
  }
  
  .screening-actions {
    flex-direction: column;
  }
  
  .screening-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Screening Details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: 8px;
  border-left: none;
}

.detail-item i {
  font-size: var(--font-size-x-large);
  color: var(--brand-slate);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.detail-item div {
  flex: 1;
}

.detail-item strong {
  display: block;
  color: var(--brand-midnight);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.detail-item span,
.detail-item time {
  color: var(--gray-dark);
  font-size: var(--font-size-medium);
}

/* Film Information */
.film-information .film-card {
  display: flex;
  gap: var(--spacing-lg);
  background: var(--gray-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-sm);
}

.film-poster {
  flex-shrink: 0;
  width: 150px;
}

.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.film-card:hover .film-poster img {
  transform: scale(1.05);
}

.film-info {
  flex: 1;
}

.film-info h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--brand-midnight);
}

.film-meta {
  color: var(--gray-medium);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-small);
}

.film-synopsis {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  color: var(--gray-dark);
}

/* Sidebar Sections */
.screening-sidebar .sidebar-section {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.screening-sidebar .sidebar-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.2) !important;
}

.screening-sidebar h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--brand-midnight);
  font-size: var(--font-size-medium);
  font-weight: 600;
}

.contact-info {
  line-height: 1.6;
  color: var(--gray-dark);
}

.related-screenings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-screening {
  padding: 1rem;
  background: var(--white);
  border-radius: 4px;
  border-left: 3px solid var(--brand-slate);
}

.related-screening h5 {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
}

.related-screening h5 a {
  color: var(--brand-midnight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-screening h5 a:hover {
  color: var(--brand-slate);
}

.related-screening time {
  color: var(--gray-medium);
  font-size: var(--font-size-small);
}

/* Responsive Design for Screening Details */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .detail-item {
    padding: 1rem;
  }
  
  .film-information .film-card {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .film-poster {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .screening-sidebar .sidebar-section {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .detail-item {
    flex-direction: column;
    text-align: center;
  }
  
  .detail-item i {
    margin: 0 auto 0.5rem;
  }
  
  .film-information .film-card {
    padding: 1rem;
  }
}

/* Workshop Components */
.workshop-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.workshop-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-light);
}

.workshop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.workshop-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.workshop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px 16px 0 0;
  transition: transform var(--transition-normal);
}

.workshop-card:hover .workshop-image img {
  transform: scale(1.05);
}

.workshop-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  text-align: center;
  padding: 1rem;
  min-height: 320px;
}

.workshop-placeholder svg {
  margin-bottom: var(--spacing-sm);
  color: var(--brand-slate);
}

.workshop-placeholder span {
  font-size: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
  max-width: 100%;
  color: var(--brand-midnight);
  font-family: var(--font-heading);
  font-weight: 700;
}

.workshop-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workshop-badge.upcoming {
  background: var(--brand-slate-light);
  color: var(--white);
}

.workshop-badge.past {
  background: var(--gray-medium);
  color: var(--white);
}

.workshop-content {
  padding: 1.5rem;
}

.workshop-title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.workshop-title a {
  color: var(--brand-midnight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.workshop-title a:hover {
  color: var(--brand-slate);
}

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

.workshop-meta .meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-small);
  color: var(--gray-medium);
}

.workshop-meta .meta-item i {
  width: 16px;
  color: var(--brand-slate);
}

.workshop-excerpt {
  margin-bottom: var(--spacing-md);
  color: var(--gray-dark);
  line-height: 1.6;
}

.workshop-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.no-workshops {
  text-align: center;
  padding: 3rem;
  color: var(--gray-medium);
  font-style: italic;
  grid-column: 1 / -1;
}

/* RTL Support for Workshops */
[dir="rtl"] .workshop-badge {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .workshop-meta .meta-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .workshop-actions {
  flex-direction: row-reverse;
}

/* Responsive Design for Workshops */
@media (max-width: 768px) {
  .workshop-filters {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .workshops-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .workshop-content {
    padding: 1rem;
  }
  
  .workshop-actions {
    flex-direction: column;
  }
  
  .workshop-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive Header */
@media (max-width: 600px) {
  .header-flex { min-height: 60px; }
  .header-title .site-title-text { font-size: 1rem; }
  .header-logo img { max-height: 42px; }
}

.menu-overlay-inner { 
  padding: var(--spacing-md) var(--spacing-xs); 
}

/* Hero Section */
.hero-content h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
.hero-tagline, .rotating-text { font-size: clamp(1rem, 4vw, 1.5rem); }
@media (max-width: 600px) {
  .hero-content { padding: var(--spacing-lg) var(--spacing-xs); }
}

/* Grids */
.films-grid, .workshops-grid, .news-grid, .partner-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .films-grid, .workshops-grid, .news-grid, .partner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Cards */
.film-card, .workshop-card, .news-card, .partner-card {
  padding: 1rem;
  min-width: 0;
}
.film-title-under, .workshop-title, .news-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-medium);
  color: var(--brand-slate-light);
  margin: 0.5rem 0 0.25rem 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .film-title-under, .workshop-title, .news-content h3 {
    font-size: 1rem;
  }
}
.film-meta, .workshop-meta, .news-meta {
  font-family: var(--font-body);
  color: var(--gray-medium);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
}
.film-card, .workshop-card, .news-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  padding: 0;
  margin: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.film-card:hover, .workshop-card:hover, .news-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px) scale(1.01);
}
.film-excerpt, .workshop-excerpt, .news-excerpt {
  font-family: var(--font-body);
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

/* Single Page Layout */
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: 1fr; }
  .film-sidebar, .workshop-sidebar { margin-top: 2rem; }
}

/* Fix footer gaps on film archive page */
.work-page {
  margin-bottom: 0;
}

/* Work Page Hero Styling */
.work-hero {
  background: linear-gradient(135deg, var(--brand-midnight) 0%, var(--brand-slate-dark) 100%);
  color: var(--brand-white);
  padding: 6rem 0 4rem 0;
  text-align: center;
}

.work-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--brand-white);
}

.work-hero .hero-subtitle {
  font-size: var(--font-size-large);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Work Timeline Styling */
.work-page .work-timeline {
  padding: 4rem 0;
}

.work-page .work-timeline h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--brand-midnight);
  font-size: var(--font-size-xxx-large);
}

/* Decade Filters */
.work-page .decade-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.work-page .decade-filters .filter-btn {
  background: var(--brand-white);
  color: var(--brand-midnight);
  border: 2px solid var(--brand-slate-light);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-page .decade-filters .filter-btn:hover,
.work-page .decade-filters .filter-btn.active {
  background: var(--brand-slate);
  color: var(--brand-white);
  border-color: var(--brand-slate);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 107, 125, 0.3);
}

/* Timeline Container */
.work-page .timeline-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Year Headers */
.work-page .timeline-year {
  margin-bottom: var(--spacing-xl);
}

.work-page .year-label {
  background: linear-gradient(135deg, var(--brand-midnight) 0%, var(--brand-slate-dark) 100%);
  color: var(--brand-white);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: var(--font-size-x-large);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.2);
  position: relative;
}

.work-page .year-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--brand-slate-dark);
}

/* Year Films Grid */
.work-page .year-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Timeline Film Cards */
.work-page .timeline-film-card {
  background: var(--brand-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 40, 74, 0.08);
  border: 1px solid #ececec;
  transition: all 0.3s ease;
  overflow: hidden;
}

.work-page .timeline-film-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(159, 179, 200, 0.16);
  border-color: var(--brand-slate-light);
}

.work-page .film-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-page .film-card-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--brand-slate-light);
}

.work-page .film-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-page .timeline-film-card:hover .film-card-image img {
  transform: scale(1.05);
}

.work-page .film-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--brand-slate);
  font-size: var(--font-size-xx-large);
}

.work-page .film-card-content {
  padding: 1rem;
}

.work-page .film-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-midnight);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-page .film-year {
  font-size: var(--font-size-small);
  color: var(--brand-slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .work-page .work-hero .hero-title {
    font-size: var(--font-size-xxx-large);
  }
  
  .work-page .work-hero .hero-subtitle {
    font-size: var(--font-size-medium);
  }
  
  .work-page .year-films-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
  }
  
  .work-page .decade-filters {
    gap: var(--spacing-xs);
  }
  
  .work-page .decade-filters .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: var(--font-size-small);
  }
}
@media (max-width: 600px) {
  .work-page .work-hero .hero-title {
    font-size: var(--font-size-xx-large);
  }
  
  .work-page .work-timeline h2 {
    font-size: var(--font-size-xx-large);
    margin-bottom: 2rem;
  }
  
  .work-page .year-films-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .work-page .year-label {
    font-size: var(--font-size-large);
    padding: 0.75rem 1.5rem;
  }
  
  .work-page .film-card-image {
    height: 100px;
  }
  
  .work-page .film-card-content {
    padding: 0.75rem;
  }
  
  .work-page .film-title {
    font-size: var(--font-size-small);
  }
  
  .work-page .decade-filters {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .work-page .decade-filters .filter-btn {
    min-width: 120px;
  }
}
/* ===================================
   W TEMPLATE - WORK/FILMS PAGE
   =================================== */
/* W Page Wrapper */
.association-page {
    background: var(--brand-white);
    min-height: 100vh;
}

.contact-page-simple {
    background: var(--brand-white);
    min-height: 100vh;
}

.w-page {
    min-height: 100vh;
    background: var(--brand-white);
}

/* W Hero Section */
.w-hero {
    background: var(--brand-white);
    color: var(--brand-midnight);
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.w-hero-content {
    position: relative;
    z-index: 2;
}

.w-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.w-hero-title {
    font-family: var(--wp--preset--font-family--epilogue);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--brand-midnight);
    line-height: 1.2;
}

.w-hero-subtitle {
    font-size: var(--font-size-large);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* W Overview Section */
.w-overview {
    padding: var(--spacing-2xl) 0;
    background: var(--brand-white);
}

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

.w-overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.w-overview-content p {
    font-size: var(--font-size-medium);
    line-height: 1.7;
    color: var(--brand-slate-dark);
}

/* W Timeline Section */
.w-timeline-section {
    padding: var(--spacing-2xl) 0;
    background: var(--brand-cream);
}

.w-timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.w-timeline-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.w-timeline-title {
    font-family: var(--wp--preset--font-family--epilogue);
    font-size: var(--font-size-xxx-large);
    font-weight: 700;
    color: var(--brand-midnight);
    margin: 0;
}

/* W Decade Filters */
.w-decade-filters {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-sm) * 0.75);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.w-filter-btn {
    background: var(--brand-white);
    color: var(--brand-midnight);
    border: 2px solid var(--brand-slate-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--epilogue);
}

.w-filter-btn:hover,
.w-filter-btn--active {
    background: var(--brand-slate);
    color: var(--brand-white);
    border-color: var(--brand-slate);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 107, 125, 0.3);
}

/* W Timeline Container */
.w-timeline-container {
    position: relative;
    padding: 0 2rem;
}

/* Vertical timeline line - centered */
.w-timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-midnight);
    transform: translateX(-50%);
    z-index: 1;
}

/* Year header - left aligned */
.w-year-header {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    background: transparent;
    margin: 0 0 2rem 0;
    padding: 0;
}

/* Remove the background block */
.w-year-header::before {
    display: none;
}

/* W Year Groups */
.w-year-group {
    margin-bottom: var(--spacing-xl);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    position: relative;
}

.w-year-group.w-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.w-year-title {
    background: transparent;
    color: var(--brand-midnight);
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: var(--font-size-x-large);
    font-weight: 700;
    margin: 0;
    display: block;
    box-shadow: none;
    position: relative;
    text-align: left;
}

/* Remove timeline connectors */
.w-year-title::before {
    display: none;
}

/* Add long dash after year */
.w-year-title::after {
    display: inline;
    content: ' —';
    margin-left: 0.5rem;
}

/* W Films Grid - Timeline Layout */
.w-films-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

/* W Film Cards */
.w-film-card {
    position: relative;
    width: calc(50% - 2rem);
    max-width: 550px;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Alternate cards left and right */
.w-film-card:nth-child(odd) {
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.w-film-card:nth-child(even) {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
}

/* Add connector line to timeline */
.w-film-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 32px;
    height: 2px;
    background: var(--brand-midnight);
    z-index: 2;
}

.w-film-card:nth-child(odd)::before {
    right: -2rem;
    transform: translateY(-50%);
}

.w-film-card:nth-child(even)::before {
    left: -2rem;
    transform: translateY(-50%);
}

/* Add dot on timeline */
.w-film-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--brand-midnight);
    border-radius: 50%;
    border: 3px solid var(--brand-white);
    z-index: 3;
    transform: translateY(-50%);
}

.w-film-card:nth-child(odd)::after {
    right: calc(-2rem - 32px + 6px);
}

.w-film-card:nth-child(even)::after {
    left: calc(-2rem - 32px + 6px);
}

.w-film-card:hover {
    transform: translateY(-4px);
}


.w-film-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.w-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 12px 12px 0 0;
}

.w-card-poster {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}


.w-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--brand-slate);
}

.w-card-content {
    padding: 0.75rem;
    text-align: center;
}

.w-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-midnight);
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.w-card-year {
    font-size: var(--font-size-small);
    color: var(--brand-slate);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.3rem;
}

.w-card-genre {
    font-size: var(--font-size-small);
    color: var(--brand-slate-light);
    font-weight: 400;
    text-transform: capitalize;
    display: inline-block;
    background: rgba(159, 179, 200, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

/* W Template Responsive Design */
@media (max-width: 900px) {
    .w-hero-title {
        font-size: var(--font-size-xxx-large);
    }
    
    .w-hero-subtitle {
        font-size: var(--font-size-medium);
    }
    
    .w-films-grid {
        gap: 1.5rem;
    }
    
    .w-film-card {
        width: calc(50% - 1.5rem);
        max-width: 450px;
    }
    
    .w-film-card::before {
        width: 24px;
    }
    
    .w-film-card:nth-child(odd)::before {
        right: -1.5rem;
    }
    
    .w-film-card:nth-child(even)::before {
        left: -1.5rem;
    }
    
    .w-film-card:nth-child(odd)::after {
        right: calc(-1.5rem - 24px + 6px);
    }
    
    .w-film-card:nth-child(even)::after {
        left: calc(-1.5rem - 24px + 6px);
    }
    
    .w-decade-filters {
        gap: var(--spacing-xs);
    }
    
    .w-filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: var(--font-size-small);
    }
}

@media (max-width: 600px) {
    .w-hero {
        padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    }
    
    .w-hero-title {
        font-size: var(--font-size-xx-large);
    }
    
    /* Stack cards vertically on mobile - timeline moves to left */
    .w-timeline-container::before {
        left: 2rem;
    }
    
    .w-films-grid {
        gap: 1.5rem;
    }
    
    .w-film-card {
        width: 100%;
        max-width: 100%;
        margin-left: 3rem !important;
        margin-right: 0 !important;
    }
    
    .w-film-card::before {
        left: -3rem !important;
        right: auto !important;
        width: 2px;
        height: 100%;
        top: 0;
        transform: none;
    }
    
    .w-film-card::after {
        left: calc(-3rem - 6px) !important;
        right: auto !important;
        top: 2rem;
        transform: none;
    }
}

/* ===================================
   JS TEMPLATE - BIOGRAPHY + FILMS TIMELINE
   =================================== */

/* JS Timeline Content Container */
.js-timeline-content {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* JS Timeline Text Entry (Biography) */
.js-timeline-text-entry {
    position: relative;
    width: calc(50% - 2rem);
    max-width: 600px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--brand-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.js-timeline-text-entry:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Portrait Image */
.js-portrait-image {
    float: right;
    max-width: 250px;
    width: auto;
    height: auto;
    margin: 0 0 1.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Biography Text */
.js-biography-text {
    font-family: var(--font-body);
    font-size: var(--font-size-medium);
    line-height: 1.7;
    color: var(--brand-slate-dark);
}

.js-biography-text p {
    margin-bottom: 1rem;
    color: var(--brand-slate-dark);
}

.js-biography-text p:last-child {
    margin-bottom: 0;
}

/* Position biography entries on right side (alternating with films) */
.js-timeline-content .js-timeline-text-entry {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
}

/* Add connector line to timeline for biography entries */
.js-timeline-text-entry::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2rem;
    width: 32px;
    height: 2px;
    background: var(--brand-midnight);
    z-index: 2;
    transform: translateY(-50%);
}

/* Add dot on timeline for biography entries */
.js-timeline-text-entry::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(-2rem - 32px + 6px);
    width: 12px;
    height: 12px;
    background: var(--brand-midnight);
    border-radius: 50%;
    border: 3px solid var(--brand-white);
    z-index: 3;
    transform: translateY(-50%);
}

/* When biography and films are in same year, stack them */
.js-timeline-content .js-timeline-text-entry + .w-films-grid {
    margin-top: 1.5rem;
}

/* JS Template Responsive Design */
@media (max-width: 900px) {
    .js-timeline-text-entry {
        width: calc(50% - 1.5rem);
        max-width: 500px;
        padding: 1.25rem;
    }
    
    .js-portrait-image {
        max-width: 200px;
        margin: 0 0 1rem 1rem;
    }
    
    .js-timeline-text-entry::before {
        width: 24px;
        left: -1.5rem;
    }
    
    .js-timeline-text-entry::after {
        left: calc(-1.5rem - 24px + 6px);
    }
}

@media (max-width: 600px) {
    .js-timeline-text-entry {
        width: 100%;
        max-width: 100%;
        margin-left: 3rem !important;
        margin-right: 0 !important;
        padding: 1rem;
    }
    
    .js-portrait-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 0 1rem 0;
        width: 100%;
    }
    
    .js-timeline-text-entry::before {
        left: -3rem !important;
        width: 2px;
        height: 100%;
        top: 0;
        transform: none;
    }
    
    .js-timeline-text-entry::after {
        left: calc(-3rem - 6px) !important;
        top: 2rem;
        transform: none;
    }
    
    .js-biography-text {
        font-size: var(--font-size-small);
    }
    
    .w-year-title {
        font-size: var(--font-size-large);
        padding: 0.75rem 1.5rem;
    }
    
    .w-card-image {
        height: 200px;
    }
    
    .w-card-content {
        padding: 0.6rem;
        text-align: left !important;
    }
    
    .w-card-title {
        font-size: var(--font-size-small);
    }
    
    .w-card-year {
        font-size: var(--font-size-small);
    }
    
    .w-card-genre {
        font-size: 0.7rem;
    }
    
    .w-decade-filters {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .w-filter-btn {
        min-width: 120px;
    }
}

/* Footer Styles */
.site-footer {
  background: var(--brand-midnight);
  color: var(--brand-white);
  padding: var(--spacing-xl) 0 0;
  font-family: var(--font-body);
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0;
}

.site-footer .container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.footer-navigation {
  margin: 0 auto 2.5rem;
  padding: 0;
  color: inherit;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-menu > li {
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem;
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--brand-slate-light, #f8d34c);
}

.footer-menu .sub-menu {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-menu .sub-menu .sub-menu {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-menu .sub-menu .sub-menu .sub-menu {
  padding-left: 0.6rem;
  border-color: rgba(255, 255, 255, 0.05);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 1.5rem;
  color: inherit;
}

.footer-meta__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-meta__logo img {
  max-height: 48px;
  width: auto;
}

.footer-meta__social {
  display: flex;
  gap: 0.75rem;
}

.footer-meta__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-meta__social a:hover,
.footer-meta__social a:focus {
  background: rgba(255, 255, 255, 0.25);
  color: var(--brand-midnight);
  transform: translateY(-2px);
}

.logo-placeholder {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-md) 0 var(--spacing-lg);
  text-align: center;
  font-size: var(--font-size-normal);
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-navigation {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-menu {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-menu > li {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0 0;
  }

  .footer-meta {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .footer-meta__social {
    gap: var(--spacing-xs);
  }

  .footer-meta__social a {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-small);
  }
}

[dir="rtl"] .footer-menu > li {
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 0;
  padding-right: 1.25rem;
}

[dir="rtl"] .footer-menu .sub-menu {
  padding: 0 1rem 0 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

[dir="rtl"] .footer-menu .sub-menu .sub-menu {
  padding-right: 0.75rem;
  border-right-color: rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .footer-menu .sub-menu .sub-menu .sub-menu {
  padding-right: 0.6rem;
  border-right-color: rgba(255, 255, 255, 0.05);
}

/* General */
body { font-size: var(--font-size-normal); }
a, button { min-height: 44px; min-width: 44px; }
html, body { overflow-x: hidden; }

/* RTL Responsive Tweaks */
[dir="rtl"] .header-flex { flex-direction: row-reverse; }
[dir="rtl"] .footer-content { direction: rtl; }

/* Archive hero height and centering */
.hero.archive-hero {
  height: 40vh !important;
  min-height: 220px;
  max-height: 40vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  position: relative !important;
  overflow: hidden;
}
.hero.archive-hero .hero-content {
  text-align: center;
  margin: 0 auto;
  padding: 0;
}

/* Remove extra margin above hero */
body > .hero.archive-hero:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Workshop image */
.workshop-image img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 16px 16px 0 0;
}
@media (max-width: 600px) {
  .workshop-image img {
    height: 180px !important;
  }
}
/* Single page card-like sections */
.single-section {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}
.single-section h2, .single-section h3 {
  margin-top: 0;
  color: var(--brand-slate-light);
  font-family: var(--font-heading);
}

/* Card images (already enforced, but repeat for safety) */
.film-poster img, .workshop-image img, .news-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .film-poster img, .workshop-image img, .news-image img {
    height: 100% !important;
  }
}

/* Single page meta/details blocks */
.single-meta, .single-details {
  background: var(--brand-cream);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md) var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--brand-midnight);
  font-family: var(--font-body);
}

/* Homepage Carousels */
.films-carousel {
    position: relative;
    padding: 0;
    margin: var(--spacing-sm) 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background-color: var(--brand-white) !important;
}
.films-carousel .swiper-slide {
    height: auto;
    display: flex;
}
.films-carousel .film-card {
    width: 100%;
    height: 100%;
    margin: 0;
}
/* Carousel Navigation */
.films-carousel .swiper-button-next,
.films-carousel .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: var(--brand-midnight);
    border: 2px solid var(--brand-slate-light);
    border-radius: 50%;
    color: var(--brand-white);
    transition: all var(--transition-fast);
}

.films-carousel .swiper-button-next:hover,
.films-carousel .swiper-button-prev:hover {
    background: var(--brand-slate-light);
    color: var(--brand-midnight);
}

.films-carousel .swiper-button-next::after,
.films-carousel .swiper-button-prev::after {
    font-size: var(--font-size-normal);
    font-weight: bold;
}

/* Carousel Pagination */
.films-carousel .swiper-pagination {
    position: relative;
    margin-top: var(--spacing-lg);
}

.films-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--gray-medium);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.films-carousel .swiper-pagination-bullet-active {
    background: var(--brand-slate-light);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .films-carousel {
        padding: 0 30px;
    }
    
    .films-carousel .swiper-button-next,
    .films-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .films-carousel .swiper-button-next::after,
    .films-carousel .swiper-button-prev::after {
        font-size: var(--font-size-small);
    }
}


/* Fallback for browsers that don't support video */
.hero-fallback {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-slate) 100%);
    width: 100%;
    height: 100%;
}

/* --- News Carousel & Map Section Styles --- */
.section-title-centered {
  text-align: center !important; /* Reinforced centering to prevent host environment conflicts */
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  color: #000000;
  contain: layout; /* Isolate this element's layout from external interference */
}
.section-news-carousel {
  position: relative;
  background: var(--gradient-news);
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

.section-news-carousel.section-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--brand-white) 0%, #f8f9fa 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.news-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.news-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--spacing-lg);
  padding: 1rem 0;
  width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.news-carousel::-webkit-scrollbar { 
  display: none; 
}
.news-card {
  position: relative;
  flex: 0 0 340px;
  height: 420px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(159, 179, 200, 0.15);
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(90, 107, 125, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(90, 107, 125, 0.16);
  border-color: rgba(159, 179, 200, 0.25);
  transform: translateY(-4px);
}
.news-card-image {
  position: relative;
  width: 100%;
  height: 62%;
  overflow: hidden;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 28px 28px 0 0;
  transition: transform 0.3s;
}
.news-card:hover .news-card-image img {
  transform: scale(1.04);
}
.news-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(159, 179, 200, 0.95);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.35em 1em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(90, 107, 125, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Post-type specific badge styling */
.news-badge.training_workshop-badge {
  background: linear-gradient(135deg, rgba(159, 179, 200, 0.9) 0%, rgba(134, 154, 169, 0.9) 100%);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.news-badge.screening-badge {
  background: linear-gradient(135deg, rgba(90, 107, 125, 0.9) 0%, rgba(75, 85, 99, 0.9) 100%);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.news-badge.publication-badge {
  background: linear-gradient(135deg, rgba(112, 128, 144, 0.9) 0%, rgba(90, 107, 125, 0.9) 100%);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.news-badge.news-badge {
  background: linear-gradient(135deg, rgba(159, 179, 200, 0.95) 0%, rgba(159, 179, 200, 0.85) 100%);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.news-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
}
.news-card-title {
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-midnight);
  margin-bottom: var(--spacing-xs);
}
.news-card-excerpt {
  font-size: var(--font-size-normal);
  color: var(--gray-dark);
  margin-bottom: 0;
  line-height: 1.5;
}

.news-card-meta {
  font-size: var(--font-size-small);
  color: var(--brand-slate);
  margin-top: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.news-card-meta i {
  font-size: calc(var(--font-size-small) * 0.89);
  opacity: 0.8;
}
.news-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(159, 179, 200, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xx-large);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(90, 107, 125, 0.15);
  backdrop-filter: blur(10px);
}
.carousel-arrow-left { left: -24px; }
.carousel-arrow-right { right: -24px; }
.carousel-arrow:after {
  content: '';
  display: block;
  width: 0.7em;
  height: 0.7em;
  border: solid #FFFFFF;
  border-width: 0 0.18em 0.18em 0;
  padding: 0.18em;
}
.carousel-arrow-left:after { transform: rotate(135deg); margin-left: 0.2em; }
.carousel-arrow-right:after { transform: rotate(-45deg); margin-right: 0.2em; }
.carousel-arrow:hover {
  background: rgba(159, 179, 200, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active, .carousel-arrow:focus {
  background: rgba(159, 179, 200, 1);
  color: #FFFFFF;
  outline: 2px solid rgba(159, 179, 200, 0.3);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .news-card { flex-basis: 260px; height: 340px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: var(--font-size-medium); }
  .carousel-arrow-left { left: -12px; }
  .carousel-arrow-right { right: -12px; }
}
@media (max-width: 600px) {
  .news-card { flex-basis: 80vw; height: 260px; }
  .news-carousel { gap: 1rem; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow-left { left: 0; }
  .carousel-arrow-right { right: 0; }
}
.section-map {
  background: var(--gradient-map);
  padding: var(--spacing-2xl) 0;
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}
.section-map .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  position: relative;
}
#leaflet-map {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  height: 70vh;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0 auto;
  background: var(--brand-white);
  display: block;
}
.section-map .section-header {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.section-map .section-title-centered {
  color: #FFFFFF;
  font-size: var(--font-size-xx-large);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 auto 3rem auto;
  padding: 0 2rem;
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1000;
}
.section-map .section-subtitle {
  display: none;
}

/* Duplicate map section CSS removed */

/* --- Partner Section Enhancements --- */
.section-enhanced.section-cream {
  background: #F8F9FA;
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}
.partner-grid.grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-top: 2.5rem;
}
.partner-card {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px rgba(16,40,74,0.08);
  border: 2px solid var(--brand-cream);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
}
.partner-card:hover {
  border-color: var(--brand-slate-light);
  box-shadow: 0 8px 32px rgba(159,179,200,0.16);
  transform: translateY(-4px) scale(1.03);
}
.partner-card .partner-logo {
  max-width: 120px;
  max-height: 60px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card .partner-info h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}
.partner-card .partner-info p {
  font-size: 0.98rem;
  color: var(--gray-medium);
  text-align: center;
}

@media (max-width: 900px) {
  .partner-grid.grid-enhanced {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .section-map {
    padding: 3.5rem 0;
  }
  
  .section-map .container {
    padding: 0 1.5rem;
  }
  
  .section-map .section-title-centered {
    font-size: 1.875rem;
    margin: 0 auto 2.5rem auto;
  }
  
  #leaflet-map {
    height: 60vh;
    margin: var(--spacing-lg) auto 0 auto;
    max-width: 98%;
  }
}

@media (max-width: 600px) {
  .partner-grid.grid-enhanced {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  .section-map {
    padding: var(--spacing-xl) 0;
    min-height: 50vh;
  }
  
  .section-map .container {
    padding: 0 1rem;
  }
  
  .section-map .section-title-centered {
    font-size: 1.75rem;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
  }
  
  #leaflet-map {
    height: 50vh;
    margin: 1.5rem auto 0 auto;
    max-width: 95%;
  }
  
  .section-enhanced.section-cream,
  .section-enhanced.section-white {
    padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
  }
}

/* Header styles removed for consistency across all pages */

/* Conflicting hamburger CSS removed - using modern dot grid design */

/* Awards-style card styles - for related films and carousels */
.films-carousel .awards-style-card {
  background: #1a1a1a;
  border: 2px solid var(--brand-slate-light);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 0.75rem;
  width: 400px;
  height: 280px;
  aspect-ratio: 10 / 7;
}
.films-carousel .awards-style-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px) scale(1.02);
}

.section-enhanced.section-white#featured-films {
  background: transparent;
  padding: var(--section-padding-top) 0 var(--section-padding-bottom) 0;
}

/* Workshops section - enhanced gradient background */

/* News section - enhanced gradient background */

/* Map section - enhanced gradient background */


.section-white[data-section] {
  background: transparent !important;
}

/* General section header enhanced - should be centered by default */
.section-header-enhanced {
    text-align: center !important;
}

.section-header-enhanced .section-title-enhanced,
.section-header-enhanced .section-subtitle-enhanced {
    text-align: center !important;
}

/* Center section title and See More button */
#featured-films .section-header-enhanced {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: var(--spacing-md);
}
#featured-films .section-title-enhanced {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}
#featured-films .section-subtitle-enhanced {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-xs);
}
#featured-films .section-actions {
  display: flex;
  justify-content: center;
}
.btn-enhanced.btn-enhanced-primary.btn-enhanced-lg {
  background: var(--brand-slate);
  color: var(--brand-white);
  border-radius: 24px;
  font-size: var(--font-size-medium);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.9em 2.2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-enhanced.btn-enhanced-primary.btn-enhanced-lg:hover {
  background: var(--brand-midnight);
  color: var(--brand-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ========================================
   NEW PAGE TEMPLATES STYLES
   ======================================== */

/* Biography Page Styles */
.biography-page {
  background: #fcefbd;
}

.biography-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.biography-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.biography-hero .hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.biography-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 47, 124, 0.8), rgba(16, 40, 74, 0.9));
  z-index: 2;
}

.biography-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--brand-white);
}

.biography-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: #ffe54b;
}

.biography-hero .hero-subtitle {
  font-size: var(--font-size-medium);
  margin-bottom: 2rem;
  color: #fcefbd;
}

.biography-hero .hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fcefbd;
  animation: bounce 2s infinite;
}

.biography-hero .hero-scroll-indicator i {
  font-size: var(--font-size-x-large);
  margin-top: 0.5rem;
  display: block;
}

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.timeline-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.timeline-header h2 {
  font-size: var(--font-size-xxx-large);
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
}

.timeline-header p {
  font-size: var(--font-size-medium);
  color: #6476d1;
}

.timeline-navigation {
  margin-bottom: var(--spacing-xl);
}

.timeline-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-filter {
  padding: 0.75rem 1.5rem;
  border: 2px solid #3269ff;
  background: transparent;
  color: #3269ff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.timeline-filter.active,
.timeline-filter:hover {
  background: #3269ff;
  color: var(--brand-white);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3269ff;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
}

.marker-dot {
  width: 20px;
  height: 20px;
  background: #ffe54b;
  border: 4px solid #3269ff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fcefbd;
}

.marker-line {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #3269ff;
  transform: translateX(-50%);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: var(--brand-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}
.timeline-date {
  font-size: var(--font-size-small);
  color: #6476d1;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-card h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.timeline-card p {
  color: #6476d1;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.timeline-media {
  margin-top: 1rem;
}

.timeline-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

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

.timeline-media audio {
  width: 100%;
  border-radius: 8px;
}
/* Biography Content Section */
.biography-content-section {
  padding: 5rem 0;
  background: #fcefbd;
}
.content-grid {
  display: grid;
    grid-template-columns: 1fr; /* This makes it a single column */
  gap: 3rem;
  align-items: start;
}
.main-content {
  max-width: 800px; /* Sets a comfortable maximum width for reading */
  margin: 0 auto;  /* This centers the block horizontally */
}

.biography-text {
  background: var(--brand-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
}

.biography-text h2,
.biography-text h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
}

.biography-text p {
  color: #6476d1;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.quick-facts-card,
.awards-card {
  background: var(--brand-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
}

.quick-facts-card h3,
.awards-card h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.fact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0cc00;
}

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

.fact-item strong {
  color: var(--brand-slate-dark);
}

.fact-item span {
  color: #6476d1;
}

.award-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0cc00;
}

.award-item:last-child {
  border-bottom: none;
}

.award-year {
  background: #ffe54b;
  color: var(--brand-slate-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: var(--font-size-small);
  height: fit-content;
}

.award-details h4 {
  color: var(--brand-slate-dark);
    margin-bottom: calc(var(--spacing-xs) * 0.5);
  font-size: 1rem;
}

.award-details p {
  color: #6476d1;
  font-size: var(--font-size-small);
}

/* Filmography Section */
.filmography-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.section-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  font-size: var(--font-size-xxx-large);
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: var(--font-size-medium);
  color: #6476d1;
}

.films-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.film-showcase-item {
  background: #fcefbd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  transition: transform 0.3s ease;
}

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

.film-showcase-item .film-image {
  height: 200px;
  overflow: hidden;
}

.film-showcase-item .film-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-showcase-item .film-info {
  padding: 1.5rem;
}

.film-showcase-item h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-medium);
}

.film-showcase-item .film-year {
  color: #6476d1;
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-sm);
}

.film-showcase-item .film-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3269ff;
  color: var(--brand-white);
  text-decoration: none;
  border-radius: 20px;
  font-size: var(--font-size-small);
  transition: background 0.3s ease;
}

.film-showcase-item .film-link:hover {
  background: #5A6B7D;
}

.section-actions {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0;
}

/* Removed conflicting blue .btn-primary style to use brand-consistent styling */

/* Association Page Styles */
.association-page {
  background: var(--brand-white);
}

.team-mosaic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  padding: var(--spacing-lg);
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.mosaic-item:hover {
  transform: scale(1.05);
}

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


/* Mission Vision Section */
.mission-vision-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.mission-card,
.vision-card {
  background: #fcefbd;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  transition: transform 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: #3269ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: var(--font-size-xx-large);
  color: var(--brand-white);
}

.mission-card h2,
.vision-card h2 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
}

.mission-card p,
.vision-card p {
  color: #6476d1;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.card-details {
  margin-top: 1.5rem;
}

.details-toggle {
  background: #3269ff;
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.details-toggle:hover {
  background: #5A6B7D;
}

.details-content {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--brand-white);
  border-radius: 8px;
  color: #6476d1;
  line-height: 1.6;
}

.details-content.active {
  display: block;
}

/* About Content Section */
.about-content-section {
  padding: 5rem 0;
  background: #fcefbd;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xx-large);
}

.about-text p {
  color: #6476d1;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.about-image {
  position: sticky;
  top: 2rem;
}

.about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.team-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.team-filter {
  padding: 0.75rem 1.5rem;
  border: 2px solid #3269ff;
  background: transparent;
  color: #3269ff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.team-filter.active,
.team-filter:hover {
  background: #3269ff;
  color: var(--brand-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.team-member {
  background: #fcefbd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  height: 250px;
  overflow: hidden;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-placeholder {
  width: 100%;
  height: 100%;
  background: #3269ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-placeholder i {
  font-size: var(--font-size-xxx-large);
  color: var(--brand-white);
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-medium);
}

.member-role {
  color: #3269ff;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.member-bio {
  color: #6476d1;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.member-email {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #3269ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.member-email:hover {
  color: var(--brand-slate-dark);
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: #fcefbd;
}

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

.value-item {
  background: var(--brand-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  transition: transform 0.3s ease;
}

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

.value-icon {
  width: 60px;
  height: 60px;
  background: #ffe54b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-icon i {
  font-size: var(--font-size-x-large);
  color: var(--brand-slate-dark);
}

.value-item h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.value-item p {
  color: #6476d1;
  line-height: 1.6;
}

/* History Section */
.history-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3269ff;
  transform: translateX(-50%);
}

.history-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
}

.history-date {
  background: #ffe54b;
  color: var(--brand-slate-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.history-content {
  background: #fcefbd;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  margin-left: 55%;
  width: 45%;
}

.history-item:nth-child(even) .history-content {
  margin-left: 0;
  margin-right: 55%;
}

.history-content h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-medium);
}

.history-content p {
  color: #6476d1;
  line-height: 1.6;
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
  background: #fcefbd;
}

.partners-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.partner-item {
  background: var(--brand-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(50, 105, 255, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

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

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

.partner-img {
  max-width: 150px;
  height: auto;
}

.partner-info h3 {
  color: var(--brand-slate-dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-medium);
}

.partner-info p {
  color: #6476d1;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.partner-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #3269ff;
  color: var(--brand-white);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.partner-link:hover {
  background: #5A6B7D;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #5A6B7D, #10284a);
  color: var(--brand-white);
}

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

.cta-content h2 {
  font-size: var(--font-size-xxx-large);
  margin-bottom: var(--spacing-sm);
  color: #ffe54b;
}

.cta-content p {
  font-size: var(--font-size-medium);
  margin-bottom: 2rem;
  color: #fcefbd;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--brand-white);
  text-decoration: none;
  border: 2px solid #ffe54b;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffe54b;
  color: var(--brand-slate-dark);
  transform: translateY(-2px);
}


/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Page-specific header styles removed for consistency */

/* Remove any other body.home .header-logo, .header-title, .logo-text, .site-title-text swaps if present */

/* ========================================
   DEFAULT PAGE TEMPLATE STYLES
   ======================================== */

/* Default Page Layout */
.default-page {
  background: var(--brand-white);
}
/* Page Hero Section */
.page-hero {
  position: relative;
  height: 35vh;      /* Changed from 60vh */
  min-height: 250px; /* Changed from 400px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* This creates a 50% transparent black overlay */
  z-index: 2;
}

.page-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--brand-white);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero .hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: #FFFFFF; /* Changed to white */
  line-height: 1.2;
}
.page-hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  margin-bottom: 0;
  color: #fcefbd;
  line-height: 1.5;
}
/* Page Content Section */
.page-content-section {
  padding: 4rem 0;
  background: var(--brand-white);
}
.page-content-section .content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Main Content */
.main-content {
  background: var(--brand-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-content .content-text {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: 1.7;
  color: var(--brand-slate);
}

.page-content .content-text h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xx-large);
  font-weight: 700;
  color: var(--brand-slate-light);
  margin: 2rem 0 1rem;
}

.page-content .content-text h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-x-large);
  font-weight: 600;
  color: var(--brand-slate);
  margin: 1.5rem 0 0.75rem;
}

.page-content .content-text p {
  margin-bottom: var(--spacing-md);
}

.page-content .content-text ul,
.page-content .content-text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.page-content .content-text li {
  margin-bottom: var(--spacing-xs);
}

.page-content .content-text a {
  color: var(--brand-slate-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-content .content-text a:hover {
  border-bottom-color: var(--brand-slate-light);
}

/* Page Links */
.page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-slate);
}

.page-links a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--brand-slate-light);
  color: var(--brand-slate);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.page-links a:hover {
  background: #e6d400;
}

/* Sidebar Content */
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Quick Links Card */
.quick-links-card {
  background: var(--brand-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quick-links-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-md);
}

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

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: var(--brand-slate);
  transition: all 0.2s;
}

.quick-link:hover {
  background: var(--brand-slate-light);
  color: var(--brand-slate);
  transform: translateX(4px);
}

.quick-link i {
  color: var(--brand-slate-light);
  transition: color 0.2s;
}

.quick-link:hover i {
  color: var(--brand-slate);
}

/* Related Pages Card */
.related-pages-card {
  background: var(--brand-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-pages-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-md);
}

.related-pages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: var(--brand-slate);
  transition: all 0.2s;
}

.related-page-link:hover {
  background: var(--brand-slate-light);
  transform: translateX(4px);
}

.page-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
    margin-bottom: calc(var(--spacing-xs) * 0.5);
  color: inherit;
}

.page-info p {
  font-size: var(--font-size-small);
  margin: 0;
  opacity: 0.8;
}

.related-page-link i {
  color: var(--brand-slate-light);
  transition: color 0.2s;
}

.related-page-link:hover i {
  color: var(--brand-slate);
}

/* Contact CTA Card */
.contact-cta-card {
  background: linear-gradient(135deg, var(--brand-slate), #5A6B7D);
  border-radius: 16px;
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--brand-white);
}

.contact-cta-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-sm);
}

.contact-cta-card p {
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.contact-cta-card .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  background: var(--brand-slate-light);
  color: var(--brand-slate);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.2s;
}

.contact-cta-card .btn-primary:hover {
  background: #e6d400;
  transform: translateY(-2px);
}

/* Additional Content Sections */
.additional-content-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.additional-content-section:nth-child(even) {
  background: var(--brand-white);
}

.additional-content-section .section-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: var(--spacing-xl);
}

.additional-content-section .section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-sm);
}

.additional-content-section .section-header p {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  color: var(--brand-slate);
  max-width: 600px;
  margin: 0 auto;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: 1.7;
  color: var(--brand-slate);
}

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

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    height: 50vh;
    min-height: 300px;
  }
  
  .page-hero .hero-title {
    font-size: 2.2rem;
  }
  
  .page-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .page-content-section .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .main-content {
    padding: var(--spacing-md);
  }
  
  .page-content .content-text {
    font-size: 1rem;
  }
  
  .page-content .content-text h2 {
    font-size: 1.6rem;
  }
  
  .page-content .content-text h3 {
    font-size: var(--font-size-medium);
  }
  
  .additional-content-section .section-header h2 {
    font-size: 1.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .page-hero .hero-content {
    padding: 0 1rem;
  }
  
  .page-hero .hero-title {
    font-size: 1.8rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .quick-links-card,
  .related-pages-card,
  .contact-cta-card {
    padding: var(--spacing-md);
  }
}

/* All page-specific header styling removed for consistency */

.site-main {
    padding-top: 0;
}

body:not(.home) .site-main {
    padding-top: 80px;
}

/* Add padding only for non-home pages */

/* Enhanced sections with smooth transitions */
.section-enhanced {
    position: relative;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);

/* ================================================
   ARTICLE ENHANCEMENT STYLES
   ================================================ */

/* Enhanced Typography Hierarchy */
.enhanced-content {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.125rem;
    max-width: none;
}

.enhanced-content h1 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: var(--font-size-xxx-large);
    font-weight: 900;
    line-height: 1.2;
    color: #1a202c;
    margin: 3rem 0 1.5rem 0;
    letter-spacing: -0.025em;
}

.enhanced-content h2 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: var(--font-size-xx-large);
    font-weight: 800;
    line-height: 1.3;
    color: #1a202c;
    margin: 2.5rem 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.enhanced-content h3 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: var(--font-size-x-large);
    font-weight: 700;
    line-height: 1.4;
    color: #2d3748;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    letter-spacing: -0.015em;
}

.enhanced-content h4 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: var(--font-size-large);
    font-weight: 600;
    line-height: 1.5;
    color: #2d3748;
    margin: 1.75rem 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.enhanced-content h5 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #4a5568;
    margin: 1.5rem 0 0.5rem 0;
}

.enhanced-content h6 {
    font-family: var(--font-heading, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #4a5568;
    margin: 1.25rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Text Spacing and Line Heights */
.enhanced-content p {
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: #2d3748;
}

.enhanced-content p + h1,
.enhanced-content p + h2,
.enhanced-content p + h3 {
    margin-top: 3rem;
}

.enhanced-content ul,
.enhanced-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.enhanced-content li {
    margin-bottom: var(--spacing-xs);
    color: #2d3748;
}

.enhanced-content blockquote {
    margin: var(--spacing-lg) 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid #e2e8f0;
    background: #f7fafc;
    font-style: italic;
    line-height: 1.7;
    color: #4a5568;
}

/* Pull Quotes Styling */
.pull-quotes-section {
    margin: 3rem 0;
}

.pull-quote-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pull-quote {
    max-width: 600px;
    text-align: center;
    margin: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 900;
    color: #cbd5e0;
    line-height: 1;
    font-family: var(--font-heading);
}

.pull-quote .quote-text {
    font-size: var(--font-size-x-large);
    font-weight: 500;
    line-height: 1.6;
    color: #1a202c;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.pull-quote .quote-author {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    font-style: normal;
    display: block;
}

.pull-quote .quote-source {
    font-weight: 400;
    color: #718096;
}

/* Highlight Boxes Styling */
.highlight-boxes-section {
    margin: 2.5rem 0;
}

.highlight-box {
    margin: var(--spacing-lg) 0;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Highlight Box Types */
.highlight-box.info {
    background: #ebf8ff;
    border-left-color: #3182ce;
    color: #2c5282;
}

.highlight-box.success {
    background: #f0fff4;
    border-left-color: #38a169;
    color: #276749;
}

.highlight-box.warning {
    background: #fffbeb;
    border-left-color: #d69e2e;
    color: #975a16;
}

.highlight-box.error {
    background: #fed7d7;
    border-left-color: #e53e3e;
    color: #9b2c2c;
}

.highlight-box.tip {
    background: #f0fff4;
    border-left-color: #48bb78;
    color: #276749;
}

.highlight-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-large);
    margin-top: calc(var(--spacing-xs) * 0.5);
}

.highlight-box.info .highlight-icon {
    background: #3182ce;
    color: white;
}

.highlight-box.success .highlight-icon {
    background: #38a169;
    color: white;
}

.highlight-box.warning .highlight-icon {
    background: #d69e2e;
    color: white;
}

.highlight-box.error .highlight-icon {
    background: #e53e3e;
    color: white;
}

.highlight-box.tip .highlight-icon {
    background: #48bb78;
    color: white;
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: inherit;
}

.highlight-text {
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.highlight-text p:last-child {
    margin-bottom: 0;
}

.highlight-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.highlight-link:hover {
    transform: translateX(4px);
}

.highlight-link i {
    font-size: var(--font-size-small);
}
/* Responsive Typography */
@media (max-width: 768px) {
    .enhanced-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .enhanced-content h1 {
        font-size: var(--font-size-xx-large);
        margin: 2.5rem 0 1.25rem 0;
    }
    
    .enhanced-content h2 {
        font-size: 1.75rem;
        margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    }
    
    .enhanced-content h3 {
        font-size: 1.375rem;
        margin: 1.75rem 0 0.875rem 0;
    }
    
    .enhanced-content p {
        margin-bottom: var(--spacing-md);
    }
    
    .pull-quote {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .pull-quote .quote-text {
        font-size: var(--font-size-large);
    }
    
    .pull-quote::before {
        font-size: 4rem;
        top: -5px;
    }
    
    .highlight-box {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .highlight-icon {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .enhanced-content h1 {
        font-size: 1.75rem;
    }
    
    .enhanced-content h2 {
        font-size: var(--font-size-x-large);
    }
    
    .pull-quote {
        padding: 1.5rem 1rem;
    }
    
    .pull-quote .quote-text {
        font-size: 1.125rem;
    }
    
    .highlight-box {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }
}

/* ================================================
   TIMELINE/HISTORY SECTION STYLES
   ================================================ */

.timeline-section {
    margin: 4rem 0;
    padding: var(--spacing-lg) 0;
}
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 50%, #e2e8f0 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-event {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    z-index: 2;
}

.timeline-event-left {
    flex-direction: row;
}

.timeline-event-right {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: white;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-small);
    text-align: center;
    min-width: 80px;
    letter-spacing: 0.05em;
}

.timeline-content {
    width: calc(50% - 60px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #e2e8f0;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.timeline-event-left .timeline-content {
    margin-right: 60px;
}

.timeline-event-right .timeline-content {
    margin-left: 60px;
}

.timeline-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-content:hover .timeline-img {
    transform: scale(1.05);
}

.timeline-text {
    padding: 1.5rem 2rem 2rem 2rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.timeline-description {
    font-family: var(--font-body);
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

/* ================================================
   PROJECT SHOWCASE SECTION STYLES
   ================================================ */

.project-showcase-section {
    margin: 4rem 0;
    padding: var(--spacing-lg) 0;
}

.project-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 2rem;
}

.project-showcase-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.project-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-showcase-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        rgba(26, 32, 44, 0.1) 0%, 
        rgba(26, 32, 44, 0.7) 60%, 
        rgba(26, 32, 44, 0.9) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
    transition: background 0.4s ease;
}

.project-showcase-card:hover .project-overlay {
    background: linear-gradient(
        180deg, 
        rgba(26, 32, 44, 0.3) 0%, 
        rgba(26, 32, 44, 0.8) 40%, 
        rgba(26, 32, 44, 0.95) 100%
    );
}

.project-overlay-content {
    color: white;
    width: 100%;
}

.project-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-x-large);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: white;
}

.project-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-weight: 500;
}

.project-meta i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-sm) * 0.75);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-size-small);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-link-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.project-link-btn:hover i {
    transform: translateX(2px);
}

/* Responsive Timeline & Project Showcase */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-event {
        flex-direction: row !important;
        margin-bottom: var(--spacing-xl);
    }
    
    .timeline-marker {
        left: 2rem;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
        margin-right: 0 !important;
    }
    
    .timeline-text {
        padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    }
    
    .timeline-title {
        font-size: var(--font-size-large);
    }
    
    .timeline-image {
        height: 160px;
    }
    
    .project-showcase-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 1rem;
    }
    
    .project-image {
        height: 300px;
    }
    
    .project-overlay {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: var(--font-size-large);
    }
    
    .project-meta {
        gap: calc(var(--spacing-sm) * 0.75);
        margin-bottom: 1.25rem;
    }
    
    .project-meta span {
        font-size: var(--font-size-small);
    }
}

@media (max-width: 480px) {
    .timeline-line {
        left: 1.5rem;
    }
    
    .timeline-marker {
        left: 1.5rem;
    }
    
    .timeline-content {
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
    }
    
    .timeline-text {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
    
    .timeline-year {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-small);
        min-width: 70px;
    }
    
    .project-showcase-grid {
        padding: 0 0.5rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-overlay {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    .project-description {
        font-size: var(--font-size-small);
    }
    
    .project-link-btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-small);
    }
}

/* ================================================
   SMOOTH SCROLL & INTERACTIVE ELEMENTS STYLES
   ================================================ */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(26, 32, 44, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn:hover {
    background: rgba(26, 32, 44, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Table of Contents Styles */
.table-of-contents-container {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.table-of-contents {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-of-contents h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.table-of-contents h3::before {
    content: '??';
    font-size: 1rem;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
}

.toc-link {
    display: block;
    padding: 0.5rem 0;
    color: #4a5568;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    line-height: 1.5;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.3s ease;
}

.toc-link:hover {
    color: #1a202c;
    border-left-color: #e2e8f0;
    background: rgba(0, 0, 0, 0.02);
}

.toc-link.active {
    color: #1a202c;
    font-weight: 600;
    border-left-color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
}

.toc-h3 {
    padding-left: 1.5rem;
}

.toc-h4 {
    padding-left: 2.25rem;
}

/* Anchor Links */
.anchor-link {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.anchor-link:hover {
    color: #3182ce !important;
}

/* ================================================
   RELATED CONTENT SUGGESTIONS STYLES
   ================================================ */

.related-content-section {
    margin-top: 4rem;
    padding: var(--spacing-2xl) 0;
    background: var(--gray-light);
    border-top: 1px solid #e2e8f0;
}

.related-content-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.related-content-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-content-subtitle {
    font-family: var(--font-body);
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

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

.related-content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.related-content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.related-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-content-card:hover .related-thumbnail {
    transform: scale(1.05);
}

.related-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: var(--font-size-xx-large);
}

.related-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--spacing-md);
    color: white;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.related-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: var(--font-size-small);
    opacity: 0.9;
}

.related-card-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.related-card-date {
    font-family: var(--font-body);
    opacity: 0.8;
}

.related-card-content {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.related-card-title {
    margin-bottom: var(--spacing-xs);
}

.related-card-title a {
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

.related-card-title a:hover {
    color: #f7fafc;
}

.related-card-excerpt {
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-small);
}

.related-reading-time {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
}

.related-reading-time i {
    font-size: 0.75rem;
}

.related-read-more {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.related-read-more:hover {
    transform: translateX(4px);
    color: #f7fafc;
}

.related-read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.related-read-more:hover i {
    transform: translateX(2px);
}

.related-content-footer {
    text-align: center;
}
.related-content-footer .btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-sm) * 0.75);
    padding: 1rem 2rem;
    background: white;
    color: #1a202c;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.related-content-footer .btn-enhanced:hover {
    background: #1a202c;
    color: white;
    border-color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive Related Content */
@media (max-width: 768px) {
    .related-content-section {
        padding: var(--spacing-xl) 0;
    }
    
    .related-content-title {
        font-size: 1.875rem;
    }
    
    .related-content-subtitle {
        font-size: 1rem;
    }
    
    .related-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: 2rem;
    }
    
    .related-card-image {
        height: 160px;
    }
    
    .related-card-overlay {
        padding: 1.25rem;
    }
    
    .related-card-title a {
        font-size: 1rem;
    }
    
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--font-size-small);
    }
    
    .table-of-contents {
        padding: 1.25rem 1.5rem;
    }
}
@media (max-width: 480px) {
    .related-content-title {
        font-size: 1.625rem;
    }
    
    .related-content-grid {
        gap: 1.25rem;
    }
    
    .related-card-overlay {
        padding: 1rem;
    }
    
    .related-card-footer {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .back-to-top-btn {
        bottom: 1rem;
        right: 1rem;
    }
}
}

.section-enhanced.section-white {
    background: var(--brand-white);
}

.section-enhanced.section-cream {
    background: #F8F9FA;
}

/* Film page specific styles */
.film-title {
  font-family: 'Epilogue', sans-serif;
  color: var(--brand-slate-light);
  font-weight: 700;
  margin-top: 1.5rem;
  text-shadow: none;
  font-size: clamp(2rem, 4vw, 3rem);
}

.trailer-link {
  color: var(--brand-slate);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.trailer-link:hover {
  color: var(--brand-slate-light);
}


/* Film Archive Filtering */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--brand-white);
  color: var(--brand-midnight);
  border: 2px solid var(--brand-slate-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Film Cards Grid - Cinematic Poster Design */
.film-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
  margin-bottom: var(--spacing-xl);
}

.film-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.film-card:hover {
  transform: translateY(-8px);
}

/* Film Poster Container */
.film-poster-container {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.film-card:hover .film-poster-container {
  box-shadow: 0 16px 48px rgba(159, 179, 200, 0.2), 0 0 0 2px rgba(159, 179, 200, 0.3);
}

/* Film Strip Border Decoration */
.film-strip-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 8px solid #2a2a2a;
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

.film-strip-border::before,
.film-strip-border::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 12px;
  background: repeating-linear-gradient(
    to bottom,
    #2a2a2a 0px,
    #2a2a2a 8px,
    transparent 8px,
    transparent 16px
  );
}

.film-strip-border::before {
  left: -4px;
}

.film-strip-border::after {
  right: -4px;
}

/* Film Poster Image */
.film-poster {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.film-poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.film-card:hover .film-poster-image {
  transform: scale(1.05);
}

/* Poster Placeholder */
.film-poster-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-gray);
  text-align: center;
}

.film-icon {
  font-size: var(--font-size-xxx-large);
  margin-bottom: var(--spacing-sm);
  color: #9FB3C8;
}

/* Year Badge */
.film-year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(159, 179, 200, 0.95);
  color: var(--brand-midnight);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: var(--font-size-small);
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Film Overlay */
.film-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.film-card:hover .film-overlay {
  opacity: 1;
}

.film-overlay-content {
  padding: var(--spacing-lg) var(--spacing-md);
  color: var(--brand-white);
  width: 100%;
}

.film-overlay-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #9FB3C8;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

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

.director-label {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.director-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-white);
}

.film-meta-overlay {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.film-duration,
.film-category {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: var(--font-size-small);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.film-duration i {
  margin-right: 0.5rem;
}

.film-synopsis {
  font-size: var(--font-size-small);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
}

.film-details-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: #9FB3C8;
  color: var(--brand-midnight);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-small);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.film-details-btn:hover {
  background: transparent;
  color: #9FB3C8;
  border-color: #9FB3C8;
  transform: translateX(4px);
}

/* Film Info Below Poster */
.film-info {
  padding: 1.5rem 0;
  text-align: center;
}

.film-title {
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-midnight);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.film-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-year,
.meta-country,
.meta-genre {
  background: var(--gray-light);
  color: var(--brand-gray);
  padding: calc(var(--spacing-xs) * 0.5) calc(var(--spacing-sm) * 0.75);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-small);
  font-weight: 500;
}

.meta-year {
  background: #9FB3C8;
  color: var(--brand-midnight);
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 900px) {
  .film-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg) var(--spacing-md);
  }
  
  .film-overlay-content {
    padding: 1.5rem 1rem;
  }
  
  .film-overlay-title {
    font-size: var(--font-size-medium);
  }

  .category-filters {
    gap: var(--spacing-xs);
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
  }
}

@media (max-width: 600px) {
  .film-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem 1rem;
  }
  
  .film-poster-container {
    aspect-ratio: 3/4;
  }
  
  .film-overlay-content {
    padding: 1rem;
  }
  
  .film-overlay-title {
    font-size: var(--font-size-medium);
  }
  
  .film-details-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
  }
}

/* --- Unified Card Styles for Carousels --- */

/* News Section: Blue accents */
.section-news-carousel .card-enhanced {
  background: var(--brand-white);
  border: 2px solid var(--brand-slate);
  box-shadow: 0 4px 16px rgba(30,58,138,0.08);
  border-radius: var(--border-radius-lg);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.section-news-carousel .card-enhanced:hover {
  border-color: var(--brand-slate-light);
  box-shadow: 0 8px 32px rgba(30,58,138,0.16);
}
.section-news-carousel .btn-enhanced-outline {
  color: var(--brand-slate);
  border-color: var(--brand-slate);
  background: transparent;
}
.section-news-carousel .btn-enhanced-outline:hover {
  background: var(--brand-slate);
  color: var(--brand-white);
}

/* Film Section: Yellow accents */
#featured-films.section-enhanced {
  background: transparent;
}
#featured-films .card-enhanced, #featured-films .awards-style-card {
  background: #1a1a1a;
  border: 2px solid var(--brand-slate-light);
  box-shadow: 0 4px 16px rgba(159,179,200,0.08);
  border-radius: 8px;
  transition: box-shadow 0.3s, border-color 0.3s;
  width: 400px;
  height: 280px;
  aspect-ratio: 10 / 7;
}
#featured-films .card-enhanced:hover, #featured-films .awards-style-card:hover {
  border-color: var(--brand-slate-light);
  box-shadow: 0 8px 32px rgba(159,179,200,0.16);
}
#featured-films .btn-enhanced-outline {
  color: var(--brand-slate-light);
  border-color: var(--brand-slate-light);
  background: transparent;
}
#featured-films .btn-enhanced-outline:hover {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
}

/* Workshop Section: Cream accents */
#featured-workshops.section-enhanced {
  background: var(--gradient-workshops);
}
#featured-workshops .card-enhanced {
  background: var(--brand-white);
  border: 2px solid var(--brand-cream);
  box-shadow: 0 4px 16px rgba(254,254,254,0.08);
  border-radius: var(--border-radius-lg);
  transition: box-shadow 0.3s, border-color 0.3s;
}
#featured-workshops .card-enhanced:hover {
  border-color: var(--brand-slate);
  box-shadow: 0 8px 32px rgba(254,254,254,0.16);
}
#featured-workshops .btn-enhanced-outline {
  color: var(--brand-slate-dark);
  border-color: var(--brand-cream);
  background: transparent;
}
#featured-workshops .btn-enhanced-outline:hover {
  background: var(--brand-cream);
  color: var(--brand-slate-dark);
}

/* Card Content Container */
.card-enhanced-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card Content & Typography */
.card-enhanced-title, .awards-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-large);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--brand-midnight);
}
.card-enhanced-excerpt, .awards-card-excerpt {
  font-size: var(--font-size-normal);
  color: var(--brand-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}
.card-enhanced-meta, .awards-card-meta {
  font-size: var(--font-size-small);
  color: var(--gray-medium);
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.card-enhanced-actions {
  margin-top: auto;
  padding-top: var(--spacing-xs);
  display: flex;
  gap: var(--spacing-xs);
}

/* Card Images */
.card-enhanced-image, .awards-card-image {
  position: relative;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-light);
}
.card-enhanced-image img, .awards-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.card-enhanced:hover .card-enhanced-image img,
.awards-style-card:hover .awards-card-image img {
  transform: scale(1.04);
}

/* Overlay for images */
.card-enhanced-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,0.08) 0%,rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

/* Section Headers */
.section-header h2, .section-title-centered {
  font-family: var(--font-heading);
  font-size: clamp(var(--font-size-x-large), 4vw, var(--font-size-xx-large));
  font-weight: 800;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
}
.section-header p, .section-subtitle {
  font-size: var(--font-size-medium);
  color: var(--gray-medium);
  margin-bottom: var(--spacing-lg);
}

/* Responsive adjustments */
/* Note: Removed conflicting responsive constraints that were overriding rectangular card sizes */
@media (max-width: 768px) {
  .section-header h2, .section-title-centered {
    font-size: var(--font-size-x-large);
  }
  
  .section-title-centered {
    margin-top: var(--spacing-sm);
  }
}

/* Button enhancements */
.btn-enhanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) calc(var(--spacing-md) * 0.83);
  font-family: var(--font-heading);
  font-size: var(--font-size-normal);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-enhanced-outline {
  background: transparent;
  border: 2px solid var(--brand-slate);
  color: var(--brand-slate);
}
.btn-enhanced-outline:hover {
  background: var(--brand-slate);
  color: var(--brand-white);
}
.btn-enhanced-primary {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  border-color: var(--brand-slate-light);
}
.btn-enhanced-primary:hover {
  background: var(--brand-midnight);
  color: var(--brand-slate-light);
  border-color: var(--brand-midnight);
}
.btn-enhanced-sm {
  font-size: var(--font-size-small);
  padding: calc(var(--spacing-xs) * 0.8) var(--spacing-sm);
}
.btn-enhanced-lg {
  font-size: var(--font-size-medium);
  padding: var(--spacing-md) var(--spacing-xl);
}

/* Film Lightbox System */
.film-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.film-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.film-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10;
}

.film-projector-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.film-projector-frame img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.film-projector-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="white"/><circle cx="80" cy="70" r="1" fill="white"/><circle cx="45" cy="10" r="0.5" fill="white"/><circle cx="60" cy="90" r="0.8" fill="white"/></svg>');
  pointer-events: none;
}

.film-lightbox-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.film-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-x-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.film-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.film-frame-info {
  text-align: center;
  color: white;
  font-family: 'Courier New', monospace;
}

.film-frame-counter {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
}

.film-timestamp {
  font-size: var(--font-size-small);
  opacity: 0.7;
}
.film-lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-xx-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.film-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .film-lightbox-controls {
    bottom: -80px;
    padding: 0.75rem 1.5rem;
    gap: var(--spacing-sm);
  }
  
  .film-nav-btn {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-medium);
  }
  
  .film-frame-counter {
    font-size: var(--font-size-small);
  }
  
  .film-lightbox-close {
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    font-size: var(--font-size-x-large);
  }
}

/* Workshop Lightbox System */
.workshop-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}
.workshop-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.workshop-lightbox-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.workshop-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-x-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.workshop-session-info {
  text-align: center;
  color: white;
  font-family: 'Courier New', monospace;
}

.workshop-lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-xx-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Workshop Swiper Carousel */
.workshop-carousel-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

/* Title styles removed since Workshop Gallery title was removed */

.workshop-swiper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  overflow: visible;
}

.workshop-swiper .swiper-slide {
  width: auto;
  max-width: 420px;
  margin-right: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.workshop-swiper .swiper-slide:hover {
  transform: scale(1.02);
}

.workshop-photo-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(90, 107, 125, 0.12), 0 2px 8px rgba(90, 107, 125, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.workshop-photo-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(90, 107, 125, 0.25), 0 8px 24px rgba(90, 107, 125, 0.15);
}

.workshop-photo-card .photo-frame {
  position: relative;
  overflow: hidden;
}

.workshop-photo-card .photo-frame img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1) contrast(1.05);
}

.workshop-photo-card:hover .photo-frame img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1);
}

.workshop-photo-card .photo-caption {
  padding: var(--spacing-lg) var(--spacing-md);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
  position: relative;
}

.workshop-photo-card .photo-caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-slate-light) 0%, var(--brand-slate) 100%);
}

.workshop-photo-card .session-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-small);
  font-weight: 800;
  color: var(--brand-slate-dark);
  letter-spacing: 1.2px;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.workshop-photo-card .caption-text {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  font-style: italic;
  font-weight: 400;
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workshop-photo-card:focus {
  outline: 3px solid var(--brand-slate-light);
  outline-offset: 3px;
  box-shadow: 0 20px 60px rgba(90, 107, 125, 0.25), 0 8px 24px rgba(90, 107, 125, 0.15);
  transform: translateY(-12px) scale(1.02);
}

.workshop-photo-card:focus-visible {
  outline: 3px solid var(--brand-slate-light);
  outline-offset: 3px;
}

.workshop-swiper .swiper-button-next:focus,
.workshop-swiper .swiper-button-prev:focus {
  outline: 3px solid var(--brand-slate-light);
  outline-offset: 2px;
}

.workshop-pagination .swiper-pagination-bullet:focus {
  outline: 2px solid var(--brand-slate-light);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .workshop-photo-card {
    border: 2px solid #000;
  }
  
  .workshop-photo-card:hover,
  .workshop-photo-card:focus {
    border-color: var(--brand-slate-light);
    background: var(--brand-white);
  }
  
  .workshop-swiper .swiper-button-next,
  .workshop-swiper .swiper-button-prev {
    border: 2px solid #000;
    background: var(--brand-white);
    color: var(--brand-midnight);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .workshop-photo-card,
  .workshop-photo-card .photo-frame img,
  .workshop-swiper .swiper-button-next,
  .workshop-swiper .swiper-button-prev {
    transition: none;
    animation: none;
  }
  
  .workshop-photo-card:hover {
    transform: none;
  }
  
  .workshop-photo-card:hover .photo-frame img {
    transform: none;
    filter: none;
  }
}

/* Workshop Navigation Arrows - Matching Screening Carousel */
.workshop-swiper .swiper-button-next,
.workshop-swiper .swiper-button-prev {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid white;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.workshop-swiper .swiper-button-next {
  right: 10px;
}

.workshop-swiper .swiper-button-prev {
  left: 10px;
}

.workshop-swiper .swiper-button-next:after,
.workshop-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.workshop-swiper .swiper-button-next:hover,
.workshop-swiper .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.workshop-swiper .swiper-button-next.swiper-button-disabled,
.workshop-swiper .swiper-button-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Style plain images in workshop slides - Matching Screening */
.workshop-swiper .swiper-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}


/* Workshop Pagination Dots - Completely Hidden */
.workshop-carousel-section .workshop-pagination {
  display: none !important;
}

.workshop-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 6px;
}

.workshop-pagination .swiper-pagination-bullet-active {
  background: #5A6B7D;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(90, 107, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .workshop-swiper {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .workshop-swiper .swiper-slide {
    max-width: 380px;
  }
  
  .workshop-swiper .swiper-button-next,
  .workshop-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .workshop-swiper .swiper-button-next {
    right: 5px;
  }
  
  .workshop-swiper .swiper-button-prev {
    left: 5px;
  }
}

@media (max-width: 768px) {
  .workshop-carousel-section {
    padding: var(--spacing-lg) 0;
  }
  
  .workshop-swiper {
    padding: 0 50px;
  }
  
  .workshop-swiper .swiper-slide {
    max-width: 320px;
    margin-right: 1.5rem;
  }
  
  .workshop-photo-card .photo-frame img {
    height: 240px;
  }
  
  .workshop-photo-card .photo-caption {
    padding: 1.5rem 1rem;
  }
  
  .workshop-swiper .swiper-button-next,
  .workshop-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .workshop-swiper .swiper-button-next {
    right: 5px;
  }
  
  .workshop-swiper .swiper-button-prev {
    left: 5px;
  }
}

@media (max-width: 480px) {
  .workshop-carousel-section {
    padding: var(--spacing-lg) 0;
  }
  
  .workshop-swiper {
    padding: 0 40px;
  }
  
  .workshop-swiper .swiper-slide {
    max-width: 300px;
    margin-right: 1rem;
  }
  
  .workshop-photo-card .photo-frame img {
    height: 220px;
  }
  
  .workshop-photo-card .photo-caption {
    padding: 1.25rem 0.75rem;
  }
  
  .workshop-swiper .swiper-button-next,
  .workshop-swiper .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
}

/* Workshop People Section */
.workshop-people-section {
  background: #f8fafc;
  padding: 3rem 0;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.people-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.people-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 6px 24px rgba(90, 107, 125, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

.people-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(90, 107, 125, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.people-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(159, 179, 200, 0.9) 0%, rgba(90, 107, 125, 0.9) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-medium);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(90, 107, 125, 0.15);
}

.people-card-content h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--brand-slate-dark);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.people-card-content p {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .workshop-people-section {
    padding: var(--spacing-lg) 0;
  }
  
  .people-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .people-card {
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .people-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .people-card-content h4 {
    font-size: 1rem;
  }
  
  .people-card-content p {
    font-size: var(--font-size-small);
  }
}

@media (max-width: 480px) {
  .people-card {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .people-card-icon {
    align-self: center;
  }
}

/* ========================================
   CINEMA PREMIERE GALLERY - THEATER EXPERIENCE
   ======================================== */

/* Cinema Premiere Section */
.cinema-premiere-section {
  background: var(--gradient-premiere-modern) !important;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cinema-premiere-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af37" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>');
  pointer-events: none;
}

/* Theater Curtain Animation */
.theater-curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: none;
}

.theater-curtain.active {
  display: block;
  animation: curtainReveal 5s ease-in-out forwards;
}

.curtain-left, .curtain-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--brand-slate) 0%, var(--brand-slate-light) 50%, var(--brand-slate) 100%);
  border: 3px solid var(--brand-slate-light);
  box-shadow: inset 0 0 30px rgba(75, 85, 99, 0.3);
}

.curtain-left {
  left: 0;
  transform-origin: right center;
}

.curtain-right {
  right: 0;
  transform-origin: left center;
}

.theater-curtain.active .curtain-left {
  animation: curtainLeft 5s ease-in-out forwards;
}

.theater-curtain.active .curtain-right {
  animation: curtainRight 5s ease-in-out forwards;
}

.spotlight-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 100%);
  border-radius: 50%;
  animation: spotlightPulse 2s ease-in-out infinite alternate;
}

/* Red Carpet Container */
.red-carpet-container {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 20%, #8B0000 100%);
  padding: 4rem 0;
  position: relative;
}

.red-carpet-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
  box-shadow: 0 2px 10px rgba(218, 165, 32, 0.5);
}

/* Premiere Stage */
.premiere-stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.premiere-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 4rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.02em;
  position: relative;
}

.premiere-title::after {
  content: '??';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-xx-large);
  animation: filmReel 3s linear infinite;
}

.premiere-title::before {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #DAA520 20%, #FFD700 50%, #DAA520 80%, transparent 100%);
  border-radius: 2px;
}

/* Red Carpet Photos Grid */
.red-carpet-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.red-carpet-photos.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Individual Premiere Photos */
.premiere-photo {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 5px 20px rgba(218, 165, 32, 0.1);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  border: 2px solid #DAA520;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.premiere-photo.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: redCarpetEntrance 0.8s ease forwards;
}

.premiere-photo:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
}

.premiere-photo.vip-moment {
  border-color: #FFD700;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 5px 20px rgba(255, 215, 0, 0.3);
}

.premiere-photo.vip-moment::before {
  content: '? VIP';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
  color: var(--brand-midnight);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: var(--font-size-small);
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cinema Frame */
.cinema-frame {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cinema-frame img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.9) contrast(1.1) sepia(0.1);
}
.premiere-photo:hover .cinema-frame img {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.2) sepia(0.2);
}

/* Brand Spotlight Effect */
.golden-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.premiere-photo:hover .golden-spotlight {
  opacity: 1;
}

/* Premiere Caption */
.premiere-caption {
  padding: var(--spacing-lg) var(--spacing-md);
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  text-align: center;
  position: relative;
}

.premiere-caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
}

.moment-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-small);
  font-weight: 800;
  color: #FFD700;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  margin-top: 0.5rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.premiere-caption-text {
  font-size: var(--font-size-medium);
  color: #E5E5E5;
  line-height: 1.7;
  font-style: italic;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* Empty Gallery States */
.premiere-gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #FFD700;
}
.empty-theater-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: theatricPulse 2s ease-in-out infinite alternate;
}

.premiere-gallery-empty p {
  font-size: var(--font-size-medium);
  font-style: italic;
  color: #E5E5E5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Accessibility Enhancements for Cinema Gallery */
.premiere-photo:focus {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-15px) scale(1.03);
  border-color: #FFD700;
}

.premiere-photo:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}

/* Keyframe Animations */
@keyframes curtainReveal {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes curtainLeft {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes curtainRight {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes spotlightPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

@keyframes filmReel {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes redCarpetEntrance {
  0% { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95) rotateX(10deg); 
  }
  50% { 
    opacity: 0.7; 
    transform: translateY(-5px) scale(1.02) rotateX(0deg); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1) rotateX(0deg); 
  }
}

@keyframes theatricPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Responsive Design for Cinema Gallery */
@media (max-width: 1024px) {
  .premiere-stage {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .red-carpet-photos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }
  
  .premiere-title {
    font-size: var(--font-size-xxx-large);
    margin-bottom: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .cinema-premiere-section {
    padding: var(--spacing-2xl) 0;
  }
  
  .red-carpet-container {
    padding: var(--spacing-xl) 0;
  }
  
  .premiere-stage {
    padding: 0 1.5rem;
  }
  
  .premiere-title {
    font-size: var(--font-size-xx-large);
    margin-bottom: 2.5rem;
  }
  
  .premiere-title::after {
    font-size: var(--font-size-x-large);
    top: -0.8rem;
  }
  
  .red-carpet-photos {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .premiere-photo {
    border-radius: 16px;
  }
  
  .cinema-frame img {
    height: 280px;
  }
  
  .premiere-caption {
    padding: 1.5rem 1rem;
  }
  
  .premiere-caption-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cinema-premiere-section {
    padding: var(--spacing-xl) 0;
  }
  
  .red-carpet-container {
    padding: 2.5rem 0;
  }
  
  .premiere-stage {
    padding: 0 1rem;
  }
  
  .premiere-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .premiere-title::before {
    width: 80px;
  }
  
  .red-carpet-photos {
    gap: 1.5rem;
  }
  
  .premiere-photo {
    border-radius: 12px;
    border-width: 1px;
  }
  
  .cinema-frame img {
    height: 250px;
  }
  
  .premiere-caption {
    padding: 1.25rem 0.75rem;
  }
  
  .moment-number {
    font-size: var(--font-size-small);
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
  }
  
  .premiere-caption-text {
    font-size: var(--font-size-small);
    line-height: 1.6;
  }
  
  .empty-theater-icon {
    font-size: var(--font-size-xxx-large);
    margin-bottom: var(--spacing-sm);
  }
  
  .premiere-gallery-empty p {
    font-size: 1rem;
  }
  
  .premiere-photo.vip-moment::before {
    top: 10px;
    right: 10px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* High contrast and reduced motion support */
@media (prefers-contrast: high) {
  .premiere-photo {
    border: 3px solid #FFD700;
  }
  
  .premiere-photo:hover,
  .premiere-photo:focus {
    border-color: #FFF;
    background: #000;
  }
  
  .premiere-title {
    color: #FFF;
    text-shadow: 2px 2px 4px #000;
  }
  
  .moment-number {
    color: #FFF;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premiere-photo,
  .cinema-frame img,
  .golden-spotlight,
  .theater-curtain,
  .spotlight-effect {
    transition: none;
    animation: none;
  }
  
  .premiere-photo:hover {
    transform: none;
  }
  
  .premiere-photo:hover .cinema-frame img {
    transform: none;
    filter: brightness(0.9) contrast(1.1) sepia(0.1);
  }
  
  .premiere-photo.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none;
  }
}

/* Cinema/Screening Lightbox System */
.cinema-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.cinema-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-lightbox-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.cinema-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-x-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.premiere-moment-info {
  text-align: center;
  color: white;
  font-family: 'Courier New', monospace;
}

.cinema-lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-xx-large);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Film page section background adjustments for smooth transitions */
/* Fix film hero layout - remove white gap */
.film-cover-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.film-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.film-cover-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.film-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.film-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
}

.film-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.film-hero-subtitle {
    font-size: var(--font-size-x-large);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Single Film Page Hero Styles */
.single-film .film-cover-hero {
    height: 500px;
    max-height: 500px;
    background: #1a1a1a;
}

.single-film .film-cover-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-film .film-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    z-index: 2;
    top: auto;
    height: auto;
}

.single-film .film-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    height: auto;
    padding: 0;
}

.single-film .film-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.single-film .film-hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.5;
}

.single-film .film-hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-sm) * 0.75);
    justify-content: center;
}

.single-film .film-hero-genre-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
    font-weight: 600;
    transition: all 0.3s ease;
}

.single-film .film-hero-genre-tag a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.single-film .film-hero-genre-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .film-cover-hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .single-film .film-cover-hero {
        height: 400px;
        max-height: 400px;
    }
    
    .single-film .film-hero-overlay {
        padding: 3rem 0 2rem 0;
    }
    
    .single-film .film-hero-content {
        padding: 0 1rem;
    }
    
    .single-film .film-hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .film-hero-title {
        font-size: var(--font-size-xxx-large);
    }
    
    .film-hero-subtitle {
        font-size: var(--font-size-medium);
    }
}

@media (max-width: 480px) {
    .single-film .film-cover-hero {
        height: 350px;
        max-height: 350px;
    }
    
    .single-film .film-hero-overlay {
        padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    }
    
    .single-film .film-hero-content {
        padding: 0 1rem;
    }
}

/* Enhanced Film Hero Spacing Section */
.film-hero-spacing {
  background: var(--gradient-film-hero-spacing);
  height: 4rem;
}

@media (max-width: 768px) {
  .film-hero-spacing {
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .film-hero-spacing {
    height: 2rem;
  }
}

/* Film Archive Hero with Slideshow */
.film-archive-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.slideshow-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slideshow-background .slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slideshow-background .slide-image.active {
  opacity: 0.7;
}

.film-archive-hero .film-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-archive-hero .film-hero-content {
  text-align: center !important;
  color: #ffffff;
  max-width: 800px;
  padding: 0 2rem;
}

.film-archive-hero .film-hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  line-height: 1.1;
  text-align: center !important; /* Explicit centering to prevent host environment conflicts */
}

.film-archive-hero .hero-subtitle {
  font-size: var(--font-size-x-large);
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .film-archive-hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .film-archive-hero .film-hero-title {
    font-size: var(--font-size-xxx-large);
  }
  
  .film-archive-hero .hero-subtitle {
    font-size: var(--font-size-medium);
  }
}


.post-type-archive-film .section,
.archive.post-type-archive-film .section {
  width: 100%;
  margin: 0;
}


.post-type-archive-film .work-categories .container,
.archive.post-type-archive-film .work-categories .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Content container for film archive - constrains content while keeping sections full width */
.post-type-archive-film .content-container,
.archive.post-type-archive-film .content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.film-stills-section {
  background: var(--gradient-film-stills);
  position: relative;
}

.film-quotes-section {
  background: var(--gradient-film-quotes);
  position: relative;
}

/* Ensure sections blend with body background */
[data-section="film-meta"] {
  background: var(--gradient-film-meta);
}

[data-section="related-films"] {
  background: var(--gradient-related-films);
}

/* Workshop page section background adjustments for smooth transitions */
[data-section="workshop-hero"] {
  background: var(--gradient-workshop-hero);
  padding: 4rem 0;
}

[data-section="workshop-content"] {
  background: var(--gradient-workshop-content);
  padding: 4rem 0;
}

[data-section="workshop-people"] {
  background: var(--gradient-workshop-people);
  padding: 4rem 0;
}

[data-section="workshop-participants"] {
  background: var(--gradient-workshop-people);
  padding: 3rem 0;
  border-radius: 12px;
    margin: var(--spacing-lg) 0;
  box-shadow: 0 4px 20px rgba(90, 107, 125, 0.08);
}

[data-section="workshop-gallery"] {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem 0;
  margin-bottom: 0;
}

[data-section="workshop-related"] {
  background: var(--gradient-workshop-related);
  padding: 4rem 0;
}

[data-section="workshop-related"] .section-title,
[data-section="workshop-related"] h2 {
  color: #FFFFFF;
  text-align: center;
}

[data-section="workshop-related"] .btn-enhanced {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

[data-section="workshop-related"] .btn-enhanced:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
/* --- Screening Page Background Gradients --- */

/* Screening Hero Section */
.hero.screening-hero {
  background: var(--gradient-screening-hero) !important;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero.screening-hero .hero-background {
  opacity: 0.1;
  transition: opacity 0.8s ease-in-out;
}

.hero.screening-hero .hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero.screening-hero h1 {
  color: var(--brand-midnight) !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero.screening-hero .hero-subtitle {
  color: var(--brand-slate-dark) !important;
  font-size: var(--font-size-medium);
  font-weight: 500;
  opacity: 0.9;
}

/* Screening Content Sections */
.section-white[data-section*="screening"] {
  background: var(--gradient-screening-content) !important;
  padding: 4rem 0;
}

/* Screening Sidebar Container */
.screening-sidebar {
  background: var(--gradient-screening-sidebar) !important;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
}

/* Single Screening Layout */
.screening-layout-grid {
  align-items: flex-start;
}
.screening-main-column {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.screening-sidebar-column {
  grid-column: span 4;
}
.screening-description .description-content,
.screening-additional-info .info-content {
  line-height: 1.7;
  color: var(--gray-dark);
}

/* Screening Details Grid Enhancement */
.screening-panel {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.screening-panel h2,
.screening-panel h3 {
  color: var(--brand-midnight) !important;
  font-weight: 600;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .screening-main-column,
  .screening-sidebar-column {
    grid-column: span 12;
  }

  .screening-main-column {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .screening-panel {
    padding: var(--spacing-lg);
  }
}

/* Film Hero (screening-hero style with modifications) */
.hero.film-hero {
  background: var(--gradient-screening-hero) !important;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero.film-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero.film-hero .hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  margin: 0 auto 4rem auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero.film-hero h1 {
  color: var(--brand-midnight) !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero.film-hero .hero-subtitle {
  color: var(--brand-slate-dark) !important;
  font-size: var(--font-size-medium);
  font-weight: 500;
  opacity: 0.9;
}

/* Film Layout (matching screening structure) */
.film-layout-grid {
  align-items: flex-start;
}

.film-main-column {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.film-sidebar-column {
  grid-column: span 4;
}

.film-panel {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.film-panel h2,
.film-panel h3 {
  color: var(--brand-midnight) !important;
  font-weight: 600;
  margin-bottom: 2rem;
}

.film-synopsis-section .synopsis-content,
.film-restoration-section .restoration-content {
  line-height: 1.7;
  color: var(--gray-dark);
}

/* Credits Grid */
.film-credits-section .credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 2rem;
}

.film-credits-section .credit-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.film-credits-section .credit-item:last-child {
  border-bottom: none;
}

.film-credits-section .credit-item strong {
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.film-credits-section .credit-item span {
  text-align: right;
  flex: 1;
}

@media (max-width: 1024px) {
  .film-main-column,
  .film-sidebar-column {
    grid-column: span 12;
  }

  .film-main-column {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .film-panel {
    padding: var(--spacing-lg);
  }
  
  .film-credits-section .credits-grid {
    grid-template-columns: 1fr;
  }
}

.details-grid .detail-item {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.details-grid .detail-item:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.details-grid .detail-item i {
  color: var(--brand-slate) !important;
}

.details-grid .detail-item strong {
  color: var(--brand-midnight) !important;
}

/* Film Information Card Enhancement */
.film-information {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.film-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.film-card:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Add subtle section dividers */
.section-enhanced:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-slate-light), transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}

/* --- Global Section Backgrounds & Spacing --- */
.section-white {
  background: linear-gradient(135deg, var(--brand-white) 0%, #f8f9fa 100%);
  color: var(--brand-midnight);
  padding: 4rem 0;
}
.section-cream {
  background: linear-gradient(135deg, var(--brand-cream) 0%, #F8F9FA 100%);
  color: var(--brand-midnight);
  padding: 4rem 0;
}
.section-dark {
  background: linear-gradient(135deg, var(--brand-midnight) 0%, #1a1a2e 100%);
  color: var(--brand-white);
  padding: 4rem 0;
}
.section-gradient {
  background: linear-gradient(135deg, var(--brand-slate-light) 0%, var(--brand-slate) 100%);
  color: var(--brand-white);
  padding: 4rem 0;
}
/* Removed redundant section margin - sections have adequate padding */

/* --- Archive & Grid Styles --- */
.work-grid, .news-grid, .workshops-grid, .upcoming-workshops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: 2.5rem;
}
.work-item, .news-card, .workshop-card, .upcoming-workshop-card, .related-news-item, .related-workshops-section, .related-screening {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px rgba(16,40,74,0.08);
  border: 1.5px solid #ececec;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md) var(--spacing-md);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
}
.work-item:hover, .news-card:hover, .workshop-card:hover, .upcoming-workshop-card:hover {
  border-color: var(--brand-slate-light);
  box-shadow: 0 8px 32px rgba(159,179,200,0.16);
  transform: translateY(-4px) scale(1.03);
}

/* --- Sidebar Card Styles --- */
.film-sidebar .sidebar-section, .news-sidebar .share-section, .news-sidebar .related-news-section, .workshop-sidebar .workshop-details-card, .workshop-sidebar .registration-section, .workshop-sidebar .related-workshops-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(90, 107, 125, 0.12);
  border: 1px solid rgba(159, 179, 200, 0.15);
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.workshop-sidebar .workshop-details-card:hover,
.workshop-sidebar .registration-section:hover {
  box-shadow: 0 8px 32px rgba(90, 107, 125, 0.16);
  border-color: rgba(159, 179, 200, 0.25);
  transform: translateY(-2px);
}

/* Remove yellow border from workshop sidebar cards */
.workshop-sidebar .workshop-details-card,
.workshop-sidebar .registration-section,
.workshop-sidebar .related-workshops-section {
  border-left: none;
}

/* More compact padding for film details specifically */
.film-sidebar .sidebar-section {
   max-width: 22rem;     /* prevents the card from stretching too wide */
	padding: 1.25rem 1.5rem;
}
.film-sidebar .sidebar-section h4, .news-sidebar h4, .workshop-sidebar h3, .workshop-sidebar h4 {
  font-family: var(--font-heading);
  color: var(--brand-slate-light);
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-sm);
}

/* Override Film Details heading color to black */
.film-sidebar .sidebar-section h4 {
  color: #000000;
}

/* Override Credits heading color to black */
.film-credits .section-title-centered {
  color: #000000;
}

/* ========================================
   SINGLE NEWS PAGE STYLES
   ======================================== */

/* News Hero Section */
.news-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.news-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 2;
}

.news-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--brand-white);
  max-width: 800px;
  padding: 0 2rem;
}

.news-hero .news-badge {
  display: inline-block;
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-hero .hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--brand-white);
}

.news-hero .single-meta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  font-size: 1rem;
  opacity: 0.9;
}

.news-hero .single-meta span {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.news-hero .single-meta i {
  opacity: 0.8;
}

/* Responsive News Hero */
@media (max-width: 768px) {
  .news-hero {
    height: 50vh;
    min-height: 300px;
  }
  
  .news-hero .hero-title {
    font-size: var(--font-size-xx-large);
  }
  
  .news-hero .single-meta {
    flex-direction: column;
    gap: calc(var(--spacing-sm) * 0.75);
  }
  
  .news-hero .hero-content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .news-hero .hero-title {
    font-size: 1.75rem;
  }
  
  .news-hero .news-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* News Content Grid Layout */
.news-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

/* Main News Content */
.news-main-content {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-article {
  max-width: none;
}

.article-content {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-heading);
  color: var(--brand-midnight);
  margin-top: 2rem;
  margin-bottom: var(--spacing-sm);
}

.article-content p {
  margin-bottom: var(--spacing-md);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

/* News Sidebar */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-buttons .btn-enhanced {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.share-buttons .btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Related News Items */
.related-news-item h5 {
  margin-bottom: var(--spacing-xs);
}

.related-news-item h5 a {
  color: var(--brand-midnight);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.related-news-item h5 a:hover {
  color: var(--brand-slate);
}

.related-news-item p {
  color: var(--gray-medium);
  font-size: var(--font-size-small);
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .news-content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .news-main-content {
    padding: var(--spacing-lg);
  }
  
  .news-sidebar {
    order: -1; /* Move sidebar above content on smaller screens */
  }
}

@media (max-width: 768px) {
  .news-content-grid {
    margin-top: 1rem;
    gap: 1.5rem;
  }
  
  .news-main-content {
    padding: var(--spacing-md);
  }
  
  .article-content {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .share-buttons .btn-enhanced {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .news-main-content {
    padding: 1rem;
  }
  
  .single-news-content .container {
    padding: 0 1rem;
  }
}

/* --- Related Content --- */
.related-news-section, .related-workshops-section, .related-screenings {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 10px rgba(16,40,74,0.08);
  border: 1px solid #e0e0e0;
  padding: var(--spacing-lg);
  margin-bottom: 2rem;
}
.related-news-item, .related-workshop-item, .related-screening {
  margin-bottom: var(--spacing-md);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.related-news-item:last-child, .related-workshop-item:last-child, .related-screening:last-child {
  border-bottom: none;
}

/* --- Headings & Meta --- */
/* Separated selectors to prevent alignment conflicts across hosting environments */
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  text-align: center !important; /* Explicit centering for hero titles */
}

.archive-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  text-align: center !important; /* Explicit centering for archive hero titles */
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  text-align: center !important; /* Explicit centering for section headers */
}

.section-title-centered {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  text-align: center !important; /* Already centered by class name, reinforced */
}

.section-title-enhanced {
  font-family: var(--font-heading);
  font-size: var(--font-size-xxx-large);
  font-weight: 800;
  color: var(--brand-slate-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  text-align: center !important; /* Explicit centering for enhanced titles */
}
.hero-subtitle, .section-header p, .section-subtitle, .section-subtitle-enhanced {
  font-size: 1.15rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
}
.single-meta, .news-details, .workshop-details {
  font-size: 1.05rem;
  color: var(--gray-medium);
  margin-bottom: var(--spacing-md);
}

/* --- Buttons & Filters --- */
.filter-btn {
  background: var(--brand-cream);
  color: var(--brand-midnight);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: var(--spacing-xs);
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
}

/* --- Pagination --- */
.pagination, .pagination-wrapper {
  margin-top: 2.5rem;
  text-align: center;
}
.pagination a, .pagination span, .pagination-wrapper a, .pagination-wrapper span {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  background: var(--brand-cream);
  color: var(--brand-midnight);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.pagination a:hover, .pagination .current, .pagination-wrapper a:hover, .pagination-wrapper .current {
  background: var(--brand-slate-light);
  color: var(--brand-midnight);
}
/* ========================================
   CONSOLIDATED CRITICAL FIXES - NO !IMPORTANT
   Modern, clean implementation
   ======================================== */

/* Duplicate header CSS removed - using original header styles only */


/* Missing CSS classes for JavaScript menu states */
.navigation-active {
  overflow: hidden;
}

.navigation-active .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock when menu is open - prevent position shifts */
body.menu-open {
  overflow: hidden;
  /* Remove position: fixed to prevent layout shifts */
  height: 100vh; /* Lock viewport height instead */
}

/* ========================================
   MODERN GALLERY SYSTEMS - CINEMATIC EXPERIENCES
   ======================================== */

/* Films Gallery - Filmstrip Experience */
.films-carousel, .films-grid {
  position: relative;
  background: #1a1a1a;
  padding: var(--spacing-lg);
  border-radius: 12px;
  overflow: hidden;
}

.films-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 15px,
    #333 15px, #333 20px
  );
  z-index: 1;
}
.films-carousel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 15px,
    #333 15px, #333 20px
  );
  z-index: 1;
}
/* Film Cards - Cinema Frame Styling */
.film-card.awards-style-card {
  background: #1a1a1a;
  border: 2px solid var(--brand-slate-light);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform-origin: center;
  width: 400px;
  height: 280px;
  aspect-ratio: 10 / 7;
  display: flex;
  flex-direction: column;
}


/* Film Frame Hover Effects */
.film-card.awards-style-card:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 30px rgba(159, 179, 200, 0.3);
  border-color: var(--brand-slate-light);
}

/* Film Grain Texture Effect */
.awards-card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Film Year Badge - Vintage Style */
.film-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #9FB3C8;
  padding: 0.3rem 0.6rem;
  font-size: var(--font-size-small);
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #9FB3C8;
  font-family: 'Courier New', monospace;
  z-index: 3;
}

/* Cinema Mode - Fullscreen Experience */
.cinema-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.cinema-mode.active {
  opacity: 1;
  visibility: visible;
}

.cinema-mode .film-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

/* Film Projector Loading Animation */
@keyframes filmReel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.film-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top: 4px solid #9FB3C8;
  border-radius: 50%;
  animation: filmReel 1s linear infinite;
}

/* Parallax Scrolling for Film Sections */
.films-section {
  position: relative;
  overflow: hidden;
}

.films-background {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  transform: translateZ(0);
  will-change: transform;
}

/* Modern Visual Effects */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.magnetic-hover {
  transition: transform 0.3s ease;
  will-change: transform;
}

.magnetic-hover:hover {
  transform: scale(1.02) translateY(-5px);
}

/* Scroll-triggered Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SCREENINGS GALLERY - TIMELINE EXPERIENCE
   ======================================== */

/* Timeline Horizontal Scroll */
.screenings-timeline {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--spacing-lg) 0;
  gap: var(--spacing-lg);
  background: linear-gradient(135deg, #708090 0%, #5A6B7D 100%);
  border-radius: 12px;
}

.screenings-timeline::-webkit-scrollbar {
  height: 8px;
}

.screenings-timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.screenings-timeline::-webkit-scrollbar-thumb {
  background: #9FB3C8;
  border-radius: 4px;
}

/* Timeline Event Cards */
.timeline-event {
  min-width: 300px;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-event:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #9FB3C8;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #9FB3C8;
  border-radius: 50%;
  border: 3px solid #708090;
}

/* Timeline Event Content */
.timeline-event-image {
  width: 100%;
  height: 200px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.timeline-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-event:hover .timeline-event-image img {
  transform: scale(1.1);
}

.timeline-event-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #9FB3C8;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: var(--font-size-small);
  font-weight: 700;
}

.timeline-event-title {
  color: var(--brand-white);
  font-size: var(--font-size-medium);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-event-location {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-sm);
}

.timeline-venue-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #9FB3C8;
  color: #9FB3C8;
  text-decoration: none;
  border-radius: 20px;
  font-size: var(--font-size-small);
  transition: all 0.3s ease;
}

.timeline-venue-link:hover {
  background: #9FB3C8;
  color: #708090;
  transform: scale(1.05);
}

/* ========================================
   MAP STYLING - CLEAN LEAFLET
   ======================================== */

/* Remove Leaflet Attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* Custom Map Container */
#leaflet-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Custom Marker Styling */
.custom-screening-marker {
  background: transparent;
  border: none;
}

.marker-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-pin {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(30, 58, 138, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.custom-screening-marker.marker-hover .marker-pin {
  transform: scale(1.2);
}

.custom-screening-marker.marker-hover .marker-pulse {
  animation-duration: 1s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Enhanced Popup Styling */
.leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
  font-family: var(--font-heading);
}

.screening-popup {
  padding: 1rem;
}

.popup-title {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-slate-dark);
  line-height: 1.3;
}

.popup-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1rem;
  background: var(--brand-slate);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: all 0.2s ease;
}

.popup-btn:hover {
  background: var(--brand-slate-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

/* Magazine layout removed - conflicts with archive news grid */

/* Magazine grid positioning rules removed */

/* Magazine-style news-card rules removed - conflicts with archive news grid */

/* Magazine layout hover and responsive rules removed */

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .work-grid, .news-grid, .workshops-grid, .upcoming-workshops {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  
  .films-carousel, .films-grid {
    padding: 1rem;
  }
  
  .film-card.awards-style-card:hover {
    transform: scale(1.02);
    border-color: var(--brand-slate-light);
  }
}

@media (max-width: 600px) {
  .work-grid, .news-grid, .workshops-grid, .upcoming-workshops {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  .section-white, .section-cream, .section-dark, .section-gradient {
    padding: var(--spacing-lg) 0;
  }
  
  .films-carousel::before,
  .films-carousel::after {
    height: 10px;
    background: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 10px,
      #333 10px, #333 15px
    );
  }
}

/* ========================================== */
/* ARCHIVE FILM PAGE CAROUSEL ENHANCEMENTS   */
/* ========================================== */

/* Archive Film Carousel Container */
.archive-film .films-carousel {
  /* Multi-row carousel specific to archive */
  --slides-per-view-desktop: 3;
  --slides-per-view-tablet: 2;
  --slides-per-view-mobile: 1;
  --carousel-gap: 2rem;
  
  /* Cinema aesthetic consistency */
  background: #1a1a1a;
  border-radius: 12px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Film strip decorative borders for archive */
.archive-film .films-carousel::before,
.archive-film .films-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 15px,
    #333 15px, #333 25px
  );
  z-index: 1;
}

.archive-film .films-carousel::before {
  top: 0;
}

.archive-film .films-carousel::after {
  bottom: 0;
}

/* Archive Carousel Swiper Configuration */
.archive-film .films-carousel .swiper-container {
  padding: 1rem 0;
  overflow: visible;
}

.archive-film .films-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.archive-film .films-carousel .swiper-slide {
  height: auto;
  display: flex;
  width: calc((100% - (var(--carousel-gap) * 2)) / var(--slides-per-view-desktop));
  margin-right: var(--carousel-gap);
}

/* Archive Film Cards - Awards Style Consistency */
.archive-film .films-carousel .film-card {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #1a1a1a;
  border: 2px solid var(--brand-slate);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-film .films-carousel .film-still-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.archive-film .films-carousel .film-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(159, 179, 200, 0.3), 0 0 0 3px rgba(159, 179, 200, 0.2);
  border-color: var(--brand-slate);
}

/* Archive Navigation - Cinema Style */
.archive-film .films-carousel .swiper-button-next,
.archive-film .films-carousel .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: var(--brand-midnight);
  border: 3px solid var(--brand-slate);
  border-radius: 50%;
  color: var(--brand-slate);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  z-index: 10;
}

.archive-film .films-carousel .swiper-button-next {
  right: 10px !important;
}

.archive-film .films-carousel .swiper-button-prev {
  left: 10px !important;
}

.archive-film .films-carousel .swiper-button-next:hover,
.archive-film .films-carousel .swiper-button-prev:hover {
  background: var(--brand-slate);
  color: var(--brand-midnight);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(159, 179, 200, 0.4);
}

.archive-film .films-carousel .swiper-button-next::after,
.archive-film .films-carousel .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Archive Pagination - Cinema Style */
.archive-film .films-carousel .swiper-pagination {
  position: relative;
  margin-top: 2rem;
  z-index: 10;
}

.archive-film .films-carousel .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.archive-film .films-carousel .swiper-pagination-bullet-active {
  background: var(--brand-slate);
  border-color: var(--brand-slate);
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(159, 179, 200, 0.3);
}

/* Category Filters Integration */
.archive-film .category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.archive-film .filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--brand-slate);
  color: var(--brand-slate);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.archive-film .filter-btn:hover,
.archive-film .filter-btn.active {
  background: var(--brand-slate);
  color: var(--brand-midnight);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(159, 179, 200, 0.3);
}

/* Responsive Archive Carousel */
@media (max-width: 1024px) {
  .archive-film .films-carousel .swiper-slide {
    width: calc((100% - var(--carousel-gap)) / var(--slides-per-view-tablet));
  }
  
  .archive-film .films-carousel {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .archive-film .films-carousel .swiper-button-next,
  .archive-film .films-carousel .swiper-button-prev {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .archive-film .films-carousel .swiper-slide {
    width: 100%;
    margin-right: 0;
  }
  
  .archive-film .films-carousel {
    padding: var(--spacing-lg) var(--spacing-sm);
    margin: var(--spacing-lg) 0;
  }
  
  .archive-film .category-filters {
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
  }
  
  .archive-film .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: var(--font-size-small);
  }
  
  .archive-film .films-carousel .swiper-button-next,
  .archive-film .films-carousel .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .archive-film .films-carousel .swiper-button-next::after,
  .archive-film .films-carousel .swiper-button-prev::after {
    font-size: var(--font-size-normal);
  }
}

@media (max-width: 480px) {
  .archive-film .films-carousel {
    padding: var(--spacing-md) calc(var(--spacing-sm) * 0.8);
  }
  
  .archive-film .films-carousel::before,
  .archive-film .films-carousel::after {
    height: 15px;
  }
  
  .archive-film .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Make Trainings and Workshops section black on homepage */
#featured-workshops .section-title-enhanced {
  color: #000000;
}

#featured-workshops .section-subtitle-enhanced {
  color: #000000;
}

/* Make archive page hero titles black */
.archive-hero .hero-title {
  color: #000000;
}

.archive-hero .hero-subtitle {
  color: #000000;
}

/* Fix Workshops section button contrast on cream background */
#featured-workshops .btn-enhanced-primary {
  background: var(--brand-slate-dark);
  color: var(--brand-white);
  border-color: var(--brand-slate-dark);
}

#featured-workshops .btn-enhanced-primary:hover {
  background: var(--brand-midnight);
  color: var(--brand-white);
  border-color: var(--brand-midnight);
}

/* ========================================
   HOST ENVIRONMENT COMPATIBILITY FIXES
   ======================================== */

/* Safety rules to prevent positioning issues across different hosting environments */
[class*="centered"], 
[class*="hero-title"], 
[class*="section-title"] {
  text-align: center !important;
  contain: layout;
}
/* Ensure screenings map section and film archive titles stay centered */
#screenings-map .section-title-centered,
.film-archive-hero .film-hero-title,
.news-carousel .section-title-centered {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100% !important;
}

/* Fix map section title contrast */
#screenings-map .section-title-centered {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Container safety for cross-host compatibility */
.container {
  text-align: initial; /* Reset container text alignment */
}

.container > [class*="title"], 
.container > h1, 
.container > h2 {
  text-align: center !important;
}

/* ========================================
   ENHANCED PAGE.PHP DESIGN - Modern Page Template
   Following JSAF3 Design System Guidelines
   ======================================== */

/* Modern Hero Section for Pages - Transparent with Featured Image Support */
.simple-page-header {
    position: relative;
    background: transparent;
    padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 10vw, 6rem);
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Featured Image Background Overlay for Better Text Readability */
.simple-page-header.has-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.simple-page-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    color: var(--brand-midnight);
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* White text on featured image backgrounds */
.simple-page-header.has-featured-image .simple-page-title {
    color: var(--brand-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Enhanced Page Content Section */
.page-content-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 6rem 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modern Content Grid Layout - Override existing styles */
.page-content-section .content-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem;
    max-width: 1100px !important;
    margin: 0 auto !important;
    position: relative;
}

@media (min-width: 1024px) {
    .page-content-section .content-grid {
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr) !important;
        align-items: flex-start;
        gap: 3.5rem;
    }
}



.page-content-section .main-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    padding: 3.5rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    max-width: none !important;
}

@media (max-width: 768px) {
    .page-content-section .main-content {
        padding: 2.25rem !important;
        margin: 0 1rem !important;
    }
}

/* Custom Navigation Cards Styling */
.custom-navigation-cards {
    margin: 4rem 0 2rem;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.navigation-cards-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--brand-midnight) !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

.navigation-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: 2rem;
}

.navigation-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    position: relative;
}

.navigation-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 85, 255, 0.2) !important;
}

.navigation-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.navigation-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-card:hover .navigation-card-image img {
    transform: scale(1.05);
}

.navigation-card-content {
    padding: 1.5rem !important;
}

.navigation-card-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

.navigation-card-title a {
    color: var(--brand-midnight) !important;
    text-decoration: none !important;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navigation-card-title a:hover {
    color: var(--brand-slate-light) !important;
}

.navigation-card-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--brand-gray) !important;
    margin-bottom: 1.25rem !important;
}

.navigation-card-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: var(--brand-slate-light) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navigation-card-link:hover {
    color: var(--brand-slate-dark) !important;
    transform: translateX(4px) !important;
}

.navigation-card-link i {
    font-size: 0.8rem !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navigation-card:hover .navigation-card-link i {
    transform: translateX(2px) !important;
}

/* Responsive Design for Navigation Cards */
@media (max-width: 768px) {
    .navigation-cards-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    .navigation-card-image {
        height: 160px;
    }
    
    .navigation-card-content {
        padding: 1.25rem !important;
    }
    
    .custom-navigation-cards {
        margin: 3rem 0 1.5rem;
    }
}

/* Enhanced Typography */
.page-content .content-text {
        font-size: var(--font-size-medium) !important;
    line-height: 1.8 !important;
    color: var(--brand-slate) !important;
    font-weight: 400;
}

.page-content .content-text h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--brand-midnight) !important;
    margin: 3rem 0 1.5rem !important;
    line-height: 1.2 !important;
}

.page-content .content-text h3 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--brand-midnight) !important;
    margin: 2.5rem 0 1rem !important;
    line-height: 1.3 !important;
}

.page-content .content-text p {
    margin-bottom: 1.5rem !important;
}

.page-content .content-text a {
    color: var(--brand-slate-light) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid transparent !important;
}

.page-content .content-text a:hover {
    color: var(--brand-slate-dark) !important;
    border-bottom-color: var(--brand-slate-dark) !important;
    transform: translateY(-1px) !important;
}

/* Article metadata section removed */

/* Enhanced Reading Progress */
.reading-progress {
    position: sticky !important;
    top: clamp(72px, 10vw, 96px) !important;
    z-index: 90 !important;
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 3rem !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.reading-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.reading-progress-bar {
    height: 100% !important;
    background: var(--brand-slate-light) !important;
    width: 0% !important;
    transition: width 0.3s ease !important;
    border-radius: 2px !important;
}

/* Enhanced Pull Quotes */
.pull-quote-container {
    margin: 3rem 0 !important;
    position: relative;
}

.pull-quote {
    background: rgba(112, 128, 144, 0.05) !important;
    border: 1px solid rgba(112, 128, 144, 0.1) !important;
    border-left: 6px solid var(--brand-slate-light) !important;
    border-radius: 0 20px 20px 0 !important;
    padding: 3rem 2.5rem !important;
    font-style: italic !important;
    position: relative;
    overflow: hidden;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(0, 85, 255, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    color: var(--brand-midnight) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: block !important;
    margin-top: 1.5rem !important;
    font-size: 1rem !important;
    color: var(--brand-slate-light) !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

.quote-source {
    color: var(--brand-gray) !important;
    font-weight: 400 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .simple-page-header {
        padding: 6rem 0 4rem !important;
    }
    
    .simple-page-title {
        font-size: 3rem !important;
    }
    
    .page-content-section .main-content {
        padding: 3rem !important;
    }
    
    .page-content .content-text h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .simple-page-header {
        padding: 4rem 0 3rem !important;
    }
    
    .simple-page-title {
        font-size: 2.5rem !important;
    }
    
    .page-content-section {
        padding: 4rem 0 !important;
    }
    
    .page-content-section .main-content {
        padding: 2rem !important;
        border-radius: 16px !important;
        margin: 0 1rem !important;
    }
    
    .metadata-content {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .metadata-content span {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .pull-quote {
        padding: var(--spacing-lg) var(--spacing-md) !important;
        margin: var(--spacing-lg) 0 !important;
    }
    
    .quote-text {
        font-size: var(--font-size-medium) !important;
    }
}

/* ========================================
   Biography Page Refresh 2025
   ======================================== */
.bio-page {
  background: var(--brand-cream);
  color: var(--brand-midnight);
  font-family: var(--font-body);
}

.bio-page a {
  color: var(--brand-slate-dark);
  text-decoration: none;
}

.bio-page a:hover,
.bio-page a:focus {
  color: var(--brand-midnight);
  text-decoration: underline;
}

.bio-page [data-bio-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
}

.bio-page [data-bio-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.bio-container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.bio-hero {
  padding: clamp(72px, 12vw, 136px) 0 clamp(48px, 9vw, 104px);
  background: var(--brand-cream);
}

.bio-hero__grid {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
}

.bio-hero__portrait {
  margin: 0;
}

.bio-hero__image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.bio-hero__content {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

.bio-hero__heading {
  display: grid;
  gap: 12px;
}

/* Bio hero heading styles */




/* Hero content support */
.simple-page-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.simple-page-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    max-width: 640px;
}

.simple-page-header.has-featured-image .simple-page-intro {
    color: rgba(255, 255, 255, 0.85);
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--font-size-small);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
}

/* Reading progress label/track */
.reading-progress-label {
    font-size: var(--font-size-small);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-midnight);
}

.reading-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

/* Quick navigation */
.page-quick-nav {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-sm) * 0.75);
    position: sticky;
    top: clamp(88px, 12vw, 120px);
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow: hidden;
}

.page-quick-nav[hidden] {
    display: none !important;
}

.page-quick-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
    background: none;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-small);
    color: var(--brand-midnight);
    cursor: pointer;
    padding: 0;
}

.quick-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    position: relative;
}

.quick-nav-icon::before,
.quick-nav-icon::after {
    content: '';
    position: absolute;
    background: var(--brand-midnight);
    transition: transform 0.2s ease;
    border-radius: 999px;
}

.quick-nav-icon::before {
    width: 50%;
    height: 2px;
    top: 50%;
    left: 25%;
    transform: translateY(-50%);
}

.quick-nav-icon::after {
    width: 2px;
    height: 50%;
    left: 50%;
    top: 25%;
    transform: translateX(-50%);
}

.page-quick-nav[data-open="true"] .quick-nav-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.page-quick-nav-panel {
    display: none;
    overflow-y: auto;
    scrollbar-width: thin;
    max-height: inherit;
    padding-right: 0.25rem;
}

.page-quick-nav[data-open="true"] .page-quick-nav-panel {
    display: block;
}

.page-quick-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-sm) * 0.75);
}

.page-quick-nav-list a {
    display: block;
    color: var(--brand-midnight);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-small);
    line-height: 1.5;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-quick-nav-list a:hover,
.page-quick-nav-list a:focus {
    color: var(--brand-slate-light);
    transform: translateX(4px);
}

.page-quick-nav-list a.is-active {
    color: var(--brand-slate-light);
}

/* Timeline refinements */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: var(--brand-white);
    border-radius: 999px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-slate-light), var(--brand-midnight));
    color: var(--brand-white);
    font-weight: 700;
    font-size: var(--font-size-small);
    letter-spacing: 0.05em;
}

.timeline-marker .timeline-year {
    margin: 0;
}

/* Responsive highlight boxes */
@media (max-width: 768px) {
    .highlight-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.75rem;
        gap: var(--spacing-sm);
    }

    .highlight-icon {
        margin-top: 0;
    }
}

/* Timeline mobile layout */
@media (max-width: 768px) {
    .timeline-line {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .timeline-event {
        flex-direction: column !important;
        align-items: center;
        margin-bottom: var(--spacing-xl);
    }

    .timeline-marker {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: var(--spacing-sm);
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
}

/* Quick nav responsive adjustments */
@media (max-width: 1023px) {
    .page-quick-nav {
        position: relative;
        top: 0;
        max-height: none;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        padding: 0.75rem 1rem;
    }

    .page-quick-nav-panel {
        max-height: none;
    }
}

@media (min-width: 1024px) {
    .page-quick-nav {
        display: flex;
    }

    .page-quick-nav-toggle {
        display: none;
    }

    .page-quick-nav-panel {
        display: block !important;
    }
}
/* Related card placeholder */
.related-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #a0aec0;
    font-size: 1.75rem;
}

.related-placeholder-image i {
    pointer-events: none;
}

/* ========================================
   MODERN PAGE TEMPLATE STYLES
   ======================================== */

/* Modern Page Hero */
.modern-page-hero {
    position: relative;
    min-height: 18vh;
    display: flex;
    align-items: center;
    background: #000000;
    overflow: hidden;
}

.modern-page-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modern-page-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.modern-page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* Transparent background when no featured image */
.modern-page-hero:not(.has-featured-image) {
    background: transparent;
}

.modern-page-hero .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--spacing-lg) 0;
}

.modern-page-hero .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}
.modern-page-hero .page-title {
    font-family: var(--font-heading, 'Epilogue', sans-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--brand-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.modern-page-hero .page-excerpt {
    font-family: var(--font-body, 'Epilogue', sans-serif);
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content Section */
.page-content-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, 
        #ffffff 0%,      /* Pure white at top */
        #FEFEFE 25%,     /* Brand cream */
        #f8f9fa 50%,     /* Light gray */
        #F8F9FA 75%,     /* Brand light */
        #E5E7EB 100%     /* Subtle gray at bottom */
    );
}

.content-with-margins {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2.5rem;              /* More padding inside */
    background: var(--brand-white);                /* White card */
    border-radius: 16px;                /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);  /* Subtle shadow */
}

.content-with-margins .entry-content {
    font-family: var(--font-body, 'Epilogue', sans-serif);
    font-size: 1.125rem;        /* 18px, optimal for reading */
    line-height: 1.8;           /* Better breathing room */
    color: #2d3748;             /* Softer than pure black */
}

.content-with-margins .entry-content h2 {
    font-family: var(--font-heading, 'Epilogue', sans-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-midnight, #111827);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    line-height: 1.3;
}

.content-with-margins .entry-content h3 {
    font-family: var(--font-heading, 'Epilogue', sans-serif);
    font-size: var(--font-size-x-large);
    font-weight: 600;
    color: var(--brand-midnight, #111827);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.4;
}

.content-with-margins .entry-content p {
    margin-bottom: 2rem;
}

.content-with-margins .entry-content a {
    color: var(--brand-slate-light, #9FB3C8);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-with-margins .entry-content a:hover {
    color: var(--brand-slate-dark, #5A6B7D);
    border-bottom-color: var(--brand-slate-dark, #5A6B7D);
    transform: translateY(-1px);
}

/* Floating Images Support - Constrained within content margins */
.content-with-margins .entry-content .alignleft {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
    max-width: 250px;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-with-margins .entry-content .alignleft:hover {
    transform: translateY(-2px);
}

.content-with-margins .entry-content .alignright {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 250px;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-with-margins .entry-content .alignright:hover {
    transform: translateY(-2px);
}

.content-with-margins .entry-content .aligncenter {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Related Projects Section */
.related-projects-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, 
        #ffffff 0%,      /* Pure white at top */
        #FEFEFE 25%,     /* Brand cream */
        #f8f9fa 50%,     /* Light gray */
        #F8F9FA 75%,     /* Brand light */
        #E5E7EB 100%     /* Subtle gray at bottom */
    );
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading, 'Epilogue', sans-serif);
    font-size: var(--font-size-xxx-large);
    font-weight: 700;
    color: var(--brand-midnight, #111827);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-slate, #708090), var(--brand-slate-light, #9FB3C8));
    border-radius: 2px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.related-project-card {
    background: var(--brand-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-card:hover .project-image {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-family: var(--font-heading, 'Epilogue', sans-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--brand-midnight, #111827);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-excerpt {
    font-family: var(--font-body, 'Epilogue', sans-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--brand-slate, #708090);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-page-hero {
        min-height: 25vh;
    }
    
    .modern-page-hero .hero-content {
        padding: 1.5rem 0;
    }
    
    .page-content-section {
        padding: 2.5rem 0;
    }
    
    .content-with-margins {
        padding: 2.5rem 2rem;
    }
    
    .related-projects-section {
        padding: var(--spacing-xl) 0;
    }
    
    .related-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .modern-page-hero {
        min-height: 22vh;
    }
    
    .modern-page-hero .hero-content {
        padding: 1.5rem 0;
    }
    
    .modern-page-hero .hero-text {
        padding: 0 1rem;
    }
    
    .page-content-section {
        padding: var(--spacing-lg) 0;
    }
    
    .content-with-margins {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .content-with-margins .entry-content {
        font-size: 1.125rem;
    }
    
    .content-with-margins .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .content-with-margins .entry-content h3 {
        font-size: 1.375rem;
    }
    
    /* Stack floating images on mobile */
    .content-with-margins .entry-content .alignleft,
    .content-with-margins .entry-content .alignright {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
        width: 100%;
    }
    
    .related-projects-section {
        padding: 2.5rem 0;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: var(--font-size-xx-large);
    }
}

@media (max-width: 480px) {
    .modern-page-hero {
        min-height: 18vh;
    }
    
    .modern-page-hero .hero-content {
        padding: 1rem 0;
    }
    
    .modern-page-hero .page-title {
        font-size: var(--font-size-x-large);
    }
    
    .modern-page-hero .page-excerpt {
        font-size: 1.125rem;
    }
    
    .page-content-section {
        padding: 1.5rem 0;
    }
    
    .content-with-margins .entry-content {
        font-size: 1rem;
    }
    
    .content-with-margins .entry-content h2 {
        font-size: var(--font-size-x-large);
    }
    
    .content-with-margins .entry-content h3 {
        font-size: var(--font-size-large);
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

/* ========================================
   CSS CONFLICT OVERRIDES - HIGHER SPECIFICITY
   ======================================== */

/* Override conflicting styles with higher specificity */
.site-main.modern-page .modern-page-hero {
    background: #000000 !important;
    min-height: 18vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

.site-main.modern-page .modern-page-hero:not(.has-featured-image) {
    background: transparent !important;
}

.site-main.modern-page .modern-page-hero .hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.site-main.modern-page .modern-page-hero .hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.site-main.modern-page .modern-page-hero .hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    z-index: 2 !important;
}

.site-main.modern-page .modern-page-hero .hero-content {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    padding: 2rem 0 !important;
}

.site-main.modern-page .modern-page-hero .hero-text {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.site-main.modern-page .modern-page-hero .page-title {
    font-family: var(--font-heading, 'Epilogue', sans-serif) !important;
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    color: #000000 !important;
    text-shadow: none !important;
}

.site-main.modern-page .modern-page-hero .page-excerpt {
    font-family: var(--font-body, 'Epilogue', sans-serif) !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Content and floating images with higher specificity */
.site-main.modern-page .content-with-margins .entry-content .alignleft {
    float: left !important;
    margin: 0 1.5rem 1.5rem 0 !important;
    max-width: 250px !important;
    width: 40% !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.site-main.modern-page .content-with-margins .entry-content .alignright {
    float: right !important;
    margin: 0 0 1.5rem 1.5rem !important;
    max-width: 250px !important;
    width: 40% !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.site-main.modern-page .content-with-margins .entry-content .aligncenter {
    display: block !important;
    margin: 2rem auto !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Simple Contact Page Styles */
.contact-page-simple {
    background: var(--brand-white);
}

.contact-hero-simple {
    background: var(--brand-white);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--brand-midnight);
}

.contact-hero-simple .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--brand-midnight);
}

.contact-hero-simple .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content-section {
    padding: 5rem 0;
    background: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-slate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.contact-card h3 {
    color: var(--brand-slate);
    font-size: var(--font-size-x-large);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.email-placeholder {
    color: #6c757d;
    font-style: italic;
    font-size: var(--font-size-medium);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: var(--font-size-medium);
}

/* Addresses Section */
.contact-addresses-section {
    grid-column: 1 / -1;
}

.contact-addresses-section h3 {
    text-align: center;
    color: var(--brand-slate);
    font-size: var(--font-size-xx-large);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.address-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.address-card:hover {
    transform: translateY(-3px);
}

.address-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-slate-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-slate);
    font-size: var(--font-size-medium);
    flex-shrink: 0;
}

.address-content h4 {
    color: var(--brand-slate);
    font-size: var(--font-size-medium);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.address-content address {
    font-style: normal;
    line-height: 1.6;
    color: #5a6b7d;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero-simple {
        padding: 4rem 0 3rem;
    }
    
    .contact-content-section {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-grid {
        gap: var(--spacing-lg);
    }
    
    .contact-card {
        padding: var(--spacing-lg);
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .address-card {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .address-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .contact-hero-simple {
        padding: 3rem 0 2rem;
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-x-large);
    }
    
    .address-card {
        padding: 1.25rem;
    }
}

/* Related projects with higher specificity */
.site-main.modern-page .related-projects-section {
    padding: 4rem 0 !important;
    background: linear-gradient(180deg, 
        #ffffff 0%,      /* Pure white at top */
        #FEFEFE 25%,     /* Brand cream */
        #f8f9fa 50%,     /* Light gray */
        #F8F9FA 75%,     /* Brand light */
        #E5E7EB 100%     /* Subtle gray at bottom */
    ) !important;
}

.site-main.modern-page .related-projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.site-main.modern-page .related-project-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.site-main.modern-page .related-project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Cache-bust: Updated 2025-10-27 */