/*
Theme Name: Movie Fest
Author: GitHub Copilot
Version: 2.2
*/

@font-face {
    font-family: '29LT Adir';
    src: url('fonts/29LTAdir-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Updated Palette: Deep Teal & Gold */
    --color-bg-primary: #0e2a33;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #0e2a33;       
    --color-bg-darker: #06151a;
    --color-accent-gold: #eebc47;   
    --color-accent-hover: #d4a538;
    
    --color-text-main: #f0f0f0;     /* Light text for dark bg */
    --color-text-muted: #a0aeb5;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    
    --font-heading: '29LT Adir', 'Cairo', 'Inter', system-ui, sans-serif;
    --font-body: '29LT Adir', 'Cairo', 'Inter', system-ui, sans-serif;
    
    --spacing-container: 1200px;
    --spacing-section: 4rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body) !important;
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, #163a45 0%, #0e2a33 60%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

/* Header - Overlay Style */
.festival-header {
    background: linear-gradient(to bottom, rgba(14,42,51,0.95) 0%, rgba(14,42,51,0.6) 50%, rgba(14,42,51,0) 100%);
    color: var(--color-text-light);
    padding: 1.5rem 0;
    position: absolute; /* Overlay on top of slider */
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: none;
    box-shadow: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 420px;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.text-center { text-align: center; }

/* Icon Styles */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(238, 188, 71, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--color-accent-gold);
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 188, 71, 0.2);
    overflow: hidden;
}

/* Constrain all SVGs and images inside card-icon */
.card-icon svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    color: var(--color-accent-gold);
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.card-icon img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--color-accent-gold);
}

.info-card:hover .card-icon {
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(238, 188, 71, 0.4);
}

.info-card:hover .card-icon svg {
    color: var(--color-bg-dark);
    stroke: var(--color-bg-dark);
}

.info-card:hover .card-icon img {
    filter: brightness(0) saturate(100%);
}

.info-card:hover .card-icon .dashicons {
    color: var(--color-bg-dark);
}

/* Festival Logo */
.festival-logo {
    height: 75px; /* Increased size for better visibility */
    width: auto;
    max-width: 400px; /* Increased width allowance */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 75px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-logo-link .custom-logo {
    height: 50px;
    max-width: 240px;
    filter: grayscale(100%) brightness(200%);
}

.site-footer .custom-logo-link .custom-logo {
    height: 50px;
    max-width: 240px;
    filter: grayscale(100%) brightness(200%);
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Navigation Styles --- */
/* Top Level */
.main-navigation > ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.main-navigation li {
    position: relative;
    z-index: 100;
}

/* Top Level Links */
.main-navigation > ul > li > a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: block;
}

.main-navigation > ul > li > a:hover {
    color: var(--color-accent-gold);
}

/* Underline Effect (Top Level Only) */
.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0; 
    background-color: var(--color-accent-gold);
    transition: width 0.3s;
}
body.rtl .main-navigation > ul > li > a::after {
    left: auto; 
    right: 0;
}
.main-navigation > ul > li:hover > a::after {
    width: 100%;
}

/* --- Sub Menu Styling --- */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(14, 42, 51, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 240px;
    padding: 15px 0;
    margin: 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--color-accent-gold);
    display: block;
}

/* RTL Alignment */
body.rtl .main-navigation ul ul {
    left: auto;
    right: 0;
    text-align: right;
}

/* Show on Hover */
.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Items */
.main-navigation ul ul li {
    display: block;
    margin: 0;
}

.main-navigation ul ul a {
    display: block;
    padding: 10px 25px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent; /* LTR marker */
}
body.rtl .main-navigation ul ul a {
    border-left: none;
    border-right: 3px solid transparent; /* RTL marker */
}

/* Submenu Hover */
.main-navigation ul ul a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-accent-gold);
    padding-left: 35px; /* LTR push */
}
body.rtl .main-navigation ul ul a:hover {
    padding-left: 25px;
    padding-right: 35px; /* RTL push */
    border-right-color: var(--color-accent-gold);
}

/* Remove underline from submenu items */
.main-navigation ul ul a::after {
    display: none !important;
}

