/* ==========================================================================
   Premium UI/UX Styles & Variables
   ========================================================================== */

:root {
    /* Colors - Requested Palette */
    --primary-color: #0B4F40; /* Deep Emerald Green */
    --primary-light: #126b58;
    --primary-dark: #052b23;
    --secondary-color: #8B9E7F; /* Soft Light Green */
    --accent-color: #C9A87A; /* Gold */
    --accent-light: #dec7a4;
    --accent-dark: #a68b63;
    
    /* Semantic Color Aliases */
    --color-gold: #C9A87A;
    --color-gold-rgb: 201, 168, 122;
    --color-teal: #0B4F40;
    --color-teal-dark: #052b23;
    
    /* Neutral & Backgrounds */
    --text-main: #1A1A1A; /* Dark Black/Grey */
    --text-muted: #4A4A4A;
    --bg-body: #F5F5F5; /* Purity White */
    --bg-surface: #ffffff;
    --bg-teal-gradient: linear-gradient(135deg, #052b23 0%, #0B4F40 100%);
    --bg-gold-gradient: linear-gradient(135deg, #C9A87A 0%, #dec7a4 100%);
    
    /* Fonts */
    --font-main: 'Alyamama', system-ui, -apple-system, sans-serif;
    --font-heading: 'Alyamama', serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --section-padding-mobile: 70px 0;
    --border-radius-sm: 10px;
    --border-radius: 18px;
    --border-radius-lg: 30px;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(15px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 500; /* Medium weight for clarity */
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
    font-size: 18px;
    overflow-x: hidden;
    padding-top: 105px; /* تعويض ارتفاع الهيدر الثابت لمنع اقتصاص صورة الهيرو من الأعلى */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light { background-color: var(--bg-body); }
.bg-teal { background: var(--bg-teal-gradient); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800; /* ExtraBold for Alyamama headings */
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white p {
    color: #ffffff;
}

.section-title {
    margin-bottom: 70px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--bg-gold-gradient);
    margin-top: 16px;
    border-radius: 4px;
}

.divider.center {
    margin: 16px auto 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700; /* Bold for buttons */
    font-size: 1.1rem;
    font-family: var(--font-main);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-medium);
    gap: 12px;
    min-height: 56px; /* Touch target size */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(11, 69, 67, 0.25);
}

.btn-gold {
    background: var(--bg-gold-gradient);
    color: var(--primary-dark);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.35);
}

.btn-lg, .btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-dark);
}

.text-white .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.text-white .btn-outline:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-medium);
}

.header-scrolled .header-content {
    height: 70px;
}

.logo img {
    height: 55px;
    transition: var(--transition-medium);
}

.header-scrolled .logo img {
    height: 45px;
}

.main-nav .nav-contact-wrapper {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.nav-contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.nav-contact-item:hover {
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.nav-search-trigger {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 168, 122, 0.1);
    transition: all var(--transition-fast);
}

.nav-search-trigger:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Hero Section (Refined Static Layout)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.hero-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #003034; /* Dark teal matching the image */
    overflow: hidden;
    z-index: 1; /* Changed from -1 to 1 */
}

.hero-bg-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-static-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    /* High Quality Rendering Properties */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Overlays and secondary layers removed as per request for clear static image */
.layer-3-overlay, .layer-4-secondary {
    display: none;
}

.layer-2-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/footer-pattern-bg.webp');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10; 
    opacity: 0.2; 
    mix-blend-mode: soft-light; 
}

/* --- LAYER 5: Logo (FIXED) --- */
/* --- LAYER 5: Logo (The "Sacred Light" Badge) --- */
.hero-info-banner {
    position: absolute !important;
    top: 130px !important; /* Lowered on desktop to be fully visible below header */
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important; /* Maximum priority */
    padding: 0 50px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-main-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(0, 43, 35, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 25px 45px !important;
    border-radius: 100px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
    gap: 30px !important;
    transition: background 0.4s ease !important;
}

.hero-main-banner:hover {
    background: rgba(0, 43, 35, 0.9) !important;
}

.hero-bar-logo img {
    height: 90px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
}

.hero-bar-text {
    flex: 1 !important;
    text-align: right !important;
}

.hero-bar-text .support-line {
    font-size: 1rem !important;
    margin-bottom: 5px !important;
    opacity: 0.9 !important;
    color: #fff !important;
}

.hero-bar-text .slide-title {
    font-size: 2.2rem !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    text-shadow: none !important;
}

.hero-bar-text .slide-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    color: var(--accent-light) !important;
}

