        :root {
            --royal-navy: #050816;
            --royal-blue: #1d3557;
            --gold: #d4af37;
            --gold-soft: #f7e5a6;
            --ivory: #f8f7f3;
            --card-bg: #ffffff;
            --text-main: #111827;
        }

        * { scroll-behavior: smooth; }

        body {
            font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--ivory);
            color: var(--text-main);
        }

        /* ===== SCROLL ANIMATIONS ===== */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity .7s ease-out, transform .7s ease-out;
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes fadeUpHero {
            from { opacity: 0; transform: translateY(40px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .hero-inner-box {
            animation: fadeUpHero .9s ease-out both;
        }

        .card-plain,
        .card-top-band,
        .news-card,
        .trustee-card {
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .card-plain:hover,
        .card-top-band:hover,
        .news-card:hover,
        .trustee-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
            border-color: rgba(212, 175, 55, 0.7);
        }

        /* ===== TOP BRAND + NAV WRAPPER ===== */
        .top-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1040;
        }

        /* ===== BRAND BAR (GRADIENT) ===== */
        .brand-bar {
            background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 40%, #e5e7eb 100%);
            border-bottom: 1px solid rgba(148, 163, 184, 0.6);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
            color: #111827;
        }

        .brand-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            padding: .45rem 0;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: .6rem;
        }

        .brand-logo img {
            height: 82px;
            width: 82px;
            object-fit: contain;
            border-radius: 50%;
            background: #ffffff;
            padding: 6px;
            border: 1px solid rgba(212, 175, 55, 0.9);
            box-shadow: 0 0 0 3px rgba(229, 231, 235, 0.9);
        }

        .brand-logo span {
            font-size: .9rem;
            color: #111827;
            font-weight: 500;
        }

        .brand-title-wrap { flex: 1; text-align: center; }

        .brand-title {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            padding: .55rem 2.3rem .5rem;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.7);
            box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);
        }

        .brand-main-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: .14em;
            text-transform: uppercase;
            text-align: center;
            color: #111827;
        }

        .brand-main-text span {
            background: linear-gradient(120deg, var(--gold), #b45309);
            -webkit-background-clip: text;
            color: transparent;
        }

        .brand-sub-text {
            font-size: .72rem;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: .16em;
        }

        .brand-lang { margin-top: .3rem; }

        .lang-switch {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .15rem .7rem;
            border-radius: 999px;
            border: 1px solid rgba(156, 163, 175, 0.9);
            background: #f9fafb;
            font-size: .75rem;
        }

        .lang-switch a {
            text-decoration: none;
            color: #374151;
            font-weight: 500;
        }

        .lang-switch a.active { color: var(--royal-blue); }

        .lang-switch span.sep { color: #9ca3af; }

        @media (max-width: 991.98px) {
            .brand-inner { flex-direction: column; }
            .brand-logo span { display: none; }
            .brand-title { padding-inline: 1.6rem; }
        }

        /* ===== NAVBAR ===== */
        .main-navbar {
            background: #020617;
            border-bottom: 1px solid rgba(31, 41, 55, 0.9);
        }

        .main-navbar .navbar-nav .nav-link {
            color: #e5e7eb !important;
            font-size: .9rem;
            font-weight: 500;
            font-size:13px;
        }

        .main-navbar .navbar-nav .nav-link:hover,
        .main-navbar .navbar-nav .nav-link.active {
            color: var(--gold-soft) !important;
        }

        .btn-nav-cta {
            border-radius: 999px;
            padding: .35rem 1.4rem;
            font-size: .70rem;
            font-weight: 600;
            border: 1px solid var(--gold);
            color: #0b1020;
            background: linear-gradient(135deg, var(--gold), #facc15);
            box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
            white-space: nowrap;
        }
        
              .btn-outline-light {
        
            font-size: .70rem;
            font-weight: 600;

        }

        .top-wrapper-placeholder { height: 140px; }
        @media (max-width: 991.98px) { .top-wrapper-placeholder { height: 155px; } }

        /* ===== HERO ===== */
        .hero {
            position: relative;
            min-height: 72vh;
            display: flex;
            align-items: center;
            overflow: hidden;
            color: #ffffff;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            background-image: url('https://www.aaru.edu.jo//media/cg3bqpam/aarubanner.png');
            background-size: cover;
            background-position: center;
            z-index: -2;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(to bottom, rgba(5, 8, 22, 0.65), rgba(5, 8, 22, 0.9)),
                radial-gradient(circle at top left, rgba(15,23,42,0.5), transparent 55%);
            z-index: -1;
        }

        .hero-inner-box {
            max-width: 860px;
            padding: 2.5rem 2.8rem;
            border-radius: 22px;
            background: radial-gradient(circle at top, rgba(15,23,42,0.94), rgba(11,15,25,0.98));
            border: 1px solid rgba(148, 163, 184, 0.6);
            box-shadow: 0 24px 62px rgba(0,0,0,0.85);
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .26rem .95rem;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 500;
            color: #e5e7eb;
            background: rgba(15,23,42,0.8);
            border: 1px solid rgba(209,213,219,0.6);
            margin-bottom: 1rem;
        }

        .hero-badge i { color: var(--gold-soft); }

        .hero-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 3vw, 2.6rem);
            font-weight: 600;
            line-height: 1.25;
            margin-bottom: .7rem;
        }

        .hero-title span {
            background: linear-gradient(120deg, var(--gold-soft), #facc15);
            -webkit-background-clip: text;
            color: transparent;
        }

        .hero-subtitle {
            font-size: 1rem;
            color: #d1d5db;
            max-width: 650px;
        }

        .hero-meta {
            margin-top: 1.3rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            font-size: .85rem;
            opacity: .9;
        }

        .hero-meta strong { font-weight: 600; }

        @media (max-width: 767.98px) {
            .hero-inner-box { padding: 1.7rem 1.9rem; }
        }

        /* ===== SECTIONS ===== */
        section { padding-top: 80px; padding-bottom: 80px; }

        .anchor-offset { scroll-margin-top: 150px; }

        .section-header {
            text-align: center;
            margin-bottom: 2.2rem;
        }

        .section-eyebrow {
            text-transform: uppercase;
            letter-spacing: .25em;
            font-size: .7rem;
            color: #6b7280;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.9rem;
            font-weight: 600;
            color: #111827;
        }

        .section-divider {
            width: 90px;
            height: 3px;
            border-radius: 999px;
            margin: .9rem auto 0;
            background: linear-gradient(90deg, var(--gold), #facc15);
        }

        .section-desc {
            max-width: 780px;
            margin: 1.1rem auto 0;
            color: #4b5563;
            font-size: .98rem;
        }

        /* Dark sections */
        .section-alt {
            background: radial-gradient(circle at top, #020617, #020617 40%, #020617 100%);
            color: #e5e7eb;
        }
        .section-alt .section-title { color: #ffffff; }
        .section-alt .section-eyebrow { color: var(--gold-soft); }
        .section-alt .section-desc { color: #e5e7eb; }

        /* Contact background like header */
        .section-contact {
            background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 40%, #e5e7eb 100%);
            color: #111827;
        }

        /* ===== CARD STYLES ===== */
        .card-plain {
            border-radius: 18px;
            background: var(--card-bg);
            border: 1px solid rgba(209, 213, 219, 0.9);
            box-shadow: 0 10px 24px rgba(15,23,42,0.06);
            padding: 1.6rem 1.7rem;
            height: 100%;
        }

        .section-alt .card-plain {
            background: #020617;
            border-color: #111827;
            color: #e5e7eb;
        }
        .section-alt .card-plain h5,
        .section-alt .card-plain h6 { color: #f9fafb; }

        .card-accent-left {
            position: relative;
            padding-left: 1.4rem;
        }

        .card-accent-left::before {
            content: "";
            position: absolute;
            left: 0;
            top: 1.1rem;
            bottom: 1.1rem;
            width: 4px;
            border-radius: 999px;
            background: linear-gradient(180deg, var(--gold), #facc15);
        }

        .card-top-band {
            border-radius: 18px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid rgba(209,213,219,0.9);
            box-shadow: 0 10px 24px rgba(15,23,42,0.06);
            height: 100%;
        }

        .section-alt .card-top-band {
            background: #020617;
            border-color: #111827;
        }

        .card-top-band-header {
            padding: .6rem 1.2rem;
            background: #1d3557;
            color: #e5e7eb;
            font-size: .85rem;
            font-weight: 500;
        }

        .card-top-band-body {
            padding: 1.5rem 1.6rem 1.4rem;
        }

        .badge-sub {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .16rem .7rem;
            border-radius: 999px;
            border: 1px solid rgba(209,213,219,0.9);
            font-size: .7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: .16em;
            color: #374151;
            background: #f9fafb;
        }
        .badge-sub i { color: var(--gold); }

        .award-item-title {
            font-weight: 600;
            font-size: 1rem;
            color: #111827;
        }
        .section-alt .award-item-title { color: #f9fafb; }

        .award-amount {
            color: var(--royal-blue);
            font-weight: 600;
            font-size: .95rem;
        }
        .section-alt .award-amount { color: var(--gold-soft); }

        /* ===== NEWS CARDS ===== */
        .news-card {
            border-radius: 18px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid rgba(209,213,219,0.9);
            box-shadow: 0 12px 28px rgba(15,23,42,0.08);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-card-img {
            height: 170px;
            background-size: cover;
            background-position: center;
        }

        .news-card-body {
            padding: 1.4rem 1.5rem 1.2rem;
            flex: 1;
        }

        .news-card-meta {
            font-size: .8rem;
            text-transform: uppercase;
            letter-spacing: .16em;
            color: #6b7280;
            font-weight: 600;
        }

        .news-card-meta span { color: #1d4ed8; }

        .news-card-title {
            font-weight: 600;
            margin-top: .45rem;
            margin-bottom: .45rem;
            color: #111827;
        }

        .news-card-footer {
            padding: 0 1.5rem 1.2rem;
            font-size: .85rem;
        }

        /* ===== TRUSTEES ===== */
        .trustee-card {
            border-radius: 18px;
            background: #ffffff;
            border: 1px solid rgba(209,213,219,0.9);
            box-shadow: 0 8px 22px rgba(15,23,42,0.06);
            padding: 1.1rem 1.1rem 1.35rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100%;
        }

        .trustee-photo {
            width: 100%;
            max-width: 230px;
            height: auto;
            border-radius: 14px;
            object-fit: cover;
            margin-bottom: .75rem;
            margin: auto;
            display: block;
        }

        .trustee-name {
            font-weight: 600;
            color: #1c2634;
            font-size: .95rem;
            text-align: center;
        }

        .trustee-role {
            font-size: .8rem;
            color: #556080;
            text-align: center;
        }

        /* ===== PREVIOUS EDITIONS ===== */
        .timeline {
            border-left: 2px solid rgba(156, 163, 175, 0.8);
            margin-left: .6rem;
            padding-left: 1.2rem;
        }

        .timeline-item {
            position: relative;
            padding-bottom: 1.4rem;
        }

        .timeline-item::before {
            content: "";
            position: absolute;
            left: -1.3rem;
            top: .2rem;
            width: 11px;
            height: 11px;
            border-radius: 999px;
            background: #fff;
            border: 2px solid var(--gold);
        }

        .timeline-year {
            font-weight: 600;
            color: #111827;
            font-size: .95rem;
        }
        .section-alt .timeline-year { color: #f9fafb; }

        .timeline-text {
            font-size: .9rem;
            color: #4b5563;
        }
        .section-alt .timeline-text { color: #e5e7eb; }

        .timeline-link { font-size: .85rem; }

        .timeline-link a {
            color: #1d4ed8;
            text-decoration: none;
        }
        .timeline-link a:hover {
            color: #2563eb;
            text-decoration: underline;
        }
        .section-alt .timeline-link a {
            color: #93c5fd;
        }
        .section-alt .timeline-link a:hover {
            color: #bfdbfe;
        }

        /* ===== CONTACT ===== */
        .contact-card {
            border-radius: 20px;
            background: #ffffff;
            border: 1px solid rgba(209,213,219,0.9);
            box-shadow: 0 10px 26px rgba(15,23,42,0.08);
            padding: 1.8rem 1.9rem;
            height: 100%;
        }

        .contact-icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 999px;
            background: #eef2ff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #1d4ed8;
            margin-right: .6rem;
        }

        /* ===== HOW TO APPLY – TABS ===== */
        .apply-tabs-shell {
            border-radius: 26px;
            background: radial-gradient(circle at top left, #020617, #020617 40%, #020617 100%);
            padding: 2rem 2.2rem 1.5rem;
            color: #e5e7eb;
            box-shadow: 0 22px 50px rgba(0,0,0,0.65);
            border: 1px solid #111827;
            margin-top: 1.5rem;
        }

        .apply-tabs-nav {
            border-bottom: 1px solid rgba(148,163,184,0.5);
            margin-bottom: 1.4rem;
            gap: .4rem;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: .35rem;
        }

        .apply-tabs-nav .nav-link {
            border-radius: 999px;
            font-size: .85rem;
            font-weight: 500;
            color: #e5e7eb;
            background: transparent;
            border: 1px solid transparent;
            padding: .35rem .95rem;
            white-space: nowrap;
        }

        .apply-tabs-nav .nav-link i {
            color: #facc15;
            margin-right: .35rem;
        }

        .apply-tabs-nav .nav-link.active {
            background: linear-gradient(135deg, #facc15, #d4af37);
            color: #111827;
            border-color: rgba(250,204,21,0.9);
            box-shadow: 0 10px 22px rgba(250,204,21,0.35);
        }

        .apply-tabs-nav .nav-link.active i {
            color: #92400e;
        }

        .apply-tab-panel {
            min-height: 160px;
            font-size: .9rem;
        }

        .apply-tab-panel h6 {
            font-size: .95rem;
            font-weight: 600;
            color: #f9fafb;
            margin-bottom: .65rem;
        }

        .apply-tab-panel ul,
        .apply-tab-panel ol {
            padding-left: 1.1rem;
        }

        .apply-tab-panel li {
            margin-bottom: .3rem;
            color: #e5e7eb;
        }

        .apply-cta-strip {
            margin-top: 1.6rem;
            padding-top: 1rem;
            border-top: 1px dashed rgba(148,163,184,0.8);
            display: flex;
            flex-direction: column;
            gap: .7rem;
        }

        .apply-cta-text {
            font-size: .9rem;
            color: #e5e7eb;
        }

        .apply-cta-text strong {
            color: #facc15;
        }

        .apply-cta-btn {
            align-self: flex-start;
        }

        /* ===== FOOTER ===== */
        footer {
            border-top: 1px solid rgba(209, 213, 219, 0.9);
            background: #020617;
            padding-top: 24px;
            padding-bottom: 20px;
            font-size: .85rem;
            color: #9ca3af;
        }

        .social-link {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,0.9);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #e5e7eb;
            margin-left: .3rem;
            background: #111827;
        }

        .social-link:hover {
            background: linear-gradient(135deg, #e5e7eb, #f9fafb);
            color: #111827;
        }
        
        
        
        /* =========================================
   ARABIC / RTL OVERRIDES
   Applied when <html dir="rtl">
   ========================================= */

/* Use an Arabic-friendly font when in Arabic mode */
html[dir="rtl"] body {
    font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    text-align: right;
}



html[dir="rtl"] .brand-logo img {
    margin-left: 0;
    margin-right: 0;
}

/* Keep center title centered but respect RTL text */
html[dir="rtl"] .brand-title-wrap {
    text-align: center;
}

/* Language switch small tweak */
html[dir="rtl"] .lang-switch {
    direction: ltr; /* EN | عربي looks natural */
}

/* Navbar alignment in RTL */
html[dir="rtl"] .main-navbar .navbar-nav {
    margin-left: 0;
    margin-right: auto;
}

/* Hero text alignment */
html[dir="rtl"] .hero-inner-box {
    text-align: right;
}

html[dir="rtl"] .hero-meta {
    justify-content: flex-start;
}

/* Section headers RTL */
html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .section-desc {
    text-align: center;
}

/* Generic text blocks inside cards in RTL */
html[dir="rtl"] .card-plain,
html[dir="rtl"] .card-top-band-body,
html[dir="rtl"] .news-card-body,
html[dir="rtl"] .contact-card {
    text-align: right;
}

/* Accent line on left cards → move to the right in Arabic */
html[dir="rtl"] .card-accent-left {
    padding-left: 0;
    padding-right: 1.4rem;
}

html[dir="rtl"] .card-accent-left::before {
    left: auto;
    right: 0;
}

/* Timeline → flip to right side */
html[dir="rtl"] .timeline {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    border-right: 2px solid rgba(156, 163, 175, 0.8);
    margin-right: .6rem;
    padding-right: 1.2rem;
}

html[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -1.3rem;
}

html[dir="rtl"] .timeline-year,
html[dir="rtl"] .timeline-text {
    text-align: right;
}

/* Contact icons: move bubble to the left side of text in RTL */
html[dir="rtl"] .contact-icon-circle {
    margin-right: 0;
    margin-left: .6rem;
}

/* Tabs (How to Apply): keep pills scrollable but RTL text */
html[dir="rtl"] .apply-tabs-nav {
    direction: rtl;
}

html[dir="rtl"] .apply-tabs-nav .nav-link i {
    margin-right: 0;
    margin-left: .35rem;
}

/* Apply section body text */
html[dir="rtl"] .apply-tab-panel {
    text-align: right;
}

/* Trustees cards */
html[dir="rtl"] .trustee-card {
    text-align: center;
}

/* Footer: flip social icons side */
html[dir="rtl"] footer .social-link {
    margin-left: 0;
    margin-right: .3rem;
}
