/* ==========================================================================
   المركز الليبي للاستشارات والتنمية البشرية - الملف البرمجي للأنماط العالمية (Global Stylesheet)
   ========================================================================== */

/* ----------------------------------------------------
   1. نظام التصميم والمتغيرات (Design System & Tokens)
   ---------------------------------------------------- */
:root {
    --navy-dark: #0A0F1D;
    --navy-corporate: #141F36;
    --navy-light: #1E2D4A;
    --blue-identity: #344E97;
    --gold-premium: #B68D2E;
    --gold-glow: #D4AF37;
    --cream-clean: #FDFBF7;
    --text-main: #1A222E;
    --text-muted: #475569;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-border: rgba(182, 141, 46, 0.15);
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-scrolled-bg: rgba(255, 255, 255, 0.90);
    --header-shadow: 0 10px 30px rgba(11, 18, 31, 0.04);
    --header-scrolled-shadow: 0 10px 35px rgba(11, 18, 31, 0.10);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-official: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: 'Almarai', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-scale: 1;
}

/* الوضع الليلي التنفيذي المظلم (Executive Dark Mode Tokens) */
:root[data-theme="dark"],
html[data-theme="dark"],
[data-theme="dark"] {
    --navy-dark: #050a14 !important;
    --navy-corporate: #0a1324;
    --navy-light: #122038 !important;
    --blue-identity: #3d5cb3 !important;
    --gold-premium: #c89d38 !important;
    --gold-glow: #e6c555 !important;
    --cream-clean: #070d18 !important;
    --bg-cream: #070d18 !important;
    --text-main: #e2e8f0 !important;
    --text-muted: #cbd5e1 !important;
    --white: #ffffff;
    --card-bg: #0d192e !important;
    --card-border: rgba(200, 157, 56, 0.24) !important;
    --header-bg: rgba(10, 19, 36, 0.96) !important;
    --header-scrolled-bg: rgba(10, 19, 36, 0.88) !important;
    --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    --header-scrolled-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
    --annual-ink: #f1f5f9 !important;
    --annual-muted: #cbd5e1 !important;
    --qs-ink: #f1f5f9 !important;
    --qs-muted: #cbd5e1 !important;
    --qs-surface: #0d192e !important;
    --qs-border: rgba(200, 157, 56, 0.24) !important;
}

/* درجات تكبير الخط لدعم سهولة الوصول (Accessibility Font Scaling) */
html[data-font-size="medium"] {
    font-size: 17px;
}
html[data-font-size="large"] {
    font-size: 18.5px;
}

/* وضع التباين العالي (High Contrast Mode - WCAG AAA) */
[data-contrast="high"] {
    --cream-clean: #000000 !important;
    --text-main: #ffffff !important;
    --text-muted: #f1f5f9 !important;
    --card-bg: #050505 !important;
    --card-border: #ffd700 !important;
    --navy-corporate: #000000 !important;
    --navy-dark: #000000 !important;
    --header-bg: #000000 !important;
    --header-scrolled-bg: #000000 !important;
    --gold-premium: #ffd700 !important;
    --gold-glow: #ffff00 !important;
}
[data-contrast="high"] a {
    color: #ffd700 !important;
    text-decoration: underline !important;
}
[data-contrast="high"] .structural-card,
[data-contrast="high"] .course-card,
[data-contrast="high"] .annual-plan-home-card {
    border: 2px solid #ffd700 !important;
}

/* تمييز الروابط (Highlight Links) */
[data-highlight-links="true"] a {
    text-decoration: underline !important;
    text-decoration-color: var(--gold-premium) !important;
    text-underline-offset: 4px !important;
    outline: 1.5px dashed var(--gold-premium) !important;
    outline-offset: 2px !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: hidden;
    max-width: 100vw;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* تركيز التصفح لدعم الوصول (Focus Rings) */
*:focus-visible {
    outline: 2px solid var(--gold-premium) !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}

body, button, input, select, textarea, optgroup {
    font-family: var(--font-body);
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-clean);
    color: var(--text-main);
    line-height: 1.85;
    overflow-x: hidden;
    position: relative;
}

p {
    font-family: var(--font-body);
    line-height: 1.85;
}

h1, h2, h3, h4, h5, h6, .brand-text-title, .ticker-title, .section-title, .hero-title, .card-title {
    font-family: var(--font-official);
}

/* ----------------------------------------------------
   1.1 منظومة الأزرار الموحدة (Unified Sovereign Button Tokens)
   ---------------------------------------------------- */
/* المستوى 1: الزر الرئيسي الذهبي الفاخر (Primary Gold) */
.btn-primary-gold,
.btn-premium,
.magnetic-btn:not(.btn-outline) {
    background: linear-gradient(135deg, #b68d2e 0%, #d4af37 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    padding: 12px 26px;
    border-radius: 8px;
    font-family: var(--font-official);
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(182, 141, 46, 0.28);
    transition: var(--transition-smooth);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn-primary-gold:hover,
.btn-premium:hover,
.magnetic-btn:not(.btn-outline):hover {
    transform: translateY(-2.5px);
    box-shadow: 0 10px 28px rgba(182, 141, 46, 0.45);
    filter: brightness(1.06);
    color: #ffffff !important;
}
.btn-primary-gold:active,
.btn-premium:active,
.magnetic-btn:not(.btn-outline):active {
    transform: translateY(0);
}

/* المستوى 2: الزر الثانوي الإطاري السيادي (Secondary Outline Navy) */
.btn-outline-navy,
.btn-navy,
.magnetic-btn.btn-outline {
    background: transparent !important;
    color: var(--navy-corporate) !important;
    border: 1.5px solid var(--navy-corporate) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-official);
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--transition-smooth);
    line-height: 1.5;
    white-space: nowrap;
}
.btn-outline-navy:hover,
.btn-navy:hover,
.magnetic-btn.btn-outline:hover {
    background: var(--navy-corporate) !important;
    color: #ffffff !important;
    transform: translateY(-2.5px);
    box-shadow: 0 8px 25px rgba(20, 31, 54, 0.22) !important;
}
.btn-outline-navy:active,
.btn-navy:active,
.magnetic-btn.btn-outline:active {
    transform: translateY(0);
}

