/* @font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
} */

/* إزالة أي اندرلاين وجعل النصوص طبيعية مع استثناء الأيقونات لضمان ظهورها */
*:not(i):not([class*="fa-"]):not(.fas):not(.fab):not(.far) {
    text-decoration: none !important;
    font-style: normal !important;
    font-family: 'Cairo', sans-serif !important;
}

:root {
    --merrikh-yellow: #FFD115;       /* الأصفر الأساسي - Primary */
    --merrikh-orange: #FFD115;       /* البرتقالي الداعم - Supporting */
    --merrikh-red: #A30708;          /* الأحمر الثانوي - Secondary */
    --merrikh-black: #000000;         /* الأسود للخلفيات */
    --merrikh-yellow-dark: #CCB111;   /* أصفر غامق */
    --merrikh-orange-dark: #CCB111;   /* برتقالي غامق */
    --merrikh-red-dark: #730505;      /* أحمر غامق */
    --merrikh-neutral: #FFF9DC;       /* محايد دافئ - بديل الأبيض */
    --merrikh-gray: #1A1200;          /* رمادي غامق دافئ */
    --merrikh-light: #FFF9DC;         /* فاتح محايد */
    --gradient-start: #FFF9DC;
    --gradient-middle: #FFF3B0;
    --gradient-end: #FFFEF5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--merrikh-yellow), var(--merrikh-orange));
    border-radius: 6px;
    border: 3px solid var(--merrikh-black);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--merrikh-orange), var(--merrikh-yellow));
}

/* Typography */
body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg,
            var(--gradient-start) 0%,
            var(--gradient-middle) 50%,
            var(--gradient-end) 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.font-heading,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    color: var(--merrikh-orange) !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .responsive-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .responsive-text {
        font-size: 0.875rem;
    }

    .responsive-heading {
        font-size: 1.5rem;
    }

    .responsive-grid {
        grid-template-columns: 1fr;
    }

    .responsive-card {
        padding: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .responsive-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .responsive-text {
        font-size: 1rem;
    }

    .responsive-heading {
        font-size: 2rem;
    }

    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .responsive-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .responsive-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .responsive-text {
        font-size: 1.125rem;
    }

    .responsive-heading {
        font-size: 3rem;
    }

    .responsive-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .responsive-card {
        padding: 2rem;
    }
}

/* Premium Navigation - Smaller Size */
.nav-gradient {
    background: var(--merrikh-red);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--merrikh-yellow);
    box-shadow: 0 8px 30px rgba(255, 209, 21, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-item {
    position: relative;
    padding: 0.6rem 1.2rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--merrikh-yellow) !important;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--merrikh-yellow), var(--merrikh-red));
    transition: all 0.3s ease;
    transform: translateX(50%);
    border-radius: 2px;
}

.nav-item:hover::before {
    width: 80%;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--merrikh-yellow), var(--merrikh-yellow-dark));
    color: var(--merrikh-black) !important;
    box-shadow: 0 4px 15px rgba(255, 209, 21, 0.4);
}

/* Mega Menu - Centered Positioning */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--merrikh-yellow);
    border-top: none;
    z-index: 1000;
    position: absolute;
    background: var(--merrikh-neutral);
    border-radius: 15px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Position each mega menu differently for better visibility */
.first-team-menu .mega-menu {
    /* First Team - explicit class so LTR/RTL ordering doesn't break it */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 850px;
}

.first-team-menu:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.has-mega-menu:nth-child(3) .mega-menu {
    /* Club */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 950px;
}

.has-mega-menu:nth-child(3):hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.has-mega-menu:nth-child(4) .mega-menu {
    /* Teams */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 700px;
}

.has-mega-menu:nth-child(4):hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.has-mega-menu:nth-child(5) .mega-menu {
    /* Tickets */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 800px;
}

.has-mega-menu:nth-child(5):hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.has-mega-menu:nth-child(8) .mega-menu {
    /* More */
    left: 0;
    right: auto;
    transform: translateY(15px);
    width: 280px;
}

.has-mega-menu:nth-child(8):hover .mega-menu {
    transform: translateY(0);
}