.btn-sm {
    padding: 12px 30px !important;
    font-size: 1rem !important;
    min-height: auto !important;
}

/* Slide content replaced by hero top bar */

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 3.5rem; /* Adjusted for card layout */
    font-weight: 900; /* Black weight for maximum impact */
    margin-bottom: 25px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 1.4rem; /* Adjusted for card */
    margin-bottom: 45px;
    color: #dec7a4;
    font-weight: 500;
    line-height: 1.6;
}

.support-line {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.highlight-gold {
    color: #C9A87A;
    font-size: 1.15em;
    display: inline-block;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 20px rgba(201, 168, 122, 0.2));
}

/* CTA Styles */
.hero-cta .btn-gold {
    background: linear-gradient(135deg, #C9A87A 0%, #a68b63 100%);
    color: #052b23;
    padding: 22px 55px;
    border-radius: 60px;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 15px 30px rgba(201, 168, 122, 0.3);
    border: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-cta .btn-gold:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 45px rgba(201, 168, 122, 0.5);
    background: linear-gradient(135deg, #dec7a4 0%, #C9A87A 100%);
}

/* Navigation dots removed as per request */
.hero-dots {
    display: none;
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .slide-title { font-size: 4.2rem; }
    .layer-5-logo img { max-height: 100px; }
}

@media (max-width: 991px) {
    .hero-info-banner {
        top: 10px !important; /* Move to the top where there is more space */
        bottom: auto !important; 
        padding: 0 20px !important;
    }
    
    .hero-main-banner {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 20px 15px !important; /* Increased padding */
        text-align: center !important;
        gap: 8px !important;
        background: rgba(0, 43, 35, 0.85) !important;
    }

    .hero-bar-text {
        text-align: center !important;
    }

    .hero-bar-logo img {
        height: 50px !important; /* Smaller logo for mobile */
    }

    .hero-bar-text .support-line {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }

    .hero-bar-text .slide-title {
        font-size: 1.2rem !important;
    }

    .hero-bar-text .slide-subtitle {
        font-size: 0.8rem !important;
    }

    .btn-sm {
        width: 100% !important;
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .hero { height: 700px; min-height: 650px; }
    .slide-title { font-size: 2.4rem; line-height: 1.3; margin-bottom: 20px; }
    .slide-subtitle { font-size: 1.2rem; line-height: 1.6; margin-bottom: 30px; }
    .support-line { font-size: 1rem; margin-bottom: 10px; }
    .layer-2-pattern { background-size: cover; }
    .layer-4-secondary { display: none; }
    .btn-gold { padding: 16px 40px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .slide-title { font-size: 1.9rem; line-height: 1.4; }
    .slide-subtitle { font-size: 1.1rem; }
    .layer-5-logo img { max-height: 120px; }
    .layer-5-logo { 
        right: 50%; 
        transform: translateX(50%); 
        top: 100px; 
        width: 190px;
    }
    .hero-dots { bottom: 30px; }
    
    /* About Intro Responsive */
    .award-main-title { font-size: 1.8rem !important; }
    .mercy-text { font-size: 1.1rem; }
    .patronage-badge { padding: 20px !important; width: 100%; }
    .patronage-badge p { font-size: 1.1rem !important; }
}



/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.25rem;
    margin-bottom: 24px;
    line-height: 1.9;
}

.about-text .divider {
    margin: 16px auto 0;
}

/* --- About Intro Header --- */
.about-intro {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.award-main-title {
    font-size: 2.6rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 30px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
}

.mercy-text {
    font-size: 1.5rem;
    color: var(--accent-dark);
    font-weight: 400;
    display: inline-block;
    margin-right: 10px;
}

.currency {
    color: var(--accent-color);
    font-weight: bold;
}

.sar-symbol {
    font-size: 0 !important;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.sar-symbol::before {
    content: "";
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'%3E%3Cpath fill='%23cda869' d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath fill='%23cda869' d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 4px;
}

/* Specific styling for the summary box */
.total-prize-card .sar-symbol {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.patronage-badge {
    display: inline-block;
    background: var(--bg-teal-gradient);
    color: #fff;
    padding: 25px 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform var(--transition-medium);
}

.patronage-badge:hover {
    transform: translateY(-5px);
}

.patronage-badge i {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201, 168, 122, 0.4));
}

.patronage-badge p {
    margin-bottom: 5px !important;
    color: #fff !important;
    font-size: 1.3rem !important;
}

.governor-title {
    display: block;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* --- About Content Blocks --- */
.about-content-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    text-align: right; /* Aligned right for better readability in RTL text blocks */
}

.about-info-box {
    background: #ffffff;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-right: 6px solid var(--accent-color);
    transition: all var(--transition-medium);
}

.about-info-box:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.block-title {
    color: var(--primary-color) !important;
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.block-title i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.goal-box {
    background: var(--bg-body);
    border-right-color: var(--primary-color);
}

.about-info-box p {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    line-height: 1.8 !important;
    color: var(--text-muted);
}



/* ==========================================================================
   Tracks Section (Cards) - REDESIGNED
   ========================================================================== */

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.track-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: floatCard 6s ease-in-out infinite;
}

.track-card:nth-child(even) {
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-teal-gradient);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: -1;
}

.track-card:hover {
    transform: translateY(-16px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.track-card:hover::before {
    opacity: 1;
}

.track-card:hover h3, 
.track-card:hover h4, 
.track-card:hover .track-details li,
.track-card:hover .track-details li i {
    color: #ffffff;
}

.track-card:hover .prize-value {
    color: var(--accent-light);
}

.track-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.2));
    color: var(--accent-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.track-icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    transition: var(--transition-medium);
}

@keyframes iconPulse {
    from { box-shadow: 0 0 0 rgba(201, 168, 122, 0); }
    to { box-shadow: 0 0 20px rgba(201, 168, 122, 0.3); }
}

.track-card:hover .track-icon img {
    transform: scale(1.15);
}

.track-card h3 {
    font-size: 1.1rem;
    color: var(--accent-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-card h4 {
    font-size: 2rem;
    margin-bottom: 8px; /* Reduced margin to accommodate subtitle */
    color: var(--primary-color);
}

.track-subtitle {
    font-size: 1.1rem;
    color: var(--accent-dark);
    margin-bottom: 24px;
    font-weight: 600;
}

.track-details {
    margin-top: auto;
}

.track-details li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.track-details li i {
    color: var(--primary-light);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Highlighted Prize Value */
.prize-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-dark);
    display: block;
    margin-top: 4px;
}

.gender-tag {
    display: block;
    font-size: 1rem;
    color: var(--primary-light);
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Target Audience & Stages
   ========================================================================== */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.audience-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Audience Cards */

.audience-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-surface);
    padding: 24px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-medium);
}

/* Jury Members Grid */
.jury-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.jury-group-label {
    margin-bottom: 30px;
}

.jury-group-label h3 {
    font-size: 1.8rem;
    color: var(--color-teal-dark);
    font-family: 'Alyamama', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.jury-group-label h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.head-card {
    border: 2px solid var(--color-gold) !important;
    background: linear-gradient(to bottom, #fff, #fffaf0);
    flex: 1 1 450px !important;
    max-width: 100%;
}

@media (min-width: 769px) {
    .heads-grid {
        flex-wrap: nowrap !important;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
    }
}

.jury-member-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    flex: 1 1 320px;
    max-width: 450px;
    border: 1px solid rgba(var(--color-gold-rgb), 0.1);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.jury-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.member-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(var(--color-gold-rgb), 0.1);
    padding-bottom: 15px;
}

.member-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.member-header h3 {
    font-size: 1.25rem;
    color: var(--color-teal-dark);
    margin: 0;
    font-family: 'Alyamama', sans-serif;
}

.member-bio {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-bio li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.member-bio li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--color-gold);
    font-size: 0.8rem;
    top: 4px;
}

/* Responsive adjustments for jury split (old classes being kept for safety if used elsewhere) */
.judging-split {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.audience-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.audience-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(11, 69, 67, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
    animation: softPulse 4s infinite alternate;
}

@keyframes softPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.audience-card:hover .audience-icon {
    background: var(--bg-teal-gradient);
    color: #fff;
}

.audience-card span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Consolidated Branches & Groups Section --- */
.consolidated-image-wrapper {
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    padding: 10px;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius) - 10px);
}

/* --- Horizontal Timeline for Stages --- */
.competition-stages-full {
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

@media (min-width: 992px) {
    .timeline-horizontal::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 10%;
        right: 10%;
        height: 3px;
        background: var(--bg-teal-gradient);
        opacity: 0.2;
        z-index: 1;
    }
}

.timeline-horizontal .timeline-item {
    flex: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-horizontal .timeline-dot {
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    right: auto; /* Reset old position */
}

.timeline-horizontal .timeline-content {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
    width: 100%;
    transition: var(--transition-medium);
}

.timeline-horizontal .timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

@media (max-width: 991px) {
    .timeline-horizontal {
        flex-direction: column;
        gap: 40px;
    }
}


/* Removed old conditions and scoring system sections */

/* ==========================================================================
   Downloads Section
   ========================================================================== */

.downloads-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

.download-card {
    background: var(--bg-surface);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    flex: 1 1 350px;
    max-width: 450px;
}

.download-card.card-wide {
    flex: 1 1 600px;
    max-width: 1000px;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.download-minimal {
    margin-top: 40px;
}

/* Branch Selector & Results Styles */
.branch-selector-wrapper {
    margin: 30px auto;
    max-width: 500px;
    text-align: center;
}

.selector-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.branch-dropdown {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
    background-color: #fff;
    color: var(--primary-dark);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d4745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 20px;
}

.branch-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(13, 71, 69, 0.1);
}

.results-container {
    margin-top: 40px;
    min-height: 100px;
    background: transparent;
    padding: 0;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-muted);
}

.results-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Results Table Style (Matching Prize Tables) */
.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    overflow: hidden; /* For rounded corners */
}

