.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 30%, rgba(20, 20, 20, 0.95) 70%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

/* Logo Direction Fix - Keep logo always LTR */
.logo,
.logo *,
.logo-sky,
.logo-yline,
.logo-tagline {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: normal !important;
}

/* RTL/LTR Support for Navbar */
[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .nav-menu a {
    text-align: right;
}

[dir="ltr"] .nav-menu {
    direction: ltr;
}

[dir="ltr"] .nav-menu a {
    text-align: left;
}

/* Mobile Navigation RTL/LTR Support */
[dir="rtl"] .mobile-sidenav {
    right: -320px;
    left: auto;
}

[dir="rtl"] .mobile-sidenav.active {
    right: 0;
    left: auto;
}

[dir="ltr"] .mobile-sidenav {
    left: -320px;
    right: auto;
}

[dir="ltr"] .mobile-sidenav.active {
    left: 0;
    right: auto;
}






/* Logo Scroll Effect - Same as yline */
.logo-tagline {
    color: #E3616E;
    font-weight: 500;
    font-size: 1rem;
    text-shadow:
        0 0 10px rgba(211, 10, 40, 0.3),
        0 0 15px rgba(227, 97, 110, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.header.scrolled .logo-tagline {
    color: #D60A28 !important;
    text-shadow:
        0 1px 3px rgba(211, 10, 40, 0.3),
        0 0 12px rgba(211, 10, 40, 0.2),
        0 0 20px rgba(176, 13, 42, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navbar hidden state */
.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.08) 75%,
            rgba(255, 255, 255, 0.15) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 0 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #000 !important;
}

.header.scrolled .nav-menu a {
    border-radius: 25px !important;
    color: rgba(0, 0, 0, 0.9) !important;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
    opacity: 1;
    transition: all 0.3s ease;
}

.header.scrolled .nav-menu a:hover {

    border-radius: 25px !important;
    color: #000 !important;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 1px 3px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

.header.scrolled .logo {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.header.scrolled .portal-btn {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: navbarShimmer 4s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #fff,
            rgba(255, 255, 255, 0.5),
            #fff,
            transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes navbarShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Portal Access Button */
.portal-access {
    margin-left: 1rem;
}

.portal-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF6B6B, #DC143C);
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.portal-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
    background: linear-gradient(135deg, #FF8E8E, #DC143C);
}


.portal-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}


.portal-btn:active {
    transform: translateY(-1px) scale(1.05);
}


.portal-btn i {
    z-index: 2;
    position: relative;
}

/* Language Button Design */
.language-switcher {
    margin-left: 15px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #D90A2C;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #D90A2C;
    box-shadow: 0 4px 15px #D90A2C;
}

.language-btn i {
    color: #D90A2C;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover i {
    color: #D90A2C;
    transform: rotate(15deg);
}

/* RTL Support */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .language-btn {
    flex-direction: row-reverse;
}

/* Language button color change on scroll - White when navbar is black */
.navbar.scrolled .language-btn {
    color: white;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .language-btn:hover {
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .language-btn i {
    color: white;
}

.navbar.scrolled .language-btn:hover i {
    color: white;
}


/* Portal Mobile Link */
.portal-mobile-link {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(139, 0, 0, 0.2)) !important;
    border: 2px solid rgba(196, 30, 58, 0.3) !important;
    border-radius: 15px !important;
    margin: 0.5rem 1rem !important;
}

.portal-mobile-link:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3), rgba(139, 0, 0, 0.3)) !important;
    border-color: rgba(196, 30, 58, 0.6) !important;
    transform: translateX(12px) scale(1.05) !important;
}

.portal-mobile-link .icon {
    background: linear-gradient(135deg, #FF6B6B, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(196, 30, 58, 0.4));
}

/* Mobile Menu Button - Same as index.html */
.mobile-menu-btn {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(0, 0, 0, 0.3));
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #D60A28;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

/* تأثيرات السكرول للهامبرغر */
.mobile-menu-btn.scrolled {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(220, 20, 60, 0.6);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-menu-btn.scrolled:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.6), rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.5));
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.15);
}

