/**
 * Mobile Responsive Design System - نظام التصميم المتجاوب للموبايل
 * Elmeir Group Website
 *
 * Best Practices Applied:
 * - Mobile-First approach where possible
 * - Standard breakpoints (Bootstrap 5 compatible)
 * - Touch-friendly targets (min 44px)
 * - Readable font sizes (min 16px for inputs to prevent zoom)
 * - Optimized for RTL Arabic layout
 * - Performance optimized (hardware acceleration)
 *
 * Breakpoints:
 * - xs: 0-575px (Small phones)
 * - sm: 576-767px (Large phones)
 * - md: 768-991px (Tablets)
 * - lg: 992-1199px (Small desktops)
 * - xl: 1200-1399px (Large desktops)
 * - xxl: 1400px+ (Extra large)
 *
 * Last Updated: January 12, 2026
 */

/* ========================================
   CSS Variables for Mobile
   ======================================== */
:root {
    --mobile-spacing: 15px;
    --mobile-spacing-sm: 10px;
    --mobile-spacing-lg: 20px;
    --mobile-radius: 12px;
    --touch-target-min: 44px;
    --mobile-font-base: 14px;
    --mobile-line-height: 1.6;
    --header-height-mobile: 70px;
    --header-height-tablet: 80px;
    --safe-area-inset: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   DISABLE OLD MOBILE MENU SYSTEM
   إخفاء نظام القائمة القديم لمنع الازدواج
   ======================================== */
#mobileSidebar,
.mobile-sidebar-menu,
#sidebarOverlay,
.sidebar-overlay,
#mobile-menu-icon,
.mobile-menu-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========================================
   Hide Mobile-Only Elements on Desktop
   ======================================== */
.mobile-menu-header,
.mobile-menu-footer,
.mobile-menu-close,
.mobile-menu-close-wrapper,
.mobile-only-menu-item {
    display: none;
}

/* Nav icons - visible on all screens */
.nav-icon {
    display: inline-block;
    margin-left: 6px;
    color: #D4AA40;
    font-size: 0.9rem;
}

/* ========================================
   Mobile Menu Toggle Button
   ======================================== */
/* Base styles - VISIBLE on mobile by default */
.mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(212, 170, 64, 0.15) 0%, rgba(191, 152, 53, 0.1) 100%);
    border: 2px solid rgba(212, 170, 64, 0.5);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 170, 64, 0.2);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border-color: #D4AA40;
    background: linear-gradient(135deg, rgba(212, 170, 64, 0.25) 0%, rgba(191, 152, 53, 0.2) 100%);
    box-shadow: 0 4px 15px rgba(212, 170, 64, 0.35);
    transform: scale(1.05);
}