.results-table th {
    background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
    color: var(--color-gold);
    padding: 18px 20px;
    text-align: right;
    font-weight: 800;
    font-family: 'Alyamama', sans-serif;
    border-bottom: 2px solid var(--color-gold);
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(var(--color-gold-rgb), 0.15);
    border-left: 1px solid rgba(var(--color-gold-rgb), 0.15);
    font-weight: 500;
    color: var(--text-main);
}

.results-table td:last-child {
    border-left: none;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:nth-child(even) {
    background-color: rgba(var(--color-gold-rgb), 0.03);
}

.results-table tr:hover {
    background-color: rgba(var(--color-gold-rgb), 0.08);
}

.results-table.stacked-table {
    border-radius: 15px;
}

.stacked-cell {
    padding: 25px 20px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.results-table .candidate-name {
    color: var(--color-teal-dark);
    font-weight: 800;
    font-size: 1.25rem;
}

.results-table .org-name {
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: 600;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-content h2 {
    font-size: 3rem;
}

.download-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   Media Section
   ========================================================================== */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-surface);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(11, 69, 67, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-medium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(0, 26, 26, 0.85), rgba(0, 26, 26, 0.85)), url('../assets/images/footer-pattern-bg.webp');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

/* Removed redundant radial pattern as it is replaced by background image */
.footer-pattern {
    display: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.footer-divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.2);
}

.footer-logo h2 {
    color: var(--accent-light);
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.footer-logo img.footer-calligraphy {
    max-height: 130px; /* زيادة الحجم قليلاً للمزامنة البصرية */
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    /* تحويل اللون إلى الأبيض الصافي */
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: all 0.4s ease;
}

.footer-logo img.footer-calligraphy:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 6px 15px rgba(255, 255, 255, 0.2));
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 500;
}

