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

/* Map Section Styles */
.map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.map-btn {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.map-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.map-btn.active {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
}

.map-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-green), var(--gold), var(--primary-green));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover::before {
    opacity: 0.3;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 108, 53, 0.15);
}

.stadium-map {
    display: none;
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stadium-map.active {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: mapFadeIn 0.6s ease-out;
}

@keyframes mapFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stadium-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stadium-info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.stadium-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.stadium-info-card:hover::before {
    left: 100%;
}

.stadium-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 108, 53, 0.2);
    border-color: var(--gold);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
}

.info-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--gold), var(--primary-green), var(--gold));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stadium-info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 108, 53, 0.4);
}

.stadium-info-card:hover .info-icon::before {
    opacity: 1;
}

.stadium-info-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-city {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-capacity {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.info-btn {
    background: linear-gradient(135deg, var(--gold), #b8941f);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Advanced animations for cards */
@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

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

.stadium-info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stadium-info-card:hover::after {
    opacity: 1;
}

/* Enhanced map section */
.map-section {
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 108, 53, 0.05), transparent);
    pointer-events: none;
}

/* Floating animation for map controls */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.map-btn:not(.active) {
    animation: float 3s ease-in-out infinite;
}

.map-btn:nth-child(2) { animation-delay: 0.5s; }
.map-btn:nth-child(3) { animation-delay: 1s; }
.map-btn:nth-child(4) { animation-delay: 1.5s; }

/* Enhanced iframe styling */
.stadium-map iframe {
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stadium-map.active iframe {
    box-shadow: 0 20px 50px rgba(0, 108, 53, 0.2);
}

@media (max-width: 768px) {
    .map-controls {
        gap: 10px;
    }
    
    .map-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        animation: none; /* Disable floating on mobile for performance */
    }
    
    .stadium-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stadium-info-card {
        padding: 20px;
    }
}

:root {
    --primary-green: #006C35;
    --secondary-green: #228B22;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #2C3E50;
    --light-text: #666666;
    --transition: all 0.3s ease;
    
    /* Light mode colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #FFFFFF;
}

html[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #2d2d2d;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i {
    color: var(--gold);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.language-switcher {
    margin-left: 20px;
}

.lang-btn, .dark-mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dark-mode-btn {
    padding: 8px 12px;
    margin-left: 10px;
}

.dark-mode-btn i {
    font-size: 1rem;
}

.lang-btn:hover, .dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    background: linear-gradient(rgba(0, 108, 53, 0.7), rgba(0, 108, 53, 0.7)), url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 120px 20px 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: var(--gold);
    color: var(--primary-green);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.3);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(135deg, #006C35 0%, #228B22 50%, #32CD32 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.countdown-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::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 2s ease;
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
}

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

.countdown-separator {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.countdown-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-date i {
    font-size: 1.5rem;
    color: #FFD700;
}

.countdown-date span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.countdown-progress {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6347);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Global Responsive Improvements */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-green);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tournament-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .tournament-card {
        padding: 1.5rem;
    }
    
    .countdown-section {
        padding: 60px 0;
    }
    
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1rem;
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tournament-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .countdown-section {
        padding: 40px 0;
    }
    
    .countdown-title {
        font-size: 1.8rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        padding: 1rem 0.8rem;
        min-width: 85px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        display: none;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .countdown-date {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.3rem;
    }
    
    .countdown-item {
        padding: 0.8rem 0.5rem;
        min-width: 75px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .tournament-card h3 {
        font-size: 1.1rem;
    }
    
    .tournament-card p {
        font-size: 1rem;
    }
}

/* Students Section */
.students-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.student-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.student-card:hover::before {
    left: 100%;
}

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 108, 53, 0.15);
    border-color: var(--gold);
}

.student-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.student-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 108, 53, 0.3);
}

.student-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--gold), var(--primary-green), var(--gold));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover .student-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 108, 53, 0.4);
}

.student-card:hover .student-avatar::before {
    opacity: 1;
}

.student-avatar i {
    font-size: 2.5rem;
    color: var(--white);
}

.student-info h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.student-major {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.3rem;
}

.student-university {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.student-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 108, 53, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
    justify-content: center;
}

.detail-item i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