.mobile-menu-toggle .menu-bar {
    width: 22px;
    height: 2.5px;
    background: linear-gradient(90deg, #D4AA40, #BF9835);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    box-shadow: 0 0 5px rgba(212, 170, 64, 0.3);
}

.mobile-menu-toggle .menu-bar:nth-child(1) {
    transform: translateY(-7px);
}

.mobile-menu-toggle .menu-bar:nth-child(2) {
    transform: translateY(0);
}

.mobile-menu-toggle .menu-bar:nth-child(3) {
    transform: translateY(7px);
}

/* Hide ONLY on desktop (min-width: 992px) */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Active state - Hide toggle when menu is open (mobile only) */
@media (max-width: 991px) {
    .mobile-menu-toggle.active {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ========================================
   Mobile Menu Overlay - Base Styles
   ======================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000; /* Must be higher than header (9999) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Base Mobile Optimizations
   ======================================== */

/* ========================================
   Prevent Horizontal Scroll - GLOBAL
   Strategy:
   - overflow-x: hidden on html/body (page-level)
   - overflow: clip on sections (clips without creating scroll container)
   - NO overflow-x on .container (would clip dropdowns!)
   - .row fix for Bootstrap negative margins
   ======================================== */
html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
}

/* Sections: clip overflow without creating scroll container.
   overflow-x:clip is modern (no scroll context), hidden is fallback.
   Browser uses last valid value, so clip wins when supported. */
main,
#main-content,
section,
.section-padding,
.hero-section,
.hero-section-professional,
.hero-slider-professional,
.featured-products-section,
.companies-section,
.services-section,
.about-section-luxury,
.contact-section,
.gallery-section,
.media-section,
.company-hero,
.companies-hero,
.products-hero,
.about-hero-section,
.gallery-hero,
.contact-hero-advanced,
.media-hero,
.hero-content-professional,
.footer,
footer {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100% !important;
}

/* DO NOT set overflow on .container/.container-fluid
   It clips absolutely-positioned children like dropdowns! */
.container,
.container-fluid {
    max-width: 100% !important;
}

/* Swiper: must not leak content outside its bounds */
.swiper {
    overflow: hidden !important;
    max-width: 100% !important;
}
.swiper-wrapper {
    max-width: 100% !important;
}
.swiper-slide {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* All media must respect container width */
img, video, iframe, embed, object {
    max-width: 100%;
}

/* Improve touch scrolling */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ========================================
   TABLETS & MOBILE (max-width: 991px)
   ======================================== */
@media (max-width: 991px) {

    /* === Container === */
    .container {
        padding-left: var(--mobile-spacing-lg);
        padding-right: var(--mobile-spacing-lg);
    }

    /* === Hide Top Bar on Mobile === */
    .top-bar {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* === Professional Mobile Header === */
    header .navbar,
    .header .navbar,
    header.header .navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 12px 0 !important;
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(10, 10, 10, 0.96) 50%,
            rgba(0, 0, 0, 0.98) 100%) !important;
        border-bottom: 3px solid !important;
        border-image: linear-gradient(90deg,
            transparent 0%,
            #D4AA40 20%,
            #BF9835 50%,
            #D4AA40 80%,
            transparent 100%) 1 !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(212, 170, 64, 0.15) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        height: auto !important;
    }

    .navbar .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    /* === Navbar Content - Centered Layout === */
    .navbar-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* === Mobile Menu Toggle Button === */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 10002 !important;
        order: 0 !important;
    }

    /* === Brand - Centered === */
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        order: 1 !important;
        flex: 1 !important;
        justify-content: center !important;
        text-decoration: none !important;
    }

    .navbar-brand img {
        width: 50px !important;
        height: 50px !important;
        filter: drop-shadow(0 0 6px rgba(212, 170, 64, 0.3)) !important;
        border-radius: 50% !important;
        margin: 0 !important;
        margin-inline-end: 0 !important;
        margin-inline-start: 0 !important;
        border: 2px solid #D4AA40 !important;
        background: #000 !important;
        padding: 2px !important;
        box-shadow: none !important;
    }

    .navbar-brand-text {
        display: flex !important;
        flex-direction: column !important;
        text-align: start !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .brand-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin: 0 !important;
        margin-bottom: 5px !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    .brand-subtitle {
        font-size: 0.7rem !important;
        color: #B8B8B8 !important;
        font-weight: 500 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    .brand-subtitle .year-badge {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #000 !important;
        background-clip: unset !important;
        color: #000 !important;
        font-weight: 700 !important;
        margin: 0 2px !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
        font-size: 0.65rem !important;
        display: inline-block !important;
        box-shadow: 0 1px 4px rgba(212, 170, 64, 0.3) !important;
    }

    /* LTR languages: slightly larger brand text (Poppins/Montserrat render smaller than Cairo) */
    [dir="ltr"] .brand-title {
        font-size: 1.15rem !important;
    }
    [dir="ltr"] .brand-subtitle {
        font-size: 0.73rem !important;
    }

    /* === Header Actions - Keep visible === */
    .header-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        gap: 8px;
        order: 2 !important;
        flex-shrink: 0;
    }

    /* Hide CTA button on mobile */
    .header-actions .header-cta {
        display: none !important;
    }

    /* === Body Padding for Fixed Header === */
    body {
        padding-top: 75px !important;
    }

    .hero-section,
    .hero-section-professional {
        margin-top: 0 !important;
    }

    /* ========================================
       Mobile Language Switcher - Enhanced Design
       ======================================== */
    .header-actions .language-switcher {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 1050;
    }

    .header-actions .current-language {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding: 0 12px !important;
        min-width: 85px;
        height: 38px;
        background: linear-gradient(135deg, #BF9835, #A58230) !important;
        border: 2px solid rgba(212, 170, 64, 0.4) !important;
        border-radius: 19px;
        color: #000 !important;
        font-weight: 600;
        font-size: 12px;
        box-shadow: 0 3px 12px rgba(212, 170, 64, 0.25);
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .header-actions .current-language .flag-icon {
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }

    .header-actions .current-language .dropdown-arrow {
        font-size: 8px !important;
        flex-shrink: 0 !important;
    }

    .header-actions .current-language:hover,
    .header-actions .current-language:focus {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        border-color: #D4AA40 !important;
        box-shadow: 0 4px 18px rgba(212, 170, 64, 0.4);
        transform: translateY(-1px);
    }

    .header-actions .current-language .lang-text,
    .header-actions .current-language span.lang-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #000 !important;
        letter-spacing: 0.5px;
    }

    .header-actions .current-language .dropdown-arrow {
        font-size: 9px;
        color: #000 !important;
        transition: transform 0.3s ease;
    }

    /* Language Dropdown - Hidden until clicked */
    .language-dropdown,
    .language-switcher .language-dropdown,
    .language-switcher:hover .language-dropdown,
    .language-switcher:focus .language-dropdown,
    .language-switcher:focus-within .language-dropdown,
    .header-actions .language-dropdown,
    #languageDropdown {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        display: none !important;
        pointer-events: none !important;
    }

    /* Only show on .show class (click) */
    .language-dropdown.show,
    #languageDropdown.show,
    .language-switcher .language-dropdown.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        width: 110px !important;
        background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
        border: 2px solid rgba(212, 170, 64, 0.4) !important;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 170, 64, 0.1);
        overflow: hidden;
        z-index: 10005;
    }

    /* RTL (Arabic): dropdown opens to the right (left: 0) */
    [dir="rtl"] .language-dropdown.show,
    [dir="rtl"] #languageDropdown.show {
        left: 0 !important;
        right: auto !important;
    }

    /* LTR (English/Hindi/Chinese): dropdown opens to the left (right: 0) */
    [dir="ltr"] .language-dropdown.show,
    [dir="ltr"] #languageDropdown.show {
        right: 0 !important;
        left: auto !important;
    }

    .language-dropdown.show .language-option {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(212, 170, 64, 0.15);
        text-decoration: none !important;
    }

    .language-dropdown.show .language-option:last-child {
        border-bottom: none;
    }

    .language-dropdown.show .language-option:hover,
    .language-dropdown.show .language-option.active {
        background: rgba(212, 170, 64, 0.15) !important;
    }

    .language-dropdown.show .language-option .flag-icon {
        display: inline-block !important;
        font-size: 20px !important;
        flex-shrink: 0;
    }

    /* FORCE show language code in dropdown - ALL SCREEN SIZES */
    .language-dropdown .language-option .lang-text,
    .language-dropdown .language-option span.lang-text,
    .language-dropdown.show .language-option .lang-text,
    .language-dropdown.show .language-option span.lang-text,
    #languageDropdown .language-option .lang-text,
    #languageDropdown.show .language-option .lang-text,
    .language-switcher .language-dropdown .lang-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #D4AA40 !important;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    /* === Mobile Menu Toggle - FORCE VISIBLE === */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10002 !important;
        order: 0 !important;
        flex-shrink: 0;
    }

    /* === Navigation Slide Menu === */
    .navbar-nav {
        position: fixed !important;
        top: 0 !important;
        width: 300px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        align-content: flex-start !important;
        padding: 0 !important;
        padding-top: 0 !important;
        margin: 0 !important;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 170, 64, 0.1) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        z-index: 10001 !important;
        gap: 0 !important;
        border-left: 3px solid rgba(212, 170, 64, 0.3) !important;
        list-style: none !important;
    }

    /* Reset list item defaults */
    .navbar-nav > li,
    .navbar-nav > .nav-item,
    .navbar-nav > .mobile-menu-close-wrapper,
    .navbar-nav > .mobile-menu-header {
        margin: 0 !important;
        list-style: none !important;
    }

    .navbar-nav > li:first-child,
    .navbar-nav > .mobile-menu-close-wrapper {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    /* Remove any pseudo-elements that might add space */
    .navbar-nav::before,
    .navbar-nav::after,
    .navbar-nav > li::before,
    .navbar-nav > li::after {
        display: none !important;
        content: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    /* RTL: Menu slides from right */
    .navbar-nav,
    [dir="rtl"] .navbar-nav {
        right: 0 !important;
        left: auto !important;
        transform: translateX(100%) !important;
    }

    .navbar-nav.active,
    [dir="rtl"] .navbar-nav.active {
        transform: translateX(0) !important;
    }

    /* LTR: Menu slides from left */
    [dir="ltr"] .navbar-nav {
        left: 0 !important;
        right: auto !important;
        transform: translateX(-100%) !important;
        border-left: none !important;
        border-right: 3px solid rgba(212, 170, 64, 0.3) !important;
    }

    [dir="ltr"] .navbar-nav.active {
        transform: translateX(0) !important;
    }

    /* === Mobile Menu Close Button Wrapper === */
    .mobile-menu-close-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 10px 15px !important;
        background: transparent !important;
        border-bottom: none !important;
    }

    /* Close Button */
    .mobile-menu-close {
        width: 36px !important;
        height: 36px !important;
        background: rgba(212, 170, 64, 0.1) !important;
        border: 2px solid rgba(212, 170, 64, 0.3) !important;
        border-radius: 8px !important;
        color: #D4AA40 !important;
        font-size: 16px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-menu-close:hover {
        background: rgba(212, 170, 64, 0.2) !important;
        transform: rotate(90deg) !important;
    }

    /* === Mobile Menu Header (Logo & Brand) === */
    .mobile-menu-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 15px !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.08) 0%, rgba(212, 170, 64, 0.02) 100%) !important;
        border-bottom: 2px solid rgba(212, 170, 64, 0.2) !important;
        margin-bottom: 15px !important;
    }

    .menu-brand {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .menu-logo {
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        border: 2px solid #D4AA40 !important;
        padding: 2px !important;
        background: #000 !important;
        filter: drop-shadow(0 0 4px rgba(212, 170, 64, 0.25)) !important;
    }

    .menu-brand-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .menu-brand-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    .menu-brand-subtitle {
        font-size: 0.7rem !important;
        color: #B8B8B8 !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
    }

    .menu-year-badge {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #000 !important;
        background-clip: unset !important;
        color: #000 !important;
        font-weight: 700 !important;
        margin: 0 2px !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
        font-size: 0.65rem !important;
        display: inline-block !important;
        box-shadow: 0 1px 4px rgba(212, 170, 64, 0.3) !important;
    }

    /* === Nav Items === */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(212, 170, 64, 0.08);
        padding: 0 8px;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    /* Show Mobile-Only Menu Items */
    .mobile-only-menu-item {
        display: block !important;
    }

    .nav-link {
        display: flex !important;
        align-items: center;
        gap: 12px !important;
        width: 100%;
        padding: 12px 10px !important;
        font-size: 0.95rem !important;
        color: #F2E8C9 !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin: 1px 0;
    }

    /* Nav Icon Spacing */
    .nav-icon {
        display: inline-block !important;
        width: 24px !important;
        min-width: 24px !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        color: #D4AA40 !important;
        opacity: 0.8 !important;
        transition: all 0.3s ease !important;
    }

    .nav-link:hover .nav-icon,
    .nav-link.active .nav-icon {
        opacity: 1 !important;
        transform: scale(1.1) !important;
    }

    .nav-link span {
        flex: 1;
    }

    .dropdown-arrow-icon {
        font-size: 0.75rem !important;
        margin-right: auto !important;
        transition: transform 0.3s ease !important;
    }

    .dropdown-arrow-icon.rotated {
        transform: rotate(180deg) !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: linear-gradient(90deg, rgba(212, 170, 64, 0.15) 0%, rgba(212, 170, 64, 0.05) 100%) !important;
        color: #D4AA40 !important;
    }

    .nav-link::before,
    .nav-link::after,
    .dropdown-toggle::after,
    .dropdown-toggle::before,
    .navbar-nav .dropdown-menu::before {
        display: none !important;
        content: none !important;
    }

    /* === Mobile Menu Footer === */
    .mobile-menu-footer {
        display: block !important;
        margin-top: auto !important;
        padding: 20px 15px !important;
        border-top: 2px solid rgba(212, 170, 64, 0.2) !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
        border-bottom: none !important;
    }

    .mobile-cta-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 14px 20px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        color: #000 !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 20px rgba(212, 170, 64, 0.4) !important;
        transition: all 0.3s ease !important;
    }

    .mobile-cta-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 25px rgba(212, 170, 64, 0.5) !important;
        background: linear-gradient(135deg, #BF9835 0%, #D4AA40 100%) !important;
    }

    .mobile-cta-btn i {
        font-size: 1.1rem !important;
    }

    /* === Dropdown Menu in Mobile === */
    .navbar-nav .dropdown-menu,
    .navbar-nav .companies-dropdown {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(212, 170, 64, 0.05) !important;
        border: none !important;
        border-radius: 8px !important;
        margin: 5px 0 10px 0 !important;
        padding: 8px !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Override desktop :hover rules that force dropdown open on mobile touch */
    .dropdown:hover .dropdown-menu,
    .dropdown:hover .companies-dropdown,
    .nav-item.dropdown:hover .companies-dropdown,
    .companies-dropdown:hover,
    .nav-item.dropdown:hover > .dropdown-menu.companies-dropdown {
        display: none !important;
    }

    /* Only .show class controls visibility on mobile */
    .navbar-nav .dropdown-menu.show,
    .navbar-nav .companies-dropdown.show,
    .dropdown:hover .dropdown-menu.show,
    .dropdown:hover .companies-dropdown.show,
    .nav-item.dropdown:hover .companies-dropdown.show,
    .nav-item.dropdown:hover > .dropdown-menu.companies-dropdown.show {
        display: block !important;
    }

    .company-item,
    .dropdown-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.4 !important;
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }

    .company-item:last-child,
    .dropdown-item:last-child {
        margin-bottom: 0 !important;
    }

    .company-item i,
    .dropdown-item i {
        flex-shrink: 0 !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        line-height: 28px !important;
        text-align: center !important;
        font-size: 0.85rem !important;
        color: #D4AA40 !important;
        background: rgba(212, 170, 64, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }

    .company-item span,
    .dropdown-item span {
        flex: 1 !important;
        text-align: right !important;
    }

    .company-item:hover,
    .dropdown-item:hover {
        background: rgba(212, 170, 64, 0.15) !important;
    }

    .company-item:hover i,
    .dropdown-item:hover i {
        color: #000000 !important;
        background: #D4AA40 !important;
    }

    /* Companies Overview Button */
    .companies-overview {
        background: rgba(212, 170, 64, 0.1) !important;
        border: 1px solid rgba(212, 170, 64, 0.2) !important;
        margin-bottom: 8px !important;
    }

    .companies-overview:hover {
        background: linear-gradient(135deg, #BF9835, #BF9835) !important;
    }

    /* Media Center Dropdown in Mobile Sidebar */
    .media-dropdown {
        position: static !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(212, 170, 64, 0.05) !important;
        border: none !important;
        border-radius: 8px !important;
        margin: 5px 0 10px 0 !important;
        padding: 8px !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    .media-dropdown.show {
        display: block;
    }

    /* Media category items - preserve colored icons */
    .media-dropdown .media-cat-item i {
        color: var(--cat-icon-color, #D4AA40) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .media-dropdown .media-cat-item:hover i {
        color: #000000 !important;
        background: rgba(0, 0, 0, 0.15) !important;
    }

    .media-dropdown .media-overview {
        background: rgba(212, 170, 64, 0.1) !important;
        border: 1px solid rgba(212, 170, 64, 0.2) !important;
        margin-bottom: 8px !important;
    }

    .media-dropdown .media-overview:hover {
        background: linear-gradient(135deg, #BF9835, #BF9835) !important;
    }

    /* Plus icon for media center */
    .media-dropdown-icon {
        transition: transform 0.3s ease !important;
        font-size: 0.7rem !important;
        margin-inline-start: auto !important;
    }

    .media-dropdown-icon.rotated {
        transform: rotate(45deg) !important;
    }

    .companies-overview:hover i {
        color: #000000 !important;
        background: transparent !important;
    }

    .dropdown-divider {
        border-color: rgba(212, 170, 64, 0.15) !important;
        margin: 8px 0 !important;
    }

    /* === Hero Section === */
    .hero-section,
    .media-hero {
        padding-top: var(--header-height-tablet);
    }

    .hero-title .title-main {
        font-size: 2rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }

    /* === Grid Layouts === */
    .companies-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* === Sidebar === */
    .articles-sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-widget:last-child {
        grid-column: span 2;
    }

    /* === Footer === */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom .row {
        flex-direction: column !important;
        text-align: center !important;
    }

    .footer-bottom .col-md-6 {
        width: 100% !important;
        text-align: center !important;
    }

    .footer-bottom .copyright {
        text-align: center !important;
    }

    .footer-bottom .footer-bottom-links {
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }
}

/* ========================================
   LARGE PHONES (576px - 767px)
   ======================================== */
@media (max-width: 767px) {

    /* === Typography === */
    body {
        font-size: var(--mobile-font-base);
        line-height: var(--mobile-line-height);
    }

    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }

    /* === Container === */
    .container {
        padding-left: var(--mobile-spacing);
        padding-right: var(--mobile-spacing);
    }

    /* === Header - Smaller Screens === */
    .header {
        padding: 0;
    }

    .navbar {
        padding: 10px 0 !important;
    }

    .navbar-brand img {
        width: 45px !important;
        height: 45px !important;
    }

    .brand-title {
        font-size: 1rem !important;
    }

    .brand-subtitle {
        font-size: 0.65rem !important;
    }

    [dir="ltr"] .brand-title {
        font-size: 1.05rem !important;
    }
    [dir="ltr"] .brand-subtitle {
        font-size: 0.68rem !important;
    }

    /* Adjust toggle button */
    .mobile-menu-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    .mobile-menu-toggle .menu-bar {
        width: 20px !important;
    }

    /* === Hero Section === */
    .hero-section,
    .media-hero {
        padding-top: var(--header-height-mobile);
        min-height: auto;
    }

    .media-hero {
        padding: calc(var(--header-height-mobile) + 30px) 0 20px !important;
    }

    .hero-title .title-main {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .hero-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Hero Search */
    .hero-search {
        max-width: 100%;
        padding: 0 10px;
    }

    .search-wrapper {
        flex-direction: column;
        padding: 15px !important;
        border-radius: 20px !important;
        gap: 10px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        text-align: center;
        padding: 12px 15px !important;
        margin: 0 !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
        border-radius: 15px !important;
        margin: 0 !important;
    }

    /* === Categories === */
    .categories-section {
        padding: 15px 0;
    }

    .categories-wrapper {
        gap: 8px;
        padding: 5px 0;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
    }

    .categories-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* === Grids to Single Column === */
    .companies-grid,
    .products-grid,
    .features-grid,
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* === Articles === */
    .articles-layout {
        grid-template-columns: 1fr !important;
    }

    .articles-control-bar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .control-bar-left {
        width: 100%;
        justify-content: space-between;
    }

    .control-dropdown {
        flex: 1;
    }

    .custom-select-wrapper {
        min-width: 0;
        flex: 1;
    }

    .article-card {
        border-radius: 15px;
    }

    .article-image {
        height: 180px;
    }

    .article-content,
    .article-body {
        padding: 20px;
    }

    .article-title a {
        font-size: 1.1rem !important;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* === Sidebar === */
    .articles-sidebar {
        grid-template-columns: 1fr !important;
        margin-top: 30px;
    }

    .sidebar-widget {
        border-radius: 15px;
        padding: 20px;
    }

    .sidebar-widget:last-child {
        grid-column: span 1;
    }

    /* === Company Cards === */
    .company-card {
        max-width: 100%;
    }

    .company-card-inner {
        padding: 20px;
    }

    .company-logo {
        width: 80px;
        height: 80px;
    }

    /* === Product Cards === */
    .product-card {
        margin: 0;
    }

    /* === Buttons === */
    .btn {
        min-height: var(--touch-target-min);
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* === Footer === */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 25px;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* === Pagination === */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .page-prev span,
    .page-next span {
        display: none;
    }

    /* === Forms === */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: var(--touch-target-min);
    }

    /* === Newsletter === */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;
        text-align: center;
    }

    .newsletter-form button {
        width: 100%;
        height: 48px;
        border-radius: 24px;
    }

    /* === Modals/Popups === */
    .modal-content,
    .popup-content {
        margin: 10px;
        max-height: 90vh;
        border-radius: 15px;
    }

    /* === Section Spacing === */
    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .section-title p {
        font-size: 0.9rem;
    }
}

/* ========================================
   SMALL PHONES (0 - 575px)
   ======================================== */
@media (max-width: 575px) {

    /* === Extra small spacing === */
    :root {
        --mobile-spacing: 12px;
    }

    /* === Typography === */
    h1, .h1 { font-size: 1.5rem !important; }
    h2, .h2 { font-size: 1.3rem !important; }
    h3, .h3 { font-size: 1.1rem !important; }

    /* === Header - Very Small Screens === */
    .navbar {
        padding: 8px 0 !important;
    }

    .navbar-brand img {
        width: 42px !important;
        height: 42px !important;
    }

    .brand-title {
        font-size: 0.95rem !important;
    }

    .brand-subtitle {
        font-size: 0.6rem !important;
    }

    [dir="ltr"] .brand-title {
        font-size: 1rem !important;
    }
    [dir="ltr"] .brand-subtitle {
        font-size: 0.63rem !important;
    }

    /* Smaller toggle button - Still visible */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 38px !important;
        height: 38px !important;
    }

    .mobile-menu-toggle .menu-bar {
        width: 18px !important;
        height: 2px !important;
    }

    /* Language Switcher - Compact for small screens: flag + arrow only */
    .header-actions .current-language {
        padding: 6px 10px !important;
        min-width: auto !important;
        max-width: none !important;
        width: auto !important;
        height: 34px !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    /* HIDE lang-text in BUTTON on small screens */
    .header-actions .current-language .lang-text,
    .header-actions .current-language span.lang-text {
        display: none !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    .header-actions .current-language .flag-icon {
        font-size: 16px !important;
    }

    .header-actions .current-language .dropdown-arrow {
        font-size: 8px !important;
    }

    /* KEEP lang-text visible in DROPDOWN on small phones */
    .language-dropdown .language-option .lang-text,
    .language-dropdown .language-option span.lang-text,
    #languageDropdown .language-option .lang-text,
    #languageDropdown .language-option span.lang-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #D4AA40 !important;
    }

    /* Adjust body padding */
    body {
        padding-top: 65px !important;
    }

    /* Smaller slide menu */
    .navbar-nav {
        width: 260px !important;
        padding: 0 !important;
    }

    /* === Hero === */
    .hero-title .title-main {
        font-size: 1.4rem !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
    }

    /* === Categories scrollable === */
    .category-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* === Cards === */
    .article-image {
        height: 160px;
    }

    .article-content,
    .article-body {
        padding: 15px;
    }

    .article-title a {
        font-size: 1rem !important;
    }

    .article-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* === Sidebar Widgets === */
    .sidebar-widget {
        padding: 15px;
    }

    .widget-title {
        font-size: 1rem;
    }

    .popular-info h4 {
        font-size: 0.85rem !important;
    }

    /* === Footer === */
    .footer-section {
        padding: 30px 0 20px;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 0.8rem;
    }
}

/* ========================================
   EXTRA SMALL PHONES (< 360px)
   ======================================== */
@media (max-width: 359px) {

    :root {
        --mobile-spacing: 10px;
    }

    /* Compact header */
    .navbar-brand img {
        width: 38px !important;
        height: 38px !important;
    }

    .navbar-brand {
        gap: 8px !important;
    }

    .brand-title {
        font-size: 0.85rem !important;
    }

    .brand-subtitle {
        font-size: 0.55rem !important;
    }

    [dir="ltr"] .brand-title {
        font-size: 0.9rem !important;
    }
    [dir="ltr"] .brand-subtitle {
        font-size: 0.58rem !important;
    }

    /* Extra small toggle button - Still visible */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 34px !important;
        height: 34px !important;
    }

    .mobile-menu-toggle .menu-bar {
        width: 16px !important;
    }

    /* Language Switcher - Very compact for extra small screens */
    .header-actions .current-language {
        padding: 5px 8px !important;
        height: 30px !important;
        gap: 4px !important;
    }

    /* HIDE lang-text in BUTTON on extra small */
    .header-actions .current-language .lang-text,
    .header-actions .current-language span.lang-text {
        display: none !important;
        width: 0 !important;
    }

    .header-actions .current-language .flag-icon {
        font-size: 15px !important;
    }

    .header-actions .current-language .dropdown-arrow {
        font-size: 7px !important;
    }

    /* KEEP lang-text visible in DROPDOWN */
    .language-dropdown .language-option .lang-text,
    .language-dropdown .language-option span.lang-text,
    #languageDropdown .language-option .lang-text,
    #languageDropdown .language-option span.lang-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #D4AA40 !important;
    }

    body {
        padding-top: 60px !important;
    }

    .navbar-nav {
        width: 240px !important;
    }

    .hero-title .title-main {
        font-size: 1.25rem !important;
    }

    .category-chip {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media (orientation: landscape) and (max-height: 500px) {

    .hero-section,
    .media-hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .hero-title .title-main {
        font-size: 1.5rem !important;
    }

    .hero-description {
        display: none;
    }

    .navbar-nav {
        padding-top: 0 !important;
    }
}

/* ========================================
   iOS SPECIFIC FIXES
   ======================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS only */

    /* Fix for iOS bottom bar */
    .header-actions {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    /* Fix for 100vh issue on iOS */
    .navbar-nav {
        height: -webkit-fill-available;
    }

    /* Prevent bounce scroll */
    .navbar-nav {
        overscroll-behavior: contain;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices only */

    /* Remove hover effects that don't work well on touch */
    .nav-link:hover {
        transform: none;
    }

    .article-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Make touch targets larger */
    .nav-link {
        min-height: var(--touch-target-min);
    }

    /* Add active states instead of hover */
    .nav-link:active {
        background: rgba(212, 170, 64, 0.2);
    }

    .article-card:active {
        transform: scale(0.98);
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .navbar-nav {
        transition: none !important;
    }
}

/* ========================================
   DARK MODE SUPPORT (if needed)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Site is already dark themed, but add any specific adjustments here */
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .navbar-nav,
    .header-actions {
        display: none !important;
    }

    .articles-layout {
        grid-template-columns: 1fr !important;
    }

    .articles-sidebar {
        display: none !important;
    }
}

/* ========================================
   UTILITIES FOR MOBILE
   ======================================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Hide on tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Truncate text */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Safe area padding for notched devices */
.safe-area-padding {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ========================================
   PROFESSIONAL POLISH - لمسات احترافية
   ======================================== */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #A58230, #D4AA40, #BF9835, #D4AA40, #A58230);
    background-size: 200% 100%;
    z-index: 999999;
    transition: width 0.15s linear;
    box-shadow: 0 0 8px rgba(212, 170, 64, 0.6), 0 0 20px rgba(212, 170, 64, 0.2);
    pointer-events: none;
    animation: shimmerProgress 3s ease-in-out infinite;
}

@keyframes shimmerProgress {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 200% 0; }
}

/* --- Smooth Page Load --- */
body.page-loaded {
    animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0.92; }
    to { opacity: 1; }
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Better Card Shadows --- */
.featured-product-card,
.article-card,
.service-card,
.company-card,
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- Active Press Feedback (touch) --- */
@media (hover: none) and (pointer: coarse) {
    .featured-product-card:active,
    .article-card:active,
    .company-card:active {
        transform: scale(0.97) !important;
        transition: transform 0.1s ease !important;
    }

    .social-link:active {
        transform: scale(0.9) !important;
    }

    .current-language:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }

    .filter-btn:active,
    .gallery-filter-btn:active,
    .category-chip:active {
        transform: scale(0.95) !important;
    }
}

/* --- Better Focus States (accessibility) --- */
.current-language:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #D4AA40;
    outline-offset: 2px;
}

/* --- Subtle Gold Glow on Scroll-to-top --- */
.scroll-to-top {
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(212, 170, 64, 0.3);
}

.scroll-to-top:hover {
    box-shadow: 0 4px 25px rgba(212, 170, 64, 0.5);
    transform: translateY(-3px);
}

/* --- Mobile Footer Gold Separator --- */
@media (max-width: 991px) {
    .footer-top .footer-widget {
        padding-bottom: 25px;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(212, 170, 64, 0.1);
    }

    .footer-top .row > div:last-child .footer-widget {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* --- Smoother Navbar Transition --- */
.navbar-nav {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* --- Better Badge Pulse --- */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 170, 64, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(212, 170, 64, 0); }
}

.featured-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* --- Gold Active Indicator on Nav (Mobile) --- */
@media (max-width: 991px) {
    .navbar-nav .nav-item .nav-link.active::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 3px !important;
        height: 100% !important;
        background: linear-gradient(180deg, #D4AA40, transparent) !important;
        border-radius: 2px !important;
        top: 0 !important;
    }

    [dir="ltr"] .navbar-nav .nav-item .nav-link.active::after {
        right: auto !important;
        left: 0 !important;
    }
}

/* --- Image Loading Placeholder --- */
.product-image-wrapper,
.article-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    background-size: 200% 200%;
}

/* ========================================
   PRODUCTS MOBILE OPTIMIZATION ONLY
   تحسينات المنتجات فقط للموبايل
   ======================================== */

@media (max-width: 991px) {
    /* Products Grid - 2 Per Row */
    #featuredProductsContainer {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    #featuredProductsContainer > div[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    .featured-product-card {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Product Image */
    .featured-product-card .product-image-wrapper {
        position: relative !important;
        width: 100% !important;
        padding-top: 100% !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .featured-product-card .product-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Product Info */
    .featured-product-card .product-info {
        padding: 10px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .featured-product-card .product-category {
        font-size: 0.6rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .featured-product-card .company-mini-logo {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        border-radius: 50% !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
        border: 1px solid rgba(212, 170, 64, 0.3) !important;
        flex-shrink: 0 !important;
    }

    .featured-product-card .product-title {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .featured-product-card .product-description {
        font-size: 0.7rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 6px !important;
    }

    .featured-product-card .product-price {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    /* Product Footer Buttons */
    .featured-product-card .product-footer {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        margin-top: auto !important;
    }

    .featured-product-card .product-footer .btn {
        flex: 1 !important;
        padding: 6px 4px !important;
        font-size: 0.6rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        white-space: nowrap !important;
    }

    .featured-product-card .product-footer .btn i {
        font-size: 0.55rem !important;
    }

    .featured-product-card .product-footer .btn-outline-secondary i {
        color: #D4AA40 !important;
    }

    /* Product Badges */
    .featured-product-card .featured-badge,
    .featured-product-card .discount-badge {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
    }
}

/* ========================================
   Homepage Companies Section - Mobile Fix
   Fix inline styles that cause horizontal overflow
   ======================================== */
@media (max-width: 991px) {
    /* Reduce wrapper padding from 80px to 15px on mobile */
    .companies-section .container > div[style*="padding"] {
        padding: 20px 15px !important;
    }

    /* Hide desktop navigation arrows on mobile */
    .companies-section .container > div > button[onclick*="showCompaniesGroup"] {
        display: none !important;
    }

    /* Reduce min-height on container */
    #companiesContainer {
        min-height: auto !important;
    }

    /* Company cards: remove min-width and stack vertically */
    .companies-group {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .companies-group > div {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }

    /* Show ALL company groups on mobile (no slider needed) */
    .companies-group {
        display: flex !important;
    }

    /* Company card inner adjustments */
    .company-card-new .company-card-inner {
        padding: 15px !important;
    }

    .company-card-new .company-name-header {
        padding: 12px 15px !important;
    }

    .company-card-new .company-footer {
        padding: 15px !important;
    }

    .company-card-new .company-footer .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================
   Homepage Hero Section - Mobile Fix
   Fix navigation buttons and slider overflow
   ======================================== */
@media (max-width: 991px) {
    /* Hero nav buttons: smaller and properly contained */
    #custom-next-btn,
    #custom-prev-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    #custom-next-btn {
        left: 5px !important;
    }

    #custom-prev-btn {
        right: 5px !important;
    }

    /* Pagination dots: smaller on mobile */
    .custom-dot {
        width: 12px !important;
        height: 12px !important;
    }

    #custom-pagination {
        bottom: 20px !important;
        gap: 10px !important;
    }

    /* Hero video: prevent overflow */
    .hero-video-background {
        min-width: 100% !important;
        min-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 575px) {
    /* Even smaller buttons on small phones */
    #custom-next-btn,
    #custom-prev-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .companies-group > div {
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
    #featuredProductsContainer {
        gap: 8px !important;
    }

    .featured-product-card .product-image-wrapper {
        padding-top: 90% !important;
    }

    .featured-product-card .product-info {
        padding: 8px !important;
    }

    .featured-product-card .product-category {
        font-size: 0.6rem !important;
    }

    .featured-product-card .company-mini-logo {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        flex-shrink: 0 !important;
    }

    .featured-product-card .product-title {
        font-size: 0.75rem !important;
    }

    .featured-product-card .product-description {
        display: none !important;
    }

    .featured-product-card .product-footer .btn {
        padding: 5px 3px !important;
        font-size: 0.55rem !important;
    }
}

@media (max-width: 575px) {
    #featuredProductsContainer {
        gap: 6px !important;
    }

    .featured-product-card .product-image-wrapper {
        padding-top: 85% !important;
    }

    .featured-product-card .product-info {
        padding: 6px !important;
    }

    .featured-product-card .product-category {
        font-size: 0.5rem !important;
        gap: 3px !important;
    }

    .featured-product-card .company-mini-logo {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        flex-shrink: 0 !important;
    }

    .featured-product-card .product-title {
        font-size: 0.7rem !important;
    }

    .featured-product-card .product-price {
        font-size: 0.65rem !important;
    }

    .featured-product-card .product-footer .btn {
        padding: 4px 2px !important;
        font-size: 0.5rem !important;
        gap: 2px !important;
    }

    .featured-product-card .product-footer .btn i {
        font-size: 0.45rem !important;
    }
}

/* ========================================
   SECTION SUBTITLES FIX - إصلاح العناوين الفرعية
   ======================================== */

@media (max-width: 991px) {
    /* إصلاح العناوين الفرعية ذات الخلفية الذهبية */
    .gold-bg-subtitle,
    span.gold-bg-subtitle,
    .section-subtitle.gold-bg-subtitle {
        display: inline-block !important;
        width: auto !important;
        max-width: fit-content !important;
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 575px) {
    .gold-bg-subtitle,
    span.gold-bg-subtitle,
    .section-subtitle.gold-bg-subtitle {
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* ========================================
   HERO SLIDER MOBILE OPTIMIZATION
   تحسين السلايدر للموبايل
   ======================================== */

@media (max-width: 991px) {
    /* إزالة المسافة بين الهيدر والسلايدر */
    .hero-section-professional {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* ضبط ارتفاع السلايدر - ارتفاع تلقائي حسب المحتوى */
    .hero-section-professional,
    .hero-slider-professional,
    .hero-slider-professional.swiper,
    .hero-slider-professional .swiper-wrapper,
    .hero-slider-professional .swiper-slide,
    .hero-slide-professional {
        min-height: 85vh !important;
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
    }

    /* ضبط الفيديو ليظهر بالكامل */
    .hero-slide-professional .hero-video-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
        object-fit: cover !important;
    }

    /* إزالة min-vh-100 من الصف */
    .hero-slide-professional .row.min-vh-100 {
        min-height: auto !important;
        height: 100% !important;
    }

    /* رفع المحتوى لأعلى مع مسافة سفلية */
    .hero-slide-professional .container {
        height: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
        padding-bottom: 60px !important;
    }

    .hero-slide-professional .row {
        width: 100% !important;
        margin: 0 !important;
        align-items: flex-start !important;
    }

    .hero-content-professional {
        padding-top: 10px !important;
    }

    .hero-spacing-top {
        display: none !important;
    }

    /* تصغير العناوين */
    .hero-section-professional .hero-title-professional {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    .hero-section-professional .company-name-professional {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .hero-section-professional .hero-description-professional {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    /* تصغير لوجو الشركة في السلايدر */
    .hero-section-professional .slider-logo-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .hero-section-professional .slider-logo-img {
        width: 30px !important;
        height: 30px !important;
    }

    /* أزرار التنقل - توسيطها على الجانبين */
    #custom-next-btn,
    #custom-prev-btn {
        width: 40px !important;
        height: 40px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    #custom-next-btn {
        left: 10px !important;
        right: auto !important;
    }

    #custom-prev-btn {
        right: 10px !important;
        left: auto !important;
    }

    #custom-next-btn i,
    #custom-prev-btn i {
        font-size: 14px !important;
    }

    /* نقاط التنقل */
    #custom-pagination {
        bottom: 20px !important;
        gap: 10px !important;
    }

    #custom-pagination .custom-dot {
        width: 12px !important;
        height: 12px !important;
    }

    /* إخفاء الصورة في الجانب الأيمن */
    .hero-visual-professional,
    .hero-image-container-professional {
        display: none !important;
    }

    /* جعل المحتوى يأخذ العرض الكامل */
    .hero-slide-professional .col-lg-6,
    .hero-slide-professional .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* تصغير الأزرار */
    .hero-content-professional .btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    .hero-cta-buttons-professional {
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .hero-section-professional,
    .hero-slider-professional,
    .hero-slider-professional.swiper,
    .hero-slider-professional .swiper-wrapper,
    .hero-slider-professional .swiper-slide,
    .hero-slide-professional {
        min-height: 80vh !important;
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
    }

    .hero-section-professional .hero-title-professional {
        font-size: 1.3rem !important;
    }

    .hero-section-professional .company-name-professional {
        font-size: 0.9rem !important;
    }

    .hero-section-professional .hero-description-professional {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 3 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #custom-next-btn,
    #custom-prev-btn {
        width: 35px !important;
        height: 35px !important;
    }

    #custom-next-btn {
        left: 5px !important;
    }

    #custom-prev-btn {
        right: 5px !important;
    }

    #custom-next-btn i,
    #custom-prev-btn i {
        font-size: 12px !important;
    }

    .hero-content-professional .btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 575px) {
    .hero-section-professional,
    .hero-slider-professional,
    .hero-slider-professional.swiper,
    .hero-slider-professional .swiper-wrapper,
    .hero-slider-professional .swiper-slide,
    .hero-slide-professional {
        min-height: 75vh !important;
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
    }

    .hero-slide-professional .container {
        padding-top: 15px !important;
        padding-bottom: 50px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-section-professional .hero-title-professional {
        font-size: 1.1rem !important;
    }

    .hero-section-professional .company-name-professional {
        font-size: 0.85rem !important;
    }

    .hero-section-professional .hero-description-professional {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .hero-section-professional .slider-logo-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .hero-section-professional .slider-logo-img {
        width: 25px !important;
        height: 25px !important;
    }

    #custom-pagination {
        bottom: 15px !important;
        gap: 8px !important;
    }

    #custom-pagination .custom-dot {
        width: 10px !important;
        height: 10px !important;
    }

    .hero-content-professional .btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .hero-cta-buttons-professional {
        gap: 8px !important;
    }
}

/* ========================================
   FOOTER MOBILE OPTIMIZATION
   تحسين الفوتر للموبايل
   ======================================== */

@media (max-width: 991px) {
    /* إخفاء الخلفية المنقطة في الموبايل */
    .footer::before {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* خلفية نظيفة للفوتر */
    .footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    }

    /* خلفية صلبة لمعلومات التواصل */
    .footer .contact-info {
        background: transparent !important;
    }

    .footer .contact-info .contact-item {
        background: transparent !important;
    }

    .footer .contact-info .contact-item i {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000000 !important;
    }

    /* محاذاة جميع الويدجت لليمين */
    .footer-widget {
        text-align: right !important;
        margin-bottom: 30px !important;
    }

    /* اللوجو والنص بجانب بعض */
    .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        margin: 0 0 15px 0 !important;
    }

    .footer-logo img {
        width: 55px !important;
        height: 55px !important;
        object-fit: contain !important;
        margin-inline-end: 0 !important;
        border-radius: 12px !important;
        border: 2px solid transparent !important;
        background: linear-gradient(#1a1a1a, #1a1a1a) padding-box, linear-gradient(135deg, #D4AA40, #BF9835, #BF9835) border-box !important;
        padding: 3px !important;
        box-shadow: 0 4px 15px rgba(212, 170, 64, 0.3) !important;
    }

    /* إصلاح تأثير اللمعة على اللوجو - RTL */
    .footer-widget .footer-logo::before {
        width: 55px !important;
        height: 55px !important;
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        border-radius: 12px !important;
        animation: footerImageShineMobile 3s ease-in-out infinite !important;
    }

    @keyframes footerImageShineMobile {
        0% {
            opacity: 0 !important;
            transform: translateX(20px) skewX(-45deg) !important;
        }
        50% {
            opacity: 1 !important;
            transform: translateX(0) skewX(-45deg) !important;
        }
        100% {
            opacity: 0 !important;
            transform: translateX(-60px) skewX(-45deg) !important;
        }
    }

    .footer-logo-text {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835, #BF9835) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    /* وصف الفوتر */
    .footer-description {
        text-align: right !important;
        line-height: 1.7 !important;
    }

    /* روابط السوشيال ميديا - مسافة مع الويدجيت التالي */
    .footer-widget .social-links {
        justify-content: flex-start !important;
        margin-bottom: 10px !important;
    }

    /* روابط الفوتر */
    .footer-links {
        text-align: right !important;
    }

    .footer-links li {
        text-align: right !important;
    }

    /* معلومات التواصل في الفوتر - كل عنصر بجانب أيقونته */
    .footer .contact-info .contact-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    .footer .contact-info .contact-item i {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.2), rgba(191, 152, 53, 0.2)) !important;
        border: 1px solid rgba(212, 170, 64, 0.3) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #D4AA40 !important;
        font-size: 14px !important;
    }
}

@media (max-width: 575px) {
    .footer-logo img {
        width: 50px !important;
        height: 50px !important;
    }

    .footer-widget .footer-logo::before {
        width: 50px !important;
        height: 50px !important;
    }

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

    .footer-logo {
        gap: 12px !important;
    }

    .footer-widget {
        margin-bottom: 25px !important;
    }

    .footer .contact-info .contact-item {
        gap: 10px !important;
    }

    .footer .contact-info .contact-item i {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   ABOUT PAGE - MOBILE RESPONSIVE
   ======================================== */

/* === Values Grid - Tablet - FORCE 2 COLUMNS === */
@media (max-width: 991px) {
    .our-values .values-grid,
    section.our-values .values-grid,
    .section-padding .values-grid,
    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .our-values .value-card,
    .value-card {
        padding: 1.5rem !important;
    }

    .our-values .value-card h3,
    .value-card h3 {
        color: #D4AA40 !important;
    }

    .our-values .value-card p,
    .value-card p {
        color: #F2E8C9 !important;
    }

    .our-values .value-icon,
    .value-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* === Values Grid - Mobile - FORCE 2 COLUMNS === */
@media (max-width: 767px) {
    .our-values .values-grid,
    section.our-values .values-grid,
    .section-padding .values-grid,
    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .our-values .value-card,
    .value-card {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .our-values .value-icon,
    .value-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        font-size: 1.25rem !important;
        margin: 0 auto 0.75rem !important;
    }

    .our-values .value-card h3,
    .value-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
        color: #D4AA40 !important;
    }

    .our-values .value-card p,
    .value-card p {
        font-size: 0.8rem !important;
        margin: 0 !important;
        color: #F2E8C9 !important;
        line-height: 1.4 !important;
    }
}

/* === Companies Circle System - Tablet === */
@media (max-width: 991px) {
    .companies-circle-system {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 0 15px !important;
    }

    .central-circle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 220px !important;
        height: 220px !important;
        margin-bottom: 1.5rem !important;
    }

    .central-content {
        padding: 10px !important;
    }

    .central-logo {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 10px !important;
    }

    .central-logo img {
        width: 65px !important;
        height: 65px !important;
    }

    .central-content h3 {
        font-size: 1rem !important;
        margin: 5px 0 !important;
        line-height: 1.2 !important;
    }

    .central-content span {
        font-size: 0.8rem !important;
    }

    .company-circles {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 !important;
    }

    .company-circle,
    .company-circle[data-position="top"],
    .company-circle[data-position="right-top"],
    .company-circle[data-position="right-bottom"],
    .company-circle[data-position="left-bottom"],
    .company-circle[data-position="left-top"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        animation: none !important;
    }

    .company-inner {
        width: 100% !important;
        height: auto !important;
        border-radius: 15px !important;
        padding: 1.25rem !important;
        flex-direction: row !important;
        gap: 1rem !important;
        text-align: right !important;
    }

    [dir="ltr"] .company-inner {
        text-align: left !important;
        flex-direction: row !important;
    }

    .company-inner::before {
        border-radius: 15px !important;
    }

    .company-logo {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        margin-bottom: 0 !important;
    }

    .company-logo img {
        width: 40px !important;
        height: 40px !important;
    }

    .company-inner h4 {
        font-size: 0.9rem !important;
        margin: 0 0 0.25rem 0 !important;
        text-align: right !important;
    }

    [dir="ltr"] .company-inner h4 {
        text-align: left !important;
    }

    .company-inner p {
        font-size: 0.75rem !important;
        text-align: right !important;
    }

    [dir="ltr"] .company-inner p {
        text-align: left !important;
    }

    /* Typewriter Section */
    .typewriter-section {
        margin-top: 0 !important;
        padding: 30px 0 !important;
    }

    .lined-paper-container {
        padding: 30px 25px !important;
        margin: 0 15px !important;
    }

    .typewriter-container {
        margin: 0 !important;
        min-height: 100px !important;
    }

    .typewriter-text {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
    }

    /* Hide paper lines on tablet */
    .paper-lines,
    .paper-lines::before {
        display: none !important;
    }

    /* Central Logo Centering */
    .central-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .central-logo {
        margin: 0 auto 10px auto !important;
    }
}

/* === Companies Circle System - Small Mobile - FORCE 2 COLUMNS === */
@media (max-width: 575px) {
    /* Values still 2 per row on small screens */
    .our-values .values-grid,
    section.our-values .values-grid,
    .section-padding .values-grid,
    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .our-values .value-card,
    .value-card {
        padding: 0.75rem !important;
    }

    .our-values .value-icon,
    .value-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .our-values .value-card h3,
    .value-card h3 {
        font-size: 0.8rem !important;
        color: #D4AA40 !important;
    }

    .our-values .value-card p,
    .value-card p {
        font-size: 0.7rem !important;
        color: #F2E8C9 !important;
        line-height: 1.3 !important;
    }

    .company-circles {
        grid-template-columns: 1fr !important;
    }

    .central-circle {
        width: 180px !important;
        height: 180px !important;
    }

    .central-content {
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .central-logo {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 8px auto !important;
    }

    /* Hide paper lines on small mobile */
    .paper-lines,
    .paper-lines::before {
        display: none !important;
    }

    .typewriter-container {
        margin: 0 !important;
    }

    .lined-paper-container {
        padding: 25px 20px !important;
    }

    .central-logo img {
        width: 50px !important;
        height: 50px !important;
    }

    .central-content h3 {
        font-size: 0.85rem !important;
        margin: 3px 0 !important;
    }

    .central-content span {
        font-size: 0.7rem !important;
    }

    .company-inner {
        padding: 1rem !important;
    }

    /* Vision & Mission Cards */
    .vision-card,
    .mission-card {
        padding: 1.5rem !important;
    }

    .vision-card .card-icon,
    .mission-card .card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    /* Story Highlights */
    .highlight-item {
        padding: 1rem !important;
    }

    .highlight-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* About Hero */
    .about-hero-section .hero-title {
        font-size: 2rem !important;
    }

    .about-hero-section .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .about-hero-section .hero-badge {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .about-hero-section .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .about-hero-section .feature-item {
        padding: 7px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    /* Dynamic Gallery */
    .story-dynamic-gallery {
        height: 300px !important;
    }

    .dynamic-gallery-container {
        max-width: 280px !important;
        height: 280px !important;
        transform: none !important;
    }

    .image-grid {
        gap: 4px !important;
        padding: 8px !important;
    }
}

/* ========================================
   PRODUCTS PAGE - MOBILE RESPONSIVE
   صفحة المنتجات - تحسينات الموبايل
   ======================================== */

/* === Products Hero - Tablet === */
@media (max-width: 991px) {
    .products-hero,
    section.products-hero {
        padding: 15px 20px 25px !important;
        min-height: auto !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    }

    .products-hero .hero-content {
        text-align: center !important;
    }

    .products-hero .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .products-hero .hero-title .title-word {
        display: inline-block !important;
        color: #ffffff !important;
    }

    .products-hero .hero-title .title-accent {
        display: inline-block !important;
        color: #D4AA40 !important;
    }

    .products-hero .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    /* Hero Badge Icon */
    .products-hero .hero-badge {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.2), rgba(191, 152, 53, 0.15)) !important;
        border: 2px solid rgba(212, 170, 64, 0.4) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(212, 170, 64, 0.2) !important;
    }

    .products-hero .hero-badge i {
        font-size: 1.5rem !important;
        color: #D4AA40 !important;
    }

    /* Search Bar */
    .products-hero .hero-search {
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    .products-hero .search-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 6px !important;
        border-radius: 50px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.3) !important;
        gap: 0 !important;
    }

    .products-hero .search-input {
        flex: 1 !important;
        padding: 12px 18px !important;
        font-size: 15px !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        text-align: right !important;
    }

    .products-hero .search-input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .products-hero .search-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        border: none !important;
        color: #000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .products-hero .search-btn i {
        font-size: 1rem !important;
    }

    /* Products Filters - Single Row Layout */
    .products-filters {
        padding: 12px 0 !important;
        background: #111 !important;
        border-bottom: 1px solid rgba(212, 170, 64, 0.15) !important;
    }

    .filters-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .filters-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex: 1 !important;
    }

    .filters-left {
        flex-shrink: 0 !important;
    }

    .filter-group {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .filter-label {
        display: none !important;
    }

    .filter-select {
        width: 100% !important;
        padding: 8px 28px 8px 10px !important;
        font-size: 0.7rem !important;
        border-radius: 20px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        color: #fff !important;
    }

    [dir="rtl"] .filter-select {
        padding: 8px 10px 8px 28px !important;
    }

    .view-toggle {
        display: flex !important;
        gap: 4px !important;
    }

    .view-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .view-btn.active {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000 !important;
        border-color: transparent !important;
    }

    /* Products Grid - 2 per row on tablet */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Product Card */
    .product-card {
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .product-image {
        height: 160px !important;
    }

    .product-info {
        padding: 12px !important;
    }

    .product-company {
        padding: 6px 10px !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .product-company img {
        width: 24px !important;
        height: 24px !important;
    }

    .products-grid .product-card .product-company-name,
    .product-card .product-company-name {
        font-size: 0.6rem !important;
    }

    .products-grid .product-card .product-name,
    .product-card .product-name {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }

    .products-grid .product-card .product-category,
    .product-card .product-category {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
        margin-bottom: 6px !important;
    }

    .product-description {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-footer {
        gap: 6px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(212, 170, 64, 0.1) !important;
    }

    .btn-quote {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    .btn-details {
        width: 36px !important;
        height: 36px !important;
    }

    /* List View on Tablet */
    .products-grid.list-view {
        grid-template-columns: 1fr !important;
    }

    .products-grid.list-view .product-card {
        flex-direction: row !important;
    }

    .products-grid.list-view .product-image {
        width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
}

/* === Products - Mobile (768px) === */
@media (max-width: 767px) {
    .products-hero,
    section.products-hero {
        padding: 12px 15px 20px !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    }

    /* Hero Badge */
    .products-hero .hero-badge {
        width: 55px !important;
        height: 55px !important;
        margin: 0 auto 12px !important;
    }

    .products-hero .hero-badge i {
        font-size: 1.3rem !important;
    }

    .products-hero .hero-title {
        font-size: 1.5rem !important;
    }

    .products-hero .hero-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 18px !important;
    }

    /* Search Bar Mobile - Horizontal */
    .products-hero .hero-search {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .products-hero .search-wrapper {
        flex-direction: row !important;
        padding: 5px !important;
        border-radius: 40px !important;
        gap: 0 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.3) !important;
    }

    .products-hero .search-input {
        flex: 1 !important;
        text-align: right !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
    }

    .products-hero .search-input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .products-hero .search-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
    }

    /* Products Grid - 2 per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card {
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .product-image {
        height: 130px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-company {
        padding: 5px 8px !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .product-company img {
        width: 18px !important;
        height: 18px !important;
    }

    .products-grid .product-card .product-company-name,
    .product-card .product-company-name {
        font-size: 0.55rem !important;
    }

    .products-grid .product-card .product-name,
    .product-card .product-name {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .products-grid .product-card .product-category,
    .product-card .product-category {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
        margin-bottom: 4px !important;
    }

    .product-description {
        display: none !important;
    }

    .product-footer {
        gap: 5px !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(212, 170, 64, 0.1) !important;
    }

    .btn-quote {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        flex: 1 !important;
    }

    .btn-details {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    /* List View Disabled on Mobile - Always Grid */
    .products-grid.list-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .products-grid.list-view .product-card {
        flex-direction: column !important;
    }

    .products-grid.list-view .product-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 140px !important;
    }

    /* Filters - Single Row (768px) */
    .products-filters {
        padding: 10px 0 !important;
        background: #111 !important;
    }

    .filters-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .filters-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        flex: 1 !important;
        width: auto !important;
    }

    .filters-left {
        flex-shrink: 0 !important;
        width: auto !important;
    }

    .filter-group {
        flex: 1 !important;
        width: auto !important;
    }

    .filter-label {
        display: none !important;
    }

    .filter-select {
        padding: 7px 24px 7px 8px !important;
        font-size: 0.65rem !important;
        width: 100% !important;
        border-radius: 18px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        color: #fff !important;
    }

    [dir="rtl"] .filter-select {
        padding: 7px 8px 7px 24px !important;
    }

    .view-toggle {
        display: flex !important;
        gap: 3px !important;
    }

    .view-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
    }

    .view-btn.active {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000 !important;
    }

    /* Products Count */
    .products-count {
        text-align: center !important;
        margin-bottom: 12px !important;
        font-size: 0.85rem !important;
    }

    /* No Products State */
    .no-products {
        padding: 40px 20px !important;
    }

    .no-products-icon {
        font-size: 3rem !important;
        margin-bottom: 15px !important;
    }

    .no-products h3 {
        font-size: 1.2rem !important;
    }

    .no-products p {
        font-size: 0.9rem !important;
    }

    .btn-reset {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* === Products - Small Mobile (575px) === */
@media (max-width: 575px) {
    .products-hero,
    section.products-hero {
        padding: 10px 12px 18px !important;
    }

    /* Hero Badge */
    .products-hero .hero-badge {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 10px !important;
    }

    .products-hero .hero-badge i {
        font-size: 1.2rem !important;
    }

    .products-hero .hero-title {
        font-size: 1.3rem !important;
    }

    .products-hero .hero-subtitle {
        font-size: 0.82rem !important;
        margin-bottom: 15px !important;
    }

    .products-hero .search-wrapper {
        padding: 4px !important;
        border-radius: 35px !important;
    }

    .products-hero .search-input {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .products-hero .search-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .products-hero .search-btn i {
        font-size: 0.9rem !important;
    }

    /* Products Grid - 2 per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Filters - Single Row (575px) */
    .products-filters {
        padding: 8px 0 !important;
        background: #111 !important;
    }

    .filters-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
    }

    .filters-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        flex: 1 !important;
        width: auto !important;
    }

    .filters-left {
        flex-shrink: 0 !important;
        width: auto !important;
    }

    .filter-group {
        flex: 1 !important;
        width: auto !important;
    }

    .filter-label {
        display: none !important;
    }

    .filter-select {
        padding: 6px 22px 6px 6px !important;
        font-size: 0.6rem !important;
        width: 100% !important;
        border-radius: 15px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        color: #fff !important;
    }

    [dir="rtl"] .filter-select {
        padding: 6px 6px 6px 22px !important;
    }

    .view-toggle {
        display: flex !important;
        gap: 3px !important;
    }

    .view-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
    }

    .view-btn.active {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000 !important;
    }

    .product-card {
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .product-image {
        height: 120px !important;
    }

    .product-info {
        padding: 8px !important;
    }

    .product-company {
        padding: 4px 6px !important;
        gap: 5px !important;
        margin-bottom: 5px !important;
    }

    .product-company img {
        width: 16px !important;
        height: 16px !important;
    }

    .products-grid .product-card .product-company-name,
    .product-card .product-company-name {
        font-size: 0.5rem !important;
    }

    .products-grid .product-card .product-name,
    .product-card .product-name {
        font-size: 0.7rem !important;
        margin-bottom: 3px !important;
        line-height: 1.2 !important;
    }

    .products-grid .product-card .product-category,
    .product-card .product-category {
        font-size: 0.5rem !important;
        padding: 2px 4px !important;
        margin-bottom: 3px !important;
    }

    .product-description {
        display: none !important;
    }

    .product-footer {
        flex-direction: row !important;
        gap: 4px !important;
        padding-top: 4px !important;
        border-top: 1px solid rgba(212, 170, 64, 0.1) !important;
    }

    .btn-quote {
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        flex: 1 !important;
    }

    .btn-details {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
    }

    .btn-details i {
        font-size: 0.6rem !important;
    }

    /* Quick View Button in Product Overlay */
    .product-overlay {
        padding: 10px !important;
    }

    .quick-view-btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    .quick-view-btn span {
        display: none !important;
    }

    .quick-view-btn i {
        margin: 0 !important;
    }

    /* Products Section */
    .products-section {
        padding: 20px 0 40px !important;
    }

    .products-count {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }

    /* No Products State */
    .no-products {
        padding: 30px 15px !important;
    }

    .no-products-icon {
        font-size: 2.5rem !important;
    }

    .no-products h3 {
        font-size: 1.1rem !important;
    }

    .no-products p {
        font-size: 0.85rem !important;
    }
}

/* === Products - Extra Small (480px) === */
@media (max-width: 480px) {
    .products-hero,
    section.products-hero {
        padding: 8px 10px 15px !important;
    }

    /* Hero Badge */
    .products-hero .hero-badge {
        width: 45px !important;
        height: 45px !important;
        margin: 0 auto 8px !important;
    }

    .products-hero .hero-badge i {
        font-size: 1rem !important;
    }

    .products-hero .hero-title {
        font-size: 1.1rem !important;
    }

    .products-hero .hero-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }

    .products-hero .search-wrapper {
        padding: 3px !important;
        border-radius: 30px !important;
    }

    .products-hero .search-input {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }

    .products-hero .search-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .products-hero .search-btn i {
        font-size: 0.8rem !important;
    }

    /* Filters - Single Row (480px) */
    .products-filters {
        padding: 6px 0 !important;
        background: #111 !important;
    }

    .filters-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }

    .filters-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        flex: 1 !important;
        width: auto !important;
    }

    .filters-left {
        flex-shrink: 0 !important;
        width: auto !important;
    }

    .filter-group {
        flex: 1 !important;
        width: auto !important;
    }

    .filter-label {
        display: none !important;
    }

    .filter-select {
        padding: 5px 18px 5px 5px !important;
        font-size: 0.55rem !important;
        width: 100% !important;
        border-radius: 12px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        color: #fff !important;
    }

    [dir="rtl"] .filter-select {
        padding: 5px 5px 5px 18px !important;
    }

    .view-toggle {
        display: flex !important;
        gap: 2px !important;
    }

    .view-btn {
        width: 26px !important;
        height: 26px !important;
        padding: 0 !important;
        font-size: 0.65rem !important;
        border-radius: 5px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
    }

    .view-btn.active {
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        color: #000 !important;
    }

    /* Products Grid - 2 per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .product-card {
        border-radius: 6px !important;
    }

    .product-image {
        height: 100px !important;
    }

    .product-info {
        padding: 6px !important;
    }

    .product-company {
        padding: 3px 5px !important;
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .product-company img {
        width: 14px !important;
        height: 14px !important;
    }

    .products-grid .product-card .product-company-name,
    .product-card .product-company-name {
        font-size: 0.45rem !important;
    }

    .products-grid .product-card .product-name,
    .product-card .product-name {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
        line-height: 1.15 !important;
    }

    .products-grid .product-card .product-category,
    .product-card .product-category {
        font-size: 0.45rem !important;
        padding: 1px 3px !important;
    }

    .product-description {
        display: none !important;
    }

    .product-footer {
        gap: 3px !important;
        padding-top: 3px !important;
    }

    .btn-quote {
        padding: 3px 5px !important;
        font-size: 0.55rem !important;
    }

    .btn-details {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .btn-details i {
        font-size: 0.5rem !important;
    }
}

/* ========================================
   COMPANIES PAGE - MOBILE RESPONSIVE
   صفحة الشركات - تحسينات الموبايل
   ======================================== */

/* === Companies Hero - Tablet === */
@media (max-width: 991px) {
    .companies-hero {
        min-height: auto !important;
        align-items: flex-start !important;
        /* padding managed by companies.php inline styles */
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
        position: relative !important;
    }

    .companies-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at 50% 30%, rgba(212, 170, 64, 0.08) 0%, transparent 60%) !important;
        pointer-events: none !important;
    }

    .companies-hero .hero-content {
        position: relative !important;
        z-index: 2 !important;
        text-align: center !important;
    }

    .companies-hero .hero-badge {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 20px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow:
            0 10px 30px rgba(212, 170, 64, 0.3),
            0 0 50px rgba(212, 170, 64, 0.2) !important;
        border: 3px solid rgba(255, 255, 255, 0.2) !important;
    }

    .companies-hero .hero-badge i {
        font-size: 36px !important;
        color: #000000 !important;
    }

    .companies-hero .hero-title {
        margin-bottom: 15px !important;
    }

    .companies-hero .hero-title .title-main {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .companies-hero .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 10px !important;
        margin-bottom: 25px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.7 !important;
        max-width: 500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .companies-hero .hero-features {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .companies-hero .feature-item {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        background: rgba(212, 170, 64, 0.1) !important;
        border: 1px solid rgba(212, 170, 64, 0.3) !important;
        border-radius: 25px !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
    }

    .companies-hero .feature-item i {
        color: #D4AA40 !important;
        font-size: 1rem !important;
    }

    .companies-hero .feature-item span {
        color: #ffffff !important;
    }

    /* Floating Shapes - hide */
    .floating-shape {
        display: none !important;
    }

    /* Companies Section */
    .companies-section {
        padding: 40px 0 !important;
    }

    /* Companies Grid - 2 per row */
    .companies-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 0 !important;
    }

    /* Company Card - Compact Design */
    .company-card {
        border-radius: 12px !important;
        min-height: 320px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .card-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .card-background img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .card-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.9) 100%
        ) !important;
    }

    .card-content {
        padding: 15px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .company-logo {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 12px !important;
        padding: 10px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 2px solid #D4AA40 !important;
        position: relative !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s ease !important;
    }

    .company-logo::before {
        display: none !important;
    }

    .company-logo::after {
        display: none !important;
    }

    .company-card:hover .company-logo {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(212, 170, 64, 0.3) !important;
        border-color: #BF9835 !important;
    }

    .company-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .company-name {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
        min-height: auto !important;
        line-height: 1.3 !important;
    }

    .company-description {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 10px !important;
        min-height: auto !important;
        line-height: 1.5 !important;
    }

    .company-features {
        flex-wrap: wrap !important;
        gap: 5px !important;
        margin-bottom: 10px !important;
        justify-content: center !important;
    }

    .company-features .feature-badge {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }

    .card-actions {
        gap: 8px !important;
    }

    .btn-view-company {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        flex: 1 !important;
        border-radius: 8px !important;
    }

    .btn-view-products {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 0.9rem !important;
    }

    /* Statistics Section */
    .companies-stats {
        padding: 40px 0 !important;
    }

    .stats-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }

    .stat-icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 10px !important;
    }

    .stat-icon i {
        font-size: 18px !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
        margin-bottom: 3px !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* CTA Section */
    .companies-cta {
        padding: 40px 0 !important;
    }

    .companies-cta .cta-content {
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }

    .cta-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    .cta-content p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .cta-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}