.footer-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
    max-width: 450px;
}

/* Sponsor logos row below the footer description */
.footer-sponsor-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align to the right in RTL */
    align-items: center;
    gap: 45px; /* Increased gap */
    margin-top: 35px;
}

/* Column wrapper: calligraphy + logos stacked vertically */
.footer-calligraphy-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centered partners row above copyright */
.footer-partners {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-sponsor-img {
    height: 85px; /* Increased height */
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.footer-sponsor-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-sponsor-logos {
        justify-content: center;
    }
}

.footer-contact h3 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.footer-contact ul li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.footer-contact ul li:hover {
    color: var(--accent-light);
}

.footer-contact ul li i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.social-links {
    margin-top: 32px;
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--accent-light);
    font-size: 1rem;
    margin: 0;
}

.agency-credit {
    font-size: 0.95rem !important;
}

.agency-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.agency-credit a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition-medium);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes patternPan {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay Utility */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ==========================================================================
   Media Queries (Responsive) - Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    
    .about-grid, .info-grid, .conditions-grid, .downloads-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .downloads-grid {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .header-content, .header-scrolled .header-content {
        height: 60px;
    }
    
    .logo img, .header-scrolled .logo img {
        height: 40px;
    }

    h1 { font-size: 2.8rem; }
    .main-title small { font-size: 1.5rem; }
    
    .hero-desc { font-size: 1.2rem; }
    
    .hero-buttons, .download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-medium);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-contact-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
    
    .header-actions .btn-primary {
        display: none;
    }

    .conditions {
        margin: 0;
        border-radius: 0;
    }
    
    .score-details {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline::before {
        right: 24px;
    }
    
    .timeline-dot {
        width: 40px;
        height: 40px;
        right: -40px;
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        flex-direction: column;
        gap: 20px;
    }

    .footer-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }

    .footer-logo p {
        max-width: 100% !important;
    }
    
    .footer-contact ul li, .social-links {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* Premium Partners Grid Layout */
.partners-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: stretch;
    justify-items: center;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .partners-premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .partners-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.partner-card {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--border-radius-lg);
    padding: 15px; /* Reduced padding to give image more space */
    width: 280px;
    height: 160px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    flex-shrink: 0;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-light);
}

.partner-card img {
    max-width: 90%; /* Increased from 100% (with padding) to 90% */
    max-height: 120px; /* Increased significantly from 80px */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Infinite Scrolling Marquee Effect */
.partners-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin-top: 40px;
}

.partners-marquee {
    display: flex;
    flex-wrap: nowrap; /* Ensure they stay in one line */
    gap: 40px;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.partners-marquee:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.partners-marquee .partner-card {
    width: 280px;
    flex-shrink: 0;
    margin: 0; /* Clear margins to ensure gap is the only spacing */
}

.fallback-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.partner-card:hover .fallback-logo {
    color: var(--accent-dark);
}

/* Media Gallery Section */
.media-gallery {
    background-color: var(--bg-surface);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.video-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0,0,0,0.2);
}

.play-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background: var(--accent-light);
    color: #fff;
}

.video-info {
    padding: 25px;
    text-align: center;
}

.video-info h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.5;
}

/* Modal / Lightbox */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-light);
}

.modal-content video {
    width: 100%;
    display: block;
    outline: none;
    border-radius: 12px;
}

/* Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal .modal-content {
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.image-modal img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* Photo Gallery Extension */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.photo-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.photo-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.photo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-img-wrapper img {
    transform: scale(1.08);
}

.photo-caption {
    padding: 20px;
    text-align: center;
}

.photo-caption h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Brand Integration – Royal & Prestigious Refinement
   ========================================================================== */