.student-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, var(--gold), #b8941f);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Students Section Responsive */
@media (max-width: 768px) {
    .students-section {
        padding: 60px 0;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .student-card {
        padding: 1.5rem;
    }
    
    .student-avatar {
        width: 80px;
        height: 80px;
    }
    
    .student-avatar i {
        font-size: 2rem;
    }
    
    .student-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .student-card {
        padding: 1.2rem;
    }
    
    .student-info h3 {
        font-size: 1.2rem;
    }
    
    .student-major {
        font-size: 1rem;
    }
    
    .student-university {
        font-size: 0.9rem;
    }
    
    .skill-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        padding: 0.6rem 0.4rem;
        min-width: 65px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

/* Tournament Section */
.tournament-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    color: var(--text-primary);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tournament-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

/* Specific override for flag item to remove gold borders */
.tournament-card.flag-item:hover,
.gallery-item.flag-item:hover {
    border-color: transparent !important;
    border: none !important;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.tournament-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tournament-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stadiums Section */
.stadiums-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Detailed Stadiums Grid */
.detailed-stadiums-grid {
    display: grid;
    gap: 3rem;
}

.detailed-stadium-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.detailed-stadium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stadium-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: stretch;
}

.detailed-stadium-card .stadium-image-large {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.stadium-image-large {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.stadium-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.stadium-image-large img[src$=".jpg"]:not([src^="http"]),
.stadium-image-large img[src*="ملعب"] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stadium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 108, 53, 0.7) 0%, rgba(0, 108, 53, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.stadium-capacity-badge {
    background: var(--gold);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.detailed-stadium-card .stadium-main-info {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.detailed-stadium-card .stadium-main-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.detailed-stadium-card .stadium-city {
    color: var(--secondary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.detailed-stadium-card .stadium-coordinates {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detailed-stadium-card .stadium-coordi.fanzone-address i {
    color: var(--gold);
    font-size: 0.9rem;
}

.coordinates-link,
.address-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.coordinates-link:hover,
.address-link:hover {
    background: var(--white);
}

.stadium-coordinates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.stadium-coordinates i {
    color: var(--gold);
}

.stadium-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stadium-description {
    margin-bottom: 2rem;
}

.stadium-description p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.stadium-address {
    margin-bottom: 2rem;
}

.stadium-address h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stadium-address p {
    color: var(--light-text);
    line-height: 1.6;
}

.stadium-matches {
    margin-bottom: 2rem;
}

.stadium-matches h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.matches-list {
    display: grid;
    gap: 1rem;
}

.match-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 1rem;
    align-items: center;
    border-left: 4px solid var(--gold);
}

.match-date {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.match-time {
    background: var(--primary-green);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-teams {
    font-weight: 600;
    color: var(--dark-text);
}

.match-group {
    background: var(--gold);
    color: var(--primary-green);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.stadium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.stadium-link:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
}

/* Legacy stadium styles for compatibility */
.stadiums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stadium-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stadium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stadium-image {
    height: 200px;
    overflow: hidden;
}

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

.stadium-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.stadium-info {
    padding: 1.5rem;
}

.stadium-info h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.stadium-location {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stadium-capacity {
    color: var(--light-text);
}

.stadium-loca.team-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Fan Zones Section */
.fanzones-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    border: 2px solid var(--gold);
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.filter-btn:hover {
    background: linear-gradient(135deg, var(--gold), #e6c84a);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    display: none;
}

.city-filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.city-filter-controls .filter-btn {
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    border: 2px solid var(--gold);
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

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

.city-filter-controls .filter-btn:hover::before {
    left: 100%;
}

.city-filter-controls .filter-btn:hover {
    background: linear-gradient(135deg, var(--gold), #e6c84a);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.city-filter-controls .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.3);
    transform: translateY(-2px);
}

.city-filter-controls .filter-btn.active::before {
    display: none;
}

.fanzones-grid {
    display: grid;
    gap: 3rem;
}

.fanzone-ci.team-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.fanzone-city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.city-header {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.city-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 108, 53, 0.15);
}

.city-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

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

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

.city-info {
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-radius: 0 0 15px 15px;
}

.city-info h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.city-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 108, 53, 0.8), rgba(212, 175, 55, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.city-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.city-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.fanzone-content {
    padding: 2rem;
}

.fanzones-list {
    display: grid;
    gap: 2rem;
}

.fanzone-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    border: 1px solid var(--border-color);
}

.fanzones-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.fanzone-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fanzone-info h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fanzone-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Heritage Section */
.heritage-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.heritage-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.heritage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.heritage-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.heritage-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.heritage-content {
    padding: 2rem;
}

.heritage-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.heritage-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.heritage-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.activity-tag {
    background: var(--gold);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.heritage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--primary-green);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.heritage-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Teams Section */
.teams-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* Matches Section */
.matches-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.matches-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.matches-table th {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

.matches-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.matches-table tr:hover {
    background: var(--bg-secondary);
}

/* Saudi Section */
.saudi-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.saudi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.saudi-text h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.saudi-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.saudi-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.saudi-image {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.saudi-image:hover {
    transform: translateY(-5px);
}

.saudi-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.saudi-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.saudi-image p {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Flag image specific styling */
.flag-image {
    width: 260px !important;
    height: 180px !important;
    object-fit: contain !important;
    margin: 35px auto !important;
    display: block !important;
    transform: none !important;
    max-width: 260px !important;
    max-height: 180px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.flag-item:hover .flag-image {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.flag-item {
    background: var(--white) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.flag-item:hover {
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Override any gold styling for flag item */
.flag-item:hover,
.flag-item.gallery-item:hover {
    border-color: transparent !important;
}

.gallery-item.flag-item:hover {
    border-color: transparent !important;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    height: fit-content;
    border: 1px solid var(--border-color);
}

.contact-text h4 {
    color: var(--primary-green);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item:hover {
    background: var(--bg-primary);
    transform: translateX(5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    right: 0.5rem;
    font-size: 0.8rem;
    color: var(--gold);
    background: var(--white);
    padding: 0 0.5rem;
}

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.submit-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 108, 53, 0.3);
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: var(--white);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--gold);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--primary-green);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.sources-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sources-section p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gold);
}

.sources-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sources-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 5px;
}

.sources-links a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

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

/* Responsive Design */
/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .tournament-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stadiums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tournament-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stadiums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .saudi-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-green);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .language-switcher {
        margin-left: 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stadiums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .saudi-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .saudi-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .matches-table {
        font-size: 0.9rem;
    }
    
    .matches-table th,
    .matches-table td {
        padding: 0.8rem 0.5rem;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .language-switcher {
        margin-left: 5px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .tournament-card,
    .stadium-card,
    .team-card {
        padding: 1rem;
    }
    
    .tournament-card h3,
    .stadium-info h3,
    .team-card h3 {
        font-size: 1.1rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .team-flag {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .matches-table {
        font-size: 0.8rem;
    }
    
    .matches-table th,
    .matches-table td {
        padding: 0.6rem 0.3rem;
    }
    
    .saudi-text h3 {
        font-size: 1.3rem;
    }
    
    .saudi-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .tournament-card,
    .stadium-card,
    .team-card {
        padding: 0.8rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .matches-table th,
    .matches-table td {
        padding: 0.5rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .gallery-item {
        height: 180px;
    }
}

/* Language Direction Support */
[dir="ltr"] {
    direction: ltr;
}

[dir="ltr"] .nav-menu a::after {
    left: auto;
    right: 0;
}

[dir="ltr"] .form-group label {
    left: 1rem;
    right: auto;
}

[dir="ltr"] .form-group input:focus + label,
[dir="ltr"] .form-group textarea:focus + label,
[dir="ltr"] .form-group input:valid + label,
[dir="ltr"] .form-group textarea:valid + label {
    left: 0.5rem;
    right: auto;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Touch and Mobile Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .nav-menu a,
    .cta-button,
    .submit-btn,
    .lang-btn,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tournament-card:hover,
    .stadium-card:hover,
    .team-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .tournament-card:active,
    .stadium-card:active,
    .team-card:active {
        transform: scale(0.98);
    }
}

/* Improved scrollbar for mobile */
@media (max-width: 768px) {
    .matches-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .matches-table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .matches-table-container::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 4px;
    }
    
    .matches-table-container::-webkit-scrollbar-thumb:hover {
        background: var(--primary-green);
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Improved focus states for accessibility */
.nav-menu a:focus,
.cta-button:focus,
.submit-btn:focus,
.lang-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Better image loading on slow connections */
img {
    max-width: 100%;
    height: auto;
}

/* Optimize font loading */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Dark Mode Specific Overrides */
html[data-theme="dark"] .hero {
    background: linear-gradient(rgba(0, 108, 53, 0.8), rgba(0, 108, 53, 0.8)), url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1920&h=1080&fit=crop') center/cover;
}

html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-subtitle {
    color: var(--white);
}

html[data-theme="dark"] .tournament-section .section-title,
html[data-theme="dark"] .teams-section .section-title,
html[data-theme="dark"] .contact-section .section-title {
    color: var(--white);
}

html[data-theme="dark"] .footer p,
html[data-theme="dark"] .footer a {
    color: var(--text-secondary);
}

html[data-theme="dark"] .footer a:hover {
    color: var(--gold);
}

html[data-theme="dark"] .heritage-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .filter-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .filter-btn:hover {
    background: var(--gold);
    color: var(--white);
}