/* === Companies - Mobile (768px) === */
@media (max-width: 767px) {
    .companies-hero {
        /* padding managed by companies.php inline styles */
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
        position: relative !important;
    }

    .companies-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at 50% 30%, rgba(212, 170, 64, 0.06) 0%, transparent 50%) !important;
        pointer-events: none !important;
    }

    .companies-hero .hero-content {
        position: relative !important;
        z-index: 2 !important;
    }

    .companies-hero .hero-badge {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 18px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        border-radius: 50% !important;
        box-shadow:
            0 8px 25px rgba(212, 170, 64, 0.25),
            0 0 40px rgba(212, 170, 64, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .companies-hero .hero-badge i {
        font-size: 30px !important;
        color: #000000 !important;
    }

    .companies-hero .hero-title .title-main {
        font-size: 1.5rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .companies-hero .hero-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 20px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.6 !important;
        max-width: 450px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .companies-hero .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .companies-hero .feature-item {
        padding: 7px 10px !important;
        font-size: 0.7rem !important;
        background: rgba(212, 170, 64, 0.08) !important;
        border: 1px solid rgba(212, 170, 64, 0.25) !important;
        border-radius: 20px !important;
        backdrop-filter: blur(8px) !important;
        white-space: nowrap !important;
    }

    .companies-hero .feature-item i {
        color: #D4AA40 !important;
        font-size: 0.85rem !important;
    }

    .companies-hero .feature-item span {
        color: #ffffff !important;
    }

    /* Companies Section */
    .companies-section {
        padding: 30px 0 !important;
    }

    /* Companies Grid - Single column */
    .companies-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .company-card {
        border-radius: 10px !important;
        min-height: 280px !important;
    }

    .card-content {
        padding: 12px !important;
    }

    .company-logo {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 10px !important;
        padding: 9px !important;
        background: #ffffff !important;
        border-radius: 10px !important;
        border: 2px solid #D4AA40 !important;
    }

    .company-name {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .company-description {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }

    .company-features .feature-badge {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .btn-view-company {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        flex: 1 !important;
    }

    .btn-view-products {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    /* Statistics - 2x2 grid */
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px 10px !important;
    }

    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .stat-icon i {
        font-size: 16px !important;
    }

    .stat-number {
        font-size: 1.4rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* CTA Section */
    .companies-cta {
        padding: 30px 0 !important;
    }

    .companies-cta .cta-content {
        padding: 25px 15px !important;
    }

    .cta-content h2 {
        font-size: 1.3rem !important;
    }

    .cta-content p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
    }

}

/* === Companies - Small Mobile (575px) === */
@media (max-width: 575px) {
    .companies-hero {
        /* padding managed by companies.php inline styles */
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
        position: relative !important;
    }

    .companies-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at 50% 25%, rgba(212, 170, 64, 0.05) 0%, transparent 45%) !important;
        pointer-events: none !important;
    }

    .companies-hero .hero-content {
        position: relative !important;
        z-index: 2 !important;
    }

    .companies-hero .hero-badge {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        border-radius: 50% !important;
        box-shadow:
            0 6px 20px rgba(212, 170, 64, 0.2),
            0 0 30px rgba(212, 170, 64, 0.12) !important;
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
    }

    .companies-hero .hero-badge i {
        font-size: 26px !important;
        color: #000000 !important;
    }

    .companies-hero .hero-title .title-main {
        font-size: 1.3rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    }

    .companies-hero .hero-subtitle {
        font-size: 0.82rem !important;
        padding: 0 8px !important;
        margin-bottom: 16px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.5 !important;
    }

    .companies-hero .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }

    .companies-hero .feature-item {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
        background: rgba(212, 170, 64, 0.06) !important;
        border: 1px solid rgba(212, 170, 64, 0.2) !important;
        border-radius: 18px !important;
        backdrop-filter: blur(6px) !important;
        white-space: nowrap !important;
    }

    .companies-hero .feature-item i {
        font-size: 0.7rem !important;
        color: #D4AA40 !important;
        margin-left: 4px !important;
    }

    .companies-hero .feature-item span {
        color: #ffffff !important;
    }

    /* Companies Section */
    .companies-section {
        padding: 25px 0 !important;
    }

    .companies-grid {
        gap: 10px !important;
    }

    .company-card {
        border-radius: 10px !important;
        min-height: 260px !important;
    }

    .card-content {
        padding: 10px !important;
    }

    .company-logo {
        width: 58px !important;
        height: 58px !important;
        margin-bottom: 8px !important;
        padding: 8px !important;
        background: #ffffff !important;
        border-radius: 10px !important;
        border: 2px solid #D4AA40 !important;
    }

    .company-name {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .company-description {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
    }

    .company-features {
        gap: 4px !important;
        margin-bottom: 8px !important;
    }

    .company-features .feature-badge {
        padding: 3px 6px !important;
        font-size: 0.6rem !important;
    }

    .card-actions {
        gap: 6px !important;
    }

    .btn-view-company {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }

    .btn-view-products {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    /* Statistics */
    .companies-stats {
        padding: 25px 0 !important;
    }

    .stats-wrapper {
        gap: 8px !important;
    }

    .stat-card {
        padding: 12px 6px !important;
        border-radius: 8px !important;
    }

    .stat-icon {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 6px !important;
    }

    .stat-icon i {
        font-size: 14px !important;
    }

    .stat-number {
        font-size: 1.2rem !important;
    }

    .stat-label {
        font-size: 0.6rem !important;
    }

    /* CTA Section */
    .companies-cta {
        padding: 25px 0 !important;
    }

    .companies-cta .cta-content {
        padding: 20px 12px !important;
        border-radius: 12px !important;
    }

    .cta-content h2 {
        font-size: 1.2rem !important;
    }

    .cta-content p {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }

    .cta-buttons {
        gap: 8px !important;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 18px !important;
        font-size: 0.8rem !important;
    }
}

/* === Companies - Extra Small (480px) === */
@media (max-width: 480px) {
    .companies-hero {
        /* padding managed by companies.php inline styles */
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
        position: relative !important;
    }

    .companies-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at 50% 20%, rgba(212, 170, 64, 0.04) 0%, transparent 40%) !important;
        pointer-events: none !important;
    }

    .companies-hero .hero-content {
        position: relative !important;
        z-index: 2 !important;
    }

    .companies-hero .hero-badge {
        width: 55px !important;
        height: 55px !important;
        margin: 0 auto 12px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        border-radius: 50% !important;
        box-shadow:
            0 5px 15px rgba(212, 170, 64, 0.18),
            0 0 25px rgba(212, 170, 64, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.12) !important;
    }

    .companies-hero .hero-badge i {
        font-size: 24px !important;
        color: #000000 !important;
    }

    .companies-hero .hero-title .title-main {
        font-size: 1.2rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    }

    .companies-hero .hero-subtitle {
        font-size: 0.78rem !important;
        padding: 0 5px !important;
        margin-bottom: 14px !important;
        color: rgba(255, 255, 255, 0.75) !important;
        line-height: 1.5 !important;
    }

    .companies-hero .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .companies-hero .feature-item {
        padding: 4px 7px !important;
        font-size: 0.6rem !important;
        background: rgba(212, 170, 64, 0.05) !important;
        border: 1px solid rgba(212, 170, 64, 0.18) !important;
        border-radius: 15px !important;
        backdrop-filter: blur(5px) !important;
        white-space: nowrap !important;
    }

    .companies-hero .feature-item i {
        font-size: 0.6rem !important;
        color: #D4AA40 !important;
    }

    .companies-hero .feature-item span {
        color: #ffffff !important;
    }

    .company-card {
        min-height: 240px !important;
    }

    .company-logo {
        width: 52px !important;
        height: 52px !important;
        padding: 7px !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        border: 2px solid #D4AA40 !important;
    }

    .card-content {
        padding: 10px !important;
    }

    .company-name {
        font-size: 0.88rem !important;
    }

    .company-description {
        font-size: 0.7rem !important;
    }

    .btn-view-company {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }

    .stat-number {
        font-size: 1.2rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .cta-content h2 {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   COMPANY DETAIL PAGE - MOBILE RESPONSIVE
   صفحة تفاصيل الشركة - تحسينات الموبايل
   ======================================== */

/* === Company Hero - Tablet === */
@media (max-width: 991px) {
    .company-hero,
    body.company-page .company-hero {
        min-height: auto !important;
        padding: 80px 0 50px !important;
    }

    .hero-video-wrapper video {
        object-fit: cover !important;
    }

    .company-logo-wrapper {
        width: 110px !important;
        height: 110px !important;
        margin-bottom: 20px !important;
    }

    .company-logo-wrapper .company-logo {
        width: 72px !important;
        height: 72px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .company-hero .company-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .company-hero .company-description {
        font-size: 1rem !important;
        padding: 0 20px !important;
        margin-bottom: 20px !important;
    }

    .hero-badges {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
    }

    .hero-badge {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }

    .hero-badge i {
        font-size: 1rem !important;
    }

    .hero-actions {
        flex-direction: row !important;
        gap: 15px !important;
        justify-content: center !important;
    }

    .btn-gold,
    .btn-gold-outline {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }

    /* About Section */
    .company-about {
        padding: 60px 0 !important;
    }

    .company-about .row {
        flex-direction: column-reverse !important;
    }

    .about-content {
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .about-content .section-badge {
        display: inline-block !important;
        font-size: 0.85rem !important;
        padding: 6px 15px !important;
        margin-bottom: 15px !important;
        background: transparent !important;
        border: 1px solid #D4AA40 !important;
        color: #D4AA40 !important;
        border-radius: 100px !important;
        font-weight: 600 !important;
    }

    .about-content .section-title {
        text-align: center !important;
        color: #ffffff !important;
    }

    .about-content .section-text {
        text-align: center !important;
        color: #b0b0b0 !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .section-text {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .features-list {
        margin-top: 25px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .feature-box {
        padding: 15px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        max-width: 400px !important;
        background: #111111 !important;
        border: 1px solid #2a2a2a !important;
        border-radius: 12px !important;
        text-align: start !important;
    }

    .feature-box:hover {
        border-color: #D4AA40 !important;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        font-size: 1.2rem !important;
        background: #D4AA40 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .feature-icon i {
        color: #000000 !important;
    }

    .feature-text h4 {
        font-size: 1rem !important;
        color: #ffffff !important;
    }

    .feature-text p {
        font-size: 0.85rem !important;
        color: #707070 !important;
    }

    /* Gallery */
    .gallery-wrapper {
        max-width: 100% !important;
    }

    .gallery-main {
        border-radius: 15px !important;
        margin-bottom: 15px !important;
    }

    .gallery-main img {
        height: 300px !important;
        object-fit: cover !important;
    }

    .gallery-nav-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .gallery-thumbs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 10px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none !important;
    }

    .gallery-thumb {
        flex-shrink: 0 !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    /* Services Section */
    .company-services {
        padding: 60px 0 !important;
        background: #000000 !important;
    }

    .company-services .section-header {
        text-align: center !important;
        margin-bottom: 40px !important;
    }

    .company-services .section-badge {
        background: transparent !important;
        border: 1px solid #D4AA40 !important;
        color: #D4AA40 !important;
    }

    .company-services .section-title {
        color: #ffffff !important;
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .service-item {
        padding: 25px 20px !important;
        border-radius: 15px !important;
        background: #111111 !important;
        border: 1px solid #2a2a2a !important;
    }

    .service-item:hover {
        border-color: #D4AA40 !important;
    }

    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835) !important;
        border-radius: 16px !important;
    }

    .service-icon i {
        color: #000000 !important;
    }

    .service-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
        color: #ffffff !important;
    }

    .service-item p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
        color: #707070 !important;
    }

    .service-features li {
        font-size: 0.8rem !important;
        padding: 5px 0 !important;
        color: #b0b0b0 !important;
    }

    .service-features li i {
        color: #D4AA40 !important;
    }

    /* Stats Section */
    .company-stats {
        padding: 60px 0 !important;
        background: #0a0a0a !important;
    }

    .company-stats .section-header {
        text-align: center !important;
        margin-bottom: 40px !important;
    }

    .company-stats .section-badge {
        background: transparent !important;
        border: 1px solid #D4AA40 !important;
        color: #D4AA40 !important;
    }

    .company-stats .section-title {
        color: #ffffff !important;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .stat-item {
        padding: 25px 15px !important;
        border-radius: 15px !important;
        background: #111111 !important;
        border: 1px solid #2a2a2a !important;
    }

    .stat-item:hover {
        border-color: #D4AA40 !important;
    }

    .stat-item .stat-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        background: #D4AA40 !important;
        border-radius: 50% !important;
    }

    .stat-item .stat-icon i {
        color: #000000 !important;
    }

    .stat-value {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
        color: #D4AA40 !important;
    }

    .stat-item .stat-label {
        font-size: 0.9rem !important;
        color: #707070 !important;
    }

    /* CTA Section */
    .company-cta {
        padding: 60px 0 !important;
        background: #000000 !important;
    }

    .cta-content {
        background: #111111 !important;
        border: 1px solid #2a2a2a !important;
        border-radius: 20px !important;
        padding: 40px 25px !important;
        text-align: center !important;
    }

    .cta-content::before {
        background: linear-gradient(90deg, transparent, #D4AA40, transparent) !important;
    }

    .cta-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
    }

    .cta-content p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
        color: #707070 !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .btn-white {
        width: 100% !important;
        max-width: 280px !important;
        padding: 14px 25px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
        background: #D4AA40 !important;
        color: #000000 !important;
        border-radius: 10px !important;
    }

    .btn-white i {
        color: #000000 !important;
    }

    .btn-white-outline {
        width: 100% !important;
        max-width: 280px !important;
        padding: 14px 25px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
        background: transparent !important;
        border: 1px solid #2a2a2a !important;
        color: #b0b0b0 !important;
        border-radius: 10px !important;
    }

    .btn-white-outline:hover {
        border-color: #D4AA40 !important;
        color: #D4AA40 !important;
    }
}

/* === Company Detail - Mobile (768px) === */
@media (max-width: 767px) {
    .company-hero,
    body.company-page .company-hero {
        padding: 70px 0 40px !important;
    }

    .company-logo-wrapper {
        width: 100px !important;
        height: 100px !important;
    }

    .company-logo-wrapper .company-logo {
        width: 65px !important;
        height: 65px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .company-hero .company-title {
        font-size: 1.6rem !important;
    }

    .company-hero .company-description {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }

    .hero-badge {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-gold,
    .btn-gold-outline {
        width: 100% !important;
        max-width: 280px !important;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }

    /* About Section */
    .company-about {
        padding: 50px 0 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-text {
        font-size: 0.9rem !important;
    }

    .feature-box {
        padding: 12px !important;
    }

    .feature-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }

    .feature-text h4 {
        font-size: 0.95rem !important;
    }

    .feature-text p {
        font-size: 0.8rem !important;
    }

    /* Gallery */
    .gallery-main img {
        height: 250px !important;
    }

    .gallery-thumb {
        flex-shrink: 0 !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    /* Services - Single column */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .service-item {
        padding: 20px 15px !important;
    }

    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .service-item h3 {
        font-size: 1rem !important;
    }

    .service-item p {
        font-size: 0.8rem !important;
    }

    /* Stats */
    .stats-grid {
        gap: 15px !important;
    }

    .stat-item {
        padding: 20px 10px !important;
    }

    .stat-item .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .stat-value {
        font-size: 1.6rem !important;
    }

    .stat-item .stat-label {
        font-size: 0.8rem !important;
    }

    /* CTA */
    .company-cta {
        padding: 50px 0 !important;
    }

    .cta-content h2 {
        font-size: 1.5rem !important;
    }

    .cta-content p {
        font-size: 0.9rem !important;
    }

    .btn-white,
    .btn-white-outline {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* === Company Detail - Small Mobile (575px) === */
@media (max-width: 575px) {
    .company-hero,
    body.company-page .company-hero {
        padding: 65px 0 35px !important;
    }

    .company-logo-wrapper {
        width: 90px !important;
        height: 90px !important;
    }

    .company-logo-wrapper .company-logo {
        width: 58px !important;
        height: 58px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .company-hero .company-title {
        font-size: 1.4rem !important;
    }

    .company-hero .company-description {
        font-size: 0.85rem !important;
    }

    .hero-badges {
        gap: 8px !important;
    }

    .hero-badge {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .hero-badge i {
        font-size: 0.85rem !important;
        margin-left: 5px !important;
    }

    .btn-gold,
    .btn-gold-outline {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    /* About Section */
    .company-about {
        padding: 40px 0 !important;
    }

    .section-badge {
        font-size: 0.8rem !important;
        padding: 5px 12px !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .section-text {
        font-size: 0.85rem !important;
    }

    .features-list {
        margin-top: 20px !important;
    }

    .feature-box {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .feature-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
        margin-left: 10px !important;
    }

    .feature-text h4 {
        font-size: 0.9rem !important;
    }

    .feature-text p {
        font-size: 0.75rem !important;
    }

    /* Gallery */
    .gallery-main img {
        height: 200px !important;
    }

    .gallery-nav-btn {
        width: 35px !important;
        height: 35px !important;
    }

    .gallery-counter {
        font-size: 0.8rem !important;
    }

    .gallery-thumbs {
        gap: 6px !important;
        padding: 8px !important;
    }

    .gallery-thumb {
        flex-shrink: 0 !important;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }

    /* Services */
    .company-services {
        padding: 40px 0 !important;
    }

    .services-grid {
        gap: 12px !important;
    }

    .service-item {
        padding: 15px 12px !important;
        border-radius: 10px !important;
    }

    .service-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .service-item h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }

    .service-item p {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
    }

    .service-features li {
        font-size: 0.7rem !important;
        padding: 3px 0 !important;
    }

    /* Stats */
    .company-stats {
        padding: 40px 0 !important;
    }

    .stats-grid {
        gap: 10px !important;
    }

    .stat-item {
        padding: 15px 8px !important;
        border-radius: 10px !important;
    }

    .stat-item .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .stat-value {
        font-size: 1.4rem !important;
    }

    .stat-item .stat-label {
        font-size: 0.7rem !important;
    }

    /* CTA */
    .company-cta {
        padding: 35px 0 !important;
    }

    .cta-content h2 {
        font-size: 1.3rem !important;
    }

    .cta-content p {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
    }

    .cta-buttons {
        gap: 10px !important;
    }

    .btn-white,
    .btn-white-outline {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
    }
}

/* === Company Detail - Extra Small (480px) === */
@media (max-width: 480px) {
    .company-hero .company-title {
        font-size: 1.25rem !important;
    }

    .company-hero .company-description {
        font-size: 0.8rem !important;
    }

    .hero-badge {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

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

    .gallery-main img {
        height: 180px !important;
    }

    .company-hero,
    body.company-page .company-hero {
        padding: 60px 0 30px !important;
    }

    .gallery-thumb {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .service-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .service-item h3 {
        font-size: 0.9rem !important;
    }

    .stat-value {
        font-size: 1.2rem !important;
    }

    .stat-item .stat-label {
        font-size: 0.65rem !important;
    }

    .cta-content h2 {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   GALLERY PAGE - MOBILE RESPONSIVE
   صفحة المعرض - تحسينات الموبايل
   ======================================== */

/* === Gallery Hero - Tablet === */
@media (max-width: 991px) {
    .gallery-hero {
        padding: 75px 20px 35px !important;
        min-height: auto !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
        position: relative !important;
    }

    .gallery-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at 50% 30%, rgba(212, 170, 64, 0.08) 0%, transparent 60%) !important;
        pointer-events: none !important;
    }

    .gallery-hero .hero-content {
        position: relative !important;
        z-index: 2 !important;
        text-align: center !important;
    }

    .gallery-hero .hero-badge {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 20px !important;
        background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow:
            0 10px 30px rgba(212, 170, 64, 0.3),
            0 0 50px rgba(212, 170, 64, 0.2) !important;
        border: 3px solid rgba(255, 255, 255, 0.2) !important;
    }

    .gallery-hero .hero-badge i {
        font-size: 2rem !important;
        color: #000000 !important;
    }

    .gallery-hero .hero-title {
        margin-bottom: 15px !important;
    }

    .gallery-hero .hero-title .title-accent {
        font-size: 2rem !important;
        background: linear-gradient(135deg, #D4AA40, #BF9835, #D4AA40) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .gallery-hero .hero-subtitle {
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
        max-width: 450px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Hide hero stats on mobile */
    .gallery-hero .hero-stats,
    .gallery-hero .stat-item,
    .gallery-hero .stat-divider {
        display: none !important;
    }

    .hero-decoration,
    .gallery-hero .floating-icons {
        display: none !important;
    }

    /* Gallery Filters */
    .gallery-filters {
        padding: 25px 0 !important;
    }

    .filters-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .filter-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    .filter-btn img {
        width: 25px !important;
        height: 25px !important;
    }

    .filter-btn .count {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 40px 0 !important;
    }

    /* Gallery Grid - 2 per row */
    #galleryGrid,
    .gallery-masonry {
        gap: 15px !important;
    }

    #galleryGrid .gallery-item,
    .gallery-masonry .gallery-item,
    .gallery-item {
        width: calc(50% - 8px) !important;
    }

    .gallery-item .item-inner {
        height: 220px !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }

    .gallery-item .item-inner img {
        border-radius: 8px !important;
    }

    .item-badge {
        padding: 6px 10px !important;
    }

    .badge-logo {
        width: 20px !important;
        height: 20px !important;
    }

    .badge-text {
        font-size: 0.7rem !important;
    }

    /* Make overlay always visible on touch devices */
    .gallery-item .item-overlay {
        opacity: 1 !important;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.85) 100%
        ) !important;
    }

    .gallery-item .overlay-actions {
        transform: translateY(0) !important;
        gap: 12px !important;
    }

    .gallery-item .action-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.9), rgba(191, 152, 53, 0.9)) !important;
        border: none !important;
        color: #000 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .gallery-item .action-btn i {
        color: #000 !important;
    }

    /* Load More Button */
    .load-more-container {
        margin-top: 30px !important;
    }

    .load-more-btn {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }

    /* Gallery Stats */
    .gallery-stats {
        padding: 50px 0 !important;
    }

    .gallery-stats .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .gallery-stats .stat-card {
        padding: 25px 15px !important;
        border-radius: 15px !important;
    }

    .gallery-stats .stat-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }

    .gallery-stats .stat-number {
        font-size: 1.8rem !important;
    }

    .gallery-stats .stat-label {
        font-size: 0.85rem !important;
    }
}

/* === Gallery - Mobile (768px) === */
@media (max-width: 767px) {
    .gallery-hero {
        padding: 70px 15px 30px !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    }

    .gallery-hero::before {
        background: radial-gradient(circle at 50% 30%, rgba(212, 170, 64, 0.06) 0%, transparent 50%) !important;
    }

    .gallery-hero .hero-badge {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 18px !important;
        box-shadow:
            0 8px 25px rgba(212, 170, 64, 0.25),
            0 0 40px rgba(212, 170, 64, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .gallery-hero .hero-badge i {
        font-size: 1.7rem !important;
        color: #000000 !important;
    }

    .gallery-hero .hero-title .title-accent {
        font-size: 1.7rem !important;
    }

    .gallery-hero .hero-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 22px !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
    }

    .gallery-hero .floating-icons {
        display: none !important;
    }

    /* Filters - Wrapped layout (NO horizontal scroll) */
    .gallery-filters {
        padding: 20px 0 !important;
    }

    .filters-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 10px !important;
    }

    .filter-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
    }

    .filter-btn img {
        width: 20px !important;
        height: 20px !important;
    }

    .filter-btn span:not(.count) {
        max-width: none !important;
    }

    .filter-btn .count {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }

    /* Gallery Grid - Single column */
    #galleryGrid .gallery-item,
    .gallery-masonry .gallery-item,
    .gallery-item {
        width: 100% !important;
    }

    .gallery-item .item-inner {
        height: 250px !important;
    }

    /* Overlay always visible on mobile */
    .gallery-item .item-overlay {
        opacity: 1 !important;
    }

    .gallery-item .overlay-actions {
        transform: translateY(0) !important;
    }

    .gallery-item .action-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.95), rgba(191, 152, 53, 0.95)) !important;
        border: none !important;
        color: #000 !important;
    }

    /* Stats */
    .gallery-stats {
        padding: 40px 0 !important;
    }

    .gallery-stats .stats-grid {
        gap: 15px !important;
    }

    .gallery-stats .stat-card {
        padding: 20px 10px !important;
    }

    .gallery-stats .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }

    .gallery-stats .stat-number {
        font-size: 1.5rem !important;
    }

    .gallery-stats .stat-label {
        font-size: 0.8rem !important;
    }
}

/* === Gallery - Small Mobile (575px) === */
@media (max-width: 575px) {
    .gallery-hero {
        padding: 65px 12px 25px !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    }

    .gallery-hero::before {
        background: radial-gradient(circle at 50% 25%, rgba(212, 170, 64, 0.05) 0%, transparent 45%) !important;
    }

    .gallery-hero .hero-badge {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px !important;
        box-shadow:
            0 6px 20px rgba(212, 170, 64, 0.2),
            0 0 30px rgba(212, 170, 64, 0.12) !important;
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
    }

    .gallery-hero .hero-badge i {
        font-size: 1.5rem !important;
        color: #000000 !important;
    }

    .gallery-hero .hero-title .title-accent {
        font-size: 1.4rem !important;
    }

    .gallery-hero .hero-subtitle {
        font-size: 0.82rem !important;
        padding: 0 8px !important;
        margin-bottom: 18px !important;
        line-height: 1.5 !important;
    }

    /* Filters - Continue wrapping */
    .gallery-filters {
        padding: 15px 0 !important;
    }

    .filters-container {
        gap: 6px !important;
        padding: 0 8px !important;
    }

    .filter-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        border-radius: 8px !important;
    }

    .filter-btn img {
        width: 20px !important;
        height: 20px !important;
    }

    .filter-btn .count {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 30px 0 !important;
    }

    #galleryGrid,
    .gallery-masonry {
        gap: 10px !important;
    }

    .gallery-item .item-inner {
        height: 220px !important;
        padding: 5px !important;
        border-radius: 10px !important;
    }

    .gallery-item .item-inner img {
        border-radius: 6px !important;
    }

    .item-badge {
        padding: 5px 8px !important;
        border-radius: 6px !important;
    }

    .badge-logo {
        width: 18px !important;
        height: 18px !important;
    }

    .badge-text {
        font-size: 0.65rem !important;
    }

    /* Overlay always visible */
    .gallery-item .item-overlay {
        opacity: 1 !important;
    }

    .gallery-item .overlay-actions {
        transform: translateY(0) !important;
        gap: 10px !important;
    }

    .gallery-item .action-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.95), rgba(191, 152, 53, 0.95)) !important;
        border: none !important;
        color: #000 !important;
    }

    /* Load More */
    .load-more-container {
        margin-top: 25px !important;
    }

    .load-more-btn {
        padding: 10px 25px !important;
        font-size: 0.85rem !important;
    }

    /* Stats */
    .gallery-stats {
        padding: 35px 0 !important;
    }

    .gallery-stats .stats-grid {
        gap: 10px !important;
    }

    .gallery-stats .stat-card {
        padding: 15px 8px !important;
        border-radius: 10px !important;
    }

    .gallery-stats .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .gallery-stats .stat-number {
        font-size: 1.3rem !important;
    }

    .gallery-stats .stat-label {
        font-size: 0.7rem !important;
    }

    /* No Images State */
    .no-images {
        padding: 40px 20px !important;
    }

    .no-images-icon {
        font-size: 3rem !important;
    }

    .no-images h3 {
        font-size: 1.2rem !important;
    }

    .no-images p {
        font-size: 0.9rem !important;
    }
}