/* ── 1. Heading Framework: Title Brackets ─────────────────────────────────── */

/* Wrap every decorated H2 inside .section-title in a flex row */
.section-title h2,
.section-title h2.text-center {
    display: inline-flex;
    align-items: center;
    gap: 0; /* gaps controlled by bracket pseudo-elements */
}

/* Shared bracket image properties */
.section-title h2::before,
.section-title h2::after {
    content: '';
    display: inline-block;
    /* Scale with the font-size: 1em ≈ current font size */
    width:  1em;
    height: 1em;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* 15px margin on each side of the text */
    margin-inline: 15px;
}

/* Right bracket (RTL page → ::before is visually right) */
.section-title h2::before {
    background-image: url('../assets/images/title-bracket-right.webp');
}

/* Left bracket (RTL page → ::after is visually left) */
.section-title h2::after {
    background-image: url('../assets/images/title-bracket-left.webp');
}

/* When the .section-title is centered, keep the whole row centred */
.section-title.text-center {
    text-align: center;
}
.section-title.text-center h2 {
    justify-content: center;
}

/* Increase breathing room around decorated titles */
.section-title {
    margin-bottom: 80px;
    padding: 0 0 10px;
}

/* ── 2. Section Transition Dividers ───────────────────────────────────────── */

.section-divider {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-divider img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.55;
}

/* Light backgrounds */
.section-divider-light img {
    opacity: 0.55;
}

/* Dark / coloured backgrounds – slightly more subtle */
.section-divider-dark img {
    opacity: 0.35;
}

/* ── 3. Margin Decorations – Side Elements ────────────────────────────────── */

/* The section itself must be position: relative so absolutes work */
.has-side-elements {
    position: relative;
    overflow: visible; /* allow side decorations to bleed outside */
}

.side-element {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    pointer-events: none;
    z-index: 0;
}

.side-element img {
    width: 100%;
    height: auto;
    display: block;
}

/* Place right element beyond the container */
.side-element-right {
    right: -110px;
}

/* Place left element beyond the container */
.side-element-left {
    left: -110px;
}

/* ── 4. Visual Hierarchy & Harmony – White Space Enhancements ─────────────── */

/* Extra vertical padding on sections with brand decorations */
.about.section-padding,
.tracks.section-padding,
.info-section.section-padding,
.downloads.section-padding,
.media-gallery.section-padding {
    padding: 140px 0;
}

.conditions.section-padding {
    padding: 100px 0;
}

/* Breathing room between divider and section content */
.section-divider + * {
    padding-top: 20px;
}

/* ── 5. Responsiveness – Hide Side Elements on Mobile & Tablet ────────────── */

@media (max-width: 1280px) {
    /* When viewport is too narrow to show elements outside, reposition them */
    .side-element-right {
        right: -80px;
        width: 70px;
    }
    .side-element-left {
        left: -80px;
        width: 70px;
    }
}

@media (max-width: 1024px) {
    /* Hide completely on tablet and smaller */
    .side-element {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Title brackets – shrink slightly on mobile */
    .section-title h2::before,
    .section-title h2::after {
        width:  0.75em;
        height: 0.75em;
        margin-inline: 10px;
    }
    .section-title {
        margin-bottom: 60px;
    }
    /* Reset extra section padding on mobile */
    .about.section-padding,
    .tracks.section-padding,
    .info-section.section-padding,
    .downloads.section-padding,
    .media-gallery.section-padding {
        padding: 80px 0;
    }
}

/* ==========================================================================
   Hero – Brand Pattern Overlays & Side Decoration
   ========================================================================== */

/* ── Bottom & Top Divider Patterns ───────────────────────────────────────── */
.hero-divider-top,
.hero-divider-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 25;          /* above hero content (z-index 20) */
    pointer-events: none;
    line-height: 0;
    overflow: hidden;
}

.hero-divider-top img,
.hero-divider-bottom img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.55;
}

.hero-divider-top  { top: 0; }
.hero-divider-bottom { bottom: 0; }