/* التكيف للأزرار الإطارية داخل الخلفيات الداكنة والبانورامية */
.hero-digital-portal .btn-outline-navy,
.panoramic-hero .btn-outline-navy,
.news-hero-section .btn-outline-navy,
[data-theme="dark"] .btn-outline-navy,
.hero-digital-portal .magnetic-btn.btn-outline,
.panoramic-hero .magnetic-btn.btn-outline,
.news-hero-section .magnetic-btn.btn-outline {
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}
.hero-digital-portal .btn-outline-navy:hover,
.panoramic-hero .btn-outline-navy:hover,
.news-hero-section .btn-outline-navy:hover,
[data-theme="dark"] .btn-outline-navy:hover,
.hero-digital-portal .magnetic-btn.btn-outline:hover,
.panoramic-hero .magnetic-btn.btn-outline:hover,
.news-hero-section .magnetic-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--gold-glow) !important;
    color: var(--gold-glow) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25) !important;
}

/* المستوى 3: زر الإجراءات النصي المتفاعل (Text Action) */
.btn-text-action {
    background: transparent !important;
    border: none !important;
    color: var(--gold-premium) !important;
    padding: 8px 12px;
    font-family: var(--font-official);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1.5;
    border-radius: 4px;
}
.btn-text-action i {
    transition: transform 0.3s ease;
}
.btn-text-action:hover {
    color: var(--gold-glow) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
.btn-text-action:hover i {
    transform: translateX(-4px);
}
[dir="ltr"] .btn-text-action:hover i {
    transform: translateX(4px);
}
[data-theme="dark"] .btn-text-action {
    color: var(--gold-glow) !important;
}

/* ----------------------------------------------------
   2. شريط تقدم التمرير (Scroll Progress Bar)
   ---------------------------------------------------- */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-premium), var(--gold-glow));
    z-index: 999999;
    transition: width 0.1s ease;
}

/* ----------------------------------------------------
   3. شاشة التحميل (Preloader)
   ---------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--cream-clean);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-content { text-align: center; }
.loader-content img { height: 90px; margin-bottom: 20px; animation: pulseLogo 1.5s infinite alternate; }
.loader-spinner { width: 40px; height: 40px; border: 3px solid rgba(182, 141, 46, 0.2); border-top-color: var(--gold-premium); border-radius: 50%; animation: spin 1s linear infinite; margin: auto; }
@keyframes pulseLogo { 0% { transform: scale(0.95); opacity: 0.8; } 100% { transform: scale(1.05); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------
   4. الأزرار العائمة (FABs & Back to Top)
   ---------------------------------------------------- */
