﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Syne:wght@400;700;800&display=swap');

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

:root {
  --navy: #0c4a6e;
  --teal: #4B7BEC;
  --teal2: #00D464;
  --gold: #c8930a;
  --cream: #fafafa;
  --white: #ffffff;
  --gray: #737373;
  --light: #f0f4ff;
  --border: #dde5f8;
  --shadow: 0 4px 24px rgba(75,123,236,0.12);
  --shadow-lg: 0 12px 48px rgba(75,123,236,0.20);
}

body { 
  font-family: 'Cairo', sans-serif; 
  background: var(--cream); 
  color: var(--navy); 
  overflow-x: hidden; 
}

.app { 
  min-height: 100vh; 
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(75,123,236,0.08);
  padding: 0 clamp(16px, 4vw, 60px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  flex-grow: 0;
}

.nav-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 7px 14px; 
  border-radius: 8px; 
  font-size: 13px; 
  font-weight: 600;
  color: var(--gray); 
  text-decoration: none; 
  cursor: pointer;
  transition: all 0.2s; 
  border: none; 
  background: none; 
  font-family: inherit;
}

.nav-link:hover { 
  background: var(--light); 
  color: var(--navy); 
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-grow: 0;
}

.btn-outline {
  padding: 8px 16px; 
  border-radius: 9px; 
  font-size: 13px; 
  font-weight: 700;
  border: 1.5px solid var(--border); 
  background: none; 
  color: var(--navy);
  cursor: pointer; 
  font-family: inherit; 
  transition: all 0.2s;
}

.btn-outline:hover { 
  border-color: var(--teal); 
  color: var(--teal); 
}

.btn-primary {
  padding: 9px 18px; 
  border-radius: 9px; 
  font-size: 13px; 
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff; 
  border: none; 
  cursor: pointer; 
  font-family: inherit;
  transition: all 0.2s; 
  box-shadow: 0 2px 12px rgba(75,123,236,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(75,123,236,0.45);
}

/* English CTA: full label on desktop, short label on small screens */
.cta-short { display: none; }

.lang-btn {
  padding: 6px 12px; 
  border-radius: 7px; 
  font-size: 12px; 
  font-weight: 700;
  border: 1.5px solid var(--border); 
  background: none; 
  cursor: pointer;
  font-family: inherit; 
  color: var(--navy); 
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ── Collapsed nav-links dropdown (tablet/mobile only) ──────── */
.nav-menu-wrap { display: none; position: relative; }
.nav-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-menu-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-menu-toggle.open .nav-menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-toggle.open .nav-menu-icon span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.open .nav-menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.16);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 110;
  animation: navMenuIn 0.18s ease;
}
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-menu-item {
  text-align: start;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-menu-item:hover { background: var(--light); }
.nav-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 8px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Brand gradient overlay kept on top of a professional healthcare photo
     so the white hero text stays fully legible. */
  background: linear-gradient(to right, rgba(75,123,236,0.90), rgba(0,212,100,0.82)),
              url('images/hero-bg.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  padding: 100px clamp(16px, 6vw, 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease both;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.hero-badge::before {
  content: '✓';
  font-size: 10px;
  color: #fff;
}

.hero-title {
  font-size: clamp(24px, 3.8vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 700px) {
  .hero-title { font-size: clamp(22px, 6vw, 36px); }
}

.hero-title .accent {
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  justify-content: center;
}

.hero-btn-primary {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  background: #f0f9ff;
}

.hero-btn-secondary {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
}

.hero-stats {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats .stat {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 14px;
  padding: 16px 28px;
  text-align: center;
  min-width: 100px;
}

.stat-val {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  margin-top: 5px;
  font-weight: 600;
}

.stat-divider {
  display: none;
}

.principle {
  background: linear-gradient(to right, #4B7BEC, #00D464);
  padding: 32px clamp(16px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.principle-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.principle-tag {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.principle-title { 
  font-size: clamp(16px, 2.5vw, 20px); 
  font-weight: 800; 
  color: #fff; 
  margin-bottom: 4px; 
}

.principle-desc { 
  font-size: 13px; 
  color: rgba(255,255,255,0.55); 
}

.section { 
  padding: clamp(60px, 8vw, 100px) clamp(16px, 6vw, 80px); 
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #4B7BEC, #00D464);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title { 
  font-size: clamp(26px, 4vw, 42px); 
  font-weight: 900; 
  color: var(--navy); 
  margin-bottom: 12px; 
  line-height: 1.2; 
}

.section-subtitle { 
  font-size: 15px; 
  color: var(--gray); 
  max-width: 540px; 
  line-height: 1.7; 
}

.section-header { 
  margin-bottom: 48px; 
}

.section-alt {
  background: linear-gradient(135deg, rgba(75,123,236,0.03) 0%, rgba(0,212,100,0.02) 100%);
}

.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 20px; 
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::after {
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal2)); 
  transform: scaleX(0);
  transition: transform 0.3s; 
  transform-origin: left;
}

.service-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-lg); 
  border-color: transparent; 
}

.service-card:hover::after { 
  transform: scaleX(1); 
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B7BEC;
}
.service-icon svg { display: block; }

.service-badge {
  position: absolute; 
  top: 20px; 
  left: 20px;
  background: var(--gold); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 800;
  padding: 2px 8px; 
  border-radius: 20px; 
  letter-spacing: 0.5px;
}

[dir="rtl"] .service-badge { 
  left: auto; 
  right: 20px; 
}

.service-title { 
  font-size: 18px; 
  font-weight: 800; 
  color: var(--navy); 
  margin-bottom: 10px; 
}

.service-desc { 
  font-size: 13px; 
  color: var(--gray); 
  line-height: 1.7; 
}

.service-arrow {
  margin-top: 20px; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  font-size: 13px; 
  font-weight: 700; 
  color: var(--teal);
}

/* ── Service card CTA row + button ─────────────────────── */
.service-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.service-cta-btn:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* ── Sub-form picker (step 0 inside modal) ──────────────── */
.subform-prompt {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 32px;
}
.subform-picker {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.subform-card {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.subform-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(75,123,236,.18);
  transform: translateY(-4px);
}
.subform-icon  { font-size: 36px; margin-bottom: 12px; }
.subform-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.subform-arrow { font-size: 18px; color: var(--teal); font-weight: 700; }

/* ── Request types empty state ──────────────────────────── */
.types-empty {
  text-align: center;
  padding: 64px 20px;
  border: 2px dashed var(--border);
  border-radius: 20px;
  max-width: 480px;
  margin: 0 auto;
}
.types-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.55;
}
.types-empty-msg {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
}

.steps-container {
  position: relative;
}

.steps-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 0; 
}

.step {
  padding: 28px 20px; 
  position: relative; 
  text-align: center;
  border-right: 1px solid var(--border);
}

.step:last-child { 
  border-right: none; 
}

[dir="rtl"] .step { 
  border-right: none; 
  border-left: 1px solid var(--border); 
}

[dir="rtl"] .step:last-child { 
  border-left: none; 
}

.step-num {
  font-size: 11px; 
  font-weight: 900; 
  color: var(--teal); 
  letter-spacing: 2px;
  margin-bottom: 12px; 
  font-family: 'Syne', sans-serif;
}

.step-dot {
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 20px; 
  box-shadow: 0 4px 16px rgba(75,123,236,0.35);
}

.step-title { 
  font-size: 16px; 
  font-weight: 800; 
  color: var(--navy); 
  margin-bottom: 8px; 
}

.step-desc { 
  font-size: 12px; 
  color: var(--gray); 
  line-height: 1.7; 
}

.spec-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); 
  gap: 16px; 
}

.spec-card {
  border-radius: 14px; 
  padding: 24px 16px; 
  text-align: center;
  border: 1.5px solid; 
  transition: all 0.2s; 
  cursor: default;
}

.spec-card:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow); 
}

.spec-icon { 
  font-size: 32px; 
  margin-bottom: 10px; 
}

.spec-name { 
  font-size: 14px; 
  font-weight: 800; 
}

.why-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 20px; 
}

.why-card {
  background: var(--cream); 
  border-radius: 14px; 
  padding: 24px;
  border: 1px solid var(--border); 
  transition: all 0.2s;
}

.why-card:hover {
  background: var(--white);
  box-shadow: 0 6px 28px rgba(75,123,236,0.16);
  transform: translateY(-2px);
  border-color: rgba(75,123,236,0.35);
}

.why-icon {
  font-size: 26px;
  margin-bottom: 14px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(75,123,236,0.10), rgba(0,212,100,0.10));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-title { 
  font-size: 15px; 
  font-weight: 800; 
  color: var(--navy); 
  margin-bottom: 6px; 
}

.why-desc { 
  font-size: 13px; 
  color: var(--gray); 
  line-height: 1.7; 
}

.cta-section {
  padding: clamp(60px, 8vw, 100px) clamp(16px, 6vw, 80px);
  background: linear-gradient(to right, #4B7BEC, #00D464);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.cta-inner { 
  position: relative; 
  z-index: 1; 
  max-width: 600px; 
  margin: 0 auto; 
}

.cta-title { 
  font-size: clamp(28px, 4vw, 46px); 
  font-weight: 900; 
  color: #fff; 
  margin-bottom: 14px; 
  line-height: 1.2; 
}

.cta-desc { 
  font-size: 15px; 
  color: rgba(255,255,255,0.6); 
  margin-bottom: 32px; 
  line-height: 1.7; 
}

.cta-btn {
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  background: #fff;
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 6px 28px rgba(0,0,0,0.20);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
  background: #f0fdf4;
}

.footer {
  background: #fff;
  border-top: 1px solid #e8ecef;
  padding: 56px clamp(16px, 6vw, 80px) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.footer-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-link {
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  text-align: inherit;
  padding: 0;
  line-height: 1;
}

.footer-col-link:hover {
  color: var(--teal);
}

.footer-social-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
}

.footer-social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: 19px;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.footer-social-btn:hover { background: #475569; border-color: #475569; color: #fff; }
.footer-social-facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.footer-social-twitter-x:hover { background: #000;    border-color: #000;    color: #fff; }
.footer-social-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.footer-bottom {
  border-top: 1px solid #e8ecef;
  padding: 20px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-rights {
  font-size: 13px;
  color: #6b7280;
}

@media(max-width:900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media(max-width:700px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step { border: none; border-bottom: 1px solid var(--border); padding: 20px 12px; }
  .step:nth-child(odd) { border-right: 1px solid var(--border); }
  [dir="rtl"] .step:nth-child(odd) { border-right: none; border-left: 1px solid var(--border); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease both;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-visible {
  opacity: 1;
  transform: none;
}

/* Loading spinner */
.app-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.loader-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Modals ─────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.18s ease;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  width: 100%; max-width: 460px;
  position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.22s ease;
}

.modal-lg      { max-width: 660px; }
.modal-profile { max-width: 480px; text-align: center; }

/* ── Profile Modal ──────────────────────────────────────────── */
.profile-avatar-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 16px;
  box-shadow: 0 4px 18px rgba(75,123,236,0.28);
}
.profile-avatar {
  font-size: 42px; font-weight: 800; color: #fff;
  letter-spacing: 1px;
}
.nav-user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-ring-sm { width: 80px; height: 80px; margin-bottom: 8px; }
.profile-avatar-sm { font-size: 28px; }
.profile-avatar-edit-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-bottom: 20px;
}
.profile-avatar-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit;
  border: 1.5px dashed var(--teal); color: var(--teal);
  background: rgba(75,123,236,0.05); transition: background 0.2s;
}
.profile-avatar-upload-btn:hover { background: rgba(75,123,236,0.12); }
.profile-name {
  font-size: 20px; font-weight: 800; color: var(--navy);
  margin-bottom: 6px;
}
.profile-role-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; color: var(--teal);
  background: rgba(75,123,236,0.1);
  padding: 3px 14px; border-radius: 20px;
  margin-bottom: 24px;
}
.profile-saved-msg {
  font-size: 13px; font-weight: 600; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 8px 14px;
  margin-bottom: 16px;
}
.profile-fields {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 24px; text-align: start;
}
.profile-field {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background 0.15s;
}
.profile-field:last-child { border-bottom: none; }
.profile-field:hover { background: var(--light); }
.profile-field-icon { font-size: 18px; flex-shrink: 0; }
.profile-field-label {
  font-size: 11px; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.profile-field-value {
  font-size: 14px; font-weight: 600; color: var(--navy);
  word-break: break-all;
}
.profile-edit-btn { width: 100%; }
.profile-toggle-pass {
  display: block; width: 100%; text-align: start;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--teal); padding: 6px 2px; margin-bottom: 4px;
}
.btn-cancel-edit {
  padding: 12px 20px; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--light);
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--navy); cursor: pointer;
  transition: background 0.2s;
}
.btn-cancel-edit:hover { background: #e5e7eb; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  border: none; background: var(--light);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: var(--gray);
  transition: all 0.2s; display:flex; align-items:center; justify-content:center;
}
[dir="rtl"] .modal-close { right:auto; left:14px; }
.modal-close:hover { background: var(--border); color: var(--navy); }

.modal-title {
  font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 24px;
}

/* ── Step indicators ────────────────────────────────────── */
.step-indicators {
  display: flex; gap: 4px; margin-bottom: 28px;
}
.step-ind { flex:1; text-align:center; opacity:0.38; transition:opacity 0.3s; }
.step-ind.active, .step-ind.done { opacity:1; }
.step-ind-num {
  width:30px; height:30px; border-radius:50%;
  border: 2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; margin:0 auto 5px; color:var(--gray);
  transition: all 0.3s;
}
.step-ind.active .step-ind-num { border-color:var(--teal); background:var(--teal); color:#fff; }
.step-ind.done   .step-ind-num { border-color:var(--teal); background:var(--teal); color:#fff; }
.step-ind-label { font-size:10px; font-weight:700; color:var(--navy); }

/* ── Form elements ──────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display:block; font-size:13px; font-weight:700;
  color:var(--navy); margin-bottom:6px;
}
.form-group input,
.form-group select {
  width:100%; padding:10px 14px;
  border:1.5px solid var(--border); border-radius:10px;
  font-size:14px; font-family:inherit; color:var(--navy);
  background:var(--white); outline:none; transition:border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus { border-color:var(--teal); }
.form-group input[type="file"] { padding:8px 12px; background:var(--light); cursor:pointer; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:500px) { .form-row { grid-template-columns:1fr; } }

.radio-group { display:flex; gap:24px; }
.radio-opt {
  display:flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--navy); cursor:pointer;
}
.radio-opt input { width:auto; accent-color:var(--teal); }

.form-nav {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:20px; gap:12px;
}
.form-nav-end { justify-content:flex-end; }

.form-submit {
  padding:12px 32px; border-radius:10px;
  font-size:15px; font-weight:800;
  background:linear-gradient(135deg, var(--teal), var(--teal2));
  color:#fff; border:none; cursor:pointer; font-family:inherit;
  transition:all 0.2s;
}
.form-submit:disabled { opacity:0.5; cursor:not-allowed; }
.form-submit:not(:disabled):hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(75,123,236,0.40); }

.form-back {
  padding:12px 20px; border-radius:10px;
  font-size:14px; font-weight:700;
  border:1.5px solid var(--border); background:none;
  color:var(--gray); cursor:pointer; font-family:inherit; transition:all 0.2s;
}
.form-back:hover { border-color:var(--navy); color:var(--navy); }
.form-back:disabled { opacity:0.4; cursor:not-allowed; }

.form-error {
  background:#fef2f2; color:#dc2626;
  padding:10px 14px; border-radius:8px;
  font-size:13px; font-weight:600; margin-bottom:12px;
}
.form-success {
  background:#f0fdf4; color:#16a34a;
  padding:16px; border-radius:10px;
  font-size:14px; font-weight:700; text-align:center;
}
.form-hint { font-size:12px; color:var(--gray); margin-top:6px; }
.form-link { color:var(--teal); cursor:pointer; font-weight:700; }

/* ── Review grid ────────────────────────────────────────── */
.review-grid {
  border:1px solid var(--border); border-radius:12px;
  overflow:hidden; margin-bottom:8px;
}
.review-row {
  display:flex; justify-content:space-between;
  padding:10px 16px; font-size:13px;
  border-bottom:1px solid var(--border); gap:12px;
}
.review-row:last-child { border-bottom:none; }
.review-row:nth-child(even) { background:var(--light); }
.review-row span { color:var(--gray); font-weight:600; flex-shrink:0; }
.review-row strong { color:var(--navy); text-align:end; word-break:break-word; }

/* ── Success screen ─────────────────────────────────────── */
.success-screen { text-align:center; padding:20px 0; }
.success-icon {
  width:64px; height:64px; border-radius:50%;
  background:#dcfce7; color:#16a34a;
  font-size:28px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
}
.success-title { font-size:20px; font-weight:900; color:var(--navy); margin-bottom:8px; }
.success-ref   { font-size:14px; color:var(--gray); margin-bottom:12px; }
.success-desc  {
  font-size:13px; color:var(--gray); line-height:1.7;
  max-width:380px; margin:0 auto 24px;
}

/* ── Nav user info & logout ─────────────────────────────── */
.nav-user {
  display:flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:9px;
  background:var(--light); border:1px solid var(--border);
  max-width:180px;
}
.nav-user-avatar { font-size:15px; flex-shrink:0; }
.nav-user-name {
  font-size:13px; font-weight:700; color:var(--navy);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.nav-user-role {
  font-size:10px; font-weight:800; color:var(--teal);
  background:rgba(75,123,236,0.1); padding:2px 7px;
  border-radius:20px; flex-shrink:0;
}
.btn-logout {
  padding:8px 16px; border-radius:9px; font-size:13px; font-weight:700;
  border:1.5px solid #fca5a5; background:#fef2f2; color:#dc2626;
  cursor:pointer; font-family:inherit; transition:all 0.2s; white-space:nowrap;
}
.btn-logout:hover { background:#dc2626; color:#fff; border-color:#dc2626; }

/* ── Textarea ───────────────────────────────────────────────── */
.form-group textarea {
  width:100%; padding:10px 14px;
  border:1.5px solid var(--border); border-radius:10px;
  font-size:14px; font-family:inherit; color:var(--navy);
  background:var(--white); outline:none; transition:border-color 0.2s;
  resize:vertical; min-height:100px;
}
.form-group textarea:focus { border-color:var(--teal); }

/* ── FAQ Section ────────────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}

.faq-item:hover { border-color: rgba(75,123,236,0.30); }
.faq-item.faq-open { box-shadow: 0 6px 28px rgba(75,123,236,0.12); border-color: rgba(75,123,236,0.25); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  user-select: none;
  transition: color 0.2s;
}

.faq-item.faq-open .faq-q { color: var(--teal); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray);
  flex-shrink: 0;
  transition: all 0.28s ease;
  line-height: 1;
}

.faq-item.faq-open .faq-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
  transition: max-height 0.38s ease, padding-bottom 0.38s ease;
  padding: 0 24px;
}

.faq-item.faq-open .faq-a {
  max-height: 400px;
  padding-bottom: 22px;
}

/* ── Contact Section ────────────────────────────────────────── */
/* ── Contact Cards Layout ─────────────────────────────────── */
.contact-cards {
  display: flex;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto 40px;
  justify-content: center;
}

.contact-card {
  flex: 1;
  max-width: 290px;
  background: rgba(75,123,236,0.05);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(75,123,236,0.12);
}

.contact-card-a {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-card-a:hover {
  background: rgba(75,123,236,0.10);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(75,123,236,0.18);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(75,123,236,0.15), rgba(0,212,100,0.12));
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-card-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.contact-card-value {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.contact-card-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.contact-card-link:hover { text-decoration: underline; }

/* ── Ticket Button ───────────────────────────────────────── */
.contact-btn-row {
  text-align: center;
  margin-top: 8px;
}

.contact-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.contact-ticket-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(75,123,236,0.40); }

/* ── Contact Modal ────────────────────────────────────────── */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.contact-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--gray);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.contact-modal-close:hover { background: #e2e8f0; }

.contact-form-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 26px;
  line-height: 1.6;
}

.contact-submit {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin-top: 4px;
}

.contact-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(75,123,236,0.40); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-sent {
  text-align: center;
  padding: 40px 20px;
}

.contact-sent-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-sent-title { font-size: 18px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.contact-sent-desc  { font-size: 13px; color: var(--gray); line-height: 1.7; }

@media(max-width:700px) {
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { max-width: 100%; width: 100%; }
  .contact-modal { padding: 28px 22px; }
}

/* ── Track Status Modal ─────────────────────────────────────── */
.track-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--light);
  animation: fadeUp 0.25s ease;
}

.track-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.status-pending  { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.status-review   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-approved { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.status-payment  { background: #faf5ff; color: #6d28d9; border: 1px solid #ddd6fe; }

/* ── Applicant Dashboard ────────────────────────────────────── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-welcome {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.dashboard-sub {
  font-size: 13px;
  color: var(--gray);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.app-item:hover { box-shadow: var(--shadow); border-color: rgba(75,123,236,0.28); }

.app-item-info { flex: 1; min-width: 0; }

.app-item-type {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.app-item-ref  { font-size: 12px; color: var(--teal); font-weight: 700; margin-bottom: 2px; }
.app-item-date { font-size: 11px; color: var(--gray); }

.app-empty {
  text-align: center;
  padding: 52px 0;
  color: var(--gray);
}

.app-empty-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.6; }
.app-empty-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.app-empty-sub { font-size: 13px; color: var(--gray); }

/* ── Dashboard nav button ───────────────────────────────────── */
.btn-dashboard {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid rgba(75,123,236,0.30);
  background: rgba(75,123,236,0.07);
  color: var(--teal);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-dashboard { display: flex; align-items: center; gap: 6px; }
.btn-dashboard:hover { background: rgba(75,123,236,0.14); border-color: var(--teal); }
.nav-user-avatar-sm { font-size: 20px; }

/* ── My Dashboard nav link with dropdown ───────────────────── */
.nav-dash-wrap {
  position: relative;
}
.nav-link-dashboard {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dash-arrow {
  font-size: 9px;
  opacity: 0.7;
}
.nav-dash-dropdown {
  top: calc(100% + 10px);
  inset-inline-start: 0;
  inset-inline-end: auto;
}

/* ── User account dropdown ──────────────────────────────────── */
.nav-user-dropdown-wrap {
  position: relative;
}
.user-dropdown-slim {
  min-width: 160px;
  padding: 6px;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  padding: 8px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-dropdown-header {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: start;
  transition: background 0.15s;
}
.user-dropdown-item:hover { background: var(--light); }
.udi-icon { font-size: 16px; flex-shrink: 0; }
.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.user-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: #fef2f2;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
  text-align: start;
  transition: background 0.15s;
}
.user-dropdown-logout:hover { background: #dc2626; color: #fff; }

/* ── Programs Guide Overlay ────────────────────────────────── */
.programs-overlay {
  position: fixed;
  inset: 0;
  background: #f1f5f9;
  z-index: 150;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.programs-topbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 4vw, 60px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}

.programs-back-btn {
  padding: 8px 18px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.programs-back-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.programs-topbar-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
}

.programs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 80px;
}

.programs-header {
  text-align: center;
  margin-bottom: 48px;
}

.programs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--teal);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.programs-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}

.programs-subtitle {
  font-size: 15px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs-grid { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.program-card-top-bar {
  height: 4px;
  background: linear-gradient(90deg, #4B7BEC, #00D464);
  flex-shrink: 0;
}

.program-card-body {
  padding: 24px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.program-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(75,123,236,0.12), rgba(0,212,100,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 4px;
}

.program-card-name { font-size: 18px; font-weight: 900; color: var(--navy); }
.program-card-desc { font-size: 12px; color: var(--gray); line-height: 1.5; }

.program-card-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.program-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

.program-info-sep { width: 1px; height: 16px; background: var(--border); }

.program-fees-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border);
}

.program-fees-label { font-size: 12px; color: var(--gray); font-weight: 600; }

.program-fees-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.program-fees-amount small { font-size: 13px; font-weight: 700; color: var(--gray); }

.program-actions {
  display: flex;
  gap: 10px;
  padding: 10px 16px 16px;
  margin-top: auto;
}

.program-btn-details {
  flex: 1;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.program-btn-details:hover { border-color: var(--navy); background: var(--light); }

.program-btn-apply {
  flex: 1;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #4B7BEC, #00D464);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.program-btn-apply:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(75,123,236,0.40); }

/* ── Program Details Modal ──────────────────────────────────── */
.prog-details-box { max-width: 420px; }

.prog-details-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.prog-details-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.prog-details-desc {
  font-size: 13px;
  color: var(--gray);
}

.prog-details-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.prog-stat-box {
  background: var(--light);
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
}

.prog-stat-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.prog-stat-unit {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  margin-top: 4px;
}

.prog-details-options {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}

.prog-details-options-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: end;
}

.prog-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.prog-option-row:last-child { border-bottom: none; }

.prog-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  flex-direction: row-reverse;
}
[dir="ltr"] .prog-option-label { flex-direction: row; }

.prog-option-dot { color: var(--teal); font-size: 12px; }

.prog-option-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  background: var(--light);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.prog-details-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.prog-details-close-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.prog-details-close-btn:hover { border-color: var(--navy); background: var(--light); }

/* ── Track hero button ──────────────────────────────────────── */
.hero-btn-track {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.50);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(6px);
}
.hero-btn-track:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.80);
}

/* ── User Account Modal ─────────────────────────────────────── */
.account-modal {
  position: relative;
  display: flex;
  flex-direction: row;
  width: min(900px, 96vw);
  height: min(640px, 92vh);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(75,123,236,0.22);
  animation: slideUp 0.22s ease;
}
[dir="rtl"] .account-modal { flex-direction: row-reverse; }

.account-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 28px 0 20px;
}

.account-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 10px;
}

.account-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  text-align: start;
  transition: background 0.15s, color 0.15s;
}
.account-nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.account-nav-item.active { background: var(--teal); color: #fff; font-weight: 700; }
.account-nav-icon { font-size: 16px; flex-shrink: 0; }

.account-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  text-align: start;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 10px;
  transition: color 0.15s;
}
.account-sidebar-logout:hover { color: #fff; }

.account-content {
  flex: 1;
  min-width: 0;
  padding: 36px 32px 32px;
  overflow-y: auto;
  position: relative;
}

.account-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.account-content-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.account-content-sub {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 400px;
}

.account-new-btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 20px;
  flex-shrink: 0;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.account-stat-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.account-stat-val {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}

.account-stat-label {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 600;
}

.account-empty {
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 680px) {
  .account-modal { flex-direction: column !important; height: 94vh; border-radius: 16px; }
  .account-sidebar { width: 100%; padding: 10px 10px 8px; flex-direction: row; align-items: center; flex-shrink: 0; }
  .account-sidebar-title { display: none; }
  .account-sidebar-nav { flex-direction: row; flex: 1; gap: 2px; padding: 0; overflow-x: auto; }
  .account-nav-item { white-space: nowrap; font-size: 12px; padding: 8px 10px; }
  .account-sidebar-logout { margin-top: 0; border-top: none; border-inline-start: 1px solid rgba(255,255,255,0.07); padding: 8px 12px; }
  .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .account-content { padding: 20px 16px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile & Tablet
   ══════════════════════════════════════════════════════════ */

/* ── OTP code input ─────────────────────────────────────── */
.form-group input.otp-code-input {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 12px;
  padding: 14px 0;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
}
.form-group input.otp-code-input::placeholder {
  letter-spacing: 12px;
  color: #d1d5db;
}
@media (max-width: 480px) {
  .form-group input.otp-code-input {
    font-size: 22px;
    letter-spacing: 7px;
    padding: 12px 0;
  }
  .form-group input.otp-code-input::placeholder { letter-spacing: 7px; }
}
@media (max-width: 360px) {
  .form-group input.otp-code-input {
    font-size: 18px;
    letter-spacing: 4px;
    padding: 10px 0;
  }
  .form-group input.otp-code-input::placeholder { letter-spacing: 4px; }
}

/* ── Nav username — truncate / hide on smaller screens ───── */
.nav-username {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
/* Hide name on tablet+mobile — frees ~110px so nav links have room */
@media (max-width: 900px) { .nav-username { display: none; } }

/* ── Tablet + mobile nav (≤900px): collapse the 5 page links into a
   single "Menu" dropdown. Action buttons (lang / sign-up / login /
   start) stay visible in the bar. ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-wrap { display: block; }
  .btn-outline { display: none; } /* Sign Up / Login move into the dropdown */
}

/* ── Small screens (≤600px): keep the action bar from overflowing.
   The long English CTA is swapped for a short one so it fits. ── */
@media (max-width: 600px) {
  .nav { gap: 8px; padding: 0 12px; }
  .nav-logo { max-width: 150px; }
  .cta-long  { display: none; }
  .cta-short { display: inline; }
  .btn-primary { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }
}

/* ── Mobile nav (≤480px): tighten action buttons + menu toggle ── */
@media (max-width: 480px) {
  .nav-menu-toggle { padding: 7px 10px; font-size: 12px; gap: 6px; }
  .nav-menu-toggle .nav-menu-label { display: none; } /* icon-only on phones */
  .nav-menu-icon { width: 20px; }
  .nav-logo { max-width: 128px; }
}

/* ── Mobile nav — tighten ───────────────────────────────── */
@media (max-width: 480px) {
  .nav { height: 60px; }
  .nav-logo { height: 40px; }
  .btn-dashboard { padding: 6px 10px; font-size: 12px; }
  .lang-btn { padding: 5px 8px; font-size: 11px; }
  .btn-primary { padding: 7px 14px; font-size: 12px; }
  .nav-user-avatar-img { width: 26px; height: 26px; }
}

/* ── Modals — reduce padding on mobile ──────────────────── */
@media (max-width: 480px) {
  .modal-overlay { padding: 10px; }
  .modal-box {
    padding: 22px 16px 28px;
    border-radius: 16px;
  }
  .modal-title { font-size: 17px; margin-bottom: 18px; }
  .modal-close { top: 12px; right: 12px; }
  [dir="rtl"] .modal-close { right: auto; left: 12px; }
}
@media (max-width: 360px) {
  .modal-overlay { padding: 6px; }
  .modal-box { padding: 18px 12px 24px; }
}

/* ── Tablet (481–768px) — modal refinements ─────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .modal-box { padding: 28px 24px; }
  .modal-overlay { padding: 14px; }
}

/* ── Hero actions — stack on small phones ───────────────── */
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-btn-primary,
  .hero-btn-track { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Section header — reduce gap on mobile ──────────────── */
@media (max-width: 480px) {
  .section-header { margin-bottom: 28px; }
  .section-title  { font-size: clamp(22px, 6vw, 32px); }
}

/* ── Steps grid — single column on very small phones ────── */
@media (max-width: 380px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; border-left: none; border-bottom: 1px solid var(--border); }
  [dir="rtl"] .step { border-right: none; border-left: none; }
  .step:last-child { border-bottom: none; }
}

/* ── How-to-apply grid: responsive columns ─────────────── */
/* Desktop: 5 cols (inline style). Override with CSS for smaller screens. */
@media (max-width: 900px) {
  .hta-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .hta-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 380px) {
  .hta-grid { grid-template-columns: 1fr !important; }
}

/* ── Hero stats: keep all 4 in one row on tablet ────────── */
/* At 712px the default padding (16px 28px) makes 4 boxes = 666px > 626px content → wraps.
   Reducing padding keeps them in one row without changing layout structure. */
@media (max-width: 900px) {
  .hero-stats .stat { padding: 13px 20px; min-width: 88px; }
}
@media (max-width: 640px) {
  .hero-stats .stat { padding: 11px 14px; min-width: 76px; }
}
/* Phone: switch to 2×2 grid so each stat has breathing room */
@media (max-width: 480px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: stretch;
  }
  .hero-stats .stat { min-width: unset; width: 100%; }
}

/* ── Scroll-to-top button ────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  inset-inline-end: 28px;   /* right for LTR, left for RTL automatically */
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(99,91,255,.40);
  opacity: 0;
  transform: translateY(16px) scale(0.88);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: linear-gradient(135deg, #7c74ff 0%, #6058f0 100%);
  box-shadow: 0 6px 24px rgba(99,91,255,.55);
  transform: translateY(-2px) scale(1.05);
}
.scroll-top-btn:active { transform: scale(0.96); }
.scroll-top-btn svg { display: block; }
@media (max-width: 480px) {
  .scroll-top-btn { bottom: 20px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 12px; }
}

/* ── Floating help widget (support ticket / WhatsApp) ── */
.help-fab {
  position: fixed;
  bottom: 32px;
  inset-inline-start: 28px;   /* opposite corner from scroll-to-top */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.help-fab-main {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  box-shadow: 0 6px 22px rgba(34,150,107,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.help-fab-main:hover  { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 28px rgba(34,150,107,.6); }
.help-fab-main:active { transform: scale(.96); }
.help-fab-main svg { display: block; }
.help-fab-menu { display: flex; flex-direction: column; gap: 10px; animation: helpFabIn .18s ease; }
@keyframes helpFabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.help-fab-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px 9px 11px; border-radius: 999px;
  border: none; cursor: pointer; background: #fff; color: #1e293b;
  font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.14); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.help-fab-item:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.help-fab-item-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.help-fab-item.ticket .help-fab-item-icon { background: #3b82f6; }
.help-fab-item.wa     .help-fab-item-icon { background: #25D366; }
@media (max-width: 480px) {
  .help-fab { bottom: 20px; inset-inline-start: 16px; }
  .help-fab-main { width: 52px; height: 52px; }
}