/* Logo Container - Fixed Logo Issue */
.logo-container {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    border: 3px solid var(--merrikh-yellow);
    border-radius: 20px;
    padding: 8px;
    box-shadow:
        0 0 30px rgba(163, 7, 8, 0.6),
        inset 0 0 30px rgba(255, 209, 21, 0.3),
        0 0 0 5px rgba(163, 7, 8, 0.2);
    animation: logoGlow 4s ease-in-out infinite alternate;
    transition: all 0.5s ease;
    overflow: hidden;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 209, 21, 0.1),
            rgba(163, 7, 8, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine 5s infinite;
    z-index: 1;
}

@keyframes logoGlow {
    0% {
        box-shadow:
            0 0 30px rgba(163, 7, 8, 0.6),
            inset 0 0 30px rgba(255, 209, 21, 0.3),
            0 0 0 5px rgba(163, 7, 8, 0.2);
    }

    100% {
        box-shadow:
            0 0 40px rgba(163, 7, 8, 0.8),
            0 0 60px rgba(255, 209, 21, 0.4),
            inset 0 0 40px rgba(255, 209, 21, 0.4),
            0 0 0 5px rgba(163, 7, 8, 0.3);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: all 0.6s ease;
    position: relative;
    z-index: 2;
}

.logo-container:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(163, 7, 8, 0.6));
}

.logo-text {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Premium Cards */
.premium-card {
    background: linear-gradient(145deg,
            rgba(255, 249, 220, 0.97) 0%,
            rgba(255, 249, 220, 0.99) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 209, 21, 0.2);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 209, 21, 0.12);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--merrikh-red), var(--merrikh-yellow));
    z-index: 2;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(163, 7, 8, 0.1), rgba(255, 209, 21, 0.05));
    transition: all 0.5s ease;
    z-index: 1;
}

.premium-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow:
        0 35px 70px rgba(163, 7, 8, 0.3),
        0 0 100px rgba(255, 209, 21, 0.1);
    border-color: var(--merrikh-red);
}

.premium-card:hover::after {
    width: 100%;
}

/* Player Card */
.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--merrikh-neutral);
    box-shadow: 0 15px 35px rgba(255, 209, 21, 0.2);
    transform-style: preserve-3d;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(163, 7, 8, 0.4);
}

.player-card:hover .player-overlay {
    opacity: 1;
    transform: translateY(0);
}

.player-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(255, 209, 21, 0.85) 100%);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    z-index: 2;
}

.player-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.player-card:hover .player-image {
    transform: scale(1.1);
}

/* Match Countdown */
.countdown-digit {
    background: linear-gradient(135deg,
            var(--merrikh-black) 0%,
            var(--merrikh-orange) 100%);
    color: var(--merrikh-neutral);
    font-size: 2.5rem;
    font-weight: 900;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--merrikh-yellow);
    box-shadow: 0 10px 30px rgba(255, 209, 21, 0.4);
}

.countdown-digit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* Interactive Elements */
.interactive-element {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-element:hover {
    transform: scale(1.05);
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg,
            var(--merrikh-red),
            var(--merrikh-yellow),
            var(--merrikh-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* 3D Button */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    transform: translateZ(-12px);
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: translateY(-8px);
}

.btn-3d:hover::before {
    transform: translateZ(-6px);
}

/* Custom Cursor */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--merrikh-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    width: 35px;
    height: 35px;
    border: 2px solid var(--merrikh-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

/* Background Texture */
.bg-texture {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(163, 7, 8, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 209, 21, 0.15) 0%, transparent 50%);
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--merrikh-red);
    animation: pulse 1.5s ease infinite;
}

/* Royal Logo Styles */
.royal-badge {
    position: relative;
    /* Star Shape */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: radial-gradient(circle at 50% 50%, rgba(255, 209, 21, 0.2), rgba(163, 7, 8, 0.6));
    /* Drop shadow filter for glow since box-shadow doesn't work with clip-path */
    filter: drop-shadow(0 0 5px rgba(255, 209, 21, 0.8)) drop-shadow(0 0 10px rgba(163, 7, 8, 0.6));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.royal-badge:hover {
    filter: drop-shadow(0 0 8px rgba(255, 209, 21, 1)) drop-shadow(0 0 15px rgba(163, 7, 8, 0.8));
    transform: scale(1.1) rotate(5deg);
}

.royal-image {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.royal-badge:hover .royal-image {
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.7)) brightness(1.1);
}

.logo-container.mini {
    width: 50px;
    height: 50px;
    padding: 5px;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--merrikh-yellow);
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--merrikh-red);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Player Position Colors */
.position-goalkeeper {
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    color: white;
}

