/* Enhanced Competitions Page - Full Theme Support */

/* ===== THEME VARIABLES ===== */
:root {
    /* Light Theme (Default) */
    --competition-bg-primary: #f8fafc;
    --competition-bg-secondary: #ffffff;
    --competition-bg-card: #ffffff;
    --competition-text-primary: #2c3e50;
    --competition-text-secondary: #5a6c7d;
    --competition-border: #e2e8f0;
    --competition-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --competition-glass-bg: rgba(255, 255, 255, 0.1);
    --competition-glass-border: rgba(255, 255, 255, 0.2);
    
    /* Gradients - Same for both themes */
    --gradient-competition: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-success: linear-gradient(135deg, #27ae60, #229954);
    --gradient-warning: linear-gradient(135deg, #f39c12, #e67e22);
    --gradient-national: linear-gradient(135deg, #3498db, #2980b9);
    --gradient-arabic: linear-gradient(135deg, #2ecc71, #27ae60);
    --gradient-international: linear-gradient(135deg, #f1c40f, #f39c12);
    
    /* Accent colors */
    --competition-accent: #3498db;
    --competition-accent-hover: #2980b9;
    --competition-success: #27ae60;
    --competition-warning: #f39c12;
    --competition-gold: #ffd700;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --competition-bg-primary: #1a202c;
    --competition-bg-secondary: #2d3748;
    --competition-bg-card: #2d3748;
    --competition-text-primary: #e2e8f0;
    --competition-text-secondary: #a0aec0;
    --competition-border: #4a5568;
    --competition-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --competition-glass-bg: rgba(45, 55, 72, 0.7);
    --competition-glass-border: rgba(74, 85, 104, 0.3);
}

/* ===== BASE STYLES ===== */
.competitions-page {
    background: var(--competition-bg-primary);
    color: var(--competition-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ===== BACKGROUND ANIMATIONS ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: var(--competition-accent);
    opacity: 0.1;
    border-radius: 50%;
    animation: floatAround 20s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: var(--competition-accent);
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    background: var(--competition-success);
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    background: var(--competition-warning);
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 25%;
    animation-delay: -15s;
    background: var(--competition-gold);
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-competition);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(39, 174, 96, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% { 
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4),
                     0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.hero-title-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite, spin 10s linear infinite;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
    background: var(--competition-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--competition-glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    animation: slideUp 1s ease-out 0.8s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--competition-gold), #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TYPES NAVIGATION ===== */
.types-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    background: var(--competition-bg-secondary);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: var(--competition-shadow);
    border: 1px solid var(--competition-border);
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--competition-text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--competition-bg-card);
    border: 2px solid transparent;
    min-width: 140px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.type-card:hover::before {
    opacity: 0.1;
}

.type-card.active::before {
    opacity: 0.15;
}

.type-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--competition-accent);
}

.type-card.active {
    border-color: var(--competition-accent);
    background: linear-gradient(135deg, var(--competition-bg-card), rgba(52, 152, 219, 0.1));
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--competition-accent);
    position: relative;
    z-index: 2;
}

.type-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.type-count {
    background: var(--competition-accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--competition-bg-primary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--competition-bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--competition-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--competition-shadow);
    border-color: var(--competition-accent);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--competition-bg-primary), var(--competition-bg-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--competition-accent);
    position: relative;
    overflow: hidden;
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--competition-accent);
}

.feature-title {
    color: var(--competition-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--competition-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== CHAMPIONSHIP CARDS ===== */
.championships-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.championship-card {
    background: var(--competition-bg-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--competition-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--competition-border);
    position: relative;
}

.championship-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--competition-accent);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--competition-gold), #ffcc00);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.championship-header {
    background: var(--gradient-competition);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.championship-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--competition-gold), transparent);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { background-position: -100px; }
    100% { background-position: 300px; }
}

.country-flag {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.championship-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.championship-logo:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--competition-accent);
}

.championship-titles {
    flex: 1;
    min-width: 250px;
}

.championship-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.championship-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.championship-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge,
.type-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.status-badge::before,
.type-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before,
.type-badge:hover::before {
    left: 100%;
}

.status-completed { 
    background: var(--gradient-success);
}