/* Submenu Arrow Indicator for Parent */
.menu-item-has-children > a {
    padding-right: 26px; /* keep arrow away from text/flag */
}
body.rtl .menu-item-has-children > a {
    padding-right: 0;
    padding-left: 18px; /* tighter in RTL to avoid big gap */
}
.menu-item-has-children > a::before {
    content: '';
    border: 4px solid transparent;
    border-top-color: rgba(255,255,255,0.7);
    position: absolute;
    right: -12px; /* park arrow outside text area */
    top: 55%;
    transform: translateY(-50%);
    z-index: 2;
}
body.rtl .menu-item-has-children > a::before {
    right: auto;
    left: 2px; /* pull arrow back toward the text in RTL */
}
.menu-item-has-children:hover > a::before {
    border-top-color: var(--color-accent-gold);
}

.nav-cta {
    background: var(--color-accent-gold);
    color: #000 !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 800 !important;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(238, 188, 71, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 188, 71, 0.6);
    background: #fff;
}

/* Slider Section - 70% Screen Height */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    direction: ltr; /* Force LTR for slider mechanics */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05); /* Zoom effect start */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1); /* Zoom in effect end */
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14,42,51,0.95) 0%, rgba(14,42,51,0.5) 50%, rgba(14,42,51,0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin-top: 40px; /* Offset for header */
}
/* When in Arabic, ensure slider text direction is logical */
body.rtl .slide-content {
    direction: rtl;
}

.badge-gold {
    background: rgba(238, 188, 71, 0.2);
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.slide-badge {
    background: rgba(238, 188, 71, 0.15);
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.slide-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.slide-title span {
    color: var(--color-accent-gold);
}

.slide-desc {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.btn-cta:hover {
    background: #fff;
    color: var(--color-bg-dark);
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 20px;
}
.slider-arrow {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.slider-arrow:hover {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-bg-dark);
}

/* Sections */
.section-padding {
    padding: var(--spacing-section) 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* CTA Section with Background Image */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 42, 51, 0.92) 0%,
        rgba(10, 30, 38, 0.88) 50%,
        rgba(14, 42, 51, 0.95) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section .section-title {
    color: var(--color-accent-gold);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}
.section-title.left-align {
    text-align: left;
}
body.rtl .section-title.left-align {
    text-align: right;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent-gold);
}
.section-title.left-align::after {
    left: 0;
    right: auto;
    transform: none;
}
body.rtl .section-title.left-align::after {
    left: auto;
    right: 0;
}

/* Glass Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.03); /* Glass effect */
    color: var(--color-text-main);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05); /* Subtle border */
    border-top: 4px solid var(--color-accent-gold);
    transition: transform 0.3s ease, background 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.06);
}