.fab-container {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    left: calc(30px + env(safe-area-inset-left, 0px));
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
}
.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}
.fab-whatsapp { background: #25D366; color: var(--white); }
.fab-whatsapp:hover { background: #1EBE53; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); color: var(--white); }
#backToTopBtn {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow));
    color: var(--white);
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
#backToTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTopBtn:hover { background: var(--navy-corporate); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(20, 31, 54, 0.4); }

/* ----------------------------------------------------
   5. نافذة التصفح والبحث الذكي (Command Palette)
   ---------------------------------------------------- */
.cmd-overlay {
    position: fixed; inset: 0; background: rgba(10, 15, 29, 0.7); backdrop-filter: blur(5px);
    z-index: 9999999; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 15vh; opacity: 0; visibility: hidden; transition: var(--transition-smooth);
}
.cmd-overlay.active { opacity: 1; visibility: visible; }
.cmd-box {
    background: var(--white); width: 90%; max-width: 600px; border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(-20px) scale(0.98); transition: var(--transition-smooth);
}
.cmd-overlay.active .cmd-box { transform: translateY(0) scale(1); }
.cmd-header { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #E2E8F0; gap: 15px; }
.cmd-header i { color: var(--gold-premium); font-size: 18px; }
.cmd-header input { flex: 1; border: none; outline: none; font-family: var(--font-official); font-size: 16px; color: var(--navy-corporate); background: transparent; }
.cmd-header button { background: none; border: none; font-size: 18px; color: #94A3B8; cursor: pointer; transition: 0.2s; }
.cmd-header button:hover { color: red; }
.cmd-body { padding: 20px; }
.cmd-section-title { font-size: 12px; font-weight: 700; color: #94A3B8; margin-bottom: 15px; }
.cmd-body a {
    display: flex; align-items: center; gap: 15px; padding: 12px 15px; text-decoration: none;
    color: var(--text-main); font-weight: 600; border-radius: 8px; transition: var(--transition-smooth);
}
.cmd-body a:hover, .cmd-body a:focus-visible { background: rgba(182, 141, 46, 0.08); color: var(--gold-premium); padding-right: 25px; }

/* ----------------------------------------------------
   6. الشبكة العنكبوتية والزخارف الإسلامية (Motifs)
   ---------------------------------------------------- */
#network-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2; pointer-events: none; background-color: var(--cream-clean);
}
.islamic-motif-bg {
    background-color: var(--navy-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg stroke='%23B68D2E' stroke-width='1.5' stroke-opacity='0.08' fill='none'%3E%3Cpath d='M50 15L58 35L75 25L65 42L85 50L65 58L75 75L58 65L50 85L42 65L25 75L35 58L15 50L35 42L25 25L42 35Z'/%3E%3Cpath d='M50 0L65 15L100 15L85 35L100 50L85 65L100 85L65 85L50 100L35 85L0 85L15 65L0 50L15 35L0 15L35 15Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px;
}


/* ----------------------------------------------------
   7. شريط الأخبار التنفيذي المتزن (Executive Vertical Dynamic Ticker)
   ---------------------------------------------------- */
.news-ticker-wrapper {
    background: #0d1a2d;
    color: var(--white);
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(182, 141, 46, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    z-index: 999;
}
.ticker-title {
    background: linear-gradient(135deg, #B68D2E 0%, #cf9f38 100%);
    color: #ffffff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    z-index: 10;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.18);
}
[dir="rtl"] .ticker-title {
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.18);
}
.ticker-title i {
    font-size: 13px;
    color: #ffffff;
}
.ticker-content-box {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-width: 0;
}
.ticker-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.ticker-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease, visibility 0.45s;
    pointer-events: none;
    box-sizing: border-box;
}
.ticker-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.ticker-slide.slide-out-up {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}
.ticker-slide.slide-out-down {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}
.ticker-slide.slide-in-down {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}
.ticker-slide.slide-in-up {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}
.ticker-badge {
    color: var(--gold-glow, #e6ca65);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ticker-text {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.ticker-text:hover {
    color: var(--gold-glow, #e6ca65);
}
a.ticker-text {
    text-decoration: none;
    cursor: pointer;
}
.ticker-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 100%;
    flex-shrink: 0;
    z-index: 10;
    background: rgba(13, 26, 45, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
[dir="rtl"] .ticker-controls {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-counter {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-family: inherit;
    white-space: nowrap;
    user-select: none;
}
.ticker-counter #tickerCurrentIdx {
    color: var(--gold-glow, #e6ca65);
    font-weight: 700;
}
.ticker-nav-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ticker-ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.ticker-ctrl-btn:hover {
    background: var(--gold-premium, #B68D2E);
    border-color: var(--gold-premium, #B68D2E);
    color: #ffffff;
    transform: translateY(-1px);
}
.ticker-ctrl-btn:active {
    transform: translateY(0);
}

/* Fallback backward compatibility */
.ticker-move { display: inline-flex; height: 100%; align-items: center; white-space: nowrap; animation: tickerSlide 30s linear infinite; will-change: transform; }
.ticker-move:hover, .ticker-move:focus-within { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 30px; font-size: 14px; border-left: 1px solid rgba(255,255,255,0.15); }
.ticker-item i { color: var(--gold-glow); font-size: 12px; }
@keyframes tickerSlide { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticker-title { padding: 0 12px; font-size: 12px; }
    .ticker-counter { display: none; }
    .ticker-controls { padding: 0 8px; gap: 6px; }
    .ticker-ctrl-btn { width: 24px; height: 24px; font-size: 10px; }
    .ticker-slide { padding: 0 10px; }
    .ticker-text { font-size: 12px; }
}
@media (max-width: 480px) {
    .ticker-title { padding: 0 10px; font-size: 11px; }
    .ticker-ctrl-btn#tickerToggle { display: none; }
}

/* ----------------------------------------------------
   8. شريط الاتصال العلوي السيادي (Executive Utility Bar)
   ---------------------------------------------------- */
.utility-bar {
    background: linear-gradient(90deg, #070d19 0%, #0d172a 100%);
    color: var(--white);
    padding: 6px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1002;
    transition: var(--transition-smooth);
}
.utility-contacts {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.utility-badge-item {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    white-space: nowrap;
}
.utility-link-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}
.utility-link-item:hover {
    color: var(--gold-glow);
}
.utility-separator {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}
.utility-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.utility-search-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    font-family: inherit;
}
.utility-search-pill:hover {
    background: rgba(182, 141, 46, 0.15);
    border-color: var(--gold-premium);
    color: var(--white);
}
.utility-kbd {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 9.5px;
    font-family: monospace;
    color: var(--gold-glow);
}
.utility-tool-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
    font-family: inherit;
}
.utility-tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-glow);
    border-color: rgba(212, 175, 55, 0.35);
}
.utility-theme-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.utility-lang-pill {
    background: rgba(182, 141, 46, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-glow) !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}
.utility-lang-pill:hover {
    background: var(--gold-premium);
    color: #0a0f1d !important;
}
.utility-portal-pill {
    background: linear-gradient(135deg, rgba(182, 141, 46, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-glow) !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}
.utility-portal-pill:hover {
    background: linear-gradient(135deg, #b68d2e, #d4af37);
    color: #0a0f1d !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* ----------------------------------------------------
   9. الترويسة وقائمة التنقل (Main Header & Nav)
   ---------------------------------------------------- */
#mainHeader {
    background-color: var(--header-bg);
    padding: 0 4%;
    height: 86px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 10000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease;
    isolation: isolate;
    overflow: visible;
}
#mainHeader.header-scrolled {
    height: 64px;
    background-color: var(--header-scrolled-bg);
    box-shadow: var(--header-scrolled-shadow);
    border-bottom: 1px solid rgba(182, 141, 46, 0.2);
}

/* مجمع الشعارين المتزنين */
.brand-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logos-cluster {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-sub-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.brand-logos-divider {
    display: inline-block;
    width: 1.5px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(182, 141, 46, 0.5), transparent);
    transition: var(--transition-smooth);
}
.brand-main-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-inline-start: 2px solid var(--gold-premium);
    padding-inline-start: 14px;
    transition: var(--transition-smooth);
}
.brand-parent-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold-premium);
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 2px;
}
.brand-text-title {
    font-weight: 800;
    font-size: 17px;
    color: var(--navy-corporate);
    white-space: nowrap;
    line-height: 1.3;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

#mainHeader.header-scrolled .brand-sub-logo { height: 36px; }
#mainHeader.header-scrolled .brand-main-logo { height: 42px; }
#mainHeader.header-scrolled .brand-logos-divider { height: 26px; }
#mainHeader.header-scrolled .brand-text-title { font-size: 14.5px; }
#mainHeader.header-scrolled .brand-parent-tag { font-size: 9.5px; }
#mainHeader.header-scrolled #primary-navigation > ul.main-navbar-list > li > a {
    padding: 6px 9px;
    font-size: 13.5px;
}

#primary-navigation { display: flex; align-items: center; height: 100%; }
.mobile-menu-toggle { display:none; width:46px; height:42px; border:1px solid rgba(182,141,46,.35); border-radius:10px; background:#fff; align-items:center; justify-content:center; flex-direction:column; gap:5px; cursor:pointer; }
.mobile-menu-toggle span { display:block; width:23px; height:2px; background:var(--navy-corporate); border-radius:4px; transition:transform .25s ease,opacity .25s ease; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.skip-link { position:fixed; top:8px; right:8px; z-index:1000000; transform:translateY(-160%); background:#fff; color:#111827; padding:10px 16px; border:2px solid var(--gold-premium); border-radius:8px; font-weight:700; }
.skip-link:focus { transform:translateY(0); }
.mobile-drawer-header, .mobile-drawer-footer, .mobile-drawer-overlay { display: none; }
#primary-navigation > ul.main-navbar-list { display: flex; flex-direction: row; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; height: 100%; }
#primary-navigation > ul.main-navbar-list > li { position: relative; white-space: nowrap; height: 100%; display: flex; align-items: center; }
#primary-navigation > ul.main-navbar-list > li > a {
    text-decoration: none; color: var(--navy-corporate); font-weight: 600; font-size: 14px;
    padding: 8px 10px; display: flex; align-items: center; gap: 8px;
    transition: var(--transition-smooth); border-radius: 4px; height: auto;
}
#primary-navigation > ul.main-navbar-list > li > a > i.main-icon { font-size: 15px; color: var(--gold-premium); transition: var(--transition-smooth); }
#primary-navigation > ul.main-navbar-list > li > a > i.dropdown-chevron { font-size: 10px; opacity: 0.5; margin-inline-start: 4px; transition: transform 0.3s ease; }
#primary-navigation > ul.main-navbar-list > li:hover > a { color: var(--gold-premium); background-color: rgba(182, 141, 46, 0.04); }
#primary-navigation > ul.main-navbar-list > li:hover > a > i.dropdown-chevron { transform: rotate(180deg); }

/* القوائم المنسدلة التنفيذية الفاخرة */
.dropdown-mega-panel {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 285px;
    box-shadow: 0 18px 45px rgba(10, 15, 29, 0.12), 0 0 1px rgba(182, 141, 46, 0.35);
    border: 1px solid rgba(182, 141, 46, 0.18);
    border-top: 3px solid var(--gold-premium);
    list-style: none;
    padding: 8px 0;
    border-radius: 0 0 10px 10px;
    z-index: 10010;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.25s;
    pointer-events: none;
}
[dir="ltr"] .dropdown-mega-panel { right: auto; left: 0; }
#primary-navigation > ul.main-navbar-list > li:hover .dropdown-mega-panel,
#primary-navigation > ul.main-navbar-list > li:focus-within .dropdown-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.dropdown-mega-panel li { width: 100%; }
.dropdown-mega-panel li a {
    display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: var(--text-main); font-size: 13.5px;
    font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.03); transition: var(--transition-smooth);
}
.dropdown-mega-panel li a i.sub-icon { color: var(--navy-corporate); opacity: 0.6; font-size: 13px; width: 20px; text-align: center; transition: var(--transition-smooth); }
.dropdown-mega-panel li:last-child a { border-bottom: none; }
.dropdown-mega-panel li a:hover {
    background-color: rgba(182, 141, 46, 0.06);
    color: var(--gold-premium);
    padding-inline-start: 22px;
    border-inline-start: 3px solid var(--gold-premium);
}
.dropdown-mega-panel li a:hover i.sub-icon { color: var(--gold-premium); opacity: 1; transform: scale(1.1); }

/* زر منصة التدريب الرقمي المميز في القائمة */
#primary-navigation > ul.main-navbar-list > li > a.digital-training-cta-btn {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow));
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(182, 141, 46, 0.2);
    font-weight: 700;
}
#primary-navigation > ul.main-navbar-list > li > a.digital-training-cta-btn i {
    color: var(--white) !important;
}
#primary-navigation > ul.main-navbar-list > li > a.digital-training-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(182, 141, 46, 0.35);
}

/* ----------------------------------------------------
   10. أزرار تفاعلية مخصصة (Custom Interactive Buttons)
   ---------------------------------------------------- */
.magnetic-btn {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow)); color: var(--white) !important;
    padding: 12px 26px !important; border-radius: 6px; font-weight: 700 !important; box-shadow: 0 4px 15px rgba(182, 141, 46, 0.2);
    display: inline-flex; align-items: center; gap: 8px; transition: var(--transition-smooth); text-decoration: none;
}
.magnetic-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(182, 141, 46, 0.45);
}
.magnetic-btn.btn-outline {
    background: #ffffff !important;
    border: 1.5px solid rgba(20, 31, 54, 0.22) !important;
    box-shadow: 0 4px 16px rgba(20, 31, 54, 0.08) !important;
    color: var(--navy-dark, #141f36) !important;
}
.magnetic-btn.btn-outline:hover {
    background: var(--navy-dark, #141f36) !important;
    color: var(--white) !important;
    border-color: var(--gold-premium, #b68d2e) !important;
    box-shadow: 0 12px 30px rgba(20, 31, 54, 0.2) !important;
}
.platform-trigger-btn { font-size: 14.5px; padding: 10px 20px !important; transition: var(--transition-smooth); }
.platform-trigger-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(182, 141, 46, 0.3); }

/* ----------------------------------------------------
   11. التذييل المؤسسي الفاخر (Premium Footer)
   ---------------------------------------------------- */
footer { padding: 70px 6% 30px; position: relative; color: rgba(255,255,255,0.85); overflow: hidden; }
.footer-core-layout { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; max-width: 1300px; margin: auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 35px; margin-bottom: 25px; position: relative; z-index: 2; }
.footer-brand-segment img { height: 65px; background: white; padding: 6px; border-radius: 4px; margin-bottom: 20px; }
.footer-core-layout h4 { color: var(--gold-premium); font-size: 17px; font-weight: 600; margin-bottom: 20px; }
.footer-navigation-list { list-style: none; }
.footer-navigation-list li { margin-bottom: 10px; }
.footer-navigation-list a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition-smooth); font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.footer-navigation-list a:hover { color: var(--gold-glow); transform: translateX(-5px); }

.social-icons-box { display: flex; gap: 12px; margin-top: 25px; }
.social-icons-box a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--white); font-size: 16px; transition: var(--transition-smooth); text-decoration: none; border: 1px solid rgba(255,255,255,0.1); }
.social-icons-box a:hover { background: var(--gold-premium); border-color: var(--gold-premium); transform: translateY(-4px); box-shadow: 0 5px 15px rgba(182, 141, 46, 0.3); }

.copyright-central-tag { text-align: center; font-size: 14px; opacity: 0.5; position: relative; z-index: 2; }

/* ----------------------------------------------------
   12. قواعد التجاوب والشاشات (Responsive Media Queries)
   ---------------------------------------------------- */
@media (max-width: 1150px) {
    .footer-core-layout { grid-template-columns: 1fr 1fr; }
    .brand-text-block { display: none !important; }
    .brand-text-title { display: none !important; }
    #mainHeader { padding: 0 4% !important; }
}

/* ==========================================
   تحسينات التجاوب للترويسة والشريط العلوي
   ========================================== */
@media (max-width: 1380px) {
    .utility-actions > span:nth-of-type(2) { display:none; }
    .utility-contacts { gap:10px !important; }
    .utility-bar a { margin-left:10px; }
    #mainHeader { padding: 0 3% !important; }
    .brand-text-title { font-size: 15px !important; }
    #primary-navigation > ul.main-navbar-list > li > a { font-size: 12.5px !important; padding: 6px 8px !important; }
    #primary-navigation > ul.main-navbar-list { gap: 3px !important; }
    #primary-navigation > ul.main-navbar-list > li > a.digital-training-cta-btn { padding: 8px 12px !important; }
}
@media (max-width: 768px) {
    html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
    
    /* منع التكبير التلقائي المزعج في سفاري على الآيفون (iOS Safari Anti-Zoom) */
    input, select, textarea,
    .field-input-control, .search-input, .cmd-box input,
    .home-cert-input-group input, .access-modal-card input {
        font-size: 16px !important;
    }

    /* تحسين انسيابية الخطوط والتايبوغرافي العربي على الموبايل لمنع قص الحركات */
    body, p, .text-muted, .description {
        line-height: 1.8 !important;
    }
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.45 !important;
    }

    /* حماية أرقام الهواتف والرموز من التداخل في العربية */
    .phone-number, .contact-phone, .code-pill, [dir="ltr"] {
        unicode-bidi: isolate;
    }

    /* إخفاء الشريط العلوي المزدحم في الهواتف ونقل أدواته لدرج القائمة السلس */
    .utility-bar { display: none !important; }
    
    /* شريط الأخبار المدمج الأنيق على الموبايل */
    .news-ticker-wrapper {
        padding: 0 10px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
    .ticker-title {
        padding: 0 10px !important;
        font-size: 11px !important;
        gap: 5px !important;
    }
    .ticker-text {
        font-size: 11.5px !important;
    }
    
    /* رأس الموقع المتجاوب الفاخر */
    #mainHeader {
        height: 64px !important;
        padding: 6px 14px !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
        background: var(--header-bg, #0a0f1d) !important;
        border-bottom: 1px solid rgba(182, 141, 46, 0.22) !important;
        isolation: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    body.mobile-menu-locked #mainHeader {
        z-index: 1000050 !important;
    }
    body.mobile-menu-locked .mobile-bottom-appbar {
        z-index: 9990 !important;
        pointer-events: none !important;
    }
    #mainHeader.header-scrolled {
        height: 60px !important;
    }
    .logo-container {
        width: auto !important;
        flex: 1;
        display: flex !important;
        justify-content: flex-start !important;
    }
    .brand-platform-link {
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .brand-text-block { display: none !important; }
    .brand-logos-cluster { display: inline-flex !important; align-items: center; gap: 8px; }
    .brand-sub-logo { height: 36px !important; width: auto !important; }
    .brand-main-logo { height: 40px !important; width: auto !important; }
    .brand-logos-divider { height: 24px !important; }
    
    /* زر القائمة المدمج */
    .mobile-menu-toggle {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 42px !important;
        height: 42px !important;
        border: 1.5px solid var(--gold-premium, #b68d2e) !important;
        border-radius: 10px !important;
        background: rgba(182, 141, 46, 0.08) !important;
    }
    .mobile-menu-toggle span {
        background: var(--gold-premium, #b68d2e) !important;
        width: 22px !important;
    }
    
    /* خلفية تعتيم الشاشة عند فتح القائمة */
    .mobile-drawer-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(4, 9, 20, 0.72) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 1000040 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }
    .mobile-drawer-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    body.mobile-menu-locked {
        overflow: hidden !important;
    }

    /* الدرج الجانبي العصري فائق التباين والفخامة */
    #primary-navigation {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 86% !important;
        max-width: 360px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        z-index: 1000050 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: -10px 0 45px rgba(0, 0, 0, 0.4) !important;
        border: none !important;
        border-left: 2.5px solid var(--gold-premium, #b68d2e) !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(105%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow: hidden !important;
    }
    [dir="ltr"] #primary-navigation {
        right: auto !important;
        left: 0 !important;
        border-left: none !important;
        border-right: 2.5px solid var(--gold-premium, #b68d2e) !important;
        transform: translateX(-105%) !important;
    }
    #primary-navigation.mobile-open {
        transform: translateX(0) !important;
    }

    /* ترويسة الدرج الجانبي المثبتة في القمة */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 18px !important;
        border-bottom: 1px solid rgba(182, 141, 46, 0.25) !important;
        background: linear-gradient(135deg, #091322 0%, #11213b 100%) !important;
        color: #ffffff !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        min-height: 64px !important;
    }
    .mobile-drawer-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .mobile-drawer-brand .drawer-logo {
        height: 38px !important;
        width: auto !important;
    }
    .mobile-drawer-brand .drawer-titles {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.25 !important;
    }
    .mobile-drawer-brand .drawer-titles .drawer-sub {
        font-size: 10.5px !important;
        color: var(--gold-glow, #dfb74a) !important;
        font-weight: 700 !important;
    }
    .mobile-drawer-brand .drawer-titles .drawer-main {
        font-size: 13.5px !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }
    .mobile-drawer-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 50% !important;
        border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        cursor: pointer !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
    }
    .mobile-drawer-close:hover,
    .mobile-drawer-close:active {
        background: rgba(220, 38, 38, 0.45) !important;
        color: #ffffff !important;
        transform: scale(0.94) !important;
    }

    /* قائمة الروابط في الدرج مع التمرير الداخلي */
    #primary-navigation > ul.main-navbar-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 8px 0 !important;
        height: auto !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        list-style: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #primary-navigation > ul.main-navbar-list > li {
        height: auto !important;
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    #primary-navigation > ul.main-navbar-list > li > a {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        padding: 13px 18px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    #primary-navigation > ul.main-navbar-list > li > a > i.main-icon {
        font-size: 16px !important;
        color: var(--gold-premium, #b68d2e) !important;
        width: 24px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    #primary-navigation > ul.main-navbar-list > li > a > .nav-link-text {
        flex: 1 1 auto !important;
        text-align: start !important;
    }
    #primary-navigation > ul.main-navbar-list > li > a > i.dropdown-chevron {
        display: inline-block !important;
        font-size: 12px !important;
        color: #64748b !important;
        margin-inline-start: auto !important;
        flex-shrink: 0 !important;
        transition: transform 0.25s ease !important;
    }
    #primary-navigation > ul.main-navbar-list > li.mobile-dropdown-open > a > i.dropdown-chevron {
        transform: rotate(180deg) !important;
        color: var(--gold-premium, #b68d2e) !important;
    }

    /* القوائم المنسدلة أكورديون */
    .dropdown-mega-panel {
        display: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 4px 12px 10px 12px !important;
        min-width: 0 !important;
        background: #f8fafc !important;
        border-inline-start: 3px solid var(--gold-premium, #b68d2e) !important;
    }
    #primary-navigation > ul.main-navbar-list > li.mobile-dropdown-open .dropdown-mega-panel {
        display: block !important;
    }
    .dropdown-mega-panel li {
        width: 100% !important;
        list-style: none !important;
    }
    .dropdown-mega-panel li a {
        padding: 9px 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.05) !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        transition: all 0.2s ease !important;
    }
    .dropdown-mega-panel li:last-child a {
        border-bottom: none !important;
    }
    .dropdown-mega-panel li a:hover,
    .dropdown-mega-panel li a:active {
        background: rgba(182, 141, 46, 0.12) !important;
        color: var(--gold-premium, #b68d2e) !important;
    }

    /* زر منصة التدريب الرقمي في القائمة */
    #primary-navigation > ul.main-navbar-list > li > a.digital-training-cta-btn {
        margin: 12px 16px !important;
        width: calc(100% - 32px) !important;
        border-radius: 10px !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 11px 16px !important;
        background: linear-gradient(135deg, #dfb74a 0%, #b88e28 100%) !important;
        color: #070d18 !important;
        box-shadow: 0 4px 15px rgba(184, 142, 40, 0.25) !important;
    }

    /* ذيل الدرج الجانبي: الأدوات والاتصال والإدارة */
    .mobile-drawer-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 14px 16px 22px !important;
        border-top: 1px solid rgba(182, 141, 46, 0.2) !important;
        background: #f8fafc !important;
        flex-shrink: 0 !important;
    }
    .drawer-tools-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .drawer-tool-pill {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(182, 141, 46, 0.3) !important;
        border-radius: 8px !important;
        color: #1e293b !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        font-family: inherit !important;
    }
    .drawer-contacts-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .drawer-contact-link {
        color: #475569 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 12px !important;
    }
    .drawer-admin-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 9px 14px !important;
        background: #0f172a !important;
        color: #ffffff !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    /* التوافق الكامل مع الوضع الليلي (Dark Theme) */
    [data-theme="dark"] #primary-navigation {
        background: #0b1322 !important;
        color: #f8fafc !important;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8) !important;
    }
    [data-theme="dark"] #primary-navigation > ul.main-navbar-list > li {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }
    [data-theme="dark"] #primary-navigation > ul.main-navbar-list > li > a {
        color: #f1f5f9 !important;
    }
    [data-theme="dark"] #primary-navigation > ul.main-navbar-list > li > a:hover {
        background: rgba(182, 141, 46, 0.12) !important;
        color: var(--gold-glow, #dfb74a) !important;
    }
    [data-theme="dark"] .dropdown-mega-panel {
        background: rgba(15, 23, 42, 0.85) !important;
        border-inline-start-color: var(--gold-glow, #dfb74a) !important;
    }
    [data-theme="dark"] .dropdown-mega-panel li a {
        color: #cbd5e1 !important;
        border-bottom-color: rgba(255, 255, 255, 0.04) !important;
    }
    [data-theme="dark"] .dropdown-mega-panel li a:hover {
        background: rgba(182, 141, 46, 0.18) !important;
        color: var(--gold-glow, #dfb74a) !important;
    }
    [data-theme="dark"] .mobile-drawer-footer {
        background: #070d18 !important;
        border-top-color: rgba(182, 141, 46, 0.25) !important;
    }
    [data-theme="dark"] .drawer-tool-pill {
        background: #0f1a2e !important;
        border-color: rgba(182, 141, 46, 0.4) !important;
        color: #f1f5f9 !important;
    }
    [data-theme="dark"] .drawer-contact-link {
        color: #94a3b8 !important;
    }
    [data-theme="dark"] .drawer-admin-link {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
        border: 1px solid rgba(182, 141, 46, 0.35) !important;
        color: var(--gold-glow, #dfb74a) !important;
    }

    .footer-core-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* المكونات العامة للنماذج والروابط الداخلية */
[id] { scroll-margin-top: 118px; }

.privacy-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100%;
    margin: 10px 0 4px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(182, 141, 46, 0.22);
    border-radius: 12px;
    background: #f8fafc;
    color: #334155 !important;
    font-family: 'Cairo', sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.8;
    text-align: start;
    cursor: pointer;
}
.privacy-consent input[type="checkbox"] {
    appearance: none;
    flex: 0 0 21px;
    width: 21px !important;
    height: 21px !important;
    margin: 2px 0 0 !important;
    border: 1.5px solid #b9c2d0;
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.privacy-consent input[type="checkbox"]::after {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transform: scale(0);
    transition: transform .16s ease;
}
.privacy-consent input[type="checkbox"]:checked {
    background: var(--gold-premium);
    border-color: var(--gold-premium);
}
.privacy-consent input[type="checkbox"]:checked::after { transform: scale(1); }
.privacy-consent input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(182, 141, 46, .28);
    outline-offset: 3px;
}
.privacy-consent__text { flex: 1; min-width: 0; }
.privacy-consent a { color: #8c6517 !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.privacy-consent--dark {
    background: rgba(255,255,255,.07);
    border-color: rgba(212,175,55,.28);
    color: rgba(255,255,255,.88) !important;
}
.privacy-consent--dark input[type="checkbox"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.privacy-consent--dark a { color: var(--gold-glow) !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* ----------------------------------------------------
   13. عناصر التحكم بالوضع الليلي وسهولة الوصول وشريط الموبايل
   ---------------------------------------------------- */

/* أزرار الشريط العلوي المساعد (Theme & Accessibility Utility Controls) */
.utility-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    font-family: 'Cairo', sans-serif;
    outline: none;
}
.utility-btn:hover {
    background: rgba(182, 141, 46, 0.25);
    border-color: var(--gold-premium);
    color: var(--gold-glow);
}
.utility-theme-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.utility-theme-btn i {
    font-size: 12.5px;
    color: var(--gold-glow);
    transition: transform 0.3s ease;
}
.utility-theme-btn:hover i {
    transform: rotate(20deg) scale(1.1);
}

/* نافذة خيارات سهولة الوصول والنفاذ الرقمي (Governmental Accessibility Modal) */
.access-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.access-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.access-modal-card {
    background: #0d1728;
    border: 1.5px solid var(--gold-premium);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    padding: 24px;
    box-sizing: border-box;
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    text-align: right;
}
[dir="ltr"] .access-modal-card {
    text-align: left;
}
.access-modal-overlay.active .access-modal-card {
    transform: translateY(0) scale(1);
}
.access-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.access-modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.access-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.access-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}
.access-group {
    margin-bottom: 18px;
}
.access-group-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.access-btn-row {
    display: flex;
    gap: 8px;
}
.access-btn-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
}
.access-btn-pill:hover,
.access-btn-pill.active {
    background: var(--gold-premium);
    border-color: var(--gold-premium);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(182, 141, 46, 0.35);
}
.access-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.access-toggle-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.access-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.access-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.access-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
}
.access-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.access-switch input:checked + .access-slider {
    background-color: var(--gold-premium);
}
.access-switch input:checked + .access-slider:before {
    transform: translateX(20px);
}
.access-reset-btn {
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}
.access-reset-btn:hover {
    color: #feb2b2;
    border-color: #feb2b2;
    background: rgba(254, 178, 178, 0.1);
}

@media (max-width: 1200px) {
    .utility-portal-motto {
        display: none !important;
    }
}

/* شريط التنقل السفلي الذكي للهواتف (Mobile Bottom App-Bar) */
.mobile-bottom-appbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 16, 29, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1.5px solid rgba(182, 141, 46, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    padding: 0 6px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: center;
    justify-content: space-around;
}
.mobile-appbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10.5px;
    font-weight: 600;
    flex: 1;
    padding: 6px 0;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-official, 'Cairo', sans-serif);
    position: relative;
}
.mobile-appbar-item i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease, color 0.25s ease;
}
.mobile-appbar-item:hover,
.mobile-appbar-item.active {
    color: var(--gold-glow);
    background: rgba(255, 255, 255, 0.04);
}
.mobile-appbar-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 22px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--gold-premium), var(--gold-glow));
    border-radius: 2px;
}
.mobile-appbar-item.active i {
    transform: translateY(-2px);
    color: var(--gold-glow);
}
.mobile-appbar-item.mobile-appbar-whatsapp {
    color: #25D366;
}
.mobile-appbar-item.mobile-appbar-whatsapp i {
    font-size: 18px;
    color: #25D366;
}
.mobile-appbar-item.mobile-appbar-whatsapp:hover,
.mobile-appbar-item.mobile-appbar-whatsapp:active {
    color: #1EBE53;
}
.mobile-appbar-item.mobile-appbar-whatsapp:hover i,
.mobile-appbar-item.mobile-appbar-whatsapp:active i {
    transform: translateY(-2px) scale(1.12);
    color: #1EBE53;
}
@media (max-width: 768px) {
    .mobile-bottom-appbar {
        display: flex;
    }
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
    }
    footer {
        padding: 45px 16px calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .copyright-central-tag {
        font-size: 12px;
        line-height: 1.6;
        padding: 0 10px;
    }
    /* حل ازدحام واجهات الهاتف: إخفاء زر واتساب العائم على الهاتف لتواجده مباشرة في الشريط السفلي الذكي */
    .fab-container .fab-whatsapp {
        display: none !important;
    }
    /* رفع زر العودة للأعلى بسلاسة ليبقى فوق شريط التنقل السفلي دون أي تداخل مع المحتوى أو الأزرار */
    .fab-container {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        inset-inline-start: 16px !important;
        inset-inline-end: auto !important;
        gap: 0 !important;
    }
    [dir="rtl"] .fab-container {
        left: 16px !important;
        right: auto !important;
    }
    [dir="ltr"] .fab-container {
        right: 16px !important;
        left: auto !important;
    }
    #backToTopBtn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        border-radius: 50% !important;
        font-size: 17px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* صقل نافذة سهولة الوصول لتناسب شاشات الموبايل بدقة وتوفر أهداف لمس قياسية */
    .access-modal-card {
        max-width: calc(100vw - 28px) !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }
    .access-modal-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 22px !important;
    }
}

/* تنسيقات الوضع الليلي الموسعة للأقسام والبطاقات (Comprehensive Dark Theme Styles) */
html[data-theme="dark"],
[data-theme="dark"] body,
[data-theme="dark"] #network-canvas {
    background-color: #070d18 !important;
    color: var(--text-main) !important;
}
[data-theme="dark"] .block-main-title h2 {
    color: #f8fafc !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .block-main-title h2::after {
    background: linear-gradient(90deg, var(--gold-premium), var(--gold-glow)) !important;
    box-shadow: 0 0 12px rgba(230, 197, 85, 0.45);
}
[data-theme="dark"] .block-main-title p,
[data-theme="dark"] .services-section-heading > p {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .structural-card:hover {
    background: #11223d !important;
    border-color: rgba(230, 197, 85, 0.45) !important;
}
[data-theme="dark"] .structural-card:hover .vector-card-icon {
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .media-news-panel {
    background: rgba(13, 25, 46, 0.42) !important;
    border-top-color: rgba(200, 157, 56, 0.16) !important;
    border-bottom-color: rgba(200, 157, 56, 0.16) !important;
}
[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev {
    background-color: rgba(13, 25, 46, 0.95) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    color: var(--gold-glow) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.6 !important;
}
[data-theme="dark"] .swiper-pagination-bullet-active {
    background-color: var(--gold-glow) !important;
    opacity: 1 !important;
}
[data-theme="dark"] .contact-integration-box {
    background: rgba(13, 25, 46, 0.94) !important;
    border-color: rgba(200, 157, 56, 0.26) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] .contact-meta-data h3,
[data-theme="dark"] .empty-state-box h3 {
    color: #f8fafc !important;
}
[data-theme="dark"] .contact-meta-data p,
[data-theme="dark"] .empty-state-box p {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .empty-state-box {
    background: rgba(13, 25, 46, 0.78) !important;
    border-color: rgba(200, 157, 56, 0.32) !important;
}
[data-theme="dark"] .anchor-info-row {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .anchor-info-row i {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .portal-submit-btn {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow)) !important;
    color: #070d18 !important;
    font-weight: 800 !important;
}
[data-theme="dark"] .magnetic-btn.btn-outline {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--gold-glow) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}
[data-theme="dark"] .magnetic-btn.btn-outline:hover {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow)) !important;
    color: #070d18 !important;
    border-color: var(--gold-glow) !important;
}
[data-theme="dark"] .premium-service-number {
    color: rgba(230, 197, 85, 0.15) !important;
}
[data-theme="dark"] .premium-service-icon {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .premium-service-kicker {
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .premium-service-action {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(182, 141, 46, 0.08)) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .premium-service-card:hover .premium-service-action {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow)) !important;
    color: #070d18 !important;
}
[data-theme="dark"] .mkq-course {
    background: #101e36 !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] .mkq-title,
[data-theme="dark"] .mkq-price {
    color: #f8fafc !important;
}
[data-theme="dark"] .mkq-meta,
[data-theme="dark"] .mkq-price small {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .mkq-foot {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .mkq-date {
    background: rgba(10, 19, 36, 0.92) !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
}
[data-theme="dark"] .mkq-date strong {
    color: #ffffff !important;
}
[data-theme="dark"] .coverage-modal-card,
[data-theme="dark"] .complaint-modal-card {
    background: #0d192e !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .coverage-modal-body,
[data-theme="dark"] .coverage-field > span,
[data-theme="dark"] .complaint-form-label {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .featured-annual-plan {
    background: rgba(13, 25, 46, 0.96) !important;
    border-color: rgba(200, 157, 56, 0.3) !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .featured-annual-plan__year {
    background: linear-gradient(145deg, #11223d, #0a1528) !important;
    color: var(--gold-glow) !important;
}
[data-theme="dark"] .featured-annual-plan__year strong {
    color: #ffffff !important;
}
[data-theme="dark"] .brand-text-title {
    color: #ffffff;
}
[data-theme="dark"] #primary-navigation > ul.main-navbar-list > li > a {
    color: #e2e8f0;
}
[data-theme="dark"] #primary-navigation > ul.main-navbar-list > li > a:hover {
    color: var(--gold-glow);
    background-color: rgba(200, 157, 56, 0.12);
}
[data-theme="dark"] .dropdown-mega-panel {
    background: rgba(11, 21, 39, 0.98);
    border-color: rgba(200, 157, 56, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .dropdown-mega-panel li a {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .dropdown-mega-panel li a:hover {
    background-color: rgba(200, 157, 56, 0.15);
    color: var(--gold-glow);
}
[data-theme="dark"] .dropdown-mega-panel li a i.sub-icon {
    color: var(--gold-glow);
}
[data-theme="dark"] .mobile-menu-toggle {
    background: #0d1a2d;
    border-color: var(--gold-premium);
}
[data-theme="dark"] .mobile-menu-toggle span {
    background: #ffffff;
}
[data-theme="dark"] .structural-card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .job-announcement-card,
[data-theme="dark"] .metric-unit,
[data-theme="dark"] .annual-plan-home-card {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    color: var(--text-main) !important;
}
[data-theme="dark"] .structural-card h3,
[data-theme="dark"] .course-info-body h3,
[data-theme="dark"] .course-info-body a,
[data-theme="dark"] .block-main-title h2,
[data-theme="dark"] .job-announcement-card h3,
[data-theme="dark"] .annual-plan-home-content h2 {
    color: #ffffff !important;
}
[data-theme="dark"] .structural-card p,
[data-theme="dark"] .course-details-list span,
[data-theme="dark"] .course-instructor span,
[data-theme="dark"] .annual-plan-home-content p,
[data-theme="dark"] .job-announcement-card p {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .course-info-body {
    background: var(--card-bg) !important;
}
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #091322 !important;
    color: #ffffff !important;
    border-color: rgba(200, 157, 56, 0.3) !important;
}
[data-theme="dark"] .cmd-box {
    background: #0b1528 !important;
    border-color: var(--gold-premium) !important;
    color: #fff !important;
}
[data-theme="dark"] .cmd-input {
    color: #fff !important;
}
[data-theme="dark"] .privacy-consent {
    background: #091322 !important;
    border-color: rgba(200, 157, 56, 0.3) !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .privacy-consent a {
    color: var(--gold-glow) !important;
}

[data-theme="dark"] .premium-service-card {
    background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.15), transparent 35%),
                linear-gradient(155deg, rgba(13, 25, 46, 0.98), rgba(9, 18, 34, 0.98)) !important;
    border-color: rgba(200, 157, 56, 0.25) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .premium-service-card h3 {
    color: #ffffff !important;
}
[data-theme="dark"] .premium-service-card > p {
    color: #94a3b8 !important;
}
[data-theme="dark"] .premium-service-card:hover {
    border-color: var(--gold-premium) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .premium-service-features li {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .advisor-wizard-container {
    background: #0d192e !important;
    border-color: rgba(200, 157, 56, 0.25) !important;
}
[data-theme="dark"] .step-title {
    color: #ffffff !important;
}
[data-theme="dark"] .select-option-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .select-option-btn:hover,
[data-theme="dark"] .select-option-btn.selected {
    background: rgba(182, 141, 46, 0.2) !important;
    border-color: var(--gold-premium) !important;
    color: var(--gold-glow) !important;
}

/* =====================================================
   إعادة هيكلة بطاقات الدورات: زر المشاركة الموحد والقائمة المنبثقة
   (Course Cards Social Share Component & Floating Popup)
   ===================================================== */
.course-card-share-wrapper {
    position: relative;
    flex: 1;
}
.course-share-trigger-btn {
    width: 100%;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-official, 'Cairo', sans-serif);
    text-decoration: none;
}
.course-share-trigger-btn:hover {
    background-color: rgba(182, 141, 46, 0.12);
    color: var(--gold-premium, #B68D2E);
    border-color: rgba(182, 141, 46, 0.3);
    transform: translateY(-2px);
}
.course-share-trigger-btn i {
    font-size: 14px;
    transition: transform 0.25s ease;
}
.course-share-trigger-btn:hover i {
    transform: scale(1.15) rotate(12deg);
}

.course-share-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    border: 1.5px solid rgba(182, 141, 46, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 16, 29, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 999;
}
.course-share-popup.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.course-share-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #ffffff;
}

.course-share-popup .share-menu-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.course-share-popup .share-menu-item:hover {
    transform: translateY(-3px) scale(1.08);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.course-share-popup .share-menu-item.whatsapp { background: #25D366; }
.course-share-popup .share-menu-item.facebook { background: #1877F2; }
.course-share-popup .share-menu-item.telegram { background: #0088cc; }
.course-share-popup .share-menu-item.copy { background: var(--navy-corporate, #0F1E36); }
.course-share-popup .share-menu-item.copy:hover { background: var(--gold-premium, #B68D2E); }

[data-theme="dark"] .course-share-trigger-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .course-share-popup {
    background: #0d1728;
    border-color: rgba(182, 141, 46, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .course-share-popup::after {
    border-top-color: #0d1728;
}



