﻿/* ==================== FOOTER ENHANCEMENTS WITH #0070b7 BACKGROUND ==================== */

/* Footer background and spacing - FULL #0070b7 */
.footer-area-top.bg-accent {
    background-color: #0070b7 !important;
    padding: 50px 0 30px;
    color: #ffffff;
}

.footer-area-bottom {
    background-color: #005a8c !important; /* Darker shade for bottom footer */
    padding: 20px 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

    .footer-area-bottom a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
        font-weight: 500;
    }

        .footer-area-bottom a:hover {
            color: #ffd700;
            text-decoration: underline;
        }

/* Footer box styling */
.footer-box {
    margin-bottom: 30px;
}

/* Title styling */
.title-bar-footer {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.5px;
}

    .title-bar-footer:after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
    }

/* RTL support */
[dir="rtl"] .title-bar-footer:after {
    right: 0;
    left: auto;
}

/* Lists styling */
.useful-links,
.corporate-address {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .useful-links ul,
    .useful-links li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .useful-links li ul li {
            margin-bottom: 10px;
        }

            .useful-links li ul li a {
                color: #ffffff;
                text-decoration: none;
                font-size: 14px;
                transition: all 0.3s ease;
                display: inline-block;
                position: relative;
                padding: 3px 0;
            }

                .useful-links li ul li a:before {
                    content: '›';
                    margin-left: 0;
                    margin-right: 8px;
                    color: #ffffff;
                    opacity: 0;
                    transform: translateX(-5px);
                    transition: all 0.3s ease;
                    display: inline-block;
                }

[dir="rtl"] .useful-links li ul li a:before {
    content: '‹';
    margin-left: 8px;
    margin-right: 0;
}

.useful-links li ul li a:hover {
    color: #ffd700;
    padding-left: 15px;
    padding-right: 0;
}

[dir="rtl"] .useful-links li ul li a:hover {
    padding-left: 0;
    padding-right: 15px;
}

.useful-links li ul li a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

/* Corporate address styling - DESKTOP VERSION */
.corporate-address li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

    .corporate-address li i {
        color: #ffffff;
        font-size: 18px;
        min-width: 30px;
        margin-top: 3px;
    }

    .corporate-address li p {
        margin: 0;
        flex: 1;
    }

        .corporate-address li p:first-of-type {
            font-weight: 600;
            color: #ffd700;
            margin-bottom: 3px;
        }

    .corporate-address li a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .corporate-address li a:hover {
            color: #ffd700;
            text-decoration: underline;
        }

/* ==================== MOBILE VERSION ==================== */

/* Force all columns to be visible on mobile */
@media (max-width: 767px) {
    /* Ensure all columns display properly */
    .footer-area-top .col-lg-3,
    .footer-area-top .col-md-3,
    .footer-area-top .col-sm-6,
    .footer-area-top .col-xs-12 {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Footer boxes */
    .footer-box {
        text-align: center;
        margin-bottom: 40px;
        display: block !important;
        width: 100% !important;
    }

    /* Title styling for mobile */
    .title-bar-footer {
        font-size: 18px;
        text-align: center;
        display: block !important;
    }

        .title-bar-footer:after {
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%);
            width: 50px;
        }

    /* Lists styling */
    .useful-links li ul {
        text-align: center;
    }

        .useful-links li ul li a {
            display: inline-block;
            padding: 5px 0;
        }

            .useful-links li ul li a:before {
                display: none;
            }

    /* Contact info display */
    .corporate-address {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

        .corporate-address li {
            display: block !important;
            text-align: center !important;
            margin-bottom: 25px !important;
            padding: 15px !important;
            background-color: rgba(255, 255, 255, 0.1) !important;
            border-radius: 10px !important;
            width: 100% !important;
        }

            .corporate-address li i {
                display: inline-block !important;
                font-size: 24px !important;
                margin-bottom: 10px !important;
                margin-top: 0 !important;
                min-width: auto !important;
                color: #ffd700 !important;
            }

            .corporate-address li p {
                display: block !important;
                text-align: center !important;
                width: 100% !important;
                margin: 5px 0 !important;
            }

                .corporate-address li p:first-of-type {
                    font-size: 14px !important;
                    font-weight: bold !important;
                    margin-top: 5px !important;
                    color: #ffd700 !important;
                }

                .corporate-address li p:last-of-type {
                    font-size: 13px !important;
                    word-break: break-word !important;
                    color: #ffffff !important;
                }

            /* Special handling for the Report Problem link */
            .corporate-address li:last-child p {
                display: inline-block !important;
                width: auto !important;
            }

            .corporate-address li:last-child a {
                display: inline-block !important;
                margin-top: 5px !important;
                color: #ffffff !important;
            }

                .corporate-address li:last-child a:hover {
                    color: #ffd700 !important;
                }
}

/* Small mobile */
@media (max-width: 575px) {
    .corporate-address li {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

        .corporate-address li i {
            font-size: 20px !important;
        }

        .corporate-address li p:first-of-type {
            font-size: 13px !important;
        }

        .corporate-address li p:last-of-type {
            font-size: 11px !important;
        }
}

/* ==================== ANIMATIONS & HOVER EFFECTS ==================== */

/* Smooth transition for all links */
.footer-box a {
    transition: all 0.3s ease;
}

/* Icon hover effect */
.corporate-address li:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* List item hover effect */
.useful-links li ul li {
    transition: transform 0.2s ease;
}

    .useful-links li ul li:hover {
        transform: translateX(3px);
    }

[dir="rtl"] .useful-links li ul li:hover {
    transform: translateX(-3px);
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus visible for keyboard navigation */
.footer-box a:focus-visible,
.footer-area-bottom a:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer-area-top.bg-accent {
        background-color: #0070b7;
    }

    .title-bar-footer:after {
        background-color: #ffffff;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .footer-box a,
    .useful-links li ul li,
    .corporate-address li i,
    .useful-links li ul li a:before {
        transition: none !important;
    }

        .useful-links li ul li:hover {
            transform: none;
        }
}

.useful-links > li ul li::before {
    display: none;
}

/* OVERRIDE ANY HIDDEN ELEMENTS */
@media (max-width: 767px) {
    /* Force all list items to show regardless of any hiding */
    .corporate-address li:nth-child(1),
    .corporate-address li:nth-child(2),
    .corporate-address li:nth-child(3),
    .corporate-address li:nth-child(4),
    .corporate-address li:nth-child(5) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}


/*بداية تعديلات header*/


/* =============================================
   PURE CSS SOLUTION - NO JAVASCRIPT REQUIRED
   ============================================= */
/* Container max-width adjustment for better spacing */
.main-menu-area .container {
    max-width: 1400px;
    width: 100%;
}

/* Navbar spacing fixes */
.main-menu-area .navbar {
    padding: 0;
    min-height: 100px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Logo sizing */
.navbar-logo {
    flex-shrink: 0;
    padding: 5px 0;
}

    .navbar-logo .logo {
        max-height: 70px;
        width: auto;
    }

/* Navigation items container */
#navbarSupportedContent {
    flex-grow: 1;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

    .navbar-nav .nav-item {
        position: relative;
    }

    /* Responsive nav link sizing */
    .navbar-nav .nav-link {
        color: #2c3e50 !important;
        font-weight: 600;
        padding: 28px 10px !important;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

/* Large Desktop - 1200px and up */
@media screen and (min-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 28px 12px !important;
    }
}

/* Medium Desktop - 992px to 1199px */
@media screen and (min-width: 993px) and (max-width: 1199px) {
    .navbar-logo .logo {
        max-height: 60px;
    }

    .navbar-nav .nav-link {
        font-size: 12px;
        padding: 28px 6px !important;
    }

    .dropdown-menu {
        min-width: 220px;
    }

    .dropdown-item {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Extra Large Desktop - 1400px and up */
@media screen and (min-width: 1400px) {
    .navbar-nav .nav-link {
        font-size: 15px;
        padding: 28px 15px !important;
    }
}

/* Underline animation */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    width: 0;
    height: 2px;
    background: #0070b7;
    transition: width 0.3s ease;
    margin: 0 auto;
}

.navbar-nav .nav-item:hover .nav-link::after,
.navbar-nav .nav-item.active .nav-link::after {
    width: calc(100% - 20px);
}

.navbar-nav .nav-link:hover {
    color: #0070b7 !important;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 10px;
    border: 1px solid rgba(0, 112, 183, 0.1);
    min-width: 250px;
    max-width: 300px;
}

/* Desktop dropdown hover - Pure CSS */
@media screen and (min-width: 993px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: dropdownFade 0.3s ease;
    }

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -8px;
            margin-left: 5px;
        }

        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 20px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}

    .dropdown-item:hover {
        background: #f0f4f8;
        color: #0070b7;
        padding-left: 25px;
    }

/* RTL Support */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

    [dir="rtl"] .dropdown-item:hover {
        padding-left: 20px;
        padding-right: 25px;
    }

[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 5px;
}

/* =============================================
   MOBILE - PURE CSS SOLUTION (No JS)
   Uses :focus-within for submenu toggle
   ============================================= */
@media screen and (max-width: 992px) {
    /* Reset navbar for mobile */
    .main-menu-area .navbar {
        min-height: 70px;
        flex-wrap: wrap;
    }

    .navbar-logo .logo {
        max-height: 55px;
    }

    /* Mobile toggle button */
    .navbar-toggler {
        border: none;
        padding: 10px 12px;
        border-radius: 12px;
        background: #0070b7;
        margin-left: 15px;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }

    [dir="rtl"] .navbar-toggler {
        margin-left: 0;
        margin-right: 15px;
    }

    .navbar-logo {
        order: 1;
    }

    /* Collapse menu - fixed positioning */
    .navbar-collapse {
        position: fixed;
        top: 135px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 135px);
        overflow-y: auto;
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        z-index: 999;
    }

        .navbar-collapse.show {
            transform: translateX(0);
        }

    [dir="rtl"] .navbar-collapse {
        transform: translateX(100%);
    }

        [dir="rtl"] .navbar-collapse.show {
            transform: translateX(0);
        }

    /* Lock body scroll when menu is open - Pure CSS */
    body:has(.navbar-collapse.show) {
        overflow: hidden;
    }

    /* Nav items in mobile */
    .navbar-nav {
        width: 100%;
        padding: 10px 0;
    }

        .navbar-nav .nav-item {
            width: 100%;
            border-bottom: 1px solid rgba(0, 112, 183, 0.1);
        }

        .navbar-nav .nav-link {
            padding: 16px 20px !important;
            white-space: normal;
            font-size: 15px;
            font-weight: 500;
        }

            .navbar-nav .nav-link::after {
                display: none;
            }

    /* Mobile dropdown indicator */
    .nav-item.dropdown .nav-link::before {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #0070b7;
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    [dir="rtl"] .nav-item.dropdown .nav-link::before {
        right: auto;
        left: 20px;
    }

    /* Rotate arrow when dropdown is shown */
    .nav-item.dropdown.show .nav-link::before {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile dropdown menus */
    .dropdown-menu {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        background: #f8f9fa;
        max-width: none;
        width: 100%;
        border-radius: 0;
        border-top: 1px solid rgba(0, 112, 183, 0.1);
        border-bottom: 1px solid rgba(0, 112, 183, 0.1);
    }

        .dropdown-menu.show {
            display: block;
        }

    .dropdown-item {
        padding: 14px 20px 14px 35px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 112, 183, 0.05);
        color: #1a1a2e !important;
        background: transparent !important;
    }

    [dir="rtl"] .dropdown-item {
        padding: 14px 35px 14px 20px;
    }

    /* Bullet for dropdown items */
    .dropdown-item::before {
        content: '•';
        position: absolute;
        left: 20px;
        color: #0070b7;
        font-size: 18px;
    }

    [dir="rtl"] .dropdown-item::before {
        left: auto;
        right: 20px;
    }

    /* Submenu styling */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-left: 15px;
        background: #ffffff;
        border-left: 3px solid #0070b7;
    }

    [dir="rtl"] .dropdown-submenu > .dropdown-menu {
        margin-left: 0;
        margin-right: 15px;
        border-left: none;
        border-right: 3px solid #0070b7;
    }

    /* Submenu indicator */
    .dropdown-submenu .dropdown-toggle {
        position: relative;
    }

        .dropdown-submenu .dropdown-toggle::before {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #0070b7;
            font-size: 12px;
            transition: transform 0.3s ease;
        }

    [dir="rtl"] .dropdown-submenu .dropdown-toggle::before {
        right: auto;
        left: 20px;
    }

    /* Rotate arrow when submenu is shown */
    .dropdown-submenu.show .dropdown-toggle::before {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Nested submenu items */
    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 50px;
        font-size: 13px;
        color: #1a1a2e !important;
    }

    [dir="rtl"] .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 20px;
        padding-right: 50px;
    }

    /* Hover states for mobile */
    .dropdown-item:hover {
        background: rgba(0, 112, 183, 0.1) !important;
        color: #0070b7 !important;
    }

    /* Pure CSS submenu toggle using :focus-within (optional enhancement) */
    @supports selector(:focus-within) {
        .dropdown-submenu:focus-within > .dropdown-menu {
            display: block !important;
        }

        .dropdown-submenu:focus-within .dropdown-toggle::before {
            transform: translateY(-50%) rotate(180deg);
        }
    }
}

/* Small mobile adjustments */
@media screen and (max-width: 576px) {
    .navbar-logo .logo {
        max-height: 45px;
    }

    .navbar-collapse {
        top: 130px;
        height: calc(100vh - 130px);
    }

    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 14px 20px !important;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 12px 20px 12px 35px;
    }
}

/* =============================================
   HEADER TOP BAR - PURE CSS (No Overlap)
   ============================================= */
.header-top-bar {
    background: #0070b7 !important;
    padding: 0;
    height: 50px;
    min-height: 50px;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

    .header-top-bar .container {
        height: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-top-bar .row {
        height: 100%;
        align-items: center;
        margin: 0;
    }

    .header-top-bar .col-lg-9,
    .header-top-bar .col-md-9,
    .header-top-bar .col-sm-12,
    .header-top-bar .col-lg-3,
    .header-top-bar .col-md-3 {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0;
    }

.header-contact-info {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

    .header-contact-info ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px;
        width: 100%;
    }

        .header-contact-info ul li {
            display: inline-flex;
            align-items: center;
        }

            .header-contact-info ul li a {
                color: rgba(255, 255, 255, 0.9) !important;
                font-size: 12px;
                font-weight: 500;
                padding: 4px 8px;
                display: inline-flex;
                align-items: center;
                text-decoration: none;
                transition: all 0.3s ease;
                border-radius: 4px;
                line-height: 1.2;
                white-space: nowrap;
            }

                .header-contact-info ul li a:hover {
                    color: white !important;
                    background: rgba(255, 255, 255, 0.15);
                }

.header-social {
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

    .header-social ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        width: 100%;
    }

        .header-social ul li {
            display: inline-flex;
            align-items: center;
        }

            .header-social ul li a {
                color: white !important;
                font-size: 14px;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                transition: all 0.3s ease;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.1);
            }

                .header-social ul li a:hover {
                    background: rgba(255, 255, 255, 0.2);
                    transform: translateY(-1px);
                }

[dir="rtl"] .header-social ul {
    justify-content: flex-start;
}

/* =============================================
   LARGE SCREEN SPECIFIC - 1200px and up
   ============================================= */
@media screen and (min-width: 1200px) {
    .header-top-bar {
        height: 50px;
        min-height: 50px;
    }

    .header-contact-info ul li a {
        font-size: 12px;
        padding: 4px 10px;
    }

    .header-social ul li a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* =============================================
   MEDIUM SCREEN - 992px to 1199px
   ============================================= */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .header-top-bar {
        height: 50px;
        min-height: 50px;
    }

    .header-contact-info ul li a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .header-contact-info ul li:nth-child(n+8) a {
        padding: 3px 5px;
    }

    .header-social ul li a {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* =============================================
   EXTRA LARGE SCREEN - 1400px and up
   ============================================= */
@media screen and (min-width: 1400px) {
    .header-top-bar {
        height: 50px;
        min-height: 50px;
    }

    .header-contact-info ul {
        gap: 4px;
    }

        .header-contact-info ul li a {
            font-size: 13px;
            padding: 3px 8px;
        }

    .header-social ul li a {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* =============================================
   TABLET SCREEN - 768px to 991px
   ============================================= */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .header-top-bar {
        height: auto;
        min-height: 50px;
        padding: 5px 0;
    }

    .header-contact-info ul {
        justify-content: center;
    }

        .header-contact-info ul li a {
            font-size: 11px;
            padding: 4px 6px;
        }

    .header-social ul {
        justify-content: center;
    }
}

/* =============================================
   MOBILE SCREEN - Below 768px
   ============================================= */
@media screen and (max-width: 767px) {
    .header-top-bar {
        height: auto;
        min-height: auto;
        padding: 5px 0;
    }

        .header-top-bar .container {
            padding-left: 5px;
            padding-right: 5px;
        }

        .header-top-bar .row {
            flex-direction: column;
            gap: 3px;
            margin: 0;
        }

        .header-top-bar .col-sm-12 {
            padding: 0;
            width: 100%;
        }

    .header-contact-info {
        width: 100%;
        overflow: visible;
        padding: 2px 0;
    }

        .header-contact-info ul {
            flex-wrap: wrap;
            justify-content: center;
            gap: 3px;
            padding: 0 5px;
            margin: 0;
        }

            .header-contact-info ul li {
                flex: 0 1 auto;
            }

                .header-contact-info ul li a {
                    font-size: 10px;
                    padding: 4px 6px;
                    white-space: nowrap;
                    border-radius: 15px;
                    background: rgba(255, 255, 255, 0.1);
                    line-height: 1.3;
                }

    .header-social {
        width: 100%;
        padding: 2px 5px;
    }

        .header-social ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 0;
            margin: 0;
        }

            .header-social ul li {
                flex: 0 0 auto;
            }

                .header-social ul li a {
                    width: 32px;
                    height: 32px;
                    font-size: 13px;
                    background: rgba(255, 255, 255, 0.15);
                }
}

/* Medium mobile - 480px to 767px */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .header-contact-info ul li a {
        font-size: 11px;
        padding: 5px 8px;
    }

    .header-social ul {
        gap: 12px;
    }

        .header-social ul li a {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }
}

/* =============================================
   SMALL MOBILE - Below 480px
   أيقونات حقيقية وأزرار لغة حقيقية
   ============================================= */
@media screen and (max-width: 480px) {
    .header-top-bar {
        padding: 3px 0;
    }

    /* 5 عناصر رئيسية في صف واحد مع أيقونات */
    .header-contact-info ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        padding: 0 3px;
    }

        .header-contact-info ul li {
            text-align: center;
        }

            .header-contact-info ul li a {
                font-size: 8px;
                padding: 3px 2px;
                width: 100%;
                justify-content: center;
                white-space: normal;
                word-break: break-word;
                line-height: 1.2;
                min-height: 38px;
                display: flex;
                flex-direction: column;
                align-items: center;
                border-radius: 8px;
            }

            /* أيقونات للعناصر الخمسة الرئيسية */
            .header-contact-info ul li:nth-child(1) a::before {
                content: "🏠";
                font-size: 14px;
                display: block;
                margin-bottom: 2px;
            }

            .header-contact-info ul li:nth-child(2) a::before {
                content: "📞";
                font-size: 14px;
                display: block;
                margin-bottom: 2px;
            }

            .header-contact-info ul li:nth-child(3) a::before {
                content: "🤝";
                font-size: 14px;
                display: block;
                margin-bottom: 2px;
            }

            .header-contact-info ul li:nth-child(4) a::before {
                content: "🌐";
                font-size: 14px;
                display: block;
                margin-bottom: 2px;
            }

            .header-contact-info ul li:nth-child(5) a::before {
                content: "🎬";
                font-size: 14px;
                display: block;
                margin-bottom: 2px;
            }

            /* إظهار أزرار اللغة الحقيقية */
            .header-contact-info ul li:nth-child(6),
            .header-contact-info ul li:nth-child(7),
            .header-contact-info ul li:nth-child(8) {
                display: inline-block !important;
            }

                /* تنسيق أزرار اللغة */
                .header-contact-info ul li:nth-child(6) a,
                .header-contact-info ul li:nth-child(7) a,
                .header-contact-info ul li:nth-child(8) a {
                    flex-direction: row;
                    padding: 5px 0;
                    font-size: 11px;
                    font-weight: 600;
                    background: rgba(255, 255, 255, 0.2);
                    border-radius: 20px;
                    min-height: auto;
                }

                    .header-contact-info ul li:nth-child(6) a::before,
                    .header-contact-info ul li:nth-child(7) a::before,
                    .header-contact-info ul li:nth-child(8) a::before {
                        content: none !important;
                        display: none;
                    }

    /* تنسيق قسم social */
    .header-social {
        position: relative;
        padding: 2px 5px;
    }

        .header-social ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
        }

            .header-social ul li a {
                width: 34px;
                height: 34px;
                font-size: 14px;
            }
}

/* =============================================
   VERY SMALL MOBILE - Below 360px
   ============================================= */
@media screen and (max-width: 360px) {
    .header-contact-info ul {
        grid-template-columns: repeat(5, 1fr);
    }

        .header-contact-info ul li a {
            font-size: 7px;
            min-height: 35px;
        }

            .header-contact-info ul li a::before {
                font-size: 12px;
            }

        .header-contact-info ul li:nth-child(6) a,
        .header-contact-info ul li:nth-child(7) a,
        .header-contact-info ul li:nth-child(8) a {
            font-size: 10px;
            padding: 4px 0;
        }

    .header-social ul li a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .header-social ul {
        gap: 5px;
    }
}

/* =============================================
   FIX FOR RTL
   ============================================= */
@media screen and (max-width: 767px) {
    [dir="rtl"] .header-contact-info ul {
        padding-right: 5px;
    }

        [dir="rtl"] .header-contact-info ul li a::before {
            margin-left: 2px;
            margin-right: 0;
        }
}

/* =============================================
   ENSURE ALL ITEMS CLICKABLE
   ============================================= */
@media screen and (max-width: 767px) {
    .header-contact-info ul li a,
    .header-social ul li a {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }

        .header-contact-info ul li a:active,
        .header-social ul li a:active {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(0.95);
        }
}

/* Search panel positioning */
#qnimate {
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    #qnimate.off {
        opacity: 0;
        visibility: hidden;
    }

    #qnimate:not(.off) {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Custom scrollbar */
.navbar-collapse::-webkit-scrollbar {
    width: 4px;
}

.navbar-collapse::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.navbar-collapse::-webkit-scrollbar-thumb {
    background: #0070b7;
    border-radius: 10px;
}

/* Smooth transitions */
.navbar,
.nav-link,
.dropdown-menu,
.dropdown-item,
.navbar-toggler {
    transition: all 0.3s ease;
}

/* Fix for Bootstrap's default behavior on mobile */
@media screen and (max-width: 992px) {
    .dropdown-menu.show,
    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-toggle::after {
        display: none !important;
    }
}



.accessibility-font h4{
    font-size:16px!important;
}



.header-social ul li {
    transition: all 0.2s ease;
}

    .header-social ul li:hover {
        background-color: #0070b7;
        transform: translateY(-2px) rotate(3deg);
    }