/* =========================================
       BASE & RESET
    ========================================== */
    :root{
        --bg:#f7f5f1;
        --ink:#1a1a2e;
        --gray:#2d2d44;
        --gray-light:#c9c6c0;
        --amber:#c98516;
        --amber-dark:#a5762b;
        --line:#e1ded6;
    }
    *{box-sizing:border-box;margin:0;padding:0;}
    body{
        font-family:'Inter',Arial,sans-serif;
        background:var(--bg);
        color:var(--ink);
        -webkit-font-smoothing:antialiased;
    }

    /* =========================================
       RTL SUPPORT
    ========================================== */
    [dir="rtl"] {
        text-align: right;
    }
    [dir="rtl"] .hero .rule {
        margin-left: 0;
        margin-right: 0;
    }
    [dir="rtl"] .cta svg {
        transform: rotate(180deg);
    }
    [dir="rtl"] .cta:hover svg {
        transform: rotate(180deg) translateX(4px);
    }
    [dir="rtl"] .nav-menu .dropdown-menu {
        left: auto;
        right: 0;
    }
    [dir="rtl"] .nav-menu .dropdown-menu a {
        padding: 8px 18px;
    }
    [dir="rtl"] .feature {
        border-right: none;
        border-left: 1px solid var(--line);
    }
    [dir="rtl"] .feature:last-child {
        border-left: none;
    }
    @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"] .feature {
            border-left: none;
        }
    }
    @media (max-width: 768px) {
        [dir="rtl"] .feature {
            border-left: none;
        }
    }

    /* =========================================
       NAVBAR (من COREXION - بنفس التصميم)
    ========================================== */
    .navbar {
        height: 58px;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1000;
    }
    .nav-container {
        width: 100%;
        height: 100%;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
    }
    /* LOGO */
    .logo {
        display: flex;
        align-items: center;
        width: 220px;
        min-width: 170px;
        height: 100%;
        text-decoration: none;
    }
    .corexion-logo {
        display: block;
        width: 220px;
        height: 66px;
        object-fit: contain;
        object-position: left center;
    }

    /* NAV LINKS */
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 36px;
        list-style: none;
    }
    .nav-menu > li { position: relative; }
    .nav-menu a {
        position: relative;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .5px;
        color: #1a1a2e;
        display: inline-block;
        padding-bottom: 4px;
        text-decoration: none;
    }
    .nav-menu a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 2px;
        background: var(--amber);
        transition: .25s;
    }
    .nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
    .nav-menu a.active { color: var(--amber); }
    .nav-menu a:hover { color: var(--amber); }
    /* 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,.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 .2s, color .2s;
    }
    .dropdown-menu a:hover { background: #f5f5f5; color: var(--amber); }
    .dropdown-menu a::after { display: none; }
    .dropdown-menu.wide { min-width: 200px; }
    /* MOBILE BUTTON */
    .menu-button {
        display: none;
        background: none;
        border: 0;
        cursor: pointer;
        width: 34px;
        height: 34px;
        position: relative;
        z-index: 1200;
    }
    .menu-button span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        background: #1a1a2e;
        transition: transform .28s ease, opacity .2s ease, background .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; }

    /* =========================================
       PAGE CONTENT (Schedule Management)
    ========================================== */
    .page-content {
        max-width: 1400px;
        margin: 0 auto;
        background: var(--bg);
    }
    .top-section {
        display: grid;
        grid-template-columns: 33% 1fr;
    }
    .hero {
        padding: 44px 40px 40px 48px;
        border-right: 1px solid var(--line);
    }
    .eyebrow {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .14em;
        color: var(--amber);
        text-transform: uppercase;
        margin-bottom: 30px;
    }
    .eyebrow .sep { color: var(--gray-light); margin: 0 6px; font-weight: 400; }
    .eyebrow .plain { color: var(--gray); }
    h1 {
        font-size: 42px;
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.01em;
        color: #1a1a2e;
        margin-bottom: 24px;
    }
    .rule { width: 46px; height: 3px; background: var(--amber); margin-bottom: 22px; }
    .hero p {
        font-size: 15px;
        line-height: 1.55;
        color: var(--gray);
        max-width: 230px;
        margin-bottom: 26px;
    }
    .cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .02em;
        color: var(--amber-dark);
        text-decoration: none;
    }
    .cta svg { transition: transform .2s ease; }
    .cta:hover svg { transform: translateX(4px); }
    .cta:hover { color: var(--amber); }

    /* SCENE IMAGE */
    .scene-wrap { 
        position: relative; 
        overflow: hidden; 
        background: #c9c5bb;
        min-height: 380px;
    }
    .scene-wrap img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    /* FEATURES ROW */
    .features {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid var(--line);
    }
    .feature {
        padding: 38px 24px;
        border-right: 1px solid var(--line);
    }
    .feature:last-child { border-right: none; }
    .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1.4px solid var(--amber);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
        overflow: hidden;
    }
    .feature-icon img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        display: block;
    }
    .feature h3 {
        font-size: 13.5px;
        font-weight: 800;
        letter-spacing: .02em;
        text-transform: uppercase;
        margin-bottom: 8px;
        color: #1a1a2e;
        line-height: 1.3;
    }
    .feature .mini-rule { width: 22px; height: 2px; background: var(--amber); margin-bottom: 12px; }
    .feature p {
        font-size: 12.5px;
        line-height: 1.6;
        color: var(--gray);
        max-width: 200px;
    }

    /* =========================================
       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;
    }

    /* =========================================
       RESPONSIVE
    ========================================== */
    @media (max-width: 1100px) {
        .logo { width: 220px; min-width: 170px; }
        .corexion-logo { width: 220px; height: 75px; }
        .nav-menu { gap: 20px; }
        .feature { padding: 18px 14px; }
    }
    @media (max-width: 980px) {
        .top-section { grid-template-columns: 1fr; }
        .hero { border-right: none; border-bottom: 1px solid var(--line); }
        .features { grid-template-columns: 1fr 1fr; }
        .feature { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    }
    @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(--amber);
        }

        .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(--amber);
        }
        .nav-menu .dropdown-menu a:hover,
        .nav-menu .dropdown-menu a.active { color: var(--amber); background: #f3ecdd; }

        body.nav-open { overflow: hidden; }

        .menu-button { display: block; }

        /* 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: 768px) {
        .features { grid-template-columns: 1fr; }
        .feature { border-right: none; }
    }
    @media (max-width: 500px) {
        .logo { width: 220px; min-width: 150px; }
        .corexion-logo { width: 220px; height: 66px; }
        .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"] .feature {
            border-left: none;
        }
    }