.mobile-menu-btn.scrolled span {
    background: linear-gradient(90deg, #DC143C, #FFFFFF, #000000);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* تأثيرات السكرول للهامبرغر النشط */
.mobile-menu-btn.active.scrolled span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(90deg, #DC143C, #FFFFFF, #000000);
}

.mobile-menu-btn.active.scrolled span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: linear-gradient(90deg, #DC143C, #FFFFFF, #000000);
}

/* Mobile Side Navigation - Same as index.html */
.mobile-sidenav {
    display: none !important;
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.95) 0%, rgba(139, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.95) 70%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 99998;
    transition: all 0.4s ease;
    padding-top: 80px;
    box-shadow: 2px 0 20px rgba(220, 20, 60, 0.3);
    overflow-y: auto;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mobile-sidenav.active {
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-sidenav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-sidenav li {
    margin: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-sidenav a {
    display: flex !important;
    align-items: center;
    padding: 1.2rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 0.5rem 1rem;
    border-radius: 15px;
    border-left: 3px solid transparent;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(0, 0, 0, 0.2));
    visibility: visible !important;
    opacity: 1 !important;
}

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

.mobile-sidenav a:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(0, 0, 0, 0.4));
    transform: translateX(8px);
    border-left-color: #DC143C;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.mobile-sidenav a:hover::before {
    left: 100%;
}

.mobile-sidenav .icon {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* تأثيرات hover للأيقونات في الموبايل مثل index.html */
.mobile-sidenav a:hover .icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(220, 20, 60, 0.6));
}

.mobile-sidenav .label {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0.8rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #fff;
    display: inline-block !important;
    visibility: visible !important;
}