.position-defender {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.position-midfielder {
    background: linear-gradient(135deg, #FFD115, #FFD115);
    color: #333;
}

.position-forward {
    background: linear-gradient(135deg, #A30708, #A30708);
    color: white;
}

/* Player Filter */
.player-filter {
    transition: all 0.3s ease;
}

.player-filter.active {
    background: linear-gradient(135deg, var(--merrikh-red), var(--merrikh-red-dark));
    color: white;
    transform: scale(1.1);
}

/* Player Modal */
.player-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.player-modal.active {
    opacity: 1;
    visibility: visible;
}

.player-modal-content {
    background: var(--merrikh-neutral);
    border-radius: 25px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.player-modal.active .player-modal-content {
    transform: scale(1);
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.shine-effect:hover::after {
    animation: shineMove 0.6s ease;
}

@keyframes shineMove {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Video Background */
.video-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

/* Trophy Animation */
.trophy-animate {
    animation: rotateTrophy 20s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotateTrophy {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Ticker Animation */
.ticker-container {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    height: 40px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 180s linear infinite;
    /* أبطأ: 180 ثانية بدلاً من 120 */
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Breaking News Ticker - Slower */
.breaking-news-ticker {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    height: 35px;
}

.breaking-news-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: breakingNewsTicker 90s linear infinite;
    /* أبطأ: 90 ثانية بدلاً من 40 */
}

@keyframes breakingNewsTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Breaking News RTL (Arabic) - Slower */
.breaking-news-ticker-rtl {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    height: 35px;
}

.breaking-news-content-rtl {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: breakingNewsTickerRTL 70s linear infinite;
    /* أبطأ: 70 ثانية بدلاً من 30 */
}

@keyframes breakingNewsTickerRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Live Indicator */
.live-indicator {
    position: relative;
    display: inline-block;
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 8px;
    height: 8px;
    background: #00FF00;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
}

/* Match Fixture Animation */
.fixture-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.fixture-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.fixture-card:hover::before {
    right: 100%;
}

/* Stadium Map */
.stadium-map {
    position: relative;
    cursor: pointer;
}

.stadium-map:hover .stadium-point {
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--merrikh-yellow);
}

.stadium-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--merrikh-red);
    border-radius: 50%;
    border: 2px solid var(--merrikh-yellow);
    transition: all 0.3s ease;
}

/* Notification Bell */
.notification-bell {
    animation: bellRing 2s ease infinite;
    transform-origin: top center;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

/* Swiper Custom Styles */
.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    background: var(--merrikh-yellow) !important;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    background: var(--merrikh-red) !important;
    transform: scale(1.3);
}

/* Match Statistics */
.stat-bar {
    position: relative;
    height: 8px;
    background: #FFF3B0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--merrikh-red), var(--merrikh-yellow));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-right: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--merrikh-red);
    border-radius: 50%;
    border: 3px solid var(--merrikh-yellow);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 9px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--merrikh-yellow);
}

.timeline-item:last-child::after {
    display: none;
}

/* Gallery Hover Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(163, 7, 8, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Shop Item */
.shop-item {
    transition: all 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-10px);
}

/* Form Styles */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--merrikh-red);
    box-shadow: 0 0 0 3px rgba(163, 7, 8, 0.1);
    outline: none;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(163, 7, 8, 0.1);
    border-left-color: var(--merrikh-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 3px solid var(--merrikh-yellow);
    outline-offset: 2px;
}

*:focus:not(.focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .premium-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn-3d,
    .interactive-element {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* تحسينات للهواتف */
@media (max-width: 640px) {

    /* تحسين التخطيط العام */
    body {
        font-size: 14px;
        background-size: auto;
        background-attachment: scroll;
    }

    /* تحسين الهيدر */
    .nav-gradient {
        padding: 0.3rem 0;
    }

    .logo-container.mini {
        width: 40px !important;
        height: 40px !important;
        padding: 3px !important;
    }

    .logo-text span {
        font-size: 0.8rem !important;
    }

    /* تحسين القائمة */
    .has-mega-menu .mega-menu {
        display: none !important;
    }

    /* تحسين الهيرو سكشن */
    section.hero-section {
        min-height: 60vh !important;
        padding: 1rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    /* تحسين أزرار الهيرو */
    .hero-section .flex.flex-wrap {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-section a {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        margin: 0.2rem 0;
    }

    /* تحسين العد التنازلي */
    .countdown-digit {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    /* تحسين الكروت */
    .premium-card {
        margin: 0.5rem !important;
        padding: 1rem !important;
        border-radius: 15px !important;
    }

    /* تحسين شبكة اللاعبين */
    .grid.grid-cols-1.sm\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .player-card {
        margin: 0.5rem !important;
    }

    .player-image {
        height: 200px !important;
    }

    /* تحسين الفوتر */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* تحسين التنقل السلس */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    /* إخفاء بعض العناصر في الهاتف */
    .no-mobile {
        display: none !important;
    }

    /* تحسين النصوص */
    .responsive-heading {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .responsive-text {
        font-size: 0.875rem !important;
        line-height: 1.5;
    }

    /* تحسين المسافات */
    section {
        padding: 3rem 0 !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* تحسين الجداول */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين الفيديو */
    .video-bg {
        display: none;
        /* إخفاء الفيديو في الهاتف لتحسين الأداء */
    }

    /* تحسين القائمة العلوية */
    .top-alert-bar {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    /* تحسين الشريط الجانبي */
    #backToTop,
    #liveChatBtn {
        bottom: 1rem;
        left: 1rem;
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    #liveChatBtn {
        bottom: 5rem;
    }

    /* إبطاء الأخبار العاجلة على الموبايل - أبطأ بكثير */
    .breaking-news-content {
        animation: breakingNewsTicker 300s linear infinite !important;
    }

    .breaking-news-content-rtl {
        animation: breakingNewsTickerRTL 240s linear infinite !important;
    }
}

/* تحسينات للتابلت */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .grid.grid-cols-1.sm\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .player-card {
        margin: 0.5rem !important;
    }
}

/* إصلاحات خاصة للعرض الأفقي في الهواتف */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
    }

    section {
        padding: 1rem 0 !important;
        min-height: auto !important;
    }
}

/* تحسينات للشاشات الصغيرة جدًا */
@media (max-width: 360px) {
    .logo-text span {
        font-size: 0.7rem !important;
    }

    .countdown-digit {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .premium-card {
        padding: 0.75rem !important;
    }
}

/* تحسينات لللمس */
@media (hover: none) and (pointer: coarse) {

    /* تحسين التفاعل باللمس */
    .interactive-element,
    .nav-item,
    .player-card,
    .premium-card {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* إزالة تأثيرات الهوفر */
    .player-card:hover {
        transform: none !important;
    }

    .premium-card:hover {
        transform: none !important;
    }

    /* زيادة حجم النصوص القابلة للنقر */
    a,
    button {
        font-size: 16px !important;
        /* الحد الأدنى لحجم النص لللمس */
    }

    /* تحسين المسافات بين العناصر القابلة للنقر */
    .flex.gap-4 a,
    .flex.gap-4 button {
        margin: 0.25rem !important;
    }
}

/* تحسينات للأداء في الهواتف */
@media (max-width: 768px) {

    /* تقليل تأثيرات الحركة */
    * {
        animation-duration: 0.5s !important;
        transition-duration: 0.3s !important;
    }

    /* تقليل الظلال */
    .premium-card {
        box-shadow: 0 5px 15px rgba(163, 7, 8, 0.1) !important;
    }

    /* إخفاء المؤشر المخصص */
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* Video Gallery Styles */
.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(163, 7, 8, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(163, 7, 8, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-card:hover .video-play-btn {
    background: rgba(255, 209, 21, 0.9);
    color: var(--merrikh-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-info {
    position: relative;
    z-index: 2;
    padding: 15px;
    background: linear-gradient(to top, rgba(163, 7, 8, 0.9), rgba(255, 209, 21, 0.7));
    color: white;
}

.video-tag {
    display: inline-block;
    background: var(--merrikh-yellow);
    color: var(--merrikh-red);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    background: black;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    background: linear-gradient(135deg, var(--merrikh-red), var(--merrikh-red-dark));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-body {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Swiper Styles */
.video-swiper-container {
    padding: 20px 0 40px 0;
}

.video-swiper-button-next,
.video-swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--merrikh-red);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.video-swiper-button-next:hover,
.video-swiper-button-prev:hover {
    background: var(--merrikh-yellow);
    color: var(--merrikh-red);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.video-swiper-button-next {
    right: -25px;
}

.video-swiper-button-prev {
    left: -25px;
}

@media (max-width: 768px) {

    .video-swiper-button-next,
    .video-swiper-button-prev {
        display: none;
    }
}

/* Hero Section Image Styles - NEW - بدون شفافية */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 1;
    /* بدون شفافية */
    filter: brightness(1) contrast(1);
    /* صورة واضحة */
    will-change: transform;
    /* تحسين الأداء */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

/* تحسين وضوح النصوص فوق الصورة */
.hero-content {
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-section h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-section p {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

/* Responsive Hero Image */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-bg-image {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-section h1 {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }
}

/* News Section - New Grid Design */
/* News Grid Animation */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: slideInFromBottom 0.6s ease-out forwards;
    opacity: 0;
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-item:nth-child(5) {
    animation-delay: 0.5s;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.news-item:hover .news-overlay {
    background: linear-gradient(to top, rgba(163, 7, 8, 0.95) 0%, rgba(163, 7, 8, 0.7) 60%, transparent 100%);
}

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}

.news-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.news-item-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.news-item-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .news-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .news-item-medium,
    .news-item-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .news-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-item-large,
    .news-item-medium,
    .news-item-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Stats Section - for stats-section.php */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 21, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(163, 7, 8, 0.3);
}

.stat-number {
    animation: countUp 0.8s ease-out forwards;
    background: linear-gradient(135deg, #A30708 0%, #FFD115 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
}

.stat-icon {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.2;
    transform: rotate(15deg) scale(1.2);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #A30708 0%, #FFD115 100%);
    border-radius: 2px;
    transform-origin: left;
    animation: progressGrow 1.5s ease-out forwards;
}

@keyframes progressGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.stat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #A30708, #FFD115);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 8px;
}

/* Players section - team swiper (for players-section.php) */
.team-swiper {
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: visible !important;
}

.team-swiper .swiper-slide {
    width: 250px;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.5s ease;
}

.team-swiper .player-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    transform-origin: bottom center;
}

.team-swiper .player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.5s ease;
    -webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.team-swiper .swiper-slide-active .player-img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.15) translateY(-20px);
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(163, 7, 8, 0.5));
}

.player-info-box {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    width: 200px;
}

.team-swiper .swiper-slide-active .player-info-box {
    opacity: 1;
    bottom: -60px;
}

.player-name {
    color: #FFD115;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.player-position {
    color: white;
    font-size: 0.9rem;
}

.swiper-button-next-team,
.swiper-button-prev-team {
    color: #FFD115;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.swiper-button-next-team:hover,
.swiper-button-prev-team:hover {
    background: #A30708;
    transform: scale(1.1);
}

.swiper-button-next-team::after,
.swiper-button-prev-team::after {
    font-size: 18px;
    font-weight: bold;
}

@keyframes fogTarget {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-slide-slow {
    animation: fogTarget 60s linear infinite;
}

/* Stadium Professional Section - Matching Mockup */
.stadium-pro-section {
    background: linear-gradient(180deg, #3d3b3b 0%, #2a2828 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background Texture Overlay */
.stadium-pro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stadium-pro-card {
    background: #FFF9DC;
    border-radius: 30px;
    /* Big rounded corners */
    padding: 0 0 40px 0;
    /* Padding bottom only */
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stadium-pro-card:hover {
    transform: translateY(-10px);
}

/* Top Colored Border Strip */
.stadium-card-border {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #A30708 40%, #FFD115 60%);
    position: absolute;
    top: 0;
    left: 0;
}

.stadium-icon {
    font-size: 3.5rem;
    color: #A30708;
    /* Merrikh Red */
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.stadium-value {
    font-family: 'Cairo', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stadium-label {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    /* Gray 500 */
    font-weight: 500;
}

/* News Swiper Pagination */
#news .swiper-pagination-bullet,
#old-news .swiper-pagination-bullet {
    background: var(--merrikh-gray);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

#news .swiper-pagination-bullet-active,
#old-news .swiper-pagination-bullet-active {
    background: var(--merrikh-yellow);
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* استعادة إجبارية لخطوط الأيقونات لمنع تداخل Tailwind أو الخطوط الأخرى */
.fa, .fas, .fa-solid, .far, .fa-regular { 
    font-family: "Font Awesome 6 Free" !important; 
    font-weight: 900 !important; 
}
.fab, .fa-brands { 
    font-family: "Font Awesome 6 Brands" !important; 
    font-weight: 400 !important; 
}
i[class*="fa-"] {
    font-style: normal !important;
}