/* ══════════════════════════════════════════════════
   Shared CSS — جمهورية مصر العربية - وزارة العمل — منصة العمل المصرية
   ══════════════════════════════════════════════════ */

/* ── Cairo Font (Local) ── */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../assets/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../assets/fonts/cairo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../assets/fonts/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: #F0F4FB; color: #1a2535; min-height: 100vh; display: flex; flex-direction: column; }
body > section, body > main { flex-shrink: 0; }
body > footer { margin-top: auto; }

/* ── Variables ── */
:root {
  --navy: #1B3F6E;
  --navy-dark: #0E1C35;
  --gold: #C9922A;
  --gold-light: #F5C842;
  --ruby: #C8102E;
  --sage: #1A7A4A;
  --sage-light: #22C55E;
}

/* ── Dark Mode Variables ── */
html.dark {
  --navy: #93B5E8;
  --navy-dark: #CBD5E1;
  --gold: #F5C842;
  --gold-light: #F5C842;
  --sage: #4ADE80;
  --sage-light: #4ADE80;
  --dm-bg: #0F172A;
  --dm-surface: #1E293B;
  --dm-card: #1E293B;
  --dm-border: #334155;
  --dm-text: #F1F5F9;
  --dm-text-secondary: #94A3B8;
  --dm-hover: #263548;
}
html.dark body { background: var(--dm-bg); color: var(--dm-text); }

/* Dark: Header */
html.dark .utility-bar { background: #0B1120 !important; border-bottom-color: var(--dm-border) !important; }
html.dark .a11y-btn { background: #0F172A !important; border-color: #2A3A4E !important; color: #94A3B8 !important; }
html.dark .a11y-btn:hover, html.dark .a11y-btn.active { background: #93B5E8 !important; color: #0F172A !important; border-color: #93B5E8 !important; }
html.dark .a11y-separator { background: var(--dm-border); }
html.dark .site-header { background: var(--dm-surface); border-bottom-color: var(--dm-border); box-shadow: 0 1px 10px rgba(0,0,0,.3); }
html.dark .header-brand .brand-title { color: #93B5E8; }
html.dark .header-brand .brand-subtitle { color: #F5C842; }
html.dark .header-nav a { color: #94A3B8; }
html.dark .header-nav a:hover { background: var(--dm-hover); color: #93B5E8; }
html.dark .header-nav a.nav-active { color: #fff; background: linear-gradient(135deg, #1E3A5F, #2D6CB4); box-shadow: 0 2px 8px rgba(27,63,110,.3); }
html.dark .header-mobile-btn { color: #93B5E8; }
html.dark .header-mobile-btn:hover { background: var(--dm-hover); }
/* Dark: Auth area in main header */
html.dark #authArea span[style*="color:#1B3F6E"],
html.dark #headerAuth span[style*="color:#1B3F6E"] { color: #93B5E8 !important; }
html.dark #authArea div[style*="background:#EEF3FA"],
html.dark #headerAuth div[style*="background:#EEF3FA"] { background: var(--dm-hover) !important; border-color: var(--dm-border) !important; }
html.dark #authArea a[style*="background:#1B3F6E"],
html.dark #headerAuth a[style*="background:#1B3F6E"] { background: #93B5E8 !important; color: #0F172A !important; }
html.dark #authArea a[style*="border:1.5px solid"],
html.dark #headerAuth a[style*="border:1.5px solid"] { border-color: var(--dm-border) !important; background: transparent !important; color: #93B5E8 !important; }
html.dark #authArea button[style*="color:#C8102E"],
html.dark #headerAuth button[style*="color:#C8102E"] { color: #FCA5A5 !important; background: rgba(252,165,165,.1) !important; border-color: #7F1D1D !important; }
/* Legacy selectors kept for compatibility */
html.dark .site-header p[style*="color:#1B3F6E"] { color: #93B5E8 !important; }
html.dark .site-header p[style*="color:#C9922A"] { color: #F5C842 !important; }
html.dark .desktop-nav a { color: #94A3B8 !important; }
html.dark .desktop-nav a[style*="color:#1B3F6E"] { color: #93B5E8 !important; }

/* Dark: Cards & Surfaces */
html.dark .service-home-card,
html.dark .benefit-card,
html.dark .form-card,
html.dark .service-card,
html.dark .job-card,
html.dark .dash-stat,
html.dark .tr-entry,
html.dark .modal-card,
html.dark .request-card,
html.dark .task-card { background: var(--dm-card); border-color: var(--dm-border); }

html.dark .service-home-card h3,
html.dark .job-card h3 { color: var(--dm-text); }
html.dark .service-home-card p,
html.dark .job-card p { color: var(--dm-text-secondary); }

html.dark .service-card:hover { background: var(--dm-hover); border-color: var(--dm-border); }
html.dark .job-card:hover { border-color: #475569; }

/* Dark: Inputs */
html.dark .fi { background: var(--dm-surface); border-color: var(--dm-border); color: var(--dm-text); }
html.dark .fi:focus { border-color: #93B5E8; box-shadow: 0 0 0 3px rgba(147,181,232,.15); }
html.dark .fi:disabled, html.dark .fi[readonly] { background: #0F172A; color: #64748B; }
html.dark select.fi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393B5E8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); }
html.dark .fl { color: #CBD5E1; }

/* Dark: Buttons */
html.dark .btn-s { background: var(--dm-surface); color: #CBD5E1; border-color: var(--dm-border); }
html.dark .btn-s:hover { background: var(--dm-hover); color: #93B5E8; border-color: #93B5E8; }
html.dark .btn-d { background: #2D1215; color: #FCA5A5; border-color: #7F1D1D; }
html.dark .btn-g { background: #0D2818; color: #4ADE80; border-color: #166534; }

/* Dark: Section Titles */
html.dark .sec-title { background: rgba(147,181,232,.1); border-right-color: #93B5E8; color: #93B5E8; }
html.ltr.dark .sec-title { border-right-color: transparent; border-left-color: #93B5E8; }

/* Dark: Category Pills */
html.dark .cat-pill { background: var(--dm-surface); border-color: var(--dm-border); color: #94A3B8; }

/* Dark: Tags */
html.dark .tag { opacity: .9; }

/* Dark: Summary Rows */
html.dark .sr { border-bottom-color: var(--dm-border); }
html.dark .sl { color: #64748B; }
html.dark .sv { color: var(--dm-text); }

/* Dark: Toast */
html.dark .toast.success { background: #0D2818; color: #4ADE80; border-color: #166534; }
html.dark .toast.error { background: #2D1215; color: #FCA5A5; border-color: #7F1D1D; }
html.dark .toast.info { background: var(--dm-surface); color: #93B5E8; border-color: var(--dm-border); }

/* Dark: Notification Panel */
html.dark .notif-panel { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .notif-bell { color: #94A3B8; }

/* Dark: Modal */
html.dark .modal-overlay { background: rgba(0,0,0,.7); }

/* Dark: Help Widget */
html.dark .help-panel { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .help-accordion { border-bottom-color: var(--dm-border); }
html.dark .help-acc-btn { color: #93B5E8; }
html.dark .help-acc-body { color: #94A3B8; }
html.dark .help-acc-icon { background: rgba(147,181,232,.1); }

/* Dark: Mobile Menu Panel */
html.dark #mobileMenuOverlay > div { background: var(--dm-card) !important; color: var(--dm-text) !important; }
html.dark #mobileMenuOverlay > div a { color: var(--dm-text) !important; }

/* Dark: Bottom Nav */
html.dark .bottom-nav { background: var(--dm-surface); border-top-color: var(--dm-border); }

/* Dark: Footer */
html.dark .site-footer { background: #0B1120; }
html.dark .footer-heading { color: #E2E8F0 !important; }
html.dark .footer-logo { border-color: rgba(201,146,42,.35) !important; background: #1a2744 !important; }

/* Dark: Auth area overrides */
html.dark [style*="background:#EEF3FA"],
html.dark [style*="background:#F8FAFC"] { background: var(--dm-surface) !important; }
html.dark [style*="border:1px solid #D9E4F5"],
html.dark [style*="border:1px solid #E8EDF5"] { border-color: var(--dm-border) !important; }
html.dark [style*="color:#1B3F6E"] { color: #93B5E8 !important; }
html.dark [style*="color:#64748B"] { color: #94A3B8 !important; }
html.dark [style*="color:#334155"] { color: #CBD5E1 !important; }
html.dark [style*="color:#1a2535"] { color: #F1F5F9 !important; }
html.dark [style*="color:#1e293b"] { color: #F1F5F9 !important; }
html.dark [style*="background:#fff"],
html.dark [style*="background: #fff"],
html.dark [style*="background:#ffffff"] { background: var(--dm-card) !important; }

/* Dark: Misc page-specific */
html.dark .check-item:hover { background: var(--dm-hover); }
html.dark .stat-mini { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .filter-pill { background: var(--dm-surface); border-color: var(--dm-border); color: #94A3B8; }
html.dark .similar-job,
html.dark .similar-course,
html.dark .cv-item,
html.dark .record-item { background: var(--dm-surface); border-color: var(--dm-border); }
html.dark .similar-job:hover,
html.dark .similar-course:hover { border-color: #475569; }
html.dark .detail-card { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .detail-section { border-bottom-color: var(--dm-border); }
html.dark .detail-section h4 { color: #93B5E8; border-bottom-color: rgba(147,181,232,.15); }
html.dark .info-row { border-bottom-color: var(--dm-border); }
html.dark .info-row .info-label { color: #64748B; }
html.dark .info-row .info-value { color: var(--dm-text); }

/* Dark: Government Badges */
html.dark .govt-badge { opacity: .9; }
html.dark .govt-badge-lg { background: rgba(26,122,74,.12); border-color: #166534; }

/* Dark: Dashboard cards */
html.dark .dash-card { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .dash-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
html.dark .req-mini { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .req-mini:hover { border-color: #475569; }

/* Dark: Profile tabs */
html.dark .profile-tabs { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .profile-tab { color: #94A3B8; }
html.dark .profile-tab:hover { background: var(--dm-hover); color: #93B5E8; border-color: var(--dm-border); }

/* Dark: Pathway cards */
html.dark .pathway-card { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .pw-item { background: var(--dm-surface); border-color: var(--dm-border); }
html.dark .pw-item:hover { border-color: #475569; }

/* Dark: Comparison */
html.dark .cmp-modal { background: var(--dm-card); }
html.dark .cmp-table th { background: #0F172A; }
html.dark .cmp-table td { border-bottom-color: var(--dm-border); color: var(--dm-text); }
html.dark .cmp-bar { background: var(--dm-surface); border-color: var(--dm-border); }

/* Dark: Skills gap */
html.dark .sg-card { background: var(--dm-card); border-color: var(--dm-border); }

/* Dark: Job Market page */
html.dark .jm-card { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .jm-stat { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .gov-item { background: var(--dm-surface); border-color: var(--dm-border); }
html.dark .gov-item:hover { background: var(--dm-hover); border-color: #C9922A; }
html.dark .sal-table th { background: #0F172A; }
html.dark .sal-table td { border-bottom-color: var(--dm-border); color: var(--dm-text); }
html.dark .sal-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }
html.dark .sal-table tr:hover td { background: var(--dm-hover); }
html.dark .hbar-track { background: var(--dm-surface); }
html.dark .skill-tag { background: rgba(147,181,232,.1); color: #93B5E8; border-color: rgba(147,181,232,.2); }
html.dark .skill-tag-hot { background: rgba(220,38,38,.15); color: #FCA5A5; border-color: rgba(220,38,38,.3); }
html.dark .skill-tag-warm { background: rgba(245,158,11,.12); color: #FCD34D; border-color: rgba(245,158,11,.25); }

/* Dark: Alerts */
html.dark .alert-item { background: var(--dm-surface); border-color: var(--dm-border); }

/* Dark: Filter sidebar (jobs page) */
html.dark .filter-sidebar { background: var(--dm-card); border-color: var(--dm-border); }
html.dark .filter-sidebar label { color: #CBD5E1; }

/* Dark: Timeline */
html.dark .tl-step { border-color: var(--dm-border); }

/* Dark: CV Preview */
html.dark .cv-page { background: var(--dm-card); border-color: var(--dm-border); }

/* ══════════════ HIGH CONTRAST MODE (Light) ══════════════ */
html.high-contrast {
  --navy: #00006B; --navy-dark: #000033;
  --gold: #8B6914; --gold-light: #A67C00;
}

/* ── HC: Global ── */
html.high-contrast body { background: #fff !important; color: #000 !important; }
html.high-contrast a { color: #00006B !important; text-decoration: underline !important; }
html.high-contrast *:focus-visible { outline: 3px solid #000 !important; outline-offset: 2px !important; }
html.high-contrast img { filter: contrast(1.1); }

/* ── HC: Utility Bar ── */
html.high-contrast .utility-bar { background: #F0F0F0 !important; border-color: #000 !important; border-bottom-width: 2px !important; }
html.high-contrast .a11y-btn { background: #fff !important; border: 2px solid #000 !important; color: #000 !important; }
html.high-contrast .a11y-btn:hover { background: #000 !important; color: #fff !important; }
html.high-contrast .a11y-btn.active { background: #000 !important; color: #fff !important; outline: 3px solid #8B6914 !important; outline-offset: 1px; }
html.high-contrast .a11y-btn:disabled { opacity: .4; }
html.high-contrast .a11y-separator { background: #000 !important; }

/* ── HC: Site Header ── */
html.high-contrast .site-header { background: #fff !important; border-bottom: 2px solid #000 !important; box-shadow: none !important; }
html.high-contrast .header-brand .brand-title { color: #000 !important; }
html.high-contrast .header-brand .brand-subtitle { color: #000 !important; }
html.high-contrast .header-nav a { color: #00006B !important; }
html.high-contrast .header-nav a:hover { background: #000 !important; color: #fff !important; }
html.high-contrast .header-nav a.nav-active { background: #000 !important; color: #fff !important; }

/* ── HC: Cards & Surfaces ── */
html.high-contrast .service-home-card,
html.high-contrast .service-card,
html.high-contrast .job-card,
html.high-contrast .dash-stat,
html.high-contrast .form-card,
html.high-contrast .request-card,
html.high-contrast .task-card,
html.high-contrast .tr-entry,
html.high-contrast .modal-card,
html.high-contrast .dash-card,
html.high-contrast .detail-card,
html.high-contrast .pathway-card,
html.high-contrast .benefit-card,
html.high-contrast .req-mini,
html.high-contrast .filter-sidebar,
html.high-contrast .stat-mini { background: #fff !important; border: 2px solid #000 !important; }

/* ── HC: Inputs & Labels ── */
html.high-contrast .fi { background: #fff !important; border: 2px solid #000 !important; color: #000 !important; }
html.high-contrast .fi:focus { border-color: #00006B !important; box-shadow: 0 0 0 3px rgba(0,0,107,.3) !important; }
html.high-contrast .fi::placeholder { color: #595959 !important; }
html.high-contrast .fi.err { border-color: #B30000 !important; }
html.high-contrast .fl { color: #000 !important; }
html.high-contrast select.fi { border-right-width: 2px !important; }

/* ── HC: Buttons ── */
html.high-contrast .btn-p { background: #000 !important; color: #fff !important; border: 2px solid #000 !important; box-shadow: none !important; }
html.high-contrast .btn-p:hover { background: #333 !important; }
html.high-contrast .btn-s { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.high-contrast .btn-s:hover { background: #000 !important; color: #fff !important; }
html.high-contrast .btn-d { background: #fff !important; color: #B30000 !important; border: 2px solid #B30000 !important; }
html.high-contrast .btn-g { background: #fff !important; color: #006400 !important; border: 2px solid #006400 !important; }
html.high-contrast button, html.high-contrast input { border-width: 2px !important; }

/* ── HC: Tags & Pills ── */
html.high-contrast .cat-pill { background: #fff !important; border: 2px solid #000 !important; color: #000 !important; }
html.high-contrast .tag { border: 1px solid #000 !important; }
html.high-contrast .filter-pill { background: #fff !important; border: 2px solid #000 !important; color: #000 !important; }

/* ── HC: Sections & Dividers ── */
html.high-contrast .sec-title { background: #F0F0F0 !important; border-right-color: #000 !important; color: #000 !important; }
html.ltr.high-contrast .sec-title { border-right-color: transparent !important; border-left-color: #000 !important; }
html.high-contrast .sr { border-bottom-color: #000 !important; }
html.high-contrast .sl { color: #000 !important; }
html.high-contrast .sv { color: #000 !important; }
html.high-contrast .info-row { border-bottom-color: #666 !important; }
html.high-contrast .info-row .info-label { color: #000 !important; }
html.high-contrast .info-row .info-value { color: #000 !important; }
html.high-contrast .detail-section { border-bottom-color: #000 !important; }
html.high-contrast .detail-section h4 { color: #000 !important; border-bottom-color: #000 !important; }

/* ── HC: Toast & Alerts ── */
html.high-contrast .toast.success { background: #fff !important; color: #006400 !important; border: 2px solid #006400 !important; }
html.high-contrast .toast.error { background: #fff !important; color: #B30000 !important; border: 2px solid #B30000 !important; }
html.high-contrast .toast.info { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }

/* ── HC: Footer ── */
html.high-contrast .site-footer { background: #000 !important; }
html.high-contrast .site-footer p,
html.high-contrast .site-footer span,
html.high-contrast .site-footer a { color: #fff !important; }
html.high-contrast .footer-heading { color: #fff !important; }
html.high-contrast .footer-link { color: #fff !important; }
html.high-contrast .footer-logo { border-color: #fff !important; }
html.high-contrast .footer-social { background:#fff !important; color:#000 !important; }

/* ── HC: Tables ── */
html.high-contrast .sal-table th,
html.high-contrast .cmp-table th { background: #000 !important; color: #fff !important; }
html.high-contrast .sal-table td,
html.high-contrast .cmp-table td { border-bottom: 1px solid #000 !important; color: #000 !important; }

/* ═════════ HIGH CONTRAST + DARK MODE (Combined) ═════════ */
html.dark.high-contrast {
  --navy: #AACCFF; --navy-dark: #DDEEFF;
  --gold: #FFD700; --gold-light: #FFE44D;
}
html.dark.high-contrast body { background: #000 !important; color: #fff !important; }
html.dark.high-contrast a { color: #AACCFF !important; }
html.dark.high-contrast *:focus-visible { outline: 3px solid #FFD700 !important; outline-offset: 2px !important; }

/* Dark+HC: Utility Bar */
html.dark.high-contrast .utility-bar { background: #1A1A1A !important; border-color: #fff !important; }
html.dark.high-contrast .a11y-btn { background: #000 !important; border-color: #fff !important; color: #fff !important; }
html.dark.high-contrast .a11y-btn:hover { background: #fff !important; color: #000 !important; }
html.dark.high-contrast .a11y-btn.active { background: #fff !important; color: #000 !important; outline-color: #FFD700 !important; }
html.dark.high-contrast .a11y-separator { background: #666 !important; }

/* Dark+HC: Header */
html.dark.high-contrast .site-header { background: #000 !important; border-color: #fff !important; }
html.dark.high-contrast .header-brand .brand-title { color: #fff !important; }
html.dark.high-contrast .header-nav a { color: #AACCFF !important; }
html.dark.high-contrast .header-nav a:hover,
html.dark.high-contrast .header-nav a.nav-active { background: #fff !important; color: #000 !important; }

/* Dark+HC: Cards */
html.dark.high-contrast .service-home-card,
html.dark.high-contrast .service-card,
html.dark.high-contrast .job-card,
html.dark.high-contrast .dash-stat,
html.dark.high-contrast .form-card,
html.dark.high-contrast .request-card,
html.dark.high-contrast .task-card,
html.dark.high-contrast .tr-entry,
html.dark.high-contrast .modal-card,
html.dark.high-contrast .dash-card,
html.dark.high-contrast .detail-card,
html.dark.high-contrast .req-mini,
html.dark.high-contrast .filter-sidebar,
html.dark.high-contrast .stat-mini { background: #0A0A0A !important; border: 2px solid #fff !important; }

/* Dark+HC: Inputs */
html.dark.high-contrast .fi { background: #0A0A0A !important; border: 2px solid #fff !important; color: #fff !important; }
html.dark.high-contrast .fi:focus { border-color: #AACCFF !important; box-shadow: 0 0 0 3px rgba(170,204,255,.3) !important; }
html.dark.high-contrast .fi::placeholder { color: #999 !important; }
html.dark.high-contrast .fi.err { border-color: #FF6666 !important; }
html.dark.high-contrast .fl { color: #fff !important; }

/* Dark+HC: Buttons */
html.dark.high-contrast .btn-p { background: #fff !important; color: #000 !important; border: 2px solid #fff !important; }
html.dark.high-contrast .btn-p:hover { background: #DDD !important; }
html.dark.high-contrast .btn-s { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.dark.high-contrast .btn-s:hover { background: #fff !important; color: #000 !important; }
html.dark.high-contrast .btn-d { background: #000 !important; color: #FF6666 !important; border: 2px solid #FF6666 !important; }

/* Dark+HC: Sections & Misc */
html.dark.high-contrast .sec-title { background: #1A1A1A !important; border-right-color: #fff !important; color: #fff !important; }
html.ltr.dark.high-contrast .sec-title { border-right-color: transparent !important; border-left-color: #fff !important; }
html.dark.high-contrast .cat-pill,
html.dark.high-contrast .filter-pill { background: #0A0A0A !important; border-color: #fff !important; color: #fff !important; }
html.dark.high-contrast .sr { border-bottom-color: #666 !important; }
html.dark.high-contrast .sl,
html.dark.high-contrast .sv { color: #fff !important; }

/* Dark+HC: Footer */
html.dark.high-contrast .site-footer { background: #0A0A0A !important; border-top: 2px solid #fff !important; }
html.dark.high-contrast .footer-heading { color: #fff !important; }
html.dark.high-contrast .footer-link { color: #ccc !important; }
html.dark.high-contrast .footer-link:hover { color: #fff !important; }
html.dark.high-contrast .footer-logo { border-color: #fff !important; background: #1A1A1A !important; }
html.dark.high-contrast .footer-social { background:#fff !important; color:#000 !important; }

/* Dark+HC: Toast */
html.dark.high-contrast .toast.success { background: #000 !important; color: #66FF66 !important; border: 2px solid #66FF66 !important; }
html.dark.high-contrast .toast.error { background: #000 !important; color: #FF6666 !important; border: 2px solid #FF6666 !important; }

/* ── Language Toggle ── */
.lang-toggle {
  background: none; border: 1.5px solid #D9E4F5; cursor: pointer;
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 800; color: #1B3F6E;
  font-family: 'Cairo', Arial, sans-serif;
  transition: all .2s; letter-spacing: 0.5px;
}
.lang-toggle:hover { background: #EEF3FA; border-color: #1B3F6E; }
html.dark .lang-toggle { color: #93B5E8; border-color: var(--dm-border); }
html.dark .lang-toggle:hover { background: var(--dm-hover); border-color: #93B5E8; }

/* ══════════════ LTR SUPPORT ══════════════ */
html.ltr { direction: ltr; text-align: left; }
html.ltr body { direction: ltr; text-align: left; }

/* LTR: Header */
html.ltr .utility-bar .ub-inner { direction: rtl; }
html.ltr .site-header .sh-inner { direction: ltr; }
html.ltr .site-header .flex { flex-direction: row; }
html.ltr .mobile-nav { order: -1; }

/* LTR: Bottom Nav */
html.ltr .bottom-nav { direction: ltr; }

/* LTR: Cards & Badges */
html.ltr .govt-badge { text-align: left; }
html.ltr .badge-pill { text-align: left; }

/* LTR: Notification Panel */
html.ltr .notif-panel { right: auto; left: 0; }

/* LTR: Help Widget */
html.ltr .help-fab { left: auto; right: 24px; }
html.ltr .help-panel { left: auto; right: 24px; }

/* LTR: Timeline */
html.ltr .tl-step::before { left: auto; right: 16px; }
html.ltr .tl-line { left: auto; right: 22px; }

/* LTR: Mobile Menu */
html.ltr #mobileMenuOverlay > div { right: auto !important; left: 0 !important; box-shadow: 4px 0 24px rgba(0,0,0,.15) !important; }

/* LTR: Sidebar Filters */
html.ltr .filter-sidebar { text-align: left; }

/* LTR: Footer */
html.ltr .site-footer { text-align: left; }

/* LTR: Profile Tabs direction */
html.ltr [role="tablist"] { direction: ltr; }

/* LTR: Directional arrow — flips left-arrow to right-arrow */
.dir-arrow { display: inline-block; transition: transform .15s; }
html.ltr .dir-arrow { transform: scaleX(-1); }

/* LTR: Section headings alignment */
html.ltr .section-title { text-align: left; }

/* LTR: Responsive adjustments */
@media (max-width: 768px) {
  html.ltr .help-fab { right: 24px; left: auto; }
  html.ltr .help-panel { right: 24px; left: auto; }
}

/* ══════════════ FINAL POLISH ══════════════ */
/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Better selection highlight */
::selection { background: rgba(27,63,110,.15); color: #0E1C35; }
html.dark ::selection { background: rgba(147,181,232,.25); color: #F1F5F9; }

/* Smooth image loading */
img { transition: opacity .3s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded, img:not([loading="lazy"]) { opacity: 1; }

/* Improved link transitions */
a { transition: color .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease; }

/* Better button press feedback */
button:active:not(:disabled), a.btn:active { transform: scale(0.97); }

/* Subtle card appear animation */
.service-card, .service-home-card { animation: cardAppear 0.4s ease-out both; }
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered card animations */
.service-card:nth-child(1), .service-home-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2), .service-home-card:nth-child(2) { animation-delay: 0.05s; }
.service-card:nth-child(3), .service-home-card:nth-child(3) { animation-delay: 0.1s; }
.service-card:nth-child(4), .service-home-card:nth-child(4) { animation-delay: 0.15s; }
.service-card:nth-child(5), .service-home-card:nth-child(5) { animation-delay: 0.2s; }
.service-card:nth-child(6), .service-home-card:nth-child(6) { animation-delay: 0.25s; }

/* Scroll to top smooth transition on pagination */
.pagination a, .pagination button { transition: all .2s ease; }
.pagination a:hover, .pagination button:hover { transform: scale(1.08); }

/* Toast enhancement */
.toast-notification { backdrop-filter: blur(8px); }

/* ── Flag Strip ── */
.flag-strip { background: linear-gradient(90deg, var(--ruby) 33.33%, #fff 33.33% 66.66%, #000 66.66%); }

/* ══════════════ TWO-ROW HEADER ══════════════ */

/* ── Header Wrapper (sticky container for both rows) ── */
.header-wrapper {
  position: sticky; top: 0; z-index: 100;
}

/* ── Accessibility Toolbar (Top Row) — matching منصة العمل المصرية ── */
.utility-bar {
  background: #EEF3FA;
  border-bottom: 1px solid #D5E2F3;
  padding: 3px 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px !important; /* lock — immune to root font-size changes */
}
.utility-bar .ub-inner {
  display: flex; align-items: center; gap: 6px;
  padding: 0 24px; justify-content: flex-end;
}
@media (min-width: 640px) { .utility-bar .ub-inner { padding: 0 32px; } }

/* Utility controls group */
.utility-controls {
  display: flex; align-items: center; gap: 6px;
}

/* a11y Button (shared style — font, contrast, dark) */
.a11y-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border: 1.5px solid #D5E2F3; border-radius: 8px;
  background: #fff; color: #1B3F6E;
  font-size: 12px; font-weight: 700; font-family: 'Cairo', sans-serif;
  cursor: pointer; transition: all 0.2s; line-height: 1;
}
.a11y-btn:hover { background: #1B3F6E; color: #fff; border-color: #1B3F6E; }
.a11y-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.a11y-btn.active { background: #1B3F6E; color: #fff; border-color: #1B3F6E; }

/* Font size label button */
.font-reset-btn { min-width: 42px; font-size: 11px !important; letter-spacing: .3px; }
/* Disabled font step button */
.a11y-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* Separator between button groups */
.a11y-separator { width: 1px; height: 18px; background: #D5E2F3; margin: 0 2px; }

/* ── Main Header (Bottom Row) ── */
.site-header {
  background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
  border-bottom: 2px solid #E2E8F0;
  box-shadow: 0 2px 16px rgba(14,28,53,.06);
}
.site-header .sh-inner {
  max-width: none; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
@media (min-width: 640px) { .site-header .sh-inner { padding: 0 32px; } }

/* Brand section */
.header-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.header-brand img {
  width: 46px; height: 46px; border-radius: 50%;
  flex-shrink: 0; object-fit: contain;
  border: 2.5px solid #C9922A;
  box-shadow: 0 2px 8px rgba(201,146,42,.15);
}
.header-brand .brand-title {
  font-weight: 900; font-size: 15px; line-height: 1.3;
  color: #1B3F6E;
}
.header-brand .brand-subtitle {
  font-weight: 600; font-size: 11px;
  color: #C9922A;
}

/* Desktop Nav in main header */
.header-nav {
  display: none; align-items: center; gap: 2px;
}
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700;
  color: #64748B; text-decoration: none;
  transition: all .2s; position: relative;
}
.header-nav a:hover { background: #EEF3FA; color: #1B3F6E; transform: translateY(-1px); }
.header-nav a.nav-active {
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #1B3F6E, #2D6CB4);
  box-shadow: 0 2px 8px rgba(27,63,110,.2);
}
.header-nav a.nav-active:hover { transform: translateY(-1px); }

/* Mobile nav button */
.header-mobile-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #1B3F6E; padding: 6px; border-radius: 8px;
}
.header-mobile-btn:hover { background: #F1F5F9; }
@media (min-width: 768px) { .header-mobile-btn { display: none; } }

/* ── User Menu Dropdown ── */
.user-menu-wrap { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 12px;
  background: #EEF3FA; border: 1px solid #D9E4F5;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all .2s; outline: none;
}
.user-chip:hover { background: #E0EAF6; border-color: #C0D0E8; }
.user-chip-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #C9922A, #a07820);
  flex-shrink: 0;
}
.user-chip-name {
  font-size: 13px; font-weight: 700; color: #1B3F6E;
  display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 640px) { .user-chip-name { display: block; } }
.user-chip-arrow {
  transition: transform .2s; color: #94A3B8; flex-shrink: 0;
}
.user-dropdown.open ~ .user-chip .user-chip-arrow,
.user-chip[aria-expanded="true"] .user-chip-arrow { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px);
  background: #fff; border-radius: 16px; min-width: 220px;
  box-shadow: 0 12px 40px rgba(14,28,53,.15), 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #E8EDF5;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s ease; z-index: 200;
  overflow: hidden;
}
[dir="rtl"] .user-dropdown { right: 0; left: auto; }
[dir="ltr"] .user-dropdown { left: 0; right: auto; }
.user-dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ud-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
}
.ud-name { font-size: 14px; font-weight: 800; color: #0E1C35; }
.ud-role { font-size: 11px; font-weight: 600; color: #94A3B8; }
.ud-divider { height: 1px; background: #F1F5F9; margin: 0; }
.ud-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  color: #334155; text-decoration: none; cursor: pointer;
  transition: background .15s;
  background: none; border: none; width: 100%;
  font-family: 'Cairo', sans-serif;
}
.ud-item:hover { background: #F8FAFC; }
.ud-item svg { color: #94A3B8; flex-shrink: 0; }
.ud-item:hover svg { color: #1B3F6E; }
.ud-logout { color: #DC2626 !important; }
.ud-logout:hover { background: #FEF2F2 !important; }
.ud-logout svg { color: #DC2626 !important; }

/* Dark mode user menu */
html.dark .user-chip { background: var(--dm-surface); border-color: var(--dm-border); }
html.dark .user-chip:hover { background: var(--dm-hover); }
html.dark .user-chip-name { color: var(--dm-text); }
html.dark .user-dropdown { background: var(--dm-card); border-color: var(--dm-border); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
html.dark .ud-name { color: var(--dm-text); }
html.dark .ud-role { color: #64748B; }
html.dark .ud-divider { background: var(--dm-border); }
html.dark .ud-item { color: #CBD5E1; }
html.dark .ud-item:hover { background: var(--dm-hover); }
html.dark .ud-item svg { color: #64748B; }
html.dark .ud-item:hover svg { color: #93B5E8; }
html.dark .ud-logout { color: #FF6B6B !important; }
html.dark .ud-logout:hover { background: rgba(220,38,38,.1) !important; }
html.dark .ud-logout svg { color: #FF6B6B !important; }

/* ── Auth Dropdown (Login/Register) ── */
.auth-dd-wrap { position: relative; display: inline-block; }
.auth-dd-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700; padding: 8px 16px;
  border-radius: 12px; cursor: pointer; transition: all .2s;
  text-decoration: none; font-family: 'Cairo', sans-serif; border: none;
}
.auth-dd-btn svg.dd-arrow { width: 12px; height: 12px; transition: transform .2s; flex-shrink: 0; }
.auth-dd-btn--outline {
  color: #1B3F6E; background: #fff; border: 1.5px solid #D9E4F5;
}
.auth-dd-btn--outline:hover { background: #F0F4FB; }
.auth-dd-btn--fill {
  color: #fff; background: #1B3F6E;
}
.auth-dd-btn--fill:hover { background: #163560; }
.auth-dd-menu {
  position: absolute; top: calc(100% + 6px);
  background: #fff; border-radius: 14px; min-width: 190px;
  box-shadow: 0 10px 36px rgba(14,28,53,.14), 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #E8EDF5;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s ease; z-index: 210; overflow: hidden;
}
[dir="rtl"] .auth-dd-menu { right: 0; left: auto; }
[dir="ltr"] .auth-dd-menu { left: 0; right: auto; }
.auth-dd-wrap.open .auth-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.auth-dd-wrap.open .dd-arrow { transform: rotate(180deg); }
.auth-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13px; font-weight: 700;
  color: #334155; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.auth-dd-item:first-child { padding-top: 14px; }
.auth-dd-item:last-child { padding-bottom: 14px; }
.auth-dd-item:hover { background: #F0F4FB; }
.auth-dd-item .dd-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.auth-dd-item .dd-ico--user { background: #EEF3FA; }
.auth-dd-item .dd-ico--company { background: #FEF3C7; }
.auth-dd-item .dd-meta { font-size: 11px; font-weight: 600; color: #94A3B8; margin-top: 1px; }

/* Dark mode auth dropdown */
html.dark .auth-dd-btn--outline { background: var(--dm-surface); border-color: var(--dm-border); color: #93B5E8; }
html.dark .auth-dd-btn--outline:hover { background: var(--dm-hover); }
html.dark .auth-dd-btn--fill { background: #93B5E8; color: #0F172A; }
html.dark .auth-dd-menu { background: var(--dm-card); border-color: var(--dm-border); box-shadow: 0 10px 36px rgba(0,0,0,.4); }
html.dark .auth-dd-item { color: #CBD5E1; }
html.dark .auth-dd-item:hover { background: var(--dm-hover); }
html.dark .auth-dd-item .dd-ico--user { background: rgba(147,181,232,.12); }
html.dark .auth-dd-item .dd-ico--company { background: rgba(240,192,96,.12); }
html.dark .auth-dd-item .dd-meta { color: #64748B; }

/* ── Hero Section ── */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #2565a8 100%);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 80%, rgba(201,146,42,.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(204,20,38,.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.02) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-dots {
  position: absolute; inset: 0; opacity: .03;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Hero Search ── */
.hero-search-wrap { position: relative; }
[dir="rtl"] .hero-search-wrap input { padding-right: 48px; }
[dir="rtl"] .hero-search-wrap .hero-search-ico { position: absolute; right: 16px; left: auto; top: 50%; transform: translateY(-50%); }
[dir="ltr"] .hero-search-wrap input { padding-left: 48px; padding-right: 20px; }
[dir="ltr"] .hero-search-wrap .hero-search-ico { position: absolute; left: 16px; right: auto; top: 50%; transform: translateY(-50%); }

.hero-search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 16px; z-index: 100;
  box-shadow: 0 16px 50px rgba(14,28,53,0.25), 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden; animation: heroDropIn 0.2s ease;
}
@keyframes heroDropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.hero-search-dropdown.hidden { display: none; }
.hero-search-hint {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 16px 20px; color: #94A3B8; font-size: 13px; font-weight: 600;
}
.hero-search-results { max-height: 340px; overflow-y: auto; padding: 4px 8px 8px; }
.hero-search-results:empty { display: none; }
.hero-search-results .search-group-title { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: #94A3B8; padding: 8px 12px 4px; }
.hero-search-results .search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #1a2535; transition: background 0.15s; cursor: pointer; }
.hero-search-results .search-result-item:hover { background: #EEF3FA; }
.hero-search-results .search-result-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.hero-search-results .search-result-text { flex: 1; min-width: 0; }
.hero-search-results .search-result-title { font-size: 14px; font-weight: 700; color: #1a2535; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-search-results .search-result-desc { font-size: 12px; color: #94A3B8; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-search-results .search-result-arrow { color: #CBD5E1; flex-shrink: 0; }
[dir="rtl"] .hero-search-results .search-result-arrow { transform: scaleX(-1); }
.hero-search-results .search-result-item:hover .search-result-arrow { color: var(--navy); }
.hero-search-results .search-no-results { text-align: center; padding: 24px 16px; color: #94A3B8; }
.hero-search-results .search-no-results svg { margin: 0 auto 8px; opacity: 0.4; }
.hero-search-results .search-no-results p { font-size: 13px; font-weight: 600; }

/* Hero search input states */
#heroSearch::placeholder { color: rgba(255,255,255,0.45); }
#heroSearch:focus { background: rgba(255,255,255,0.18) !important; border-color: rgba(201,146,42,0.7) !important; }

/* Dark mode hero section (matching منصة العمل المصرية) */
html.dark .hero-section {
  background: linear-gradient(135deg, #0a101e 0%, #1a2535 50%, #1e3a5f 100%) !important;
}
html.dark .hero-section::before {
  background:
    radial-gradient(circle at 10% 80%, rgba(240,192,96,.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(255,107,122,.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.01) 0%, transparent 70%) !important;
}
html.dark .hero-pattern { opacity: 0.02 !important; }
html.dark #heroSearch { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.12) !important; }
html.dark #heroSearch:focus { background: rgba(255,255,255,0.12) !important; border-color: rgba(240,192,96,0.5) !important; }
html.dark .glass-stat {
  background: rgba(30,42,58,0.8) !important;
  border-color: rgba(42,58,78,0.8) !important;
  backdrop-filter: blur(8px);
}
html.dark .glass-stat .gs-num { color: #fff !important; }
html.dark .glass-stat .gs-label { color: #fff !important; }

/* Dark mode hero search dropdown */
html.dark .hero-search-dropdown { background: var(--dm-card); box-shadow: 0 16px 50px rgba(0,0,0,0.5); }
html.dark .hero-search-hint { color: #64748B; }
html.dark .hero-search-results .search-result-item { color: var(--dm-text); }
html.dark .hero-search-results .search-result-item:hover { background: rgba(255,255,255,0.05); }
html.dark .hero-search-results .search-result-title { color: var(--dm-text); }
html.dark .hero-search-results .search-no-results { color: #64748B; }

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, #1e4f8c 100%);
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 85%, rgba(201,146,42,.15) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(200,16,46,.08) 0%, transparent 45%);
  pointer-events: none;
}
html.dark .page-banner {
  background: linear-gradient(135deg, #0a101e 0%, #1a2535 50%, #1e3a5f 100%) !important;
}

/* ── Service Home Cards (Landing Page) ── */
.service-home-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 20px;
  padding: 32px 24px;
  transition: all .3s ease;
  position: relative; overflow: hidden;
  text-decoration: none; display: block; text-align: center;
}
.service-home-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  opacity: 0; transition: opacity .3s;
}
.service-home-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,63,110,.15); }
.service-home-card:hover::before { opacity: .04; }
.service-home-card .shc-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 16px; position: relative; z-index: 1;
}
.service-home-card h3 { font-size: 16px; font-weight: 900; position: relative; z-index: 1; color: #1a2535; }
.service-home-card p { font-size: 13px; color: #64748B; line-height: 1.7; margin-top: 8px; position: relative; z-index: 1; }
.service-home-card .shc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14px; font-weight: 800;
  position: relative; z-index: 1;
}

/* ── Benefit Card ── */
.benefit-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 16px;
  padding: 22px 18px;
  transition: all .3s ease;
  position: relative; overflow: hidden;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(27,63,110,.13); }

/* ── Form Card ── */
.form-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(14,28,53,.08);
  overflow: hidden;
}

/* ── Section Titles ── */
.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 900; color: var(--navy);
  padding: 9px 14px;
  background: #EEF3FA;
  border-right: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}
html.ltr .sec-title { border-right: none; border-left: 3px solid var(--navy); border-radius: 8px 0 0 8px; }

/* ── Inputs ── */
.fi {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #CBD5E1; border-radius: 10px;
  font-family: 'Cairo', sans-serif; font-size: 14px;
  color: var(--navy-dark); background: #fff; outline: none;
  direction: rtl; transition: border-color .2s, box-shadow .2s;
}
.fi:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,63,110,.1); }
.fi.err   { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(200,16,46,.08); }
.fi.ok    { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(26,122,74,.08); }
html.ltr .fi { direction: ltr; text-align: left; }
.fi.ltr   { direction: ltr; text-align: right; letter-spacing: 1px; }
.fi.ltr::placeholder { letter-spacing: 0; }
html.ltr .fi.ltr { text-align: left; }
html.ltr .fi.ltr::placeholder { letter-spacing: 1px; }
.fi:disabled, .fi[readonly] { background: #F8FAFC; color: #94A3B8; cursor: not-allowed; }
/* ── Eye Toggle Button ── */
.eye-toggle {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  margin-top: -22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
  color: #94A3B8;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0; line-height: 1;
  border-radius: 8px;
}
.eye-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eye-toggle::after {
  content: '';
  display: block; width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.eye-toggle[data-visible]::after {
  content: '';
  display: block; width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") center/contain no-repeat;
}
select.fi {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B3F6E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
  padding-left: 38px;
}
.fg  { margin-bottom: 18px; }
.fl  { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.req { color: var(--ruby); }
.fh  { font-size: 11px; color: #94A3B8; margin-top: 4px; }
.fe  { font-size: 11px; color: var(--ruby); margin-top: 4px; display: none; }
.fe.show { display: block; }

/* ── Password Strength ── */
.str-row { display: flex; gap: 4px; margin-top: 8px; }
.str-seg { flex:1; height:4px; border-radius:99px; background:#E2E8F0; transition:background .35s; }
.str-lbl { font-size:11px; font-weight:700; color:#94A3B8; margin-top:5px; }
.ci      { display:flex; align-items:center; gap:5px; font-size:11px; color:#94A3B8; }
.ci.pass { color: var(--sage); }
.ci-dot  { width:14px; height:14px; border-radius:50%; background:#E2E8F0; display:flex; align-items:center; justify-content:center; font-size:8px; flex-shrink:0; transition:all .25s; }
.ci.pass .ci-dot { background: var(--sage); color:#fff; }

/* ── Buttons ── */
.btn-p {
  background: linear-gradient(135deg, #1B3F6E, #2554A0);
  color: #fff; font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 900;
  padding: 13px 28px; border-radius: 12px;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(27,63,110,.25);
  text-decoration: none;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,63,110,.3); }
.btn-p:active { transform: translateY(0); }
.btn-p:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-s {
  background: #fff; color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 12px;
  border: 1.5px solid #CBD5E1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
  text-decoration: none;
}
.btn-s:hover { border-color: var(--navy); color: var(--navy); background: #EEF3FA; }
.btn-d {
  background: #FEF2F2; color: var(--ruby);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid #FECACA; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.btn-d:hover { background: #FCA5A5; color: #fff; }
.btn-g {
  background: #ECFDF5; color: var(--sage);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid #BBF7D0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.btn-g:hover { background: var(--sage); color: #fff; }

/* ── Service Card (Eservices-style) ── */
.service-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-color-start, var(--navy)), var(--card-color-end, #2E6BB5));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: #F6F9FE;
  box-shadow: 0 12px 40px rgba(27,63,110,0.15), 0 3px 12px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: transparent;
}
.icon-box {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Job / Course Card ── */
.job-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 16px;
  padding: 20px;
  transition: all .3s ease;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--c1, var(--navy)), var(--c2, #2E6BB5));
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.job-card:hover::before { transform: scaleX(1); }
.job-card:hover { box-shadow: 0 16px 48px rgba(27,63,110,.18), 0 4px 12px rgba(27,63,110,.08); transform: translateY(-6px) scale(1.02); border-color: #c5d4ea; }

/* ── Category Pills ── */
.cat-pill {
  border: 1.5px solid #D5E2F3;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px; font-weight: 600;
  color: #4a6a99; background: #fff;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; font-family: 'Cairo', sans-serif;
  border: none; /* override for button */
  border: 1.5px solid #D5E2F3;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ── Search Wrapper ── */
.search-wrap { position: relative; }
.search-wrap input { padding-right: 48px; }
.search-wrap .search-ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* ── Tags / Badges ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* ── Stat Card ── */
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.dash-stat {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

/* ── Summary Rows ── */
.sr { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid #F1F5F9; }
.sr:last-child { border-bottom:none; }
.sl { font-size:12px; color:#94A3B8; font-weight:600; }
.sv { font-size:13px; color:#1e293b; font-weight:700; }

/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(14,28,53,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(14,28,53,.2);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ── Training Record Entry ── */
.tr-entry {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: 14px;
  border: 1px solid #E8EDF5;
  background: #fff; margin-bottom: 10px;
  transition: all .2s;
}
.tr-entry:hover { border-color: var(--navy); box-shadow: 0 2px 12px rgba(27,63,110,.06); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 14px 24px; border-radius: 12px; font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700; z-index: 9999;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #ECFDF5; color: #166534; border: 1px solid #BBF7D0; }
.toast.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.toast.info { background: #EEF3FA; color: var(--navy); border: 1px solid #D9E4F5; }

/* ── Footer ── */
.footer-link { color: rgba(255,255,255,0.6); transition: color 0.2s; font-size: 14px; text-decoration: none; }
.footer-link:hover { color: #fff; }
.footer-heading { font-size:14px; font-weight:900; color:#fff; margin:0 0 16px; }
.footer-ext { display:inline-flex; align-items:center; gap:5px; }
.footer-social {
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:8px;
  background:rgba(255,255,255,.08); color:rgba(255,255,255,.6);
  transition: background .2s, color .2s; text-decoration:none;
}
.footer-social:hover { background:rgba(255,255,255,.18); color:#fff; }
.footer-social:focus-visible { outline:3px solid #C9922A; outline-offset:2px; }

/* ── Mobile Nav ── */
.mobile-nav { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 768px) { .desktop-nav { display: none !important; } .mobile-nav { display: block; } }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes bounceIn { 0%{transform:scale(.3);opacity:0} 50%{transform:scale(1.06)} 80%{transform:scale(.97)} 100%{transform:scale(1);opacity:1} }
.fu  { animation: fadeUp .6s ease forwards; opacity:0; }
.fu1 { animation-delay:.04s; }
.fu2 { animation-delay:.12s; }
.fu3 { animation-delay:.20s; }
.fu4 { animation-delay:.28s; }
.fu5 { animation-delay:.36s; }
.fu6 { animation-delay:.44s; }
.bounce-in { animation: bounceIn .55s ease forwards; }
@keyframes pdot { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }
.pdot { animation: pdot 2.2s infinite; }

/* ── Jobs Slider ── */
.jobs-slider-wrap { overflow: hidden; position: relative; }
.jobs-slider-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; width: 60px;
  background: linear-gradient(to right, var(--slider-bg, #fff), transparent);
  z-index: 2; pointer-events: none;
}
.jobs-slider {
  display: flex; gap: 12px; transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.jobs-slider .job-card {
  min-width: 340px; max-width: 340px; flex-shrink: 0;
  padding: 26px; font-size: 14px;
  box-shadow: 0 2px 12px rgba(14,28,53,.04);
}
.jobs-slider .job-card h3 { font-size: 16px; margin-bottom: 8px; }
.jobs-slider .job-card p { font-size: 13px; }
.slider-arrow {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid #D9E4F5;
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #1B3F6E; transition: all .2s;
}
.slider-arrow:hover { background: #EEF3FA; border-color: #1B3F6E; }
@media (max-width: 640px) {
  .jobs-slider .job-card { min-width: 290px; max-width: 290px; }
  .jobs-slider-wrap::after { width: 30px; }
}

/* ── Hero Floating Shapes ── */
@keyframes heroFloat1 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(20px,-30px) rotate(8deg)} }
@keyframes heroFloat2 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(-25px,20px) rotate(-6deg)} }
@keyframes heroFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(15px,25px)} }
.hero-shape {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.07;
  filter: blur(1px);
}
.hero-shape-1 { width:220px; height:220px; background:var(--gold); top:-60px; right:-40px; animation:heroFloat1 12s ease-in-out infinite; }
.hero-shape-2 { width:180px; height:180px; background:var(--ruby); bottom:-30px; left:-60px; animation:heroFloat2 15s ease-in-out infinite; }
.hero-shape-3 { width:120px; height:120px; background:#fff; top:35%; left:15%; animation:heroFloat3 10s ease-in-out infinite; }

/* ── Glass Stat Card ── */
.glass-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  text-align: center;
  transition: all .3s ease;
}
.glass-stat:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(201,146,42,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.glass-stat.compact { padding: 14px 12px; border-radius: 12px; }
.glass-stat .gs-num { font-size: 28px; font-weight: 900; color: #fff; display: block; line-height: 1; }
.glass-stat.compact .gs-num { font-size: 22px; }
.glass-stat .gs-label { font-size: 12px; font-weight: 700; color: #fff; margin-top: 6px; display: block; }
.glass-stat.compact .gs-label { font-size: 11px; margin-top: 4px; }
@media (max-width: 480px) {
  .glass-stat.compact { padding: 10px 8px; }
  .glass-stat.compact .gs-num { font-size: 18px; }
  .glass-stat.compact .gs-label { font-size: 10px; }
}

/* ── Timeline Steps ── */
.steps-timeline { display: flex; gap: 0; position: relative; }
.steps-timeline::before {
  content: '';
  position: absolute; top: 36px; right: 60px; left: 60px;
  height: 3px;
  background: linear-gradient(to left, var(--navy), var(--gold), var(--sage));
  border-radius: 999px;
}
.step-item {
  flex: 1; text-align: center; position: relative; padding: 0 12px;
}
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff;
  margin: 0 auto 16px;
  position: relative; z-index: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .3s;
}
.step-item:hover .step-num { transform: scale(1.1); }
.step-item h3 { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.step-item p { font-size: 13px; line-height: 1.8; color: #64748B; }
@media (max-width: 768px) {
  .steps-timeline { flex-direction: column; gap: 24px; }
  .steps-timeline::before { display: none; }
}

/* ── Animated CTA ── */
@keyframes ctaShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.cta-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  background-size: 200% 100%;
  animation: ctaShimmer 6s linear infinite;
}

/* ── Auth-conditional Links ── */
.auth-link { display: none !important; }
.auth-link.visible { display: inline-flex !important; }
.guest-link.hidden { display: none !important; }

/* ── Notification Bell & Panel ── */
.notif-wrap { position: relative; }
.notif-bell {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid #D9E4F5;
  background: #EEF3FA; color: #1B3F6E; cursor: pointer; transition: all .2s;
  font-family: 'Cairo', sans-serif;
}
.notif-bell:hover { background: #D9E4F5; border-color: #1B3F6E; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: #DC2626; color: #fff; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #fff;
  animation: notifPulse .6s ease;
}
@keyframes notifPulse {
  0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); }
}
.notif-panel {
  display: none; position: absolute; top: calc(100% + 10px);
  left: 0; width: 340px; max-height: 420px;
  background: #fff; border-radius: 16px; border: 1px solid #E8EDF5;
  box-shadow: 0 12px 40px rgba(14,28,53,.15);
  z-index: 500; overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #F1F5F9;
}
.notif-title { font-size: 14px; font-weight: 900; color: #0E1C35; }
.notif-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 99px;
  background: #DC2626; color: #fff; font-size: 10px; font-weight: 900;
  padding: 0 5px; margin-right: 4px;
}
.notif-mark-all {
  font-size: 11px; font-weight: 700; color: #1B3F6E; background: none;
  border: none; cursor: pointer; font-family: 'Cairo', sans-serif;
  text-decoration: underline; text-underline-offset: 2px;
}
.notif-mark-all:hover { color: #C9922A; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid #F8FAFC;
}
.notif-item:hover { background: #F8FAFC; }
.notif-item.unread { background: #FEFCE8; }
.notif-item.unread:hover { background: #FEF9C3; }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; background: #F1F5FB;
}
.notif-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 800; color: #1a2535; margin: 0 0 2px; }
.notif-item-msg { font-size: 11px; color: #6b7a99; margin: 0; line-height: 1.5; }
.notif-time { font-size: 10px; color: #94A3B8; font-weight: 600; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1B3F6E; flex-shrink: 0; margin-top: 6px;
}
.notif-empty {
  padding: 32px 16px; text-align: center;
}
.notif-empty p { font-size: 13px; color: #94A3B8; font-weight: 600; margin: 8px 0 0; }
@media (max-width: 640px) {
  .notif-panel { width: 300px; left: -40px; }
}

/* ── Government Verification Badges ── */
.govt-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 6px; line-height: 1.2;
  font-family: 'Cairo', sans-serif;
}
.govt-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.govt-badge.badge-govt {
  background: #ECFDF5; color: #166534; border: 1px solid #BBF7D0;
}
.govt-badge.badge-agency {
  background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE;
}
.govt-badge.badge-center {
  background: #FEF8EC; color: #92600A; border: 1px solid #FDE68A;
}
.govt-badge-lg {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  font-family: 'Cairo', sans-serif;
}
.govt-badge-lg svg { width: 22px; height: 22px; flex-shrink: 0; }
.govt-badge-lg.badge-govt {
  background: #ECFDF5; border: 1px solid #BBF7D0;
}
.govt-badge-lg.badge-agency {
  background: #EFF6FF; border: 1px solid #BFDBFE;
}
.govt-badge-lg.badge-center {
  background: #FEF8EC; border: 1px solid #FDE68A;
}

/* ── Card Meta (timeAgo + deadline) ── */
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px dashed #E8EDF5;
}
.card-meta-time {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  display: flex; align-items: center; gap: 4px;
}
.dl-badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 3px;
  font-family: 'Cairo', sans-serif;
}
.dl-badge.dl-ok { background: #ECFDF5; color: #166534; }
.dl-badge.dl-soon { background: #FFFBEB; color: #92400E; }
.dl-badge.dl-urgent { background: #FEF2F2; color: #991B1B; animation: dlPulse 1.5s infinite; }
.dl-badge.dl-expired { background: #F1F5F9; color: #94A3B8; text-decoration: line-through; }
@keyframes dlPulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* ── Save/Bookmark Button ── */
.save-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; background: #fff; color: #94A3B8;
  cursor: pointer; transition: all .25s; flex-shrink: 0;
  font-family: 'Cairo', sans-serif; padding: 0;
}
.save-btn:hover { border-color: #C9922A; color: #C9922A; background: #FFFBEB; }
.save-btn.saved { border-color: #C9922A; color: #C9922A; background: #FFFBEB; }
.save-btn-lg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; background: #fff; color: #64748B;
  cursor: pointer; transition: all .25s;
  font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700;
}
.save-btn-lg:hover { border-color: #C9922A; color: #C9922A; background: #FFFBEB; }
.save-btn-lg.saved { border-color: #C9922A; color: #C9922A; background: #FFFBEB; }
@keyframes savePopIn { 0%{transform:scale(1)} 30%{transform:scale(1.3)} 100%{transform:scale(1)} }
.save-pop { animation: savePopIn .35s ease; }

/* ── Quick Apply Button ── */
.quick-apply-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 8px;
  border: none; background: #1A7A4A; color: #fff;
  cursor: pointer; transition: all .25s;
  font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.quick-apply-btn:hover { background: #15603A; }
.quick-apply-btn:disabled { background: #94A3B8; cursor: default; }
.quick-apply-btn.applied { background: #1B3F6E; cursor: default; }

/* ── Confirmation Modal ── */
.qa-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.qa-overlay.show { opacity: 1; visibility: visible; }
.qa-modal {
  background: #fff; border-radius: 16px; padding: 32px;
  max-width: 420px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.9); transition: transform .25s;
}
.qa-overlay.show .qa-modal { transform: scale(1); }
.qa-modal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px;
}
.qa-modal-icon.success { background: #ECFDF5; }
.qa-modal-icon.warning { background: #FFFBEB; }
.qa-modal h3 { font-size: 18px; font-weight: 800; color: #1a2535; margin-bottom: 8px; }
.qa-modal p { font-size: 14px; color: #64748B; line-height: 1.8; margin-bottom: 20px; }
.qa-modal-actions { display: flex; gap: 10px; justify-content: center; }
.qa-modal-actions button {
  padding: 10px 24px; border-radius: 10px; font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; border: none;
}
.qa-btn-confirm { background: #1A7A4A; color: #fff; }
.qa-btn-confirm:hover { background: #15603A; }
.qa-btn-cancel { background: #F1F5F9; color: #64748B; }
.qa-btn-cancel:hover { background: #E2E8F0; }
.qa-btn-profile { background: #1B3F6E; color: #fff; }
.qa-btn-profile:hover { background: #153256; }

/* ── CV Print ── */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .cv-page { box-shadow: none !important; border: none !important; max-width: 100% !important; }
  .site-header, footer, .flag-strip, .page-banner, .bottom-nav { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* ── Sidebar Filter Layout ── */
.jobs-layout { display: flex; gap: 24px; align-items: flex-start; }
.filter-sidebar {
  width: 320px; min-width: 320px; flex-shrink: 0;
  background: #fff; border: 1px solid #E8EDF5; border-radius: 16px;
  padding: 20px; position: sticky; top: 24px;
  box-shadow: 0 2px 16px rgba(14,28,53,.05);
  transition: all .3s ease;
  overflow: hidden;
}
.filter-sidebar.collapsed { width: 0; min-width: 0; padding: 0; border: none; box-shadow: none; }
.filter-sidebar.collapsed > *:not(.filter-toggle-btn) { display: none; }
.filter-sidebar h3 {
  font-size: 15px; font-weight: 900; color: #1B3F6E; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.filter-toggle-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; border-radius: 12px;
  background: #EEF3FA; border: 1.5px solid #D9E4F5; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #1B3F6E;
  font-family: 'Cairo', sans-serif; margin-bottom: 14px;
  transition: all .2s;
}
.filter-toggle-btn:hover { background: #D9E4F5; }
.filter-toggle-btn svg { transition: transform .3s; }
.filter-sidebar.collapsed .filter-toggle-btn { display: none; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label {
  display: block; font-size: 11px; font-weight: 800; color: #64748B;
  margin-bottom: 6px; letter-spacing: 0.3px;
}
.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%; padding: 8px 12px; font-size: 12px; font-weight: 700;
  border: 1.5px solid #E2E8F0; border-radius: 10px; background: #F8FAFC;
  color: #1B3F6E; outline: none; font-family: 'Cairo', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.filter-group select:focus,
.filter-group input:focus {
  border-color: #1B3F6E; box-shadow: 0 0 0 3px rgba(27,63,110,.08);
}
.salary-range { display: flex; gap: 8px; align-items: center; }
.salary-range input { flex: 1; }
.salary-range span { font-size: 12px; font-weight: 700; color: #94A3B8; }
.filter-search-btn {
  width: 100%; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #1B3F6E, #2E6BB5); color: #fff;
  font-size: 14px; font-weight: 900; cursor: pointer;
  font-family: 'Cairo', sans-serif; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(27,63,110,.25);
}
.filter-search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,63,110,.35); }
.filter-search-btn:active { transform: translateY(0); }
.filter-reset {
  width: 100%; padding: 10px; border: 1.5px solid #E2E8F0; border-radius: 10px;
  background: transparent; color: #64748B; font-size: 12px; font-weight: 800;
  cursor: pointer; transition: all .2s; font-family: 'Cairo', sans-serif;
  margin-top: 8px;
}
.filter-reset:hover { background: #FEF2F2; color: #dc2626; border-color: #FECACA; }
.filter-count {
  background: linear-gradient(135deg, #1B3F6E, #2E6BB5); color: #fff;
  padding: 10px; border-radius: 10px; text-align: center;
  font-size: 13px; font-weight: 800; margin-top: 16px;
}
.filter-count span { font-size: 20px; font-weight: 900; display: block; margin-bottom: 2px; }

/* ── Jobs Content Area ── */
.jobs-content { flex: 1; min-width: 0; }

/* ── Tab Switcher ── */
.jobs-tabs {
  display: flex; gap: 0; background: #F1F5F9; border-radius: 12px; padding: 4px;
  margin-bottom: 16px;
}
.jobs-tab {
  flex: 1; padding: 10px 16px; text-align: center; border-radius: 10px;
  font-size: 13px; font-weight: 800; color: #64748B; cursor: pointer;
  transition: all .25s; border: none; background: transparent;
  font-family: 'Cairo', sans-serif;
}
.jobs-tab.active {
  background: #fff; color: #1B3F6E; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.jobs-tab:not(.active):hover { color: #1B3F6E; }

/* ── Job Type Badge ── */
.job-type-badge {
  font-size: 10px; font-weight: 800; padding: 2px 8px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 3px;
}
.job-type-badge.local { background: #dcfce7; color: #166534; }
.job-type-badge.abroad { background: #f5f3ff; color: #7c3aed; }

/* ── Filter Toggle (outside sidebar) ── */
.filter-toggle-outside {
  display: none; padding: 10px 16px; border-radius: 12px;
  background: #fff; border: 1.5px solid #E8EDF5; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #1B3F6E;
  font-family: 'Cairo', sans-serif; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  align-items: center; justify-content: center; gap: 6px;
}
.filter-toggle-outside.show { display: inline-flex; }

/* ── Checkbox Filter ── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; }
.checkbox-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
  border: 1.5px solid #E2E8F0; background: #fff; color: #64748B;
  cursor: pointer; transition: all .2s; user-select: none;
}
.checkbox-pill:hover { border-color: #1B3F6E; color: #1B3F6E; }
.checkbox-pill.active { border-color: #1B3F6E; background: #EEF3FA; color: #1B3F6E; }
.checkbox-pill input { display: none; }

/* ── Pagination ── */
.pagination-wrap { margin-top: 24px; }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap;
}
.pg-btn {
  min-width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; background: #fff; color: #1B3F6E;
  font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: 'Cairo', sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; transition: all .2s;
}
.pg-btn:hover:not(.active):not(:disabled) {
  background: #EEF3FA; border-color: #1B3F6E;
}
.pg-btn.active {
  background: linear-gradient(135deg, #1B3F6E, #2554A0); color: #fff;
  border-color: transparent; box-shadow: 0 4px 12px rgba(27,63,110,.25);
}
.pg-btn:disabled {
  opacity: .4; cursor: not-allowed;
}
.pg-dots {
  font-size: 14px; font-weight: 800; color: #94A3B8;
  display: flex; align-items: center; padding: 0 4px;
}
.pg-info {
  text-align: center; margin-top: 12px;
  font-size: 12px; font-weight: 700; color: #94A3B8;
}

/* ── Filter Layout Responsive ── */
@media (max-width: 900px) {
  .jobs-layout { flex-direction: column; }
  .filter-sidebar {
    width: 100%; min-width: auto; position: static;
  }
  .filter-sidebar.collapsed { width: 100%; }
}
@media (max-width: 640px) {
  .filter-sidebar { padding: 14px; border-radius: 12px; }
  .filter-sidebar h3 { font-size: 14px; margin-bottom: 12px; }
  .filter-group { margin-bottom: 12px; }
  .jobs-layout { gap: 16px; }
}
@media (max-width: 480px) {
  .filter-sidebar { padding: 12px; }
  .filter-toggle-btn { padding: 8px; font-size: 12px; margin-bottom: 10px; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .service-home-card { padding: 24px 16px; }
  .service-home-card .shc-icon { width: 56px; height: 56px; font-size: 26px; }
}

/* ── Skills Gap / Match ── */
.sg-card { background:#fff; border:1px solid #E8EDF5; border-radius:16px; overflow:hidden; margin-bottom:20px; }
.sg-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
}
.sg-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.sg-ring svg { transform: rotate(-90deg); }
.sg-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #1B3F6E;
}
.sg-header-info h4 { font-size: 14px; font-weight: 800; color: #1B3F6E; margin-bottom: 2px; }
.sg-header-info p { font-size: 12px; color: #64748B; }
.sg-body { padding: 16px 24px; }
.sg-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13px; font-weight: 600;
}
.sg-item.matched { color: #166534; }
.sg-item.missing { color: #991B1B; }
.sg-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.sg-item.matched .sg-icon { background: #ECFDF5; color: #166534; }
.sg-item.missing .sg-icon { background: #FEF2F2; color: #991B1B; }
.sg-suggestions {
  padding: 14px 24px; background: #F8FAFC; border-top: 1px solid #F1F5F9;
}
.sg-suggestions p { font-size: 12px; font-weight: 700; color: #64748B; margin-bottom: 8px; }
.sg-sug-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: #EEF3FA; color: #1B3F6E; text-decoration: none;
  border: 1px solid #D9E4F5; margin: 0 4px 6px 0; transition: all .2s;
}
.sg-sug-link:hover { background: #D9E4F5; }

/* ── Training ↔ Job Pathway ── */
.pathway-card {
  background: #fff; border: 1px solid #E8EDF5; border-radius: 16px;
  overflow: hidden; margin-bottom: 20px;
}
.pathway-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 2px solid #EEF3FA;
}
.pathway-header-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pathway-header h4 {
  font-size: 15px; font-weight: 900; color: #1B3F6E; margin: 0;
}
.pathway-header p {
  font-size: 12px; color: #64748B; font-weight: 600; margin: 2px 0 0;
}
.pathway-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0; padding: 8px 12px;
}
@media(min-width:640px) {
  .pathway-grid { grid-template-columns: 1fr 1fr; }
}
.pw-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px; text-decoration: none;
  transition: all .2s;
}
.pw-item:hover { background: #F8FAFC; }
.pw-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.pw-item-info { flex: 1; min-width: 0; }
.pw-item-title {
  font-size: 13px; font-weight: 800; color: #1a2535;
  margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pw-item-meta {
  font-size: 11px; color: #94A3B8; font-weight: 600;
}
.pw-item-arrow {
  color: #C9922A; font-size: 12px; flex-shrink: 0;
}
.pathway-footer {
  padding: 12px 20px; border-top: 1px solid #F1F5F9;
  text-align: center;
}
.pathway-footer a {
  font-size: 13px; font-weight: 700; color: #1B3F6E;
  text-decoration: none;
}
.pathway-footer a:hover { color: #C9922A; }

/* ── Job Alerts ── */
.alert-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; font-size: 12px;
  font-weight: 700; border: 1.5px solid #C9922A; background: #fff;
  color: #C9922A; cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all .2s;
}
.alert-save-btn:hover { background: #C9922A; color: #fff; }
.alert-save-btn.saved { background: #C9922A; color: #fff; pointer-events: none; }

.alert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid #E8EDF5;
  background: #fff; transition: all .2s;
}
.alert-item:hover { border-color: #D5E2F3; box-shadow: 0 2px 8px rgba(27,63,110,.05); }
.alert-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.alert-item-info { flex: 1; min-width: 0; }
.alert-item-name {
  font-size: 13px; font-weight: 800; color: #1a2535; margin-bottom: 2px;
}
.alert-item-meta {
  font-size: 11px; color: #94A3B8; font-weight: 600;
}
.alert-item-match {
  font-size: 11px; font-weight: 800; padding: 2px 8px;
  border-radius: 99px; flex-shrink: 0;
}
.alert-item-actions {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.alert-act-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; background: #F1F5F9;
  color: #64748B;
}
.alert-act-btn:hover { background: #E2E8F0; color: #1B3F6E; }
.alert-act-btn.delete:hover { background: #FEF2F2; color: #DC2626; }
.alert-act-btn.paused { background: #FEF8EC; color: #92600A; }

/* ── Job Comparison ── */
.cmp-check {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid #CBD5E1; background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; opacity: 0.6;
}
.cmp-check:hover { opacity: 1; border-color: #1B3F6E; }
.cmp-check.active {
  background: #1B3F6E; border-color: #1B3F6E; opacity: 1;
}
.cmp-check.active svg { display: block; }
.cmp-check svg { display: none; }
.service-card { position: relative; }
.service-card.cmp-selected {
  border: 2px solid #1B3F6E !important;
  box-shadow: 0 0 0 3px rgba(27,63,110,.1) !important;
}

/* Floating Compare Bar */
.cmp-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1B3F6E, #2a5a9e);
  color: #fff; padding: 12px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(27,63,110,.35);
  z-index: 900; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  font-family: 'Cairo', sans-serif;
}
.cmp-bar.show { transform: translateX(-50%) translateY(0); }
@media(max-width:768px) {
  .cmp-bar { bottom: 78px; padding: 10px 16px; border-radius: 12px; gap: 10px; }
}
.cmp-bar-count {
  font-size: 13px; font-weight: 700;
}
.cmp-bar-btn {
  background: #C9922A; color: #fff; border: none; padding: 8px 20px;
  border-radius: 10px; font-weight: 800; font-size: 13px;
  cursor: pointer; font-family: 'Cairo', sans-serif; transition: background .2s;
}
.cmp-bar-btn:hover { background: #b07e1f; }
.cmp-bar-clear {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Cairo', sans-serif; text-decoration: underline;
}
.cmp-bar-clear:hover { color: #fff; }

/* Compare Modal */
.cmp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1000; display: none; align-items: flex-start;
  justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.cmp-overlay.show { display: flex; }
.cmp-modal {
  background: #fff; border-radius: 20px; width: 100%;
  max-width: 900px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: cmpSlideIn .3s ease;
}
@keyframes cmpSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cmp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 2px solid #EEF3FA;
}
.cmp-modal-header h3 {
  font-size: 17px; font-weight: 900; color: #1B3F6E; margin: 0;
}
.cmp-modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: #F1F5F9; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: #64748B; transition: all .2s;
}
.cmp-modal-close:hover { background: #E2E8F0; color: #1B3F6E; }
.cmp-table {
  width: 100%; border-collapse: collapse;
}
.cmp-table th {
  background: #F8FAFC; padding: 14px 16px; font-size: 12px;
  font-weight: 800; color: #1B3F6E; text-align: center;
  border-bottom: 2px solid #EEF3FA; vertical-align: top;
}
.cmp-table th:first-child {
  text-align: right; color: #64748B; font-weight: 700;
  width: 120px; background: #fff;
}
.cmp-table td {
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: #475569; text-align: center; border-bottom: 1px solid #F1F5F9;
  vertical-align: top;
}
.cmp-table td:first-child {
  text-align: right; font-weight: 700; color: #64748B;
  background: #FAFBFC; font-size: 12px;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .cmp-highlight {
  background: #F0FDF4; color: #166534; font-weight: 800;
}
.cmp-table .cmp-job-title {
  font-size: 14px; font-weight: 900; color: #1a2535;
  margin-bottom: 4px;
}
.cmp-table .cmp-job-sub {
  font-size: 11px; color: #94A3B8; font-weight: 600;
}
.cmp-modal-footer {
  padding: 16px 24px; border-top: 2px solid #EEF3FA;
  text-align: center;
}
.cmp-modal-footer p {
  font-size: 12px; color: #94A3B8; font-weight: 600; margin: 0;
}

/* ── Empty States ── */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 36px;
  background: linear-gradient(135deg, #EEF3FA, #D9E4F5);
}
.empty-state h3 {
  font-size: 17px; font-weight: 800; color: #1B3F6E; margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px; color: #64748B; line-height: 1.9; max-width: 360px; margin: 0 auto 20px;
}
.empty-state-actions {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.empty-state-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 12px;
  font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: all .2s; border: none;
}
.empty-state-btn.primary { background: #1B3F6E; color: #fff; }
.empty-state-btn.primary:hover { background: #153256; }
.empty-state-btn.secondary { background: #EEF3FA; color: #1B3F6E; border: 1px solid #D9E4F5; }
.empty-state-btn.secondary:hover { background: #D9E4F5; }
.empty-state-mini {
  text-align: center; padding: 24px 16px;
}
.empty-state-mini-icon { font-size: 28px; margin-bottom: 8px; }
.empty-state-mini p { font-size: 13px; color: #94A3B8; margin-bottom: 12px; }
.empty-state-mini a {
  font-size: 12px; font-weight: 700; color: #1B3F6E; text-decoration: none;
  padding: 6px 16px; border-radius: 8px; background: #EEF3FA; border: 1px solid #D9E4F5;
  display: inline-block; transition: all .2s;
}
.empty-state-mini a:hover { background: #D9E4F5; }

/* ── Request Timeline ── */
.req-timeline-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700;
  color: #94A3B8; padding: 6px 0 0; transition: color .2s;
}
.req-timeline-toggle:hover { color: #1B3F6E; }
.req-timeline-toggle svg { transition: transform .25s; }
.req-timeline-toggle.open svg { transform: rotate(180deg); }
.req-timeline {
  display: none; padding: 16px 0 4px;
}
.req-timeline.show { display: flex; }
.req-timeline {
  flex-direction: row; align-items: flex-start; justify-content: space-between;
  position: relative; gap: 0;
}
.req-timeline::before {
  content: ''; position: absolute; top: 17px;
  right: 24px; left: 24px; height: 3px;
  background: #E2E8F0; border-radius: 2px; z-index: 0;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 1; flex: 1; text-align: center;
}
.tl-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; border: 3px solid #E2E8F0;
  background: #fff; color: #94A3B8; transition: all .3s;
}
.tl-step.done .tl-dot { border-color: #1A7A4A; background: #ECFDF5; color: #1A7A4A; }
.tl-step.active .tl-dot { border-color: #C9922A; background: #FFFBEB; color: #C9922A; animation: tlPulse 2s infinite; }
.tl-step.rejected .tl-dot { border-color: #DC2626; background: #FEF2F2; color: #DC2626; }
.tl-label {
  font-size: 10px; font-weight: 700; color: #94A3B8; line-height: 1.4;
}
.tl-step.done .tl-label { color: #1A7A4A; }
.tl-step.active .tl-label { color: #C9922A; }
.tl-step.rejected .tl-label { color: #DC2626; }
@keyframes tlPulse { 0%,100%{box-shadow:0 0 0 0 rgba(201,146,42,.3)} 50%{box-shadow:0 0 0 8px rgba(201,146,42,0)} }

/* ── Mobile Bottom Navigation ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; z-index: 200;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 500px; margin: 0 auto;
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 8px; border-radius: 10px;
  text-decoration: none; color: #94A3B8;
  font-size: 10px; font-weight: 700; font-family: 'Cairo', sans-serif;
  transition: color .2s; position: relative;
  background: none; border: none; cursor: pointer;
}
.bnav-item svg { width: 22px; height: 22px; }
.bnav-item.active { color: #1B3F6E; }
.bnav-item.active::after {
  content: ''; position: absolute; top: -6px;
  width: 20px; height: 3px; border-radius: 0 0 4px 4px;
  background: #1B3F6E;
}
.bnav-badge {
  position: absolute; top: -2px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #C8102E; color: #fff;
  font-size: 9px; font-weight: 800; line-height: 16px; text-align: center;
}
@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 68px; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

/* ══════════════ HELP WIDGET ══════════════ */
.help-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2554A0);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(27,63,110,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, box-shadow .25s;
  font-family: 'Cairo', sans-serif;
}
.help-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(27,63,110,.45); }
.help-fab svg { width: 24px; height: 24px; }

.help-panel {
  position: fixed; bottom: 88px; left: 24px; z-index: 201;
  width: 340px; max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px);
  background: #fff; border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  border: 1px solid #E8EDF5;
  display: none; flex-direction: column;
  overflow: hidden;
  animation: helpSlideUp .25s ease;
}
.help-panel.open { display: flex; }
@keyframes helpSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #E8EDF5;
  background: linear-gradient(135deg, #1B3F6E, #2554A0);
  color: #fff; border-radius: 20px 20px 0 0;
}
.help-panel-title { font-size: 15px; font-weight: 900; }
.help-panel-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  font-family: 'Cairo', sans-serif;
}
.help-panel-close:hover { background: rgba(255,255,255,.25); }

.help-panel-body {
  padding: 16px 20px; overflow-y: auto; flex: 1;
}

.help-accordion {
  border-bottom: 1px solid #F1F5F9;
}
.help-accordion:last-child { border-bottom: none; }
.help-acc-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 0; background: none; border: none;
  text-align: start; cursor: pointer; font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 800; color: #1B3F6E;
  transition: color .2s;
}
.help-acc-btn:hover { color: var(--gold); }
.help-acc-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
  background: #EEF3FA;
}
.help-acc-arrow {
  margin-right: auto; transition: transform .25s; color: #94A3B8;
}
.help-accordion.open .help-acc-arrow { transform: rotate(180deg); }
.help-acc-body {
  display: none; padding: 0 0 14px 42px;
  font-size: 12px; font-weight: 600; color: #64748B; line-height: 1.9;
}
.help-accordion.open .help-acc-body { display: block; }
.help-acc-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--navy); font-weight: 700; text-decoration: none;
  margin-top: 6px;
}
.help-acc-link:hover { color: var(--gold); }

.help-panel-footer {
  padding: 14px 20px; border-top: 1px solid #E8EDF5;
  text-align: center; font-size: 11px; font-weight: 600; color: #94A3B8;
}

@media (max-width: 768px) {
  .help-fab { bottom: 76px; left: 16px; width: 46px; height: 46px; }
  .help-fab svg { width: 20px; height: 20px; }
  .help-panel { bottom: 132px; left: 16px; width: calc(100vw - 32px); }
}

/* ══════════════ ACCESSIBILITY ══════════════ */

/* ── Skip Navigation ── */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 28px; border-radius: 0 0 12px 12px;
  background: var(--navy); color: #fff; font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: top .2s ease;
}
.skip-link:focus {
  top: 0; outline: none;
}

/* ── Focus Visible ── */
*:focus:not(:focus-visible) {
  outline: none;
}
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.fi:focus-visible { outline: none; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}

/* ══════════════ FINAL RESPONSIVE POLISH ══════════════ */
/* Utility bar mobile adjustments */
@media (max-width: 640px) {
  .a11y-btn { min-width: 26px; height: 26px; font-size: 11px; }
}
@media (max-width: 480px) {
  #fontSizeControls { display: none; }
  .a11y-separator:first-child { display: none; }
}

/* Notification panel full-width on very small screens */
@media (max-width: 400px) {
  .notif-panel { width: calc(100vw - 24px); left: -60px; }
}

/* Salary table mobile font */
@media (max-width: 640px) {
  .sal-table { font-size: 11px; }
  .sal-table th, .sal-table td { padding: 6px 4px; }
}

/* Donut chart for very small screens */
@media (max-width: 360px) {
  .donut-wrap { width: 120px; height: 120px; }
  .donut-center { font-size: 16px; }
  .hbar-label { width: 70px; font-size: 10px; }
  .gov-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
}

/* Filter sidebar auto-collapse on mobile */
@media (max-width: 768px) {
  .filter-sidebar.collapsed { display: none !important; }
}

/* Smooth page transitions */
main, section { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════ SKELETON LOADERS ══════════════ */
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}
html.dark .skeleton {
  background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
  background-size: 200% 100%;
}
.skeleton-card {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-line { height: 14px; border-radius: 6px; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-circle { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-badge { width: 80px; height: 24px; border-radius: 20px; }
.skeleton-btn { width: 120px; height: 36px; border-radius: 10px; }
.skeleton-title { height: 20px; width: 60%; border-radius: 6px; }
.skeleton-row { display: flex; gap: 12px; align-items: center; }

/* Skeleton grid */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .skeleton-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   Accessibility Enhancements (WCAG 2.1 AA)
   ══════════════════════════════════════════════════ */

/* ── Skip to Content Link ── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 28px; border-radius: 0 0 10px 10px;
  z-index: 99999; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: top .2s ease; white-space: nowrap; font-family: 'Cairo', sans-serif;
}
.skip-link:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 0; }

/* ── Focus Indicators (keyboard only) ── */
:focus:not(:focus-visible) { outline: none; }

/* ── Screen Reader Only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Back to Top Button ── */
/* ── Breadcrumb ── */
.breadcrumb { padding: 12px 0; }
.breadcrumb ol {
  list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: #94A3B8;
}
.breadcrumb a { color: var(--navy); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-right: 2px; margin-left: 2px; color: #CBD5E1; }
html[dir="ltr"] .breadcrumb li:not(:last-child)::after { content: '/'; }
.breadcrumb li:last-child { color: #64748B; }
.dark .breadcrumb a { color: #93B5E8; }
.dark .breadcrumb li:last-child { color: var(--dm-text-sub); }
.dark .breadcrumb li:not(:last-child)::after { color: var(--dm-border); }

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998;
  background: #0D1F3C; color: rgba(255,255,255,.85); padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500; line-height: 1.8;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner button {
  background: var(--gold); color: #fff; border: none; padding: 8px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: background .2s;
}
.cookie-banner button:hover { background: #B07E22; }

/* ── Confirmation Modal ── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 99997; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .25s ease;
}
.confirm-overlay.show { opacity: 1; visibility: visible; }
.confirm-card {
  background: #fff; border-radius: 16px; padding: 28px; max-width: 400px; width: 90%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.92); transition: transform .25s ease;
}
.confirm-overlay.show .confirm-card { transform: scale(1); }
.confirm-icon { font-size: 40px; margin-bottom: 12px; }
.confirm-title { font-size: 17px; font-weight: 900; color: #1a2535; margin-bottom: 8px; }
.confirm-msg { font-size: 13px; color: #64748B; line-height: 1.8; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions button {
  padding: 10px 24px; border-radius: 10px; border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif; transition: all .2s; min-width: 100px;
}
.confirm-btn-cancel { background: #F1F5F9; color: #475569; }
.confirm-btn-cancel:hover { background: #E2E8F0; }
.confirm-btn-danger { background: #DC2626; color: #fff; }
.confirm-btn-danger:hover { background: #B91C1C; }
.confirm-btn-primary { background: var(--navy); color: #fff; }
.confirm-btn-primary:hover { background: #15345A; }
.dark .confirm-card { background: var(--dm-card); }
.dark .confirm-title { color: var(--dm-text); }
.dark .confirm-msg { color: var(--dm-text-sub); }
.dark .confirm-btn-cancel { background: var(--dm-bg); color: var(--dm-text-sub); }

/* ── Session Timeout Warning ── */
.session-warning {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99996;
  background: linear-gradient(90deg, #F59E0B, #D97706); color: #fff;
  padding: 10px 24px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; font-weight: 700; transform: translateY(-100%); transition: transform .3s ease;
}
.session-warning.show { transform: translateY(0); }
.session-warning button {
  background: #fff; color: #D97706; border: none; padding: 5px 16px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif;
}

/* ── Button Spinner ── */
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Improvements ── */
.toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 99995;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  pointer-events: auto; background: #fff; border-radius: 12px; padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #1a2535; min-width: 280px; max-width: 440px;
  transform: translateY(-16px); opacity: 0; transition: all .3s ease; border-right: 4px solid #1B3F6E;
}
html[dir="ltr"] .toast { border-right: none; border-left: 4px solid #1B3F6E; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: #22C55E; }
.toast-error { border-color: #DC2626; }
.toast-warning { border-color: #F59E0B; }
.toast-info { border-color: #3B82F6; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-close {
  background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 16px;
  margin-right: auto; padding: 2px; line-height: 1;
}
html[dir="ltr"] .toast-close { margin-right: 0; margin-left: auto; }
.dark .toast { background: var(--dm-card); color: var(--dm-text); }

/* ── Print Styles ── */
@media print {
  .flag-strip, .header-wrapper, .utility-bar, .bottom-nav,
  footer, .skip-link, .back-to-top, .cookie-banner,
  .mobile-nav, .notif-panel, .confirm-overlay, .session-warning,
  .toast-container, #authArea, .header-mobile-btn { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt !important; }
  main { padding: 0 !important; }
  .service-card, .job-card, .detail-card { break-inside: avoid; border: 1px solid #ddd !important; box-shadow: none !important; }
  a { color: #000 !important; text-decoration: underline; }
}

/* ══════════════════════════════════════════════════
   UnifiedPlatform — Component & Page Styles
   ══════════════════════════════════════════════════ */

/* ── Header Component ── */
.header-utility { background: #0E1C35; color: rgba(255,255,255,.7); font-size: 12px; }
.header-utility-inner { max-width: 72rem; margin: 0 auto; padding: 4px 1rem; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.utility-btn { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-family: 'Cairo',sans-serif; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; transition: all .2s; display: inline-flex; align-items: center; gap: 4px; }
.utility-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.header-main { max-width: 72rem; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.header-logo img { width: 42px; height: 42px; object-fit: contain; }
.header-logo-text { font-size: 0.85rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
html.dark .header-logo-text { color: #93B5E8; }
.header-auth { display: flex; align-items: center; gap: 8px; }
.user-chip-chevron { font-size: 10px; color: #94A3B8; transition: transform .2s; }
.user-chip.open .user-chip-chevron { transform: rotate(180deg); }
.user-dropdown-header { padding: 12px 16px; border-bottom: 1px solid #F1F5F9; }
html.dark .user-dropdown-header { border-color: var(--dm-border); }
.user-dropdown-name { font-weight: 700; font-size: 14px; color: #1a2535; }
html.dark .user-dropdown-name { color: var(--dm-text); }
.user-dropdown-email { font-size: 12px; color: #94A3B8; }
.user-dropdown-divider { height: 1px; background: #F1F5F9; margin: 4px 0; }
html.dark .user-dropdown-divider { background: var(--dm-border); }
.user-dropdown-logout { display: block; width: 100%; text-align: right; padding: 10px 16px; background: none; border: none; cursor: pointer; font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 700; color: var(--ruby); transition: background .15s; }
.user-dropdown-logout:hover { background: #FEF2F2; }
html.dark .user-dropdown-logout:hover { background: rgba(200,16,46,.1); }
.hamburger-btn { display: flex; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); padding: 4px; }
@media (min-width: 768px) { .hamburger-btn { display: none; } }
html.dark .hamburger-btn { color: #93B5E8; }

/* ── Mobile Drawer ── */
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: #fff; z-index: 160; transition: right .3s; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,.15); }
html[dir="ltr"] .mobile-drawer { right: auto; left: -300px; transition: left .3s; }
.mobile-drawer.open { right: 0; }
html[dir="ltr"] .mobile-drawer.open { left: 0; }
html.dark .mobile-drawer { background: var(--dm-card); }
.mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #F1F5F9; }
html.dark .mobile-drawer-header { border-color: var(--dm-border); }
.mobile-drawer-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #64748B; padding: 4px; }
.mobile-drawer-nav { display: flex; flex-direction: column; }
.mobile-drawer-nav a { display: block; padding: 12px 20px; font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; transition: background .15s; }
.mobile-drawer-nav a:hover { background: #F1F5F9; }
html.dark .mobile-drawer-nav a { color: #CBD5E1; }
html.dark .mobile-drawer-nav a:hover { background: var(--dm-hover); }
.mobile-drawer-divider { height: 1px; background: #F1F5F9; margin: 4px 16px; }
html.dark .mobile-drawer-divider { background: var(--dm-border); }

/* ── Footer Component ── */
.footer { background: linear-gradient(135deg, #0E1C35 0%, #1B3F6E 100%); color: rgba(255,255,255,.8); }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand-text { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }
.footer-title { font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

/* ── Hero Platform ── */
.hero-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.hero-title { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto 24px; line-height: 1.7; }
.hero-search { position: relative; max-width: 520px; margin: 0 auto 24px; width: 100%; }
.hero-search input { width: 100%; padding: 14px 48px 14px 20px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-family: 'Cairo',sans-serif; font-size: 14px; font-weight: 600; backdrop-filter: blur(8px); transition: all .3s; }
[dir="rtl"] .hero-search input { padding: 14px 20px 14px 48px; }
.hero-search input::placeholder { color: rgba(255,255,255,.45); }
.hero-search input:focus { outline: none; background: rgba(255,255,255,.18); border-color: rgba(201,146,42,.7); }
.hero-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
[dir="rtl"] .hero-search-icon { left: auto; right: 16px; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 1.75rem; font-weight: 900; color: var(--gold-light); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* ── Section Heading ── */
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 1.25rem; font-weight: 900; color: var(--navy); }
html.dark .section-title { color: #93B5E8; }
.section-link { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; transition: color .2s; }
.section-link:hover { color: var(--gold); }
html.dark .section-link { color: #93B5E8; }

/* ── Platform Buttons (aliases) ── */
.btn-primary { background: linear-gradient(135deg, #1B3F6E, #2554A0); color: #fff; font-family: 'Cairo',sans-serif; font-weight: 700; border: none; cursor: pointer; border-radius: 10px; padding: 10px 20px; font-size: 14px; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 4px 12px rgba(27,63,110,.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,63,110,.3); }
.btn-outline { background: transparent; color: var(--navy); font-family: 'Cairo',sans-serif; font-weight: 700; border: 1.5px solid var(--navy); cursor: pointer; border-radius: 10px; padding: 10px 20px; font-size: 14px; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
html.dark .btn-outline { color: #93B5E8; border-color: #93B5E8; }
html.dark .btn-outline:hover { background: #93B5E8; color: #0E1C35; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: #FEF2F2; color: var(--ruby); border: 1px solid #FECACA; font-family: 'Cairo',sans-serif; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 10px 20px; font-size: 14px; transition: all .2s; }
.btn-danger:hover { background: var(--ruby); color: #fff; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-primary { background: #EEF3FA; color: var(--navy); }
.badge-success { background: #ECFDF5; color: var(--sage); }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-danger { background: #FEF2F2; color: var(--ruby); }
.badge-info { background: #EFF6FF; color: #1D4ED8; }
html.dark .badge-primary { background: rgba(147,181,232,.15); color: #93B5E8; }
html.dark .badge-success { background: rgba(34,197,94,.15); color: #4ADE80; }
html.dark .badge-warning { background: rgba(245,158,11,.15); color: #FBBF24; }
html.dark .badge-danger { background: rgba(200,16,46,.15); color: #FCA5A5; }

/* ── Job Card Sub-Elements ── */
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.job-card-title { font-size: 15px; font-weight: 800; color: #1a2535; margin-bottom: 2px; }
html.dark .job-card-title { color: var(--dm-text); }
.job-card-company { font-size: 12px; color: #64748B; font-weight: 600; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #64748B; margin-bottom: 12px; }
.job-card-meta span { display: inline-flex; align-items: center; gap: 2px; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #F1F5F9; }
html.dark .job-card-footer { border-color: var(--dm-border); }
.job-card-salary { font-size: 13px; font-weight: 800; color: var(--sage); }

/* ── Training Card ── */
.training-card { background: #fff; border: 1px solid #E8EDF5; border-radius: 16px; padding: 20px; transition: all .3s ease; position: relative; overflow: hidden; }
.training-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.training-card:hover::before { transform: scaleX(1); }
.training-card:hover { box-shadow: 0 12px 40px rgba(27,63,110,.12); transform: translateY(-4px); }
html.dark .training-card { background: var(--dm-card); border-color: var(--dm-border); }
.training-card-icon { width: 40px; height: 40px; border-radius: 10px; background: #FFFBEB; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.training-card-title { font-size: 14px; font-weight: 800; color: #1a2535; margin-bottom: 2px; }
html.dark .training-card-title { color: var(--dm-text); }
.training-card-center { font-size: 12px; color: #64748B; font-weight: 600; }
.training-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #64748B; margin: 10px 0; }
.training-card-meta span { display: inline-flex; align-items: center; gap: 2px; }
.training-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #F1F5F9; }
html.dark .training-card-footer { border-color: var(--dm-border); }
.training-card-fee { font-size: 13px; font-weight: 800; color: var(--sage); }
.training-card-seats { font-size: 12px; color: #94A3B8; }

/* ── Service Card Sub-Elements ── */
.service-card-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card-title { font-size: 15px; font-weight: 800; color: #1a2535; margin-bottom: 6px; }
html.dark .service-card-title { color: var(--dm-text); }
.service-card-desc { font-size: 13px; color: #64748B; line-height: 1.6; }
.service-card-time { font-size: 12px; color: #94A3B8; margin-top: 8px; }
.service-card { padding: 20px; }

/* ── Fade In Animation ── */
.fade-in { animation: fadeInUp .5s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Page Banner (inner pages) ── */
.page-banner { text-align: center; padding: 3rem 1rem 2rem; }
.page-banner-title { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.page-banner-subtitle { font-size: 0.9rem; color: rgba(255,255,255,.7); }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 4px; background: #F1F5F9; padding: 4px; border-radius: 12px; overflow-x: auto; }
html.dark .tab-bar { background: var(--dm-surface); }
.tab-btn { padding: 8px 20px; border-radius: 10px; border: none; background: transparent; font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 700; color: #64748B; cursor: pointer; transition: all .2s; white-space: nowrap; }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
html.dark .tab-btn.active { background: var(--dm-card); color: #93B5E8; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Filter Group ── */
.filter-group { margin-bottom: 16px; }
.filter-label { font-size: 12px; font-weight: 700; color: #64748B; margin-bottom: 6px; display: block; }
.filter-select { width: 100%; padding: 8px 12px; border-radius: 10px; border: 1.5px solid #E2E8F0; font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 600; color: #334155; background: #fff; cursor: pointer; }
html.dark .filter-select { background: var(--dm-surface); color: var(--dm-text); border-color: var(--dm-border); }

/* ── Dashboard Stats ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-box { background: #fff; border: 1px solid #E8EDF5; border-radius: 14px; padding: 20px; text-align: center; transition: all .3s; }
.stat-box:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
html.dark .stat-box { background: var(--dm-card); border-color: var(--dm-border); }
.stat-box-icon { font-size: 2rem; margin-bottom: 6px; }
.stat-box-number { font-size: 1.5rem; font-weight: 900; color: var(--navy); }
html.dark .stat-box-number { color: #93B5E8; }
.stat-box-label { font-size: 12px; color: #64748B; font-weight: 600; }

/* ── Progress Bar ── */
.progress-bar { height: 8px; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
html.dark .progress-bar { background: var(--dm-surface); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), #2E6BB5); border-radius: 999px; transition: width .6s ease; }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; font-size: 12px; font-weight: 700; color: #64748B; text-align: right; border-bottom: 2px solid #E8EDF5; background: #FAFBFD; }
html.dark .data-table th { background: var(--dm-surface); color: #94A3B8; border-color: var(--dm-border); }
.data-table td { padding: 12px; font-size: 13px; color: #334155; border-bottom: 1px solid #F1F5F9; }
html.dark .data-table td { color: var(--dm-text); border-color: var(--dm-border); }
.data-table tr:hover td { background: #F8FAFC; }
html.dark .data-table tr:hover td { background: var(--dm-hover); }

/* ── Status Badge ── */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #ECFDF5; color: #166534; }
.status-rejected { background: #FEF2F2; color: #991B1B; }
.status-inprogress { background: #EFF6FF; color: #1D4ED8; }
.status-completed { background: #F0FDF4; color: #15803D; }
html.dark .status-pending { background: rgba(245,158,11,.15); color: #FBBF24; }
html.dark .status-approved { background: rgba(34,197,94,.15); color: #4ADE80; }
html.dark .status-rejected { background: rgba(200,16,46,.15); color: #FCA5A5; }
html.dark .status-inprogress { background: rgba(59,130,246,.15); color: #60A5FA; }

/* ── Form Elements ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
html.dark .form-label { color: #CBD5E1; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #E2E8F0; border-radius: 10px; font-family: 'Cairo',sans-serif; font-size: 14px; font-weight: 600; color: #1a2535; background: #fff; transition: border-color .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,63,110,.1); }
html.dark .form-input, html.dark .form-select, html.dark .form-textarea { background: var(--dm-surface); color: var(--dm-text); border-color: var(--dm-border); }
.form-textarea { min-height: 100px; resize: vertical; }

/* ── Card Panel ── */
.card-panel { background: #fff; border: 1px solid #E8EDF5; border-radius: 16px; padding: 24px; }
html.dark .card-panel { background: var(--dm-card); border-color: var(--dm-border); }
.card-panel-title { font-size: 16px; font-weight: 800; color: #1a2535; margin-bottom: 16px; }
html.dark .card-panel-title { color: var(--dm-text); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 3rem 1rem; color: #94A3B8; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; font-weight: 600; }

/* ── Line Clamp ── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Text Helpers ── */
.text-ruby { color: var(--ruby); }
.text-muted { color: #94A3B8; }

/* ══════════════ SCROLL REVEAL ══════════════ */
.sr-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.sr-hidden.sr-visible {
  opacity: 1;
  transform: translateY(0);
}
.sr-hidden.sr-scale {
  transform: scale(0.95);
}
.sr-hidden.sr-scale.sr-visible {
  transform: scale(1);
}
.sr-stagger > .sr-hidden:nth-child(1) { transition-delay: 0s; }
.sr-stagger > .sr-hidden:nth-child(2) { transition-delay: 0.08s; }
.sr-stagger > .sr-hidden:nth-child(3) { transition-delay: 0.16s; }
.sr-stagger > .sr-hidden:nth-child(4) { transition-delay: 0.24s; }
.sr-stagger > .sr-hidden:nth-child(5) { transition-delay: 0.32s; }
.sr-stagger > .sr-hidden:nth-child(6) { transition-delay: 0.40s; }

/* ══════════════ SCROLL PROGRESS BAR ══════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999;
  background: transparent; pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ruby), var(--navy));
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
}
html.dark .scroll-progress-bar {
  background: linear-gradient(90deg, #F5C842, #93B5E8);
}
html.high-contrast .scroll-progress-bar {
  background: #000; height: 4px;
}
html.dark.high-contrast .scroll-progress-bar {
  background: #FFD700;
}

/* ══════════════ CARD SHINE EFFECT ══════════════ */
.card-shine {
  position: relative; overflow: hidden;
}
.card-shine::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: none; pointer-events: none; z-index: 2;
}
.card-shine:hover::after {
  animation: cardShineSwipe 0.6s ease forwards;
}
@keyframes cardShineSwipe {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
html.dark .card-shine::after {
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
}

/* ══════════════ RIPPLE CLICK ══════════════ */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(27,63,110,0.12);
  transform: scale(0);
  animation: rippleExpand 0.5s ease-out;
  pointer-events: none; z-index: 5;
}
html.dark .ripple-wave { background: rgba(147,181,232,0.15); }
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* ══════════════ ICON BOUNCE ON HOVER ══════════════ */
.icon-bounce:hover .icon-box,
.icon-bounce:hover .dash-stat-icon {
  animation: iconBounce 0.4s ease;
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* ══════════════ SHARE BUTTONS ══════════════ */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; font-size: 12px; font-weight: 700;
  border: 1.5px solid #E2E8F0; background: #fff; color: #475569;
  cursor: pointer; transition: all 0.2s; font-family: 'Cairo', sans-serif;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.share-btn.whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.copy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
html.dark .share-btn { background: var(--dm-surface); border-color: var(--dm-border); color: var(--dm-text); }
html.dark .share-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
html.high-contrast .share-btn { border: 2px solid #000; color: #000; }

/* ══════════════ BREADCRUMB (DETAIL PAGES) ══════════════ */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #E8EDF5; }
html.dark .breadcrumb-bar { background: var(--dm-surface); border-color: var(--dm-border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #6b7a99; font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: #c5cdd8; font-size: 12px; }
.breadcrumb .current { color: var(--navy); font-size: 13px; font-weight: 700; }
html.dark .breadcrumb a { color: var(--dm-text-secondary); }
html.dark .breadcrumb a:hover { color: #93B5E8; }
html.dark .breadcrumb .current { color: #93B5E8; }
html.high-contrast .breadcrumb a { color: #000; }
html.high-contrast .breadcrumb .current { color: #000; font-weight: 900; }
html.dark.high-contrast .breadcrumb a { color: #93C5FD; }
html.dark.high-contrast .breadcrumb .current { color: #fff; }

/* ══════════════ BACK TO TOP ══════════════ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 199;
  width: 48px; height: 48px;
  background: #fff; border: 1.5px solid #E2E8F0;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); border-color: var(--navy); }
.back-to-top svg.btt-arrow { color: var(--navy); transition: color 0.2s; }
.back-to-top:hover svg.btt-arrow { color: #fff; }
.back-to-top svg.btt-ring { position: absolute; inset: -2px; transform: rotate(-90deg); }
.btt-ring-circle {
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-dasharray: 150.8; stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 0.1s linear;
}
html.dark .back-to-top { background: var(--dm-surface); border-color: var(--dm-border); }
html.dark .back-to-top:hover { background: #93B5E8; border-color: #93B5E8; }
html.dark .back-to-top svg.btt-arrow { color: #93B5E8; }
html.dark .back-to-top:hover svg.btt-arrow { color: #0F172A; }
html.high-contrast .back-to-top { border: 2px solid #000; }
html.high-contrast .back-to-top:hover { background: #000; }
html.dark.high-contrast .back-to-top { border-color: #93C5FD; }
html.dark.high-contrast .back-to-top:hover { background: #93C5FD; }
[dir="ltr"] .back-to-top { right: 24px; left: auto; }
@media (max-width: 768px) {
  .back-to-top { bottom: 76px; right: 16px; width: 42px; height: 42px; }
}

/* ══════════════ FOOTER NEWSLETTER ══════════════ */
.footer-newsletter { display: flex; gap: 6px; }
.footer-newsletter-input {
  flex: 1; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  color: #fff; font-size: 12px; font-family: 'Cairo', sans-serif;
  outline: none; transition: all 0.2s;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter-input:focus { border-color: var(--gold); background: rgba(255,255,255,.1); }
.footer-newsletter-btn {
  padding: 8px 14px; border-radius: 8px; border: none;
  background: var(--gold); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-newsletter-btn:hover { background: #a07820; }
html.high-contrast .footer-newsletter-input { border: 2px solid #fff; background: transparent; }

/* ══════════════ LOGO MARQUEE ══════════════ */
.logo-marquee { overflow: hidden; padding: 20px 0; }
.logo-marquee-track {
  display: flex; gap: 48px; align-items: center;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
[dir="rtl"] .logo-marquee-track { animation-direction: reverse; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-marquee-track:hover { animation-play-state: paused; }
.logo-marquee-item {
  height: 40px; opacity: 0.5; filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s; flex-shrink: 0;
}
.logo-marquee-item:hover { opacity: 1; filter: grayscale(0); }
html.dark .logo-marquee-item { filter: grayscale(1) brightness(1.5); opacity: 0.4; }
html.dark .logo-marquee-item:hover { filter: grayscale(0) brightness(1); opacity: 1; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(27,63,110,0.06); border: 1px solid #E8EDF5;
  font-size: 13px; font-weight: 700; color: #4a5568;
  white-space: nowrap; flex-shrink: 0;
}
html.dark .logo-pill { background: rgba(255,255,255,0.06); border-color: var(--dm-border); color: var(--dm-text-sub); }

/* ══════════════ TESTIMONIALS ══════════════ */
.testimonial-carousel { position: relative; overflow: hidden; border-radius: 20px; }
.testimonial-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.testimonial-slide {
  min-width: 100%; padding: 32px 28px;
  background: #F8FAFC; border: 1.5px solid #E8EDF5; border-radius: 20px;
  text-align: center;
}
html.dark .testimonial-slide { background: var(--dm-card); border-color: var(--dm-border); }
.testimonial-stars { color: #F5C842; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; line-height: 2; color: #475569; margin-bottom: 16px; }
html.dark .testimonial-quote { color: var(--dm-text-secondary); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2E6BB5); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; margin-bottom: 8px;
}
.testimonial-author { font-size: 14px; font-weight: 800; color: var(--navy); }
html.dark .testimonial-author { color: #93B5E8; }
.testimonial-role { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.testi-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D9E4F5; cursor: pointer; transition: all 0.3s; border: none; padding: 0;
}
.testi-dot.active { background: var(--navy); width: 28px; border-radius: 5px; }
html.dark .testi-dot { background: var(--dm-border); }
html.dark .testi-dot.active { background: #93B5E8; }

/* ══════════════ TRENDING TAGS ══════════════ */
.trend-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.trend-tag:hover {
  background: rgba(255,255,255,0.15);
  color: #fff; border-color: rgba(201,146,42,0.5);
}
.trend-tag svg { opacity: 0.5; }
.trend-tag:hover svg { opacity: 1; }

/* ══════════════ PRINT STYLES ══════════════ */
@media print {
  .no-print, .share-buttons, .scroll-progress, .help-fab, .help-panel,
  .bottom-nav, .back-to-top, .header-wrapper, .flag-strip, .utility-bar,
  footer, .breadcrumb-bar, .filter-sidebar, .filter-toggle-outside { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .job-card, .service-card, .desc-card, .info-card { border: 1px solid #ccc !important; box-shadow: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ══════════════ RESPONSIVE: MOBILE FIXES ══════════════ */

/* ── 768px — Tablets ── */
@media (max-width: 768px) {
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 16px; }
  .hero-stats { gap: 1rem; }
  .hero-stat-number { font-size: 1.4rem; }
  .footer-inner { padding: 2rem 1rem 1rem; }
  .footer-grid { gap: 1.5rem; }
  .page-banner-title { font-size: 1.4rem; }
  .page-banner-subtitle { font-size: 0.85rem; }
}

/* ── 640px — Large phones ── */
@media (max-width: 640px) {
  .hero-logo { width: 56px; height: 56px; }
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.85rem; line-height: 1.6; }
  .hero-search input { padding: 12px 40px 12px 16px; font-size: 13px; }
  [dir="rtl"] .hero-search input { padding: 12px 16px 12px 40px; }
  .hero-stat-number { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.7rem; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .section-title { font-size: 1.1rem; }
  .btn-primary { padding: 9px 16px; font-size: 13px; }
  .btn-outline { padding: 9px 16px; font-size: 13px; }
  .card-panel { padding: 16px; }
  .card-panel-title { font-size: 15px; }
  .tab-bar { gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
}

/* ── 480px — Standard phones ── */
@media (max-width: 480px) {
  .hero-title { font-size: 1.1rem; }
  .hero-subtitle { font-size: 0.8rem; }
  .hero-stats { gap: 0.75rem; }
  .hero-stat-number { font-size: 1rem; }
  .hero-search { margin-bottom: 16px; }
  .hero-search input { padding: 10px 36px 10px 14px; font-size: 12.5px; border-radius: 10px; }
  [dir="rtl"] .hero-search input { padding: 10px 14px 10px 36px; }
  .page-banner-title { font-size: 1.1rem; }
  .page-banner-subtitle { font-size: 0.75rem; }
  .footer-inner { padding: 1.5rem 0.75rem 1rem; }
  .footer-brand img { width: 36px; height: 36px; }
  .footer-brand-text { font-size: 0.85rem; }
  .footer-desc { font-size: 12px; }
  .footer-title { font-size: 13px; }
  .footer-links a { font-size: 12px; }
  .footer-contact-item { font-size: 12px; }
  .footer-bottom { font-size: 11px; }
  .form-label { font-size: 12.5px; }
  .form-input, .form-select { font-size: 13px; padding: 9px 12px; }
  .badge { font-size: 10px; padding: 2px 8px; }
}

/* ── 375px — Small phones ── */
@media (max-width: 375px) {
  .hero-title { font-size: 1rem; }
  .hero-stats { gap: 0.5rem; }
  .hero-stat { min-width: 0; }
  .hero-stat-number { font-size: 0.9rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .btn-primary { padding: 8px 14px; font-size: 12px; gap: 4px; }
  .btn-outline { padding: 8px 14px; font-size: 12px; }
  .card-panel { padding: 12px; }
  .tab-btn { padding: 6px 10px; font-size: 11.5px; }
}

/* ── Utility bar mobile ── */
@media (max-width: 480px) {
  .utility-controls { flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
  .a11y-btn { min-width: 24px; height: 24px; font-size: 11px; }
}

/* ── Share buttons mobile ── */
@media (max-width: 480px) {
  .share-buttons { gap: 6px; flex-wrap: wrap; }
  .share-btn { padding: 6px 12px; font-size: 11px; }
}

/* ── Job/Course cards mobile ── */
@media (max-width: 480px) {
  .job-card { padding: 14px; border-radius: 12px; }
  .job-card:hover { transform: translateY(-2px) scale(1); }
  .job-card-title { font-size: 13.5px; }
  .job-card-company { font-size: 11px; }
  .job-card-meta { gap: 6px; font-size: 11px; }
  .job-card-footer { padding-top: 10px; }
  .job-card-salary { font-size: 12px; }
  .jobs-slider .job-card { min-width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
}

/* ── Header brand mobile ── */
@media (max-width: 480px) {
  .header-brand img { width: 34px; height: 34px; }
  .header-brand .brand-title { font-size: 12px; }
  .header-brand .brand-subtitle { font-size: 10px; }
  .header-brand { gap: 8px; }
  .site-header .sh-inner { height: 52px; }
}
@media (max-width: 375px) {
  .header-brand .brand-title { font-size: 11px; }
  .header-brand img { width: 30px; height: 30px; }
}

/* ── Bottom nav mobile ── */
@media (max-width: 375px) {
  .bottom-nav { padding: 6px 0; }
  .bottom-nav a { font-size: 9px; }
  .bottom-nav svg { width: 18px; height: 18px; }
}

/* ══════════════ REDUCED MOTION ══════════════ */
@media (prefers-reduced-motion: reduce) {
  .sr-hidden { opacity: 1; transform: none; transition: none; }
  .card-shine::after { display: none; }
  .ripple-wave { display: none; }
  .logo-marquee-track { animation: none; overflow-x: auto; }
  .testimonial-track { transition: none; }
  .scroll-progress-bar { transition: none; }
}