/* === Gallery - Extra Small (480px) === */
@media (max-width: 480px) {
    .gallery-hero {
        padding: 60px 10px 20px !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    }

    .gallery-hero::before {
        background: radial-gradient(circle at 50% 20%, rgba(212, 170, 64, 0.04) 0%, transparent 40%) !important;
    }

    .gallery-hero .hero-badge {
        width: 55px !important;
        height: 55px !important;
        margin: 0 auto 12px !important;
        box-shadow:
            0 5px 15px rgba(212, 170, 64, 0.18),
            0 0 25px rgba(212, 170, 64, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.12) !important;
    }

    .gallery-hero .hero-badge i {
        font-size: 1.3rem !important;
        color: #000000 !important;
    }

    .gallery-hero .hero-title .title-accent {
        font-size: 1.25rem !important;
    }

    .gallery-hero .hero-subtitle {
        font-size: 0.78rem !important;
        padding: 0 5px !important;
        margin-bottom: 15px !important;
        line-height: 1.5 !important;
    }

    /* Filters */
    .filters-container {
        gap: 5px !important;
    }

    .filter-btn {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
        gap: 5px !important;
    }

    .filter-btn img {
        width: 16px !important;
        height: 16px !important;
    }

    .filter-btn .count {
        padding: 1px 4px !important;
        font-size: 0.55rem !important;
    }

    .gallery-item .item-inner {
        height: 200px !important;
    }

    /* Overlay always visible */
    .gallery-item .item-overlay {
        opacity: 1 !important;
    }

    .gallery-item .overlay-actions {
        transform: translateY(0) !important;
        gap: 8px !important;
    }

    .gallery-item .action-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
        background: linear-gradient(135deg, rgba(212, 170, 64, 0.95), rgba(191, 152, 53, 0.95)) !important;
        border: none !important;
        color: #000 !important;
    }

    .gallery-stats .stat-number {
        font-size: 1.1rem !important;
    }

    .gallery-stats .stat-label {
        font-size: 0.65rem !important;
    }
}