@media (min-width: 1024px) {
    .hero-divider-top img,
    .hero-divider-bottom img { opacity: 0.55; }
}

@media (max-width: 768px) {
    .hero-divider-bottom img { opacity: 0.35; }
}

/* ── Side Element – Left ─────────────────────────────────────────────────── */
.hero-side-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 22;          /* above overlay, below text */
    pointer-events: none;
    width: 100px;
    opacity: 0.55;
}

.hero-side-left img {
    width: 100%;
    height: auto;
    display: block;
}

/* Shrink side elements on tablet & mobile instead of hiding */
@media (max-width: 1024px) {
    .hero-side-left { width: 60px; }
}
@media (max-width: 768px) {
    .hero-side-left { width: 40px; top: 50%; transform: translateY(-50%); }
}

/* ── Side Element – Right ─────────────────────────────────────────────────── */
.hero-side-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 22;
    pointer-events: none;
    width: 100px;
    opacity: 0.55;
}

.hero-side-right img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .hero-side-right { width: 60px; }
}
@media (max-width: 768px) {
    .hero-side-right { width: 40px; top: 50%; transform: translateY(-50%); }
}

/* ── Side Elements (Generic for other sections) ─────────────────────────────── */
.side-element {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.side-element-left { left: 0; }
.side-element-right { right: 0; }

@media (max-width: 1024px) {
    .side-element { width: 50px; }
}
@media (max-width: 768px) {
    .side-element { width: 35px; top: 50%; transform: translateY(-50%); }
}

/* Custom Unified Section Dividers */
.unified-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    background-color: transparent;
    pointer-events: none;
    position: relative;
    z-index: 5;
}

.unified-divider img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    opacity: 0.3; 
    display: block;
}

.divider-on-white { background-color: var(--bg-surface); }
.divider-on-light { background-color: var(--bg-body); }

/* Judging Section Split (Men & Women) */
.judging-split {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 80px;
    margin-top: 60px;
    justify-content: center;
}

.judging-group {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
}


.group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 45px;
    background: rgba(11, 79, 64, 0.03);
    padding: 20px 40px;
    border-radius: 100px;
    border: 1px solid rgba(11, 79, 64, 0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.group-icon {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(11, 79, 64, 0.1));
    transition: transform 0.4s ease;
}

.judging-group:hover .group-icon {
    transform: scale(1.1) rotate(5deg);
}

.group-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0;
}


.group-header .divider {
    width: 60px;
    height: 3px;
    margin: 0 auto;
}

.judging-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.jury-card-minimal {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 79, 64, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.jury-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.jury-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.jury-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}


@media (max-width: 1024px) {
    .judging-split {
        gap: 40px;
    }
    .group-header {
        padding: 18px 30px;
    }
}

@media (max-width: 768px) {
    .judging-split {
        flex-direction: column !important;
        gap: 60px;
    }

    .group-header {
        padding: 12px 20px;
        gap: 15px;
        border-radius: 50px;
    }
    .group-icon {
        width: 50px;
    }
    .group-header h3 {
        font-size: 1.3rem;
    }

    .jury-member-card {
        padding: 20px;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .head-card {
        flex: 1 1 100% !important;
    }
}



/* Visitor Counter */
.footer-visitor-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-right: 40px;
    padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-visitor-counter i {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.visitor-count {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.footer-visitor-counter p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-visitor-counter {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
        margin-top: 30px;
    }
}

/* Prize Tables Gender Icons */
.gender-th {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.gender-icon {
    width: 32px;
    height: auto;
    transition: transform 0.3s ease;
}


/* ==========================================================================
   Results & Download Cards Alignment Fix
   ========================================================================== */

.download-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    margin-bottom: 30px;
}

.results-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 25px;
    min-height: 200px;
}

.branch-selector-wrapper {
    margin-bottom: 25px;
}

.branch-dropdown {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-main);
    font-size: 1.1rem;
    background-color: #fff;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .download-card {
        padding: 25px 20px;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    .results-section .container {
        padding: 0 15px;
    }
}