.info-card h3 {
    margin-top: 0;
    color: var(--color-accent-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.info-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* About Section */
.about-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h2 {
    color: var(--color-accent-gold);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    line-height: 1.8;
}
/* Full-width text section */
.about-text-full {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-text-full h2 {
    color: var(--color-accent-gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.about-text-full p {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: right;
}
.about-text-full ul {
    list-style: none;
    padding: 0;
    text-align: right;
}
.about-text-full li {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
}
.about-text-full li::before {
    content: "•";
    color: var(--color-accent-gold);
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* About Feature Sections */
.about-feature-section {
    position: relative;
}
.about-feature-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(238, 188, 71, 0.1);
    position: relative;
    overflow: hidden;
}
.about-feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(238, 188, 71, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.about-feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(238, 188, 71, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(238, 188, 71, 0.15) 0%, rgba(238, 188, 71, 0.05) 100%);
    border-radius: 50%;
    border: 2px solid var(--color-accent-gold);
}
.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent-gold);
}
.feature-icon-lg {
    width: 100px;
    height: 100px;
}
.feature-icon-lg svg {
    width: 50px;
    height: 50px;
}
.about-feature-card .section-title {
    color: var(--color-accent-gold);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}
.about-feature-card .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 2px;
}
.about-feature-card .entry-content p {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.9;
    text-align: right;
}

/* LTR: left-align the about feature block */
body:not(.rtl) .about-feature-card {
    text-align: left;
}
body:not(.rtl) .about-feature-card .section-title::after {
    left: 0;
    transform: none;
}
body:not(.rtl) .about-feature-card .entry-content p {
    text-align: left;
}

/* Goals Section */
.about-goals-section {
    background: var(--color-bg-darker);
}
.about-goals-header {
    text-align: center;
    margin-bottom: 3rem;
}
.about-goals-header .section-title {
    color: var(--color-accent-gold);
    font-size: 2.5rem;
    margin-top: 1rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}
.about-goals-header .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 2px;
}
.goals-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.goal-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(238, 188, 71, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(238, 188, 71, 0.08) 0%, transparent 70%);
}
.goal-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
    box-shadow: 0 10px 30px rgba(238, 188, 71, 0.1);
}
.goal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(238, 188, 71, 0.2) 0%, rgba(238, 188, 71, 0.05) 100%);
    border-radius: 50%;
}
.goal-icon svg {
    width: 35px;
    height: 35px;
    color: var(--color-accent-gold);
}
.goal-card h3 {
    color: var(--color-accent-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.goal-card p {
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .goals-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .goals-cards-grid {
        grid-template-columns: 1fr;
    }
    .about-feature-card {
        padding: 1.5rem;
    }
}

.about-visual {
    position: relative;
    cursor: pointer;
    /* Removed overflow:hidden to allow the 'color shape' (box-shadow) to show */
    z-index: 1; /* Ensure play button stays on top */
}

.about-visual img {
    width: 100%;
    border-radius: 16px;
    /* Restore the colored shape/shadow */
    box-shadow: -20px 20px 0 rgba(238, 188, 71, 0.1); 
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-visual:hover img {
    transform: scale(1.02); /* Slight zoom */
    box-shadow: -25px 25px 0 rgba(238, 188, 71, 0.2); /* Shadow grows slightly too */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(238, 188, 71, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e2a33;
    z-index: 10;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.play-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px; /* Optical adjustment */
}

.about-visual:hover .play-button {
    background: #fff;
    color: var(--color-accent-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(238, 188, 71, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(238, 188, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(238, 188, 71, 0); }
}

/* Video Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent-gold);
}

/* Programs Grid - Modern Glassmorphism Design */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: 1px solid rgba(238, 188, 71, 0.2);
    border-right: 5px solid var(--color-accent-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* LTR: border on left */
body:not(.rtl) .program-card {
    border-right: 1px solid rgba(238, 188, 71, 0.2);
    border-left: 5px solid var(--color-accent-gold);
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 42, 51, 0) 0%,
        rgba(14, 42, 51, 0.4) 60%,
        rgba(14, 42, 51, 0.9) 100%
    );
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(238, 188, 71, 0.5);
}

/* Program Number Badge */
.program-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(238, 188, 71, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.rtl .program-number {
    right: auto;
    left: 20px;
}

.program-card:hover .program-number {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(238, 188, 71, 0.5);
}

/* Program Content - Always Visible */
.program-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 5;
    background: rgba(14, 42, 51, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 2px solid var(--color-accent-gold);
    transition: background 0.3s ease, padding 0.3s ease;
}

.program-card:hover .program-content {
    background: rgba(14, 42, 51, 0.95);
    padding-bottom: 30px;
}

.program-title {
    color: var(--color-accent-gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.program-card:hover .program-title {
    color: #f5d078;
}

.program-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.program-desc p {
    margin: 0;
}

/* RTL Support */
body.rtl .program-content {
    text-align: right;
}

/* Programs Responsive */
@media (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .program-card {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        height: 300px;
    }
    
    .program-content {
        padding: 18px;
    }
    
    .program-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .program-desc {
        font-size: 0.9rem;
    }
    
    .program-number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}

/* Footer Professional Styles */
.site-footer {
    background-color: #050e11; /* Very dark teal/black */
    color: #a0aeb5;
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--color-accent-gold);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Brand Column */
.brand-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.brand-col .footer-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.brand-col .footer-logo-img {
    height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    transition: filter 0.3s;
}
.brand-col .footer-logo-img:hover {
    filter: none;
}
.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #8c9fa5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.footer-goals {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #8c9fa5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Center the group */
}
.social-icon {
    position: relative;
    display: block;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0 !important; /* Force zero padding */
    line-height: 0; /* Kill any line-height issues */
    text-decoration: none !important;
}
.social-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}
.social-icon:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-3px);
}

/* Links & Info Columns */
.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent-gold);
}
/* RTL Title Line */
.section-title.left-align::after,
.footer-title::after { 
   left: 0; 
}
body.rtl .footer-title::after {
    left: auto;
    right: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 0.8rem;
}
.footer-col a {
    color: #a0aeb5;
    transition: color 0.3s, padding 0.3s;
    display: inline-block;
}
.footer-col a:hover {
    color: var(--color-accent-gold);
    padding-right: 5px; /* LTR hover effect */
}
body.rtl .footer-col a:hover {
    padding-right: 0;
    padding-left: 5px; /* RTL hover effect */
}

/* Contact List */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.contact-list svg {
    color: var(--color-accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c7f85;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive (Previous Styles below) */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .slide-title {
        font-size: 2.5rem;
    }
    .about-section-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-visual { order: -1; }
}

/* Page Header */
.page-header {
    background-color: var(--color-bg-darker);
    padding: 8rem 0 4rem; /* Extra top padding for fixed header */
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-title {
    font-size: 3rem;
    color: var(--color-accent-gold);
    margin: 0;
}

/* Leadership Section */
.leader-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}
.leader-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: var(--color-accent-gold);
}
.leader-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-accent-gold);
}
.leader-card h3 {
    color: #fff;
    margin: 0 0 1rem;
    font-size: 1.5rem;
}
.leader-bio {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Contact Section - Modern Design */
.contact-section {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, rgba(14, 42, 51, 0.95) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(238, 188, 71, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top center, rgba(238, 188, 71, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(238, 188, 71, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(238, 188, 71, 0.15) 0%, rgba(238, 188, 71, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(238, 188, 71, 0.3);
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: scale(1.1);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent-gold);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    color: var(--color-bg-dark);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-value {
    color: var(--color-accent-gold);
}

/* Contact Section Responsive */
@media (max-width: 900px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Section Accent */
.section-accent {
    background: rgba(238, 188, 71, 0.05); /* Gold tint */
    border-top: 1px solid rgba(238, 188, 71, 0.1);
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.contact-item {
    background: var(--color-bg-darker);
    padding: 2rem;
    border-radius: 12px;
    min-width: 200px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
}
.contact-item .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
}
.contact-item a, .contact-item span {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1.1rem;
}


/* Director's Word Page */
.leader-role {
    color: var(--color-accent-gold);
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.speech-text h2.speech-title {
    color: var(--color-accent-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.speech-text .entry-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    text-align: justify;
}
/* Ensure sticky works */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Adjust based on header height */
    height: fit-content;
}


/* Add specific support if needed, though template-presidents-word.php uses inline styles for layout */


/* Leadership Buttons */
.btn-read-word {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-read-word:hover {
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
}


/* Enqueue Admin Styles if not already hooked */
/* This is usually done in admin_enqueue_scripts logic, assuming it exists. 
   If the user needs it to load, we rely on existing logic or standard WP styles. */


/* ============================================
   FILM SUBMISSION FORM STYLES
   ============================================ */

.submission-section {
    background: var(--color-bg-primary);
    min-height: 60vh;
}

.submission-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(238, 188, 71, 0.1);
}

/* Progress Steps */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-step.active .step-number {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-bg-dark);
}

.progress-step.active .step-label {
    color: var(--color-accent-gold);
}

.progress-step.completed .step-number {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.progress-step.completed .step-label {
    color: #22c55e;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(238, 188, 71, 0.2);
}

.step-title svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent-gold);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    overflow: visible;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    background: rgba(238, 188, 71, 0.05);
    box-shadow: 0 0 0 3px rgba(238, 188, 71, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23eebc47'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    padding-left: 40px;
}

.form-group select option {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* Date Input Styling */
.form-group .date-input {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eebc47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 42px; /* Space for icon on right */
    cursor: pointer;
    text-align: right;
    direction: rtl;
}

/* When date is selected, show it LTR */
.form-group .date-input:not(:placeholder-shown) {
    direction: ltr;
    text-align: left;
}

.form-group .date-input::placeholder {
    direction: rtl;
    text-align: right;
    color: rgba(255, 255, 255, 0.4);
}

/* Flatpickr Calendar Custom Styling - Movie Festival Theme */
.flatpickr-calendar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    direction: rtl;
    width: 100% !important;
    max-width: 480px !important; /* Wider comfortable width */
    background: linear-gradient(180deg, var(--color-bg-dark, #0a1f26), #0e2a33) !important;
    border: 1px solid rgba(238, 188, 71, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8) !important;
    padding: 25px !important;
    overflow: hidden;
    margin-top: 10px;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
    display: none !important; /* Remove arrows */
}

/* Force Western numerals everywhere in calendar */
.flatpickr-calendar *,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-day {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-variant-numeric: lining-nums !important;
}

/* Header Areas */
.flatpickr-months {
    padding: 10px 0 20px; /* More top padding */
    margin-bottom: 10px;
    align-items: center;
    position: relative;
    justify-content: space-between; /* Space out arrows and text */
    height: auto;
    border: none; /* Remove border */
}

.flatpickr-current-month {
    font-size: 1.6rem;
    padding: 0;
    width: auto;
    color: #fff; /* White text for better contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    pointer-events: none; /* Let clicks pass through if needed, but children have pointer-events: auto */
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700;
    color: #fff;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 1.6rem;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    color: var(--color-accent-gold, #eebc47);
    background: transparent;
}

/* Force LTR for Year */
.flatpickr-current-month input.cur-year {
    color: var(--color-accent-gold, #eebc47);
    font-weight: 300; /* Lighter weight for year */
    font-size: 1.6rem;
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    padding: 0 5px;
    background: transparent;
    border: none;
    pointer-events: auto;
}

/* Navigation Arrows - Minimalist Modern Style */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 0;
    height: 36px;
    width: 36px;
    border-radius: 8px; /* Square with rounded corners */
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    fill: rgba(255, 255, 255, 0.7);
    position: static; /* In flow with flexbox */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    z-index: 10;
}

/* Position arrows absolutely to left/right for perfect centering of title */
.flatpickr-months .flatpickr-prev-month {
    position: absolute;
    right: 0;
}

.flatpickr-months .flatpickr-next-month {
    position: absolute;
    left: 0;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(238, 188, 71, 0.1);
    color: var(--color-accent-gold, #eebc47);
    fill: var(--color-accent-gold, #eebc47);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
    stroke-width: 2; /* Thicker arrows */
}

/* Weekdays - Clean and Minimal */
.flatpickr-weekdays {
    margin-bottom: 20px;
    background: transparent; /* Remove background strip */
    padding: 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator line */
    padding-bottom: 10px;
}

.flatpickr-weekday {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Days Grid Full Width */
.flatpickr-days {
    width: 100% !important;
}

.flatpickr-innerContainer {
    display: block;
    width: 100%;
}

.flatpickr-rContainer {
    display: block;
    width: 100%;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

/* Day Cells */
.flatpickr-day {
    color: #fff !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    font-weight: 500;
    margin-top: 8px;
    height: 48px;
    line-height: 48px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    width: 13% !important; /* Leaving space for margins */
    max-width: none !important;
    flex-basis: 13% !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.15) !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(238, 188, 71, 0.15) !important;
    transform: translateY(-2px);
}

.flatpickr-day.today {
    border-color: var(--color-accent-gold, #eebc47) !important;
    background: transparent !important;
    color: var(--color-accent-gold, #eebc47) !important;
}

.flatpickr-day.today:hover {
    background: var(--color-accent-gold, #eebc47) !important;
    color: var(--color-bg-primary, #0e2a33) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--color-accent-gold, #eebc47) !important;
    color: var(--color-bg-primary, #0e2a33) !important;
    border-color: var(--color-accent-gold, #eebc47) !important;
    font-weight: 800 !important;
    box-shadow: 0 5px 20px rgba(238, 188, 71, 0.4) !important;
    transform: scale(1.05);
}
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    flex: 1;
}

/* Days Grid */
.flatpickr-days {
    width: 100% !important;
}

.flatpickr-innerContainer {
    display: block;
}

.flatpickr-rContainer {
    display: block;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
}

.flatpickr-day {
    color: #fff;
    border-radius: 6px;
    height: 36px;
    line-height: 36px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
    max-width: none;
    flex-basis: 14.285%;
    margin: 1px 0;
}

.flatpickr-day:hover {
    background: rgba(238, 188, 71, 0.15);
    border-color: transparent;
    color: #fff;
}

.flatpickr-day.today {
    border: 2px solid var(--color-accent-gold, #eebc47);
    background: transparent;
    color: var(--color-accent-gold, #eebc47);
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: rgba(238, 188, 71, 0.2);
    color: var(--color-accent-gold, #eebc47);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--color-accent-gold, #eebc47);
    border-color: var(--color-accent-gold, #eebc47);
    color: var(--color-bg-dark, #0a1f26);
    font-weight: 700;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.25);
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.flatpickr-day.disabled {
    color: rgba(255, 255, 255, 0.15);
}

/* Number and Phone inputs - Force LTR and Western numerals */
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Force Western Numerals (Morocco style) */
.submission-form,
.submission-form input,
.submission-form select,
.submission-form textarea,
.submission-form-wrapper {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

/* Ensure date and number inputs use Western digits */
.submission-form input[type="date"],
.submission-form input[type="number"],
.submission-form input[type="tel"] {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Competition Cards */
.competition-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .competition-options {
        grid-template-columns: 1fr;
    }
}

.competition-card {
    cursor: pointer;
    display: block;
}

.competition-card input {
    display: none;
}

.competition-card .card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.competition-card:hover .card-content {
    border-color: rgba(238, 188, 71, 0.3);
    background: rgba(238, 188, 71, 0.05);
}

.competition-card.selected .card-content,
.competition-card input:checked + .card-content {
    border-color: var(--color-accent-gold);
    background: rgba(238, 188, 71, 0.1);
}

.competition-card .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(238, 188, 71, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.competition-card .card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent-gold);
}

.competition-card.selected .card-icon,
.competition-card input:checked + .card-content .card-icon {
    background: var(--color-accent-gold);
}

.competition-card.selected .card-icon svg,
.competition-card input:checked + .card-content .card-icon svg {
    color: var(--color-bg-dark);
}

.competition-card h3 {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.competition-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Declaration Box */
.declaration-box {
    background: rgba(238, 188, 71, 0.05);
    border: 1px solid rgba(238, 188, 71, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.declaration-checkbox input {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.declaration-checkbox input:checked + .checkbox-custom {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
}

.declaration-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--color-bg-dark);
    font-weight: bold;
    font-size: 14px;
}

.declaration-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Signature Section */
.signature-section {
    margin-top: 1.5rem;
}

/* Notes Box */
.notes-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-right: 3px solid var(--color-accent-gold);
}

.notes-box h4 {
    color: var(--color-accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.notes-box ul {
    margin: 0;
    padding: 0 1.25rem;
}

.notes-box li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev,
.btn-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-next {
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
    margin-right: auto;
}

.btn-next:hover {
    background: #d4a530;
    transform: translateX(-5px);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #d4a530 100%);
    color: var(--color-bg-dark);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-right: auto;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(238, 188, 71, 0.3);
}

.btn-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-bg-dark);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon svg {
    width: 50px;
    height: 50px;
    color: #22c55e;
}

.form-success h2 {
    color: var(--color-text-light);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Submission Form Responsive */
@media (max-width: 768px) {
    .submission-form-wrapper {
        padding: 1.5rem 1rem;
        margin: 0;
        max-width: 100%;
        border-radius: 12px;
    }

    .submission-section .container {
        padding: 0 0.75rem;
    }

    .form-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .progress-line {
        width: 20px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .step-label {
        display: none;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .competition-options {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
}

/* --- Mobile Menu Styles --- */

/* Hide Toggle Button on Desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-light);
    transition: all 0.3s ease-in-out;
}

/* Mobile Breakpoint */
@media screen and (max-width: 900px) { 
    /* Scale logo down on small screens */
    .festival-logo,
    .custom-logo {
        height: 56px;
        max-width: 220px;
    }

    .festival-header {
        position: relative; /* Prevent absolute overlap on mobile */
        background: var(--color-bg-primary); /* Solid background */
        padding: 1rem 0; /* Slightly tighter spacing */
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.25rem 1rem;
    }

    .menu-toggle {
        display: block; /* Show hamburger */
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    /* Animate Hamburger to X */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Branding adjustments */
    .site-branding {
        grid-column: 1;
        grid-row: 1 / span 2;
        justify-self: start;
        max-width: 100%;
    }

    /* Hide Navigation by Default */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-primary); /* Use theme variable */
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Show Navigation when Toggled */
    .main-navigation.toggled {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch; /* Full width items */
        text-align: center;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation > ul > li > a {
        padding: 15px 0;
        font-size: 1.2rem;
    }

    /* Adjust Header Actions (CTA Button) */
    .header-actions {
        display: flex;
        align-items: center;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .header-actions .nav-cta {
        padding: 8px 14px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    /* Adjust Hero for the new Relative Header */
    .hero-slider {
        margin-top: 0; 
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