/* تأثيرات hover للنصوص في الموبايل مثل index.html */
.mobile-sidenav a:hover .label {
    color: #fff;
    transform: translateX(3px);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

/* Mobile Overlay - Same as index.html */
.mobile-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.logo-sky {
    font-weight: 800;
    font-size: 2.2rem;
    /* تأثير النبض بين الأحمر والأبيض */
    animation: skPulse 2s ease-in-out infinite;
}

/* تأثير النبض بين الأحمر والأبيض لـ SK */
@keyframes skPulse {

    0%,
    100% {
        color: #660000;
        /* أحمر */
        text-shadow:
            0 0 20px rgba(220, 20, 60, 0.8),
            0 0 40px rgba(220, 20, 60, 0.6),
            0 0 60px rgba(220, 20, 60, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }

    50% {
        color: #af1e1e;
        /* أبيض */
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(255, 255, 255, 0.7),
            0 0 60px rgba(255, 255, 255, 0.5),
            0 0 80px rgba(255, 255, 255, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
    }
}

.logo-yline {
    color: #fff;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.header.scrolled .logo-yline {
    color: #000 !important;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 6px rgba(255, 255, 255, 0.7) !important;
    font-weight: 700 !important;
}


.logo-tagline {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-left: 0.5rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

@keyframes logoGlow {
    0% {
        text-shadow:
            0 0 10px rgba(139, 0, 0, 0.5),
            0 0 20px rgba(139, 0, 0, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }

    100% {
        text-shadow:
            0 0 15px rgba(139, 0, 0, 0.8),
            0 0 25px rgba(139, 0, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 0rem;
    position: relative;
    z-index: 3;
    overflow: visible;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
}

.nav-menu li {
    position: relative;
    overflow: visible;
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.nav-menu a:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.nav-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* تحسين رابط Home - Same as index.html */
.home-link {
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.4s ease !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

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

.home-link:hover::before {
    left: 100%;
}

.home-link:hover {
    background: none !important;
    border: none !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: none !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    overflow: visible;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header.scrolled .dropdown-toggle {
    color: rgba(0, 0, 0, 0.9) !important;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
}

.header.scrolled .dropdown:hover .dropdown-toggle {
    color: #000 !important;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 1px 3px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 250px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(139, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10005;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.show .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateX(5px);
    padding-left: 2rem;
    text-decoration: none;
}

/* Force dropdown menu content to always be white */
.dropdown-menu,
.dropdown-menu *,
.dropdown-menu a,
.dropdown-menu li,
.dropdown-menu span,
.header .dropdown-menu,
.header .dropdown-menu *,
.header .dropdown-menu a,
.header .dropdown-menu li,
.header .dropdown-menu span,
.header.scrolled .dropdown-menu,
.header.scrolled .dropdown-menu *,
.header.scrolled .dropdown-menu a,
.header.scrolled .dropdown-menu li,
.header.scrolled .dropdown-menu span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dropdown-menu a:hover::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C41E3A;
    font-weight: bold;
}

/* Additional force for all dropdown menu states */
.dropdown-menu a,
.dropdown-menu a:visited,
.dropdown-menu a:active,
.dropdown-menu a:focus,
.dropdown-menu a:hover,
.header .dropdown-menu a,
.header .dropdown-menu a:visited,
.header .dropdown-menu a:active,
.header .dropdown-menu a:focus,
.header .dropdown-menu a:hover,
.header.scrolled .dropdown-menu a,
.header.scrolled .dropdown-menu a:visited,
.header.scrolled .dropdown-menu a:active,
.header.scrolled .dropdown-menu a:focus,
.header.scrolled .dropdown-menu a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* Mobile Dropdown Styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.2rem 0;
    cursor: default;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
    touch-action: manipulation;
    z-index: 10;
}

/* تأثيرات hover للأزرار المنسدلة في الموبايل مثل index.html */
.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown.active .mobile-dropdown-toggle {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

.mobile-dropdown-toggle a {
    pointer-events: auto;
    flex: 1;
    text-decoration: none;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    touch-action: manipulation;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

/* تأثيرات hover للأسهم المنسدلة في الموبايل مثل index.html */
.dropdown-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #C41E3A;
    transform: scale(1.1);
    border-color: rgba(196, 30, 58, 0.3);
}

.dropdown-arrow:active {
    transform: scale(0.95);
    background: rgba(196, 30, 58, 0.2);
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #C41E3A;
    background: rgba(196, 30, 58, 0.2);
    border-color: rgba(196, 30, 58, 0.4);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.25);
    margin: 0.5rem 1rem 0;
    border-radius: 10px;
    border-left: 3px solid #DC143C;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-dropdown-menu li {
    margin: 0;
}

.mobile-dropdown-menu a {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    margin: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    /* تحسينات للتفاعل مع اللمس */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* تأثيرات hover للقوائم المنسدلة في الموبايل مثل index.html */
.mobile-dropdown-menu a:hover {
    background: rgba(196, 30, 58, 0.1);
    border-left-color: #C41E3A;
    transform: translateX(3px);
    color: #C41E3A;
}

/* تحسين رابط Home في الموبايل - Same as index.html */
.home-mobile-item .home-mobile-link {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(139, 0, 0, 0.2)) !important;
    border: 2px solid rgba(196, 30, 58, 0.3) !important;
    font-weight: 700 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 1.2rem 1.5rem !important;
    margin: 0.5rem 1rem !important;
    border-radius: 15px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.4s ease !important;
}

/* تأثيرات hover لرابط Home في الموبايل مثل index.html */
.home-mobile-item .home-mobile-link:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3), rgba(139, 0, 0, 0.3)) !important;
    border-color: rgba(196, 30, 58, 0.6) !important;
    transform: translateX(8px) scale(1.02) !important;
}

.home-mobile-item .home-mobile-link .icon {
    background: linear-gradient(135deg, #FF6B6B, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(196, 30, 58, 0.4));
}

/* Custom Scrollbar for Mobile Dropdown */
.mobile-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mobile-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.6);
    border-radius: 3px;
}

.mobile-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 0, 0, 0.8);
}

/* Large Desktop */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        padding: 0.7rem 1.1rem;
        font-size: 0.95rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.2rem;
    }

    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small Tablet */
@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-sidenav {
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        left: -320px !important;
    }

    .mobile-sidenav.active {
        visibility: visible !important;
        opacity: 1 !important;
        left: 0 !important;
    }

    .mobile-overlay {
        display: none !important;
        pointer-events: none;
    }

    .mobile-overlay.active {
        display: block !important;
        pointer-events: auto;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-sky,
    .logo-yline {
        font-size: 1.8rem;
    }

    .logo-tagline {
        display: none;
    }

    /* تحسينات إضافية للموبايل */
    .nav-container {
        padding: 0 1rem;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .header {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* تحسين حجم زر الموبايل */
    .mobile-menu-btn {
        width: 35px;
        height: 30px;
    }

    .mobile-menu-btn span {
        height: 3px;
    }

    /* تقليل ارتفاع الهيدر الإجمالي */
    .header {
        min-height: 60px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.2rem 0.6rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .logo-sky,
    .logo-yline {
        font-size: 1.3rem !important;
    }

    .mobile-sidenav {
        width: 260px !important;
        left: -260px !important;
        padding-top: 3px !important;
    }

    .mobile-menu-btn {
        width: 35px !important;
        height: 30px !important;
    }

    .mobile-menu-btn span {
        width: 18px !important;
        height: 2px !important;
    }

    /* تقليل المسافة العلوية أكثر للشاشات الصغيرة */
    body {
        padding-top: 50px !important;
    }

    .header {
        padding: 0.3rem 0 !important;
        min-height: 45px !important;
    }
}

/* تحسينات للشاشات المتوسطة (تابلت) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo-sky,
    .logo-yline {
        font-size: 2rem;
    }
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 80px;
}

/* Reduce top padding on mobile for better content visibility */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }

    /* النافبار المحمول ثابت وتفاعلي */
    .header {
        position: fixed !important;
        top: 0 !important;
        padding: 0.4rem 0 !important;
        min-height: 50px !important;
    }

    .mobile-sidenav {
        width: 320px !important;
        padding-top: 20px !important;
        max-height: calc(100vh - 40px) !important;
    }

    /* تحسين زر Home */
    .mobile-sidenav .nav-link[href*="index"] {
        background: linear-gradient(135deg, #DC143C, #B22222) !important;
        color: white !important;
        border-radius: 8px !important;
        margin: 5px 0 !important;
        padding: 12px 15px !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .mobile-sidenav .nav-link[href*="index"]:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4) !important;
    }

    /* تحسين dropdown toggles */
    .mobile-sidenav .dropdown-toggle {
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(0, 0, 0, 0.3)) !important;
        border: 1px solid rgba(220, 20, 60, 0.4) !important;
        pointer-events: auto !important;
        box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1) !important;
    }

    /* تحسين dropdown menus */
    .mobile-sidenav .dropdown-menu {
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        border-radius: 8px !important;
        margin-top: 5px !important;
        border: 1px solid rgba(220, 20, 60, 0.3) !important;
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2) !important;
    }

    /* تحسين أحجام الأيقونات والخطوط */
    .mobile-sidenav .dropdown-menu .nav-link {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

    .mobile-sidenav .dropdown-menu .fas {
        font-size: 1rem !important;
        width: 20px !important;
    }

    /* تقليل المسافة العلوية للكونتينر */
    .nav-container {
        padding: 0.3rem 1rem !important;
    }

    /* تحسين عرض المحتوى */
    .logo {
        font-size: 1.2rem !important;
    }

    /* إزالة الكارد من عناصر النافبار المحمول */
    .mobile-sidenav .nav-link {
        box-shadow: none !important;
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.05), rgba(0, 0, 0, 0.1)) !important;
        border: 1px solid rgba(220, 20, 60, 0.1) !important;
        margin: 2px 0 !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

    .mobile-sidenav .nav-link:hover {
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(0, 0, 0, 0.3)) !important;
        border-radius: 6px !important;
        border-color: rgba(220, 20, 60, 0.4) !important;
        box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1) !important;
    }

    /* تحسين التخطيط العام */
    .mobile-sidenav {
        overflow-y: auto !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
    }

    .mobile-sidenav::-webkit-scrollbar {
        width: 6px !important;
    }

    .mobile-sidenav::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .mobile-sidenav::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.6), rgba(0, 0, 0, 0.8)) !important;
        border-radius: 3px !important;
    }

    .logo-sky,
    .logo-yline {
        font-size: 1.4rem !important;
    }

    /* تحسين زر الموبايل */
    .mobile-menu-btn {
        width: 40px !important;
        height: 35px !important;
    }

    .mobile-menu-btn span {
        width: 20px !important;
        height: 2px !important;
    }
}

/* تحسينات للشاشات التي تدعم اللمس */
.touch-device .mobile-menu-btn {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.touch-device .mobile-sidenav a {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.touch-device .dropdown-arrow {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

/* تحسينات للشاشات عالية الدقة */
.high-dpi .mobile-menu-btn span {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.high-dpi .mobile-sidenav {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* تحسينات للأداء */
.mobile-menu-btn,
.mobile-sidenav,
.mobile-overlay {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}