* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            background: #fff;
            color: #1a1a2e;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        :root {
            --gold: #c98516;
            --dark: #1a1a2e;
            --gray: #2d2d44;
        }

        /* =========================================
           RTL SUPPORT
        ========================================= */
        [dir="rtl"] {
            text-align: right;
        }
        [dir="rtl"] .gold-line {
            margin-right: 0;
            margin-left: 0;
        }
        [dir="rtl"] .nav-menu .dropdown-menu {
            left: auto;
            right: 0;
        }
        [dir="rtl"] .nav-menu .dropdown-menu a {
            padding: 8px 18px;
        }
        [dir="rtl"] .expertise-cards {
            direction: ltr;
        }
        [dir="rtl"] .expertise-card .card-link {
            direction: rtl;
        }
        [dir="rtl"] .card-top {
            flex-direction: row-reverse;
        }

        @media (max-width: 850px) {
            [dir="rtl"] .nav-menu {
                transform: translateX(100%);
                left: auto;
                right: 0;
            }
            [dir="rtl"] .nav-menu.active {
                transform: translateX(0);
            }
            [dir="rtl"] .nav-menu .dropdown-menu a {
                padding: 8px 30px 8px 18px;
            }
            [dir="rtl"] .expertise-cards {
                direction: rtl;
            }
            [dir="rtl"] .expertise-card .card-link {
                direction: rtl;
            }
            [dir="rtl"] .card-top {
                flex-direction: row;
            }
        }

        /* =========================================
           NAVBAR
        ========================================= */

        .navbar {
            width: 100%;
            height: 74px;
            background: #fff;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1000;
            border-bottom: 1px solid #f0f0f0;
        }

        .nav-container {
            width: 100%;
            height: 100%;
            padding: 0 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* LOGO */
        .logo {
            display: flex;
            align-items: center;
            width: 220px;
            min-width: 170px;
            height: 100%;
            text-decoration: none;
        }
        .corexion-logo {
            display: block;
            width: 220px;
            height: 75px;
            object-fit: contain;
            object-position: left center;
        }

        /* NAV LINKS */
        .nav-menu {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 38px;
        }

        .nav-menu>li {
            position: relative;
        }

        .nav-menu a {
            position: relative;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .6px;
            color: #1a1a2e;
            white-space: nowrap;
            display: inline-block;
            padding-bottom: 4px;
        }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: .25s ease;
        }

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

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

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

        /* DROPDOWN */
        .dropdown-toggle {
            cursor: pointer;
            user-select: none;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            min-width: 180px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            padding: 8px 0;
            z-index: 200;
            margin-top: 6px;
        }

        .dropdown-menu.open {
            display: block;
        }

        .dropdown-menu li {
            list-style: none;
            padding: 0;
            border-bottom: none;
        }

        .dropdown-menu a {
            display: block;
            padding: 8px 18px;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .3px;
            color: #1a1a2e;
            transition: background 0.2s, color 0.2s;
        }

        .dropdown-menu a:hover {
            background: #f5f5f5;
            color: var(--gold);
        }

        .dropdown-menu a::after {
            display: none;
        }

        .dropdown-menu.wide {
            min-width: 200px;
        }

        /* =========================================
           MOBILE BUTTON
        ========================================= */

        .menu-button {
            display: none;
            border: 0;
            background: transparent;
            cursor: pointer;
            width: 34px;
            height: 34px;
            position: relative;
            z-index: 1200;
        }

        .menu-button span {
            display: block;
            width: 24px;
            height: 2px;
            background: #1a1a2e;
            margin: 5px auto;
            transition: transform .28s ease, opacity .2s ease;
        }

        .menu-button.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .menu-button.active span:nth-child(2) {
            opacity: 0;
        }
        .menu-button.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .nav-overlay {
            display: none;
            position: fixed;
            inset: 0;
            top: 70px;
            background: rgba(0, 0, 0, .35);
            z-index: 900;
            opacity: 0;
            transition: opacity .25s ease;
        }
        .nav-overlay.active {
            display: block;
            opacity: 1;
        }

        /* =========================================
           EXPERTISE HERO
        ========================================= */

        .expertise-hero {
            position: relative;
            width: 100%;
            min-height: calc(100vh - 74px);
            overflow: hidden;
            background: #eee;
        }

        /* BACKGROUND IMAGE */
        .expertise-background {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .expertise-background img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        /* OVERLAY */
        .expertise-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg,
                    rgba(0, 0, 0, 0) 40%,
                    rgba(0, 0, 0, 0.35) 100%);
            z-index: 1;
        }

        /* =========================================
           HERO CONTENT
        ========================================= */

        .expertise-content {
            position: relative;
            z-index: 2;
            padding: 48px 50px 0;
            max-width: 700px;
            color: #fff;
        }

        .expertise-content h1 {
            font-size: clamp(30px, 5vw, 50px);
            line-height: 1.03;
            font-weight: 300;
            letter-spacing: 2px;
            color: #fff;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
        }

        .gold-line {
            width: 30px;
            height: 3px;
            background: var(--gold);
            margin-top: 17px;
            margin-bottom: 14px;
        }

        .expertise-content p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.5;
            text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
        }

        /* =========================================
           EXPERTISE CARDS (حجم كبير)
        ========================================= */

        .expertise-cards {
            position: absolute;
            z-index: 5;
            left: 4%;
            bottom: 35px;
            width: 92%;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }

        /* CARD - الحجم الكبير */
        .expertise-card {
            position: relative;
            min-height: 300px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 6px;
            overflow: hidden;
            transition: .3s ease;
            box-shadow: none;
        }

        .expertise-card.card-1 {
            background-image: url('../../assets/images/444444444444455555555.gif');
        }

        .expertise-card.card-2 {
            background-image: url('../../assets/images/999999999999999999999.gif');
        }

        .expertise-card.card-3 {
            background-image: url('../../assets/images/666666666666666.gif');
        }

        .expertise-card:hover {
            transform: translateY(-5px);
        }

        .expertise-card .card-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        .expertise-card .card-link {
            position: relative;
            z-index: 2;
            display: block;
            width: 100%;
            height: 100%;
            min-height: 200px;
            padding: 35px 40px;
        }

        /* =========================================
           FOOTER (زي الأول بالظبط)
        ========================================= */

        .footer {
            background: #17181a;
            color: white;
            padding: 85px 85px 85px;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding-bottom: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .footer-logo-img {
            width: 180px;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .footer-right {
            display: flex;
            align-items: flex-start;
        }

        .footer-links-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px 70px;
        }

        .footer-links-grid a {
            color: #bcbcbc;
            font-size: 14px;
            text-decoration: none;
            transition: color 0.25s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .footer-links-grid a:hover {
            color: white;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 18px auto 0;
            display: flex;
            justify-content: space-between;
            color: #777777;
            font-size: 12px;
        }

        /* =========================================
           TABLET
        ========================================= */

        @media (max-width: 1100px) {
            .logo {
                width: 220px;
                min-width: 170px;
            }
            .corexion-logo {
                width: 220px;
                height: 75px;
            }
            .nav-menu {
                gap: 20px;
            }
            .expertise-content {
                padding-left: 35px;
            }
            .expertise-cards {
                left: 3%;
                width: 94%;
                gap: 20px;
            }
            .expertise-card .card-link {
                padding: 30px 35px;
            }
        }

        /* =========================================
           MOBILE
        ========================================= */

        @media (max-width: 850px) {
            .navbar {
                height: 70px;
            }
            .nav-container {
                padding: 0 20px;
            }
            .logo {
                width: 220px;
                min-width: 150px;
            }
            .corexion-logo {
                width: 220px;
                height: 75px;
            }

            /* MOBILE NAV */
            .nav-menu {
                position: fixed;
                top: 70px;
                right: 0;
                left: auto;
                width: min(78%, 340px);
                max-width: 340px;
                height: calc(100vh - 70px);
                background: #fff;
                flex-direction: column;
                align-items: stretch;
                padding: 10px 0 30px;
                gap: 0;
                transform: translateX(100%);
                transition: transform .3s ease;
                overflow-y: auto;
                box-shadow: -6px 0 24px rgba(0,0,0,.12);
                z-index: 950;
            }

            .nav-menu.active {
                transform: translateX(0);
            }

            .nav-menu>li {
                width: 100%;
                padding: 0;
                border-bottom: 1px solid #eee;
                display: block;
            }
            .nav-menu>li>a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                padding: 16px 25px;
                font-size: 13px;
                letter-spacing: .8px;
                color: #1a1a2e;
            }
            .nav-menu>li>a::after {
                display: none;
            }
            .nav-menu>li>a.active {
                background: #faf6ee;
            }

            .nav-menu .dropdown-toggle::before {
                content: "";
                width: 8px;
                height: 8px;
                border-right: 1.6px solid #999;
                border-bottom: 1.6px solid #999;
                transform: rotate(45deg);
                transition: transform .25s ease, border-color .25s ease;
                margin-left: 10px;
                flex-shrink: 0;
            }
            .nav-menu .dropdown-toggle.open::before {
                transform: rotate(-135deg);
                border-color: var(--gold);
            }

            .nav-menu .dropdown-menu {
                position: static;
                box-shadow: none;
                padding: 0;
                margin: 0;
                border-radius: 0;
                background: #faf8f4;
                display: none;
                max-height: 0;
                overflow: hidden;
                transition: max-height .3s ease;
            }
            .nav-menu .dropdown-menu.open {
                display: block;
                max-height: 600px;
            }
            .nav-menu .dropdown-menu li {
                padding: 0;
                border-bottom: 1px solid #efece4;
            }
            .nav-menu .dropdown-menu li:last-child {
                border-bottom: none;
            }
            .nav-menu .dropdown-menu a {
                padding: 12px 25px 12px 38px;
                font-size: 11.5px;
                font-weight: 600;
                color: #1a1a2e;
                position: relative;
            }
            .nav-menu .dropdown-menu a::before {
                content: "–";
                position: absolute;
                left: 25px;
                color: var(--gold);
            }
            .nav-menu .dropdown-menu a:hover,
            .nav-menu .dropdown-menu a.active {
                color: var(--gold);
                background: #f3ecdd;
            }

            body.nav-open {
                overflow: hidden;
            }

            .menu-button {
                display: block;
            }

            /* HERO */
            .expertise-hero {
                min-height: auto;
                padding-bottom: 30px;
            }
            .expertise-background {
                position: absolute;
                height: 100%;
            }
            .expertise-overlay {
                background: linear-gradient(180deg,
                        rgba(0, 0, 0, 0) 30%,
                        rgba(0, 0, 0, 0.6) 100%);
            }
            .expertise-content {
                padding: 50px 25px 280px;
                max-width: 100%;
            }
            .expertise-content h1 {
                font-size: clamp(43px, 11vw, 65px);
            }

            /* CARDS – vertical مع حجم كبير */
            .expertise-cards {
                position: relative;
                left: auto;
                bottom: auto;
                width: calc(100% - 40px);
                margin: -250px auto 0;
                display: flex;
                flex-direction: column;
                gap: 18px;
            }
            
            .expertise-card {
                min-height: 420px;
            }

            .expertise-card .card-link {
                min-height: 420px;
                padding: 30px 35px;
            }

            /* FOOTER RESPONSIVE */
            .footer {
                padding: 40px 25px 20px;
            }

            .footer-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 24px;
            }

            .footer-links-grid {
                gap: 10px 30px;
            }

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

        @media (max-width: 500px) {
            .logo {
                width: 220px;
                min-width: 150px;
            }
            .corexion-logo {
                width: 220px;
                height: 66px;
            }
            .expertise-content {
                padding-left: 22px;
                padding-right: 22px;
            }
            .expertise-cards {
                width: calc(100% - 30px);
            }

            .expertise-card {
                min-height: 380px;
            }

            .expertise-card .card-link {
                min-height: 380px;
                padding: 25px 30px;
            }

            .footer-links-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px 20px;
            }

            .footer-links-grid a {
                font-size: 10px;
            }

            .footer-logo-img {
                width: 140px;
            }
        }

        /* override for RTL on mobile */
        [dir="rtl"] .nav-menu .dropdown-menu a::before {
            content: "–";
            left: auto;
            right: 25px;
        }
        [dir="rtl"] .nav-menu .dropdown-menu a {
            padding: 12px 38px 12px 25px;
        }
        @media (max-width: 850px) {
            [dir="rtl"] .nav-menu .dropdown-menu a {
                padding: 12px 38px 12px 25px;
            }
            [dir="rtl"] .nav-menu .dropdown-toggle::before {
                margin-left: 0;
                margin-right: 10px;
            }
        }