/* ========================================
   CONTACT PAGE - MOBILE RESPONSIVE
   صفحة الاتصال - تحسينات الموبايل
   ======================================== */

/* === Contact Hero - Tablet === */
@media (max-width: 991px) {
    .contact-hero-advanced {
        padding: 75px 20px 35px !important;
    }

    .contact-hero-advanced .hero-badge {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 15px !important;
    }

    .contact-hero-advanced .hero-badge i {
        font-size: 2rem !important;
    }

    .contact-hero-advanced .hero-title .title-main {
        font-size: 1.8rem !important;
    }

    .contact-hero-advanced .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 15px !important;
    }

    .contact-hero-advanced .hero-features {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .contact-hero-advanced .feature-item {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    /* Contact Section */
    .contact-section-advanced {
        padding: 30px 0 50px !important;
    }

    .contact-section-advanced .row {
        flex-direction: column !important;
    }

    .contact-section-advanced .col-lg-8,
    .contact-section-advanced .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Form grid - stack col-md-6 fields on tablet/mobile */
    .contact-form-wrapper-advanced .row {
        flex-direction: column !important;
    }

    .contact-form-wrapper-advanced .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Form Wrapper */
    .contact-form-wrapper-advanced {
        padding: 25px !important;
        border-radius: 15px !important;
    }

    .form-header .form-title {
        font-size: 1.4rem !important;
    }

    .form-header .form-subtitle {
        font-size: 0.9rem !important;
    }

    /* Form Steps */
    .form-steps {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .step {
        flex-shrink: 0 !important;
        min-width: auto !important;
    }

    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }

    .step-title {
        font-size: 0.75rem !important;
    }

    /* Form Controls */
    .form-group-advanced {
        margin-bottom: 20px !important;
    }

    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .form-control-advanced,
    .select-advanced {
        padding: 12px 15px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .textarea-advanced {
        min-height: 120px !important;
    }

    .form-helper {
        font-size: 0.75rem !important;
    }

    /* File Upload */
    .file-upload-area {
        padding: 25px !important;
    }

    .file-label {
        font-size: 0.9rem !important;
    }

    .file-label small {
        font-size: 0.7rem !important;
    }

    /* Navigation Buttons */
    .form-navigation {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
    }

    /* Quick Contact Section - Fixed */
    .quick-contact-section {
        padding: 25px !important;
        margin-top: 30px !important;
        border-radius: 15px !important;
        overflow: visible !important;
    }

    .quick-contact-section .section-header h3 {
        font-size: 1.3rem !important;
    }

    .quick-contact-list {
        overflow: visible !important;
    }

    .quick-contact-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .company-badge {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid rgba(212, 170, 64, 0.15) !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .contact-items {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .contact-item {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Sidebar */
    .contact-sidebar {
        margin-top: 30px !important;
    }

    .sidebar-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }

    .card-header h3 {
        font-size: 1.1rem !important;
    }

    .location-item {
        padding: 12px 0 !important;
    }

    .location-item h4 {
        font-size: 0.95rem !important;
    }

    .location-item p {
        font-size: 0.85rem !important;
    }

    .hours-item {
        padding: 10px 0 !important;
    }

    .hours-item .day,
    .hours-item .time {
        font-size: 0.9rem !important;
    }

    .social-links-grid {
        gap: 10px !important;
    }

    .social-link {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }

    /* Map Section */
    .map-section-advanced {
        margin-top: 30px !important;
    }

    .map-container iframe {
        height: 350px !important;
    }

    .map-info {
        padding: 20px !important;
    }

    .map-info h3 {
        font-size: 1.1rem !important;
    }
}

/* === Contact - Mobile (768px) === */
@media (max-width: 767px) {
    .contact-hero-advanced {
        padding: 70px 15px 30px !important;
    }

    .contact-hero-advanced .hero-badge {
        width: 70px !important;
        height: 70px !important;
    }

    .contact-hero-advanced .hero-badge i {
        font-size: 1.7rem !important;
    }

    .contact-hero-advanced .hero-title .title-main {
        font-size: 1.5rem !important;
    }

    .contact-hero-advanced .hero-subtitle {
        font-size: 0.88rem !important;
    }

    .contact-hero-advanced .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .contact-hero-advanced .feature-item {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    /* Form */
    .contact-form-wrapper-advanced {
        padding: 20px !important;
    }

    .form-header .form-title {
        font-size: 1.2rem !important;
    }

    .form-steps {
        gap: 8px !important;
    }

    .step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
    }

    .step-title {
        font-size: 0.7rem !important;
    }

    .form-label {
        font-size: 0.85rem !important;
    }

    .form-control-advanced,
    .select-advanced {
        padding: 10px 12px !important;
    }

    /* Quick Contact */
    .quick-contact-section {
        padding: 20px !important;
        overflow: visible !important;
    }

    .quick-contact-row {
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .company-badge {
        width: 100% !important;
    }

    .contact-items {
        width: 100% !important;
        overflow: visible !important;
    }

    .contact-item {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Sidebar */
    .sidebar-card {
        padding: 15px !important;
    }

    .card-header h3 {
        font-size: 1rem !important;
    }

    .location-item h4 {
        font-size: 0.9rem !important;
    }

    .location-item p {
        font-size: 0.8rem !important;
    }

    .social-link {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Map */
    .map-container iframe {
        height: 300px !important;
    }
}

/* === Contact - Small Mobile (575px) === */
@media (max-width: 575px) {
    .contact-hero-advanced {
        padding: 65px 12px 25px !important;
    }

    .contact-hero-advanced .hero-badge {
        width: 60px !important;
        height: 60px !important;
    }

    .contact-hero-advanced .hero-badge i {
        font-size: 1.5rem !important;
    }

    .contact-hero-advanced .hero-title .title-main {
        font-size: 1.35rem !important;
    }

    .contact-hero-advanced .hero-subtitle {
        font-size: 0.82rem !important;
    }

    .contact-hero-advanced .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .contact-hero-advanced .feature-item {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }

    /* Contact Section */
    .contact-section-advanced {
        padding: 25px 0 40px !important;
    }

    /* Form */
    .contact-form-wrapper-advanced {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .form-header {
        margin-bottom: 20px !important;
    }

    .form-header .form-title {
        font-size: 1.1rem !important;
    }

    .form-header .form-subtitle {
        font-size: 0.8rem !important;
    }

    .form-steps {
        gap: 5px !important;
        margin-bottom: 20px !important;
    }

    .step {
        padding: 8px !important;
    }

    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .step-title {
        font-size: 0.65rem !important;
        display: none !important;
    }

    .step.active .step-title {
        display: block !important;
    }

    .form-group-advanced {
        margin-bottom: 15px !important;
    }

    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }

    .form-control-advanced,
    .select-advanced {
        padding: 10px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .textarea-advanced {
        min-height: 100px !important;
    }

    .form-helper {
        font-size: 0.7rem !important;
    }

    /* File Upload */
    .file-upload-area {
        padding: 20px 15px !important;
    }

    .file-label i {
        font-size: 2rem !important;
    }

    .file-label span {
        font-size: 0.85rem !important;
    }

    .file-label small {
        font-size: 0.65rem !important;
    }

    /* CAPTCHA */
    .captcha-box {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #captcha-question {
        width: 100% !important;
        text-align: center !important;
    }

    .form-control-captcha {
        width: 100% !important;
    }

    /* Navigation Buttons */
    .btn-prev,
    .btn-next,
    .btn-submit {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }

    /* Quick Contact - Fixed overflow */
    .quick-contact-section {
        padding: 15px !important;
        margin-top: 25px !important;
        border-radius: 12px !important;
        overflow: visible !important;
    }

    .quick-contact-section .section-header h3 {
        font-size: 1.1rem !important;
    }

    .quick-contact-list {
        overflow: visible !important;
    }

    .quick-contact-row {
        padding: 10px !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .company-badge {
        font-size: 0.85rem !important;
        width: 100% !important;
    }

    .company-badge i {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .contact-items {
        gap: 6px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .contact-item {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }

    /* Sidebar */
    .contact-sidebar {
        margin-top: 25px !important;
    }

    .sidebar-card {
        padding: 12px !important;
        margin-bottom: 15px !important;
        border-radius: 12px !important;
    }

    .card-header {
        margin-bottom: 12px !important;
    }

    .card-header i {
        font-size: 1.2rem !important;
    }

    .card-header h3 {
        font-size: 0.95rem !important;
    }

    .location-item {
        padding: 10px 0 !important;
    }

    .location-item h4 {
        font-size: 0.85rem !important;
    }

    .location-item p {
        font-size: 0.75rem !important;
    }

    .hours-item {
        padding: 8px 0 !important;
    }

    .hours-item .day,
    .hours-item .time {
        font-size: 0.8rem !important;
    }

    .status-badge {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }

    .social-links-grid {
        gap: 8px !important;
    }

    .social-link {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }

    /* Map */
    .map-section-advanced {
        margin-top: 25px !important;
    }

    .map-container iframe {
        height: 250px !important;
    }

    .map-info {
        padding: 15px !important;
    }

    .map-info h3 {
        font-size: 1rem !important;
    }

    .map-info p {
        font-size: 0.85rem !important;
    }

    .btn-directions {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
}

/* === Contact - Extra Small (480px) === */
@media (max-width: 480px) {
    .contact-hero-advanced {
        padding: 60px 10px 20px !important;
    }

    .contact-hero-advanced .hero-badge {
        width: 55px !important;
        height: 55px !important;
    }

    .contact-hero-advanced .hero-badge i {
        font-size: 1.3rem !important;
    }

    .contact-hero-advanced .hero-title .title-main {
        font-size: 1.2rem !important;
    }

    .contact-hero-advanced .hero-subtitle {
        font-size: 0.78rem !important;
    }

    .contact-hero-advanced .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .contact-hero-advanced .feature-item {
        padding: 4px 6px !important;
        font-size: 0.58rem !important;
        white-space: nowrap !important;
    }

    .form-header .form-title {
        font-size: 1rem !important;
    }

    .step-number {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.75rem !important;
    }

    .form-control-advanced,
    .select-advanced {
        padding: 8px !important;
    }

    .contact-item {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }

    .location-item h4 {
        font-size: 0.8rem !important;
    }

    .location-item p {
        font-size: 0.7rem !important;
    }

    .social-link {
        width: 35px !important;
        height: 35px !important;
    }

    .map-container iframe {
        height: 200px !important;
    }
}

/* ========================================
   MEDIA CENTER PAGE - صفحة المركز الإعلامي
   ======================================== */

/* === Media Center - Tablet (991px) === */
@media (max-width: 991px) {
    .media-hero {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }

    .media-hero .hero-title {
        font-size: 2rem !important;
    }

    .media-hero .hero-description {
        font-size: 1rem !important;
    }

    .media-hero .search-box {
        max-width: 100% !important;
    }

    .categories-section {
        padding: 30px 0 !important;
    }

    .categories-section .categories-wrapper {
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .categories-section .category-chip {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }

    .articles-section {
        padding: 40px 0 !important;
    }

    .articles-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .articles-grid {
        order: 1 !important;
        width: 100% !important;
    }

    .articles-sidebar {
        order: 2 !important;
        width: 100% !important;
        margin-top: 40px !important;
    }

    .articles-control-bar {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .articles-control-bar .sort-controls,
    .articles-control-bar .view-controls {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .article-card {
        flex-direction: column !important;
    }

    .article-card .article-image {
        width: 100% !important;
        height: 200px !important;
    }

    .article-card .article-content {
        padding: 20px !important;
    }

    .article-card .article-title {
        font-size: 1.1rem !important;
    }

    .article-card .article-excerpt {
        font-size: 0.9rem !important;
    }

    .sidebar-widget {
        padding: 20px !important;
    }

    .sidebar-widget .widget-title {
        font-size: 1.1rem !important;
    }

    .popular-article .article-title {
        font-size: 0.9rem !important;
    }

    .newsletter-widget .newsletter-input {
        width: 100% !important;
    }

    .pagination-wrapper {
        padding: 30px 0 !important;
    }

    .pagination .page-link {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
}

/* === Media Center - Mobile (768px) === */
@media (max-width: 768px) {
    .media-hero {
        padding: 80px 0 50px !important;
    }

    .media-hero .hero-title {
        font-size: 1.6rem !important;
    }

    .media-hero .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .media-hero .search-box {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .media-hero .search-box input {
        width: 100% !important;
        padding: 12px 15px !important;
    }

    .media-hero .search-box button {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Categories - Wrapped layout (NO horizontal scroll) */
    .categories-section {
        padding: 20px 0 !important;
        overflow-x: visible !important;
    }

    .categories-section .categories-wrapper {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0 15px !important;
        overflow-x: visible !important;
        gap: 8px !important;
    }

    .categories-section .category-chip {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 20px !important;
    }

    .categories-section .category-chip .count {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }

    .articles-section {
        padding: 30px 0 !important;
    }

    .articles-grid {
        gap: 20px !important;
    }

    .article-card .article-image {
        height: 180px !important;
    }

    .article-card .article-content {
        padding: 15px !important;
    }

    .article-card .article-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .article-card .article-excerpt {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .article-card .article-meta {
        font-size: 0.75rem !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .article-card .article-category {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }

    .article-card .read-more {
        font-size: 0.85rem !important;
        padding: 8px 15px !important;
    }

    .sidebar-widget {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .sidebar-widget .widget-title {
        font-size: 1rem !important;
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
    }

    .popular-article {
        padding: 10px 0 !important;
    }

    .popular-article .article-thumb {
        width: 60px !important;
        height: 60px !important;
    }

    .popular-article .article-title {
        font-size: 0.85rem !important;
    }

    .popular-article .article-date {
        font-size: 0.7rem !important;
    }

    .category-list .category-item {
        padding: 8px 0 !important;
        font-size: 0.85rem !important;
    }

    .newsletter-widget .newsletter-text {
        font-size: 0.85rem !important;
    }

    .newsletter-widget .newsletter-input {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    .newsletter-widget .newsletter-btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    .pagination .page-link {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }
}

/* === Media Center - Small Mobile (575px) === */
@media (max-width: 575px) {
    .media-hero {
        padding: 70px 0 40px !important;
    }

    .media-hero .hero-title {
        font-size: 1.4rem !important;
    }

    .media-hero .hero-description {
        font-size: 0.85rem !important;
    }

    .media-hero .search-box input {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .media-hero .search-box button {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    /* Categories - Continue wrapping */
    .categories-section {
        padding: 15px 0 !important;
    }

    .categories-section .categories-wrapper {
        gap: 6px !important;
    }

    .categories-section .category-chip {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }

    .categories-section .category-chip .count {
        padding: 1px 4px !important;
        font-size: 0.55rem !important;
    }

    .articles-section {
        padding: 25px 0 !important;
    }

    .articles-control-bar {
        padding: 10px !important;
    }

    .articles-control-bar .sort-select {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    .article-card .article-image {
        height: 160px !important;
    }

    .article-card .article-content {
        padding: 12px !important;
    }

    .article-card .article-title {
        font-size: 0.95rem !important;
    }

    .article-card .article-excerpt {
        font-size: 0.8rem !important;
    }

    .article-card .read-more {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .sidebar-widget {
        padding: 12px !important;
    }

    .sidebar-widget .widget-title {
        font-size: 0.95rem !important;
    }

    .popular-article .article-thumb {
        width: 50px !important;
        height: 50px !important;
    }

    .popular-article .article-title {
        font-size: 0.8rem !important;
    }

    .pagination-wrapper {
        padding: 20px 0 !important;
    }

    .pagination {
        gap: 5px !important;
    }

    .pagination .page-link {
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* === Media Center - Extra Small (480px) === */
@media (max-width: 480px) {
    .media-hero .hero-title {
        font-size: 1.2rem !important;
    }

    .media-hero .hero-description {
        font-size: 0.75rem !important;
    }

    /* Categories - Continue wrapping */
    .categories-section {
        padding: 12px 0 !important;
    }

    .categories-section .categories-wrapper {
        gap: 5px !important;
    }

    .categories-section .category-chip {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
        gap: 4px !important;
    }

    .categories-section .category-chip i {
        font-size: 0.7rem !important;
    }

    .article-card .article-image {
        height: 140px !important;
    }

    .article-card .article-title {
        font-size: 0.9rem !important;
    }

    .article-card .article-excerpt {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .article-card .article-meta {
        font-size: 0.7rem !important;
    }

    .article-card .read-more {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }

    .sidebar-widget {
        padding: 10px !important;
    }

    .popular-article .article-thumb {
        width: 45px !important;
        height: 45px !important;
    }

    .popular-article .article-title {
        font-size: 0.75rem !important;
    }

    .newsletter-widget .newsletter-input {
        padding: 8px !important;
        font-size: 0.85rem !important;
    }

    .newsletter-widget .newsletter-btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    .pagination .page-link {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
    }
}

/* ========================================
   ARTICLE PAGE - صفحة المقال
   ======================================== */

/* === Article - Tablet (991px) === */
@media (max-width: 991px) {
    .article-hero,
    .article-header,
    .article-header-section {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }

    .article-breadcrumb {
        padding: 100px 0 12px !important;
        font-size: 0.9rem !important;
    }

    .article-breadcrumb .breadcrumb-item {
        font-size: 0.85rem !important;
    }

    .article-header .article-category {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }

    .article-header .article-title {
        font-size: 1.8rem !important;
    }

    .article-header .article-meta {
        flex-wrap: wrap !important;
        gap: 15px !important;
        font-size: 0.85rem !important;
    }

    .article-featured-image {
        margin: 30px 0 !important;
        border-radius: 15px !important;
    }

    .article-featured-image img {
        max-height: 350px !important;
    }

    .article-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .article-main-content,
    .article-main {
        order: 1 !important;
        width: 100% !important;
    }

    .article-sidebar {
        order: 2 !important;
        width: 100% !important;
        margin-top: 40px !important;
    }

    .article-content,
    .article-body {
        padding: 30px !important;
    }

    .article-content h2,
    .article-body h2 {
        font-size: 1.4rem !important;
    }

    .article-content h3,
    .article-body h3 {
        font-size: 1.2rem !important;
    }

    .article-content p,
    .article-body p {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }

    .article-content blockquote,
    .article-body blockquote {
        padding: 20px 25px !important;
        font-size: 1.05rem !important;
    }

    .article-content ul,
    .article-body ul,
    .article-content ol,
    .article-body ol {
        padding-right: 20px !important;
    }

    .article-content li,
    .article-body li {
        font-size: 0.95rem !important;
    }

    /* Table overflow handling - جداول بعرض الشاشة */
    .article-content table,
    .article-body table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    .article-content th,
    .article-content td,
    .article-body th,
    .article-body td {
        padding: 8px !important;
        font-size: 0.8rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .article-tags {
        gap: 8px !important;
    }

    .article-tags .tag {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }

    .article-share {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .article-share .share-btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }

    .author-box {
        padding: 25px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .author-box .author-avatar {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 15px !important;
    }

    .author-box .author-name {
        font-size: 1.1rem !important;
    }

    .author-box .author-bio {
        font-size: 0.9rem !important;
    }

    .toc-widget {
        padding: 20px !important;
    }

    .toc-widget .toc-title {
        font-size: 1.1rem !important;
    }

    .toc-widget .toc-list a {
        font-size: 0.85rem !important;
        padding: 8px 0 !important;
    }

    .related-articles-section {
        padding: 40px 0 !important;
    }

    .related-articles-section .section-title {
        font-size: 1.5rem !important;
    }

    .related-articles-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .related-article-card .article-title {
        font-size: 1rem !important;
    }
}

/* === Article - Mobile (768px) === */
@media (max-width: 768px) {
    .article-hero,
    .article-header,
    .article-header-section {
        padding: 80px 0 50px !important;
    }

    .article-breadcrumb {
        padding: 90px 0 10px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .article-breadcrumb .breadcrumb-item {
        font-size: 0.8rem !important;
    }

    .article-header .article-category {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    .article-header .article-title {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }

    .article-header .article-meta {
        gap: 10px !important;
        font-size: 0.8rem !important;
    }

    .article-header .article-meta span {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .article-featured-image {
        margin: 20px 0 !important;
        border-radius: 10px !important;
    }

    .article-featured-image img {
        max-height: 280px !important;
    }

    .article-content,
    .article-body {
        padding: 20px !important;
    }

    .article-content h2,
    .article-body h2 {
        font-size: 1.25rem !important;
        margin-top: 25px !important;
    }

    .article-content h3,
    .article-body h3 {
        font-size: 1.1rem !important;
    }

    .article-content p,
    .article-body p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }

    .article-content blockquote,
    .article-body blockquote {
        padding: 15px 20px !important;
        font-size: 1rem !important;
        margin: 20px 0 !important;
    }

    .article-content ul,
    .article-body ul,
    .article-content ol,
    .article-body ol {
        padding-right: 15px !important;
    }

    .article-content li,
    .article-body li {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .article-content img,
    .article-body img {
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    .article-tags {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .article-tags .tag {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    .article-share {
        justify-content: center !important;
    }

    .article-share .share-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .author-box {
        padding: 20px !important;
    }

    .author-box .author-avatar {
        width: 70px !important;
        height: 70px !important;
    }

    .author-box .author-name {
        font-size: 1rem !important;
    }

    .author-box .author-bio {
        font-size: 0.85rem !important;
    }

    .toc-widget {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .toc-widget .toc-title {
        font-size: 1rem !important;
    }

    .toc-widget .toc-list a {
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
    }

    .related-articles-section {
        padding: 30px 0 !important;
    }

    .related-articles-section .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 25px !important;
    }

    .related-articles-grid,
    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .related-article-card .article-image {
        height: 180px !important;
    }

    .related-article-card .article-title {
        font-size: 0.95rem !important;
    }

    .related-article-card .article-date {
        font-size: 0.75rem !important;
    }
}

/* === Article - Small Mobile (575px) === */
@media (max-width: 575px) {
    .article-hero,
    .article-header,
    .article-header-section {
        padding: 70px 0 40px !important;
    }

    .article-breadcrumb .breadcrumb-item {
        font-size: 0.75rem !important;
    }

    .article-header .article-category {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }

    .article-header .article-title {
        font-size: 1.3rem !important;
    }

    .article-header .article-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        font-size: 0.75rem !important;
    }

    .article-featured-image img {
        max-height: 220px !important;
    }

    .article-content,
    .article-body {
        padding: 15px !important;
    }

    .article-content h2,
    .article-body h2 {
        font-size: 1.15rem !important;
    }

    .article-content h3,
    .article-body h3 {
        font-size: 1rem !important;
    }

    .article-content p,
    .article-body p {
        font-size: 0.9rem !important;
    }

    .article-content blockquote,
    .article-body blockquote {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }

    .article-content li,
    .article-body li {
        font-size: 0.85rem !important;
    }

    .article-tags .tag {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }

    .article-share .share-btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .author-box {
        padding: 15px !important;
    }

    .author-box .author-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .author-box .author-name {
        font-size: 0.95rem !important;
    }

    .author-box .author-bio {
        font-size: 0.8rem !important;
    }

    .toc-widget {
        padding: 12px !important;
    }

    .toc-widget .toc-title {
        font-size: 0.95rem !important;
    }

    .toc-widget .toc-list a {
        font-size: 0.75rem !important;
    }

    .related-articles-section {
        padding: 25px 0 !important;
    }

    .related-articles-section .section-title {
        font-size: 1.2rem !important;
    }

    .related-article-card .article-image {
        height: 160px !important;
    }

    .related-article-card .article-title {
        font-size: 0.9rem !important;
    }
}

/* === Article - Extra Small (480px) === */
@media (max-width: 480px) {
    .article-header .article-title {
        font-size: 1.15rem !important;
    }

    .article-header .article-meta {
        font-size: 0.7rem !important;
    }

    .article-featured-image img {
        max-height: 180px !important;
    }

    .article-content,
    .article-body {
        padding: 12px !important;
    }

    .article-content h2,
    .article-body h2 {
        font-size: 1.05rem !important;
    }

    .article-content h3,
    .article-body h3 {
        font-size: 0.95rem !important;
    }

    .article-content p,
    .article-body p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    .article-content blockquote,
    .article-body blockquote {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }

    .article-content li,
    .article-body li {
        font-size: 0.8rem !important;
    }

    .article-tags .tag {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }

    .article-share .share-btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .author-box .author-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    .author-box .author-name {
        font-size: 0.9rem !important;
    }

    .author-box .author-bio {
        font-size: 0.75rem !important;
    }

    .related-article-card .article-image {
        height: 140px !important;
    }

    .related-article-card .article-title {
        font-size: 0.85rem !important;
    }

    .related-article-card .article-date {
        font-size: 0.7rem !important;
    }
}

/* ========================================
   EXTRA SMALL PHONES (0 - 380px)
   iPhone SE, Galaxy S series, etc.
   ======================================== */
@media (max-width: 380px) {

    /* === Products Page - Extra Small === */
    .products-hero .hero-content {
        max-width: 95vw !important;
    }

    .btn-quote {
        font-size: 0.65rem !important;
        padding: 5px 8px !important;
    }

    .btn-details {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
    }

    .products-hero .search-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .products-hero .search-input {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }

    /* === Companies Page - Extra Small === */
    /* padding managed by companies.php inline styles */

    .companies-hero .hero-badge {
        width: 52px !important;
        height: 52px !important;
    }

    .companies-hero .hero-badge i {
        font-size: 22px !important;
    }

    .companies-hero .hero-features {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
    }

    .companies-hero .feature-item {
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }

    .company-card {
        min-height: 220px !important;
    }

    .company-logo {
        width: 48px !important;
        height: 48px !important;
    }

    .company-name {
        font-size: 0.82rem !important;
    }

    .company-description {
        font-size: 0.7rem !important;
    }

    /* === Company Detail - Extra Small === */
    .company-hero,
    body.company-page .company-hero {
        padding: 58px 0 28px !important;
    }

    .company-logo-wrapper {
        width: 80px !important;
        height: 80px !important;
    }

    .company-logo-wrapper .company-logo {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .company-hero .company-title {
        font-size: 1.15rem !important;
    }

    .gallery-thumb {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
    }

    .gallery-main img {
        height: 160px !important;
    }

    .feature-box {
        padding: 8px !important;
    }

    .feature-text h4 {
        font-size: 0.82rem !important;
    }

    .feature-text p {
        font-size: 0.7rem !important;
    }

    .service-item {
        padding: 12px 10px !important;
    }

    .service-item h3 {
        font-size: 0.85rem !important;
    }

    .service-item p {
        font-size: 0.7rem !important;
    }

    .service-features li {
        font-size: 0.65rem !important;
    }

    .stat-value {
        font-size: 1.3rem !important;
    }

    .stat-item .stat-label {
        font-size: 0.6rem !important;
    }

    /* === Gallery Page - Extra Small === */
    .filter-btn {
        font-size: 0.72rem !important;
    }

    /* === Contact Page - Extra Small === */
    .form-label {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }

    .contact-item {
        font-size: 0.8rem !important;
    }

    .form-header .form-title {
        font-size: 1.1rem !important;
    }

    .form-header .form-subtitle {
        font-size: 0.8rem !important;
    }
}