.status-upcoming { 
    background: var(--gradient-warning);
}

.status-ongoing { 
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.type-national { 
    background: var(--gradient-national);
}

.type-arabic { 
    background: var(--gradient-arabic);
}

.type-international { 
    background: var(--gradient-international);
}

/* ===== CHAMPIONSHIP BODY ===== */
.championship-body {
    padding: 2.5rem;
}

.championship-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--competition-bg-primary), var(--competition-bg-secondary));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--competition-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: var(--competition-bg-card);
    border: 1px solid var(--competition-border);
}

.meta-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--competition-accent);
}

.meta-item i {
    font-size: 1.8rem;
    color: var(--competition-accent);
    min-width: 40px;
    text-align: center;
}

.meta-content {
    flex: 1;
}

.meta-label {
    font-weight: 700;
    color: var(--competition-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-value {
    color: var(--competition-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ===== CHAMPIONSHIP DESCRIPTION ===== */
.championship-description {
    margin-bottom: 2.5rem;
}

.championship-description h5 {
    color: var(--competition-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.championship-description p {
    color: var(--competition-text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.awards-section {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.8), rgba(255, 243, 205, 0.8));
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--competition-gold);
    margin-top: 1.5rem;
}

[data-theme="dark"] .awards-section {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.1), rgba(255, 243, 205, 0.1));
}

.awards-section h6 {
    color: #d48806;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== GALLERY ===== */
.championship-gallery {
    margin-top: 2.5rem;
}

.championship-gallery h5 {
    color: var(--competition-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid transparent;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--competition-accent);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .more-overlay {
    opacity: 1;
}

/* ===== UPCOMING SECTION ===== */
.upcoming-section {
    background: linear-gradient(135deg, var(--competition-bg-primary), var(--competition-bg-secondary));
    padding: 3rem;
    border-radius: 25px;
    margin-top: 4rem;
    border: 2px solid var(--competition-border);
}

.upcoming-section h3 {
    color: var(--competition-text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.upcoming-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.upcoming-card {
    background: var(--competition-bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--competition-border);
    position: relative;
    overflow: hidden;
}

.upcoming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warning);
    animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
    0%, 100% { transform: scaleX(0.8); }
    50% { transform: scaleX(1); }
}

.upcoming-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--competition-warning);
}

.upcoming-date {
    background: var(--gradient-warning);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    animation: datePulse 2s infinite;
}

@keyframes datePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.upcoming-card h4 {
    color: var(--competition-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.upcoming-card p {
    color: var(--competition-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-competition);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(39, 174, 96, 0.1) 0%, transparent 50%);
    animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    display: inline-block;
    animation: bounce 2s infinite, rocketFly 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes rocketFly {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleSlideIn 1s ease-out;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: subtitleFadeIn 1s ease-out 0.5s both;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: buttonsSlideUp 1s ease-out 0.8s both;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-buttons .btn:hover::before {
    left: 100%;
}

.cta-buttons .btn i {
    font-size: 1.3rem;
}

/* ===== ORGANIZER SECTION ===== */
.organizer-section {
    background: linear-gradient(135deg, var(--competition-bg-primary), var(--competition-bg-secondary));
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.organizer-section::before {
    content: '🏆';
    position: absolute;
    font-size: 20rem;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.organizer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.organizer-title {
    color: var(--competition-text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInRight 1s ease-out;
}

.organizer-name {
    color: var(--competition-accent);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: ruby-text;
    animation: nameGlow 3s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    }
}

.organizer-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: linePulse 2s infinite;
}

@keyframes linePulse {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

.organizer-roles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: right;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.organizer-roles li {
    color: var(--competition-text-secondary);
    padding: 1rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--competition-border);
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.organizer-roles li:nth-child(1) { animation-delay: 0.6s; }
.organizer-roles li:nth-child(2) { animation-delay: 0.8s; }
.organizer-roles li:nth-child(3) { animation-delay: 1s; }

.organizer-roles li:last-child {
    border-bottom: none;
}

.organizer-roles li i {
    color: var(--competition-success);
    font-size: 1.5rem;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: var(--gradient-competition);
    color: white;
    animation: modalEntrance 0.4s ease-out;
}

.contact-modal-header {
    background: linear-gradient(135deg, var(--competition-accent), var(--competition-accent-hover));
    border-bottom: none;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, var(--competition-accent), #9b59b6);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.contact-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    animation: headsetFloat 2s ease-in-out infinite;
}

@keyframes headsetFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.contact-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-modal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.contact-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-action-btn:hover::before {
    left: 100%;
}

.contact-action-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:hover { background: linear-gradient(135deg, #25D366, #128C7E); }
.facebook-btn:hover { background: linear-gradient(135deg, #4267B2, #365899); }
.email-btn:hover { background: linear-gradient(135deg, #EA4335, #D14836); }
.phone-btn:hover { background: linear-gradient(135deg, #34A853, #2E8B57); }
.location-btn:hover { background: linear-gradient(135deg, #FBBC05, #F29900); }

.contact-btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-btn-icon {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-action-btn:hover .contact-btn-icon {
    transform: scale(1.1);
}

.whatsapp-btn .contact-btn-icon { color: #25D366; }
.facebook-btn .contact-btn-icon { color: #4267B2; }
.email-btn .contact-btn-icon { color: #EA4335; }
.phone-btn .contact-btn-icon { color: #34A853; }
.location-btn .contact-btn-icon { color: #FBBC05; }

.contact-btn-text {
    text-align: right;
}

.contact-btn-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-btn-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-btn-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-action-btn:hover .contact-btn-arrow {
    transform: translateX(-5px);
    opacity: 1;
}

.contact-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
}

/* ===== LIGHTBOX ENHANCEMENTS ===== */
.glightbox-container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.gslide-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.glightbox-clean .gclose {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: closeButtonPulse 2s infinite;
}

@keyframes closeButtonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.glightbox-clean .gclose:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: scale(1.2);
}

.glightbox-clean .gprev, .glightbox-clean .gnext {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.glightbox-clean .gprev:hover, .glightbox-clean .gnext:hover {
    background: rgba(52, 152, 219, 0.5);
    transform: scale(1.1);
}

/* Exit hint for lightbox */
.lightbox-exit-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.lightbox-exit-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .championship-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 3rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .championship-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .championship-titles {
        min-width: auto;
    }
    
    .types-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .type-card {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title-icon {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .championship-meta {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
    
    .upcoming-cards {
        grid-template-columns: 1fr;
    }
    
    .lightbox-exit-hint {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .championship-header {
        padding: 1.5rem;
    }
    
    .championship-logo {
        width: 100px;
        height: 100px;
    }
    
    .championship-title {
        font-size: 1.6rem;
    }
    
    .championship-body {
        padding: 1.5rem;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .meta-item i {
        margin-bottom: 0.5rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .organizer-name {
        font-size: 2rem;
    }
    
    .organizer-roles li {
        font-size: 1rem;
    }
    
    .contact-modal-content {
        margin: 1rem;
    }
    
    .contact-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .contact-modal-body {
        padding: 1rem;
    }
    
    .contact-action-btn {
        padding: 0.875rem;
    }
    
    .contact-btn-title {
        font-size: 0.9rem;
    }
    
    .contact-btn-desc {
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes buttonsSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    min-height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .championship-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cta-section,
    .types-container,
    .upcoming-section,
    .animated-bg,
    .print-btn {
        display: none !important;
    }
    
    .hero-section {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ===== LIGHTBOX FIXES ===== */
.glightbox-container {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gslide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
}

.gslide-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 90vh !important;
    max-width: 90vw !important;
    margin: auto !important;
}

.gslide-image img {
    max-height: 90vh !important;
    max-width: 90vw !important;
    object-fit: contain !important;
    margin: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Close button styling */
.glightbox-clean .gclose {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(231, 76, 60, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    z-index: 999999 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.glightbox-clean .gclose:hover {
    background: rgba(192, 57, 43, 0.9) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5) !important;
}

/* Navigation buttons */
.glightbox-clean .gprev,
.glightbox-clean .gnext {
    width: 60px !important;
    height: 60px !important;
    background: rgba(52, 152, 219, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
    background: rgba(41, 128, 185, 0.9) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5) !important;
}

/* Description styling */
.gslide-description {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    font-size: 1rem !important;
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* ===== MODAL FIXES ===== */
.modal-backdrop {
    backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.modal.show .modal-dialog {
    animation: modalEntrance 0.4s ease-out !important;
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== BUTTON FIXES ===== */
.cta-buttons .btn {
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.cta-buttons .btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* ===== ANIMATED BG FIXES ===== */
.animated-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.floating-element {
    position: absolute !important;
    border-radius: 50% !important;
    animation: floatAround 20s infinite linear !important;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .glightbox-clean .gclose {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .glightbox-clean .gprev,
    .glightbox-clean .gnext {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .gslide-image img {
        max-height: 80vh !important;
        max-width: 95vw !important;
    }
}

/* ===== PRINT FIXES ===== */
@media print {
    .animated-bg,
    .print-btn,
    .lightbox-exit-hint {
        display: none !important;
    }
    
    .championship-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .hero-section {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ===== IMAGE VIEWER MODAL ===== */
.image-viewer-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.image-viewer-modal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.image-viewer-modal .modal-header .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.image-viewer-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.image-viewer-modal .modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.image-viewer-modal .modal-body {
    padding: 0;
    background: transparent;
}

/* Image Viewer Container */
.image-viewer-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Main Image Wrapper */
.main-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    min-height: 60vh;
}

.main-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.main-viewer-image.loaded {
    opacity: 1;
}

/* Navigation Buttons */
.viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.viewer-nav-btn:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.viewer-nav-btn.prev-btn {
    right: 20px;
}

.viewer-nav-btn.next-btn {
    left: 20px;
}

/* Loading State */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

.image-loading .spinner-border {
    width: 50px;
    height: 50px;
}

/* Thumbnails */
.viewer-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.viewer-thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.viewer-thumbnail.active {
    opacity: 1;
    border-color: var(--competition-accent);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.5);
    transform: translateY(-5px);
}

.viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Info */
.image-info {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.image-counter {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.image-description {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Viewer */
@media (max-width: 992px) {
    .main-image-wrapper {
        min-height: 50vh;
    }
    
    .viewer-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .viewer-thumbnail {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .image-viewer-container {
        height: 70vh;
    }
    
    .main-image-wrapper {
        min-height: 40vh;
    }
    
    .viewer-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 40%;
    }
    
    .viewer-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .image-viewer-container {
        height: 60vh;
    }
    
    .viewer-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .viewer-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* ===== FIX ANIMATION RESETTING ===== */
/* Remove conflicting animation properties */
.floating-element {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Fix for animation resetting on theme change */
[data-theme] .floating-element {
    animation: floatAround 20s infinite linear !important;
}

/* Prevent AOS from interfering with our animations */
[data-aos] {
    pointer-events: auto !important;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ===== FIX MODAL ANIMATIONS ===== */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* ===== IMPROVED GALLERY ITEMS ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--competition-accent);
    z-index: 10;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .more-overlay {
    opacity: 1;
}

/* ===== FIX CONTACT MODAL ===== */
.contact-trigger {
    position: relative;
    overflow: hidden;
}

.contact-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.contact-trigger:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

.floating-element:nth-child(1) {
    animation: gentleFloat 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation: gentleFloat 18s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    animation: gentleFloat 12s ease-in-out infinite;
}

.floating-element:nth-child(4) {
    animation: gentleFloat 20s ease-in-out infinite reverse;
}

/* Smooth hover animations */
.feature-card,
.championship-card,
.upcoming-card,
.type-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Fix for AOS animation conflicts */
[data-aos] {
    opacity: 1 !important;
}

/* ===== KEYBOARD NAVIGATION HINT ===== */
.image-viewer-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.image-viewer-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 3px;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--competition-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--competition-accent-hover);
}

/* Add these enhancements to your existing competition.css */

/* Enhanced Typography */
.bilingual-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.english-part {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arabic-part {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--competition-text-primary);
    direction: rtl;
    margin-top: 0.5rem;
}

.section-subtitle {
    color: var(--competition-text-secondary) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Championship Cards Layout */
@media (max-width: 1200px) {
    .championships-container {
        gap: 2.5rem;
    }
    
    .championship-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .championship-titles {
        min-width: auto;
    }
    
    .championship-badges {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .championship-card {
        margin-bottom: 2rem;
    }
    
    .championship-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .types-container {
        flex-direction: column;
        align-items: center;
    }
    
    .type-card {
        width: 100%;
        max-width: 300px;
    }
    
    .championship-meta {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .championship-header {
        padding: 1.5rem;
    }
    
    .championship-body {
        padding: 1.5rem;
    }
    
    .upcoming-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .bilingual-heading {
        text-align: center;
    }
    
    .english-part,
    .arabic-part {
        font-size: 1.5rem;
    }
    
    .championship-title {
        font-size: 1.5rem;
    }
    
    .championship-subtitle {
        font-size: 1rem;
    }
    
    .championship-logo {
        width: 100px;
        height: 100px;
    }
    
    .country-flag {
        font-size: 2.5rem;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .meta-item i {
        margin-bottom: 0.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* Enhanced Theme Support for Gallery */
[data-theme="dark"] {
    .thumbnail-gallery {
        background: rgba(45, 55, 72, 0.8) !important;
        border-color: rgba(74, 85, 104, 0.3) !important;
    }
    
    .active-image-container {
        background: linear-gradient(135deg, 
            rgba(52, 152, 219, 0.15), 
            rgba(41, 128, 185, 0.1)) !important;
        border-color: rgba(52, 152, 219, 0.3) !important;
    }
    
    .gallery-info {
        background: rgba(45, 55, 72, 0.6) !important;
        border-color: rgba(74, 85, 104, 0.3) !important;
    }
}

[data-theme="light"] {
    .thumbnail-gallery {
        border-color: rgba(52, 152, 219, 0.2) !important;
    }
    
    .active-image-container {
        background: linear-gradient(135deg, 
            rgba(52, 152, 219, 0.1), 
            rgba(41, 128, 185, 0.05)) !important;
        border-color: rgba(52, 152, 219, 0.2) !important;
    }
    
    .gallery-info {
        border-color: rgba(52, 152, 219, 0.1) !important;
    }
}

/* Enhanced Responsive Utilities */
.img-fluid-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Smooth Theme Transitions */
.enhanced-gallery-wrapper,
.active-image-container,
.thumbnail-gallery,
.gallery-info {
    transition: all 0.3s ease !important;
}

/* Improved Accessibility */
.nav-btn:focus,
.thumbnail-item:focus {
    outline: 3px solid var(--competition-accent);
    outline-offset: 2px;
}

.nav-btn:focus-visible,
.thumbnail-item:focus-visible {
    outline: 3px solid var(--competition-accent);
    outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .active-image-overlay {
        transform: translateY(0) !important;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.9), 
            rgba(0, 0, 0, 0.7), 
            rgba(0, 0, 0, 0.5)) !important;
    }
    
    .nav-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
    
    .thumbnail-item {
        touch-action: manipulation;
    }
}

/* Print Styles */
@media print {
    .enhanced-gallery-wrapper,
    .nav-btn,
    .thumbnail-gallery,
    .gallery-info {
        display: none !important;
    }
    
    .championship-gallery .gallery-header {
        margin-bottom: 2rem !important;
    }
}

/* Enhanced Loading States */
.active-image.loading {
    filter: blur(10px) grayscale(100%);
    transition: filter 0.5s ease;
}

.active-image.loaded {
    filter: blur(0) grayscale(0);
}

/* Smooth Scroll Behavior */
.thumbnail-gallery {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--competition-accent) var(--competition-border);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--competition-border);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--competition-accent);
    border-radius: 3px;
}

/* Enhanced Animation for Mobile */
@media (max-width: 768px) {
    @keyframes mobileSlideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .championship-card {
        animation: mobileSlideIn 0.5s ease-out;
    }
}

/* Better Touch Feedback */
.thumbnail-item:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Performance Optimizations */
.active-image,
.thumbnail-item img {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Enhanced Error States */
.thumbnail-item img[src=""],
.thumbnail-item img:not([src]) {
    display: none;
}

.thumbnail-item .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--competition-bg-primary);
    color: var(--competition-text-secondary);
    font-size: 2rem;
    border-radius: 10px;
}

/* ===== ENHANCED GALLERY STYLES ===== */
.enhanced-gallery-wrapper {
        position: relative;
        margin-top: 2rem;
    }
    
    .active-image-container {
        position: relative;
        width: 100%;
        height: 400px;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, 
            rgba(52, 152, 219, 0.1), 
            rgba(41, 128, 185, 0.05));
        border: 3px solid rgba(52, 152, 219, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    
    .active-image-container .active-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }
    
    .active-image-container:hover .active-image {
        transform: scale(1.05);
    }
    
    .active-image-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.8), 
            rgba(0, 0, 0, 0.4), 
            transparent);
        color: white;
        padding: 2rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .active-image-container:hover .active-image-overlay {
        transform: translateY(0);
    }
    
    .image-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        padding: 0 1rem;
        z-index: 10;
        pointer-events: none;
    }
    
    .nav-btn {
        background: rgba(52, 152, 219, 0.8);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        pointer-events: all;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-btn:hover {
        background: rgba(41, 128, 185, 0.9);
        transform: scale(1.1);
    }
    
    .thumbnail-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
        padding: 1rem;
        background: var(--competition-bg-card);
        border-radius: 15px;
        border: 2px solid var(--competition-border);
    }
    
    .thumbnail-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        border: 3px solid transparent;
        transition: all 0.3s ease;
    }
    
    .thumbnail-item:hover {
        transform: translateY(-5px);
        border-color: var(--competition-accent);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .thumbnail-item.active {
        border-color: var(--competition-accent);
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
        transform: scale(1.05);
    }
    
    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .thumbnail-item:hover img {
        transform: scale(1.1);
    }
    
    .image-counter {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(52, 152, 219, 0.9);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        z-index: 2;
        backdrop-filter: blur(10px);
    }
    
    .gallery-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--competition-bg-primary);
        border-radius: 10px;
        border: 1px solid var(--competition-border);
    }
    
    @media (max-width: 768px) {
        .active-image-container {
            height: 300px;
        }
        
        .thumbnail-gallery {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
        }
        
        .nav-btn {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        
        .image-counter {
            font-size: 0.8rem;
            padding: 0.3rem 0.8rem;
        }
    }
    
    @media (max-width: 576px) {
        .active-image-container {
            height: 250px;
        }
        
        .thumbnail-gallery {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .gallery-info {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }
    }

    /* Enhanced Gallery Styles - Show Full Images */
.enhanced-gallery-wrapper {
    position: relative;
    margin-top: 2rem;
}

.active-image-container {
    position: relative;
    width: 100%;
    height: 500px; /* Increased height for better display */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.1), 
        rgba(41, 128, 185, 0.05));
    border: 3px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FIXED: Show entire image without cropping */
.active-image-container .active-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from cover to contain */
    transition: transform 0.5s ease;
}

.active-image-container:hover .active-image {
    transform: scale(1.02); /* Reduced scale for better fit */
}

.active-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8), 
        rgba(0, 0, 0, 0.4), 
        transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.active-image-container:hover .active-image-overlay {
    transform: translateY(0);
}

.image-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.nav-btn {
    background: rgba(52, 152, 219, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--competition-bg-card);
    border-radius: 15px;
    border: 2px solid var(--competition-border);
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    border-color: var(--competition-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
    border-color: var(--competition-accent);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
}

/* FIXED: Thumbnail images show full image */
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keep cover for thumbnails */
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.gallery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--competition-bg-primary);
    border-radius: 10px;
    border: 1px solid var(--competition-border);
}

/* Image loading and error states */
.image-loading-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-radius: 20px;
    color: var(--competition-text-secondary);
}

.image-loading-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .active-image-container {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .active-image-container {
        height: 400px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .active-image-container {
        height: 350px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .image-counter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .active-image-container {
        height: 300px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Theme support */
[data-theme="dark"] {
    .active-image-container {
        background: linear-gradient(135deg, 
            rgba(52, 152, 219, 0.15), 
            rgba(41, 128, 185, 0.1));
        border-color: rgba(52, 152, 219, 0.3);
    }
    
    .thumbnail-gallery {
        background: rgba(45, 55, 72, 0.9);
        border-color: rgba(74, 85, 104, 0.3);
    }
    
    .gallery-info {
        background: rgba(45, 55, 72, 0.7);
        border-color: rgba(74, 85, 104, 0.3);
    }
}

[data-theme="light"] {
    .active-image-container {
        background: linear-gradient(135deg, 
            rgba(52, 152, 219, 0.08), 
            rgba(41, 128, 185, 0.04));
        border-color: rgba(52, 152, 219, 0.2);
    }
    
    .thumbnail-gallery {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(52, 152, 219, 0.15);
    }
    
    .gallery-info {
        background: rgba(248, 249, 250, 0.95);
        border-color: rgba(52, 152, 219, 0.1);
    }
}

/* Fallback image styles */
.thumbnail-item .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.1), 
        rgba(41, 128, 185, 0.05));
    color: var(--competition-text-secondary);
    font-size: 1.5rem;
}

/* Animation for image transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.active-image {
    animation: fadeIn 0.5s ease-out;
}

/* Improved error handling for images */
.active-image[src$=".jpeg"]:not([src]), 
.active-image[src$=".jpg"]:not([src]),
.active-image[src$=".png"]:not([src]) {
    display: none;
}

.active-image-container:has(.active-image[style*="display: none"]) {
    background-image: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2), 
        rgba(41, 128, 185, 0.1));
}

/* Add loading spinner */
.active-image.loading {
    opacity: 0;
}

.active-image.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.active-image-container:has(.active-image.loading)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(52, 152, 219, 0.2);
    border-top-color: var(--competition-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Additional styles for Arab Championship */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-box {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.detail-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--competition-accent);
}

.detail-box h6 {
    color: var(--competition-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.detail-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-box li {
    padding: 0.5rem 0;
    color: var(--competition-text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.detail-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--competition-success);
    font-weight: bold;
}

.organizer-highlight {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.08), 
        rgba(41, 128, 185, 0.04));
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--competition-accent);
}

.organizer-highlight h6 {
    color: var(--competition-accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.success-note {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.1), 
        rgba(34, 153, 84, 0.05));
    border-left: 4px solid var(--competition-success);
}

.success-note p {
    color: var(--competition-text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-box {
        padding: 1rem;
    }
}

/* ===== COLLAPSIBLE COMPETITIONS ===== */
.championship-card {
    background: var(--competition-bg-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--competition-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--competition-border);
    position: relative;
    margin-bottom: 2rem;
    max-height: 600px; /* Initial collapsed height */
    overflow: hidden;
    cursor: pointer;
}

.championship-card.expanded {
    max-height: none;
    cursor: default;
}

.championship-card.expanded .championship-body {
    display: block;
}

.championship-body {
    padding: 2.5rem;
    transition: all 0.5s ease;
}

.championship-card:not(.expanded) .championship-body {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.championship-card.expanded .championship-body {
    opacity: 1;
    height: auto;
}

/* Expand/Collapse Button */
.championship-header {
    position: relative;
    padding-right: 5rem; /* Space for expand button */
    min-height: 200px;
    display: flex;
    align-items: center;
}

.expand-toggle {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--competition-accent);
    border-radius: 50%;
    color: var(--competition-accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.expand-toggle:hover {
    background: var(--competition-accent);
    color: white;
    transform: scale(1.1);
}

.expand-toggle i {
    transition: transform 0.3s ease;
}

.championship-card.expanded .expand-toggle i {
    transform: rotate(180deg);
}

/* Preview section - visible when collapsed */
.championship-preview {
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.05), 
        rgba(41, 128, 185, 0.03));
    border-radius: 15px;
    margin-top: 1rem;
    border-left: 3px solid var(--competition-accent);
}

.championship-preview p {
    color: var(--competition-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.championship-card.expanded .championship-preview {
    display: none;
}

/* Expand hint */
.expand-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--competition-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulseHint 2s infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.championship-card.expanded .expand-hint {
    display: none;
}


/* Add to your competition.css */
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-number.counted {
    position: relative;
}

/* Responsive adjustments for collapsible */
@media (max-width: 768px) {
    .championship-card:not(.expanded) {
        max-height: 500px;
    }
    
    .expand-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .expand-hint {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .championship-card:not(.expanded) {
        max-height: 450px;
    }
    
    .championship-header {
        min-height: 180px;
        padding-right: 4rem;
    }
    
    .expand-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
