/* ═══════════════════════════════════════════════════════════════════
   TAIM ACADEMY — Design System & Global Styles
   Brand: Deep Navy #1B2A4A · Coral #E8612A · Off-White #F7F6F2
   ═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  --navy:        #1B2A4A;
  --navy-dark:   #0f1e38;
  --navy-mid:    #243356;
  --coral:       #E8612A;
  --coral-dark:  #c94f1f;
  --coral-light: #f07a49;
  --off-white:   #F7F6F2;
  --steel:       #8098BB;
  --steel-light: #a8bbcf;
  --white:       #ffffff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --border:      #e2e8f0;
  --border-mid:  #cbd5e1;
  --bg-light:    #f8fafc;
  --bg-page:     #ffffff;
  --success:     #059669;
  --warning:     #d97706;
  --error:       #dc2626;
  --info:        #2563eb;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);
  --shadow-md:   0 8px 24px rgba(0,0,0,.09), 0 4px 10px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.12);

  --font-en:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar:     'Noto Kufi Arabic', sans-serif;
  --font-body:   var(--font-en);

  --transition:  .2s ease;
  --max-w:       1200px;
}

/* ── BASE RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* Arabic language overrides */
.lang-ar, [lang="ar"] {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.lang-ar .font-en { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

/* Dark-background sections: headings inherit white from the section */
section[style*="background:var(--navy)"] h1,
section[style*="background:var(--navy)"] h2,
section[style*="background:var(--navy)"] h3,
section[style*="background:#0f172a"] h1,
section[style*="background:linear-gradient"] h1,
section[style*="background:linear-gradient"] h2,
.course-hero h1, .course-hero h2 {
  color: inherit;
}

/* Utility overrides */
.text-white, .text-white h1, .text-white h2, .text-white h3 { color: #fff !important; }

.lang-ar h1, .lang-ar h2, .lang-ar h3 { font-weight: 700; }

h1 { font-size: clamp(28px, 5vw, 56px); }
h2 { font-size: clamp(22px, 3.5vw, 38px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: clamp(16px, 2vw, 20px); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.text-coral   { color: var(--coral); }
.text-navy    { color: var(--navy); }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.text-lg      { font-size: 18px; }
.text-xl      { font-size: 20px; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.text-center  { text-align: center; }

/* ── LAYOUT HELPERS ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 1.5rem; }
.section-lg { padding: 7rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--bg-light); }
.section-off { background: var(--off-white); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* ── SECTION HEADER ─────────────────────────────────────────────── */
.section-header { max-width: 700px; margin-bottom: 3rem; }
.section-header.center { margin: 0 auto 3rem; text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral); margin-bottom: .75rem;
}
.section-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--coral); border-radius: 2px;
}
.lang-ar .section-eyebrow::before { display: none; }
.lang-ar .section-eyebrow::after {
  content: ''; display: block; width: 24px; height: 2px; background: var(--coral); border-radius: 2px;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn:disabled, .btn.loading { opacity: .6; pointer-events: none; }

.btn-primary {
  background: var(--coral); color: var(--white); border-color: var(--coral);
}
.btn-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--border-mid);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg-light); }

.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.3);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-light); color: var(--text); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-xl { padding: 17px 40px; font-size: 17px; }
.btn-full { width: 100%; }
.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }

/* ── CARDS ──────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition);
}
.card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.75rem; }
.card-header { padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1.25rem 1.75rem; border-top: 1px solid var(--border); background: var(--bg-light); }

/* ── COURSE CARD ────────────────────────────────────────────────── */
.course-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition);
  position: relative; /* REQUIRED — contains the stretched-link anchor to the card */
}
.course-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.course-card-img {
  width: 100%; height: 180px; object-fit: cover; background: var(--bg-light);
}
.course-card-img-placeholder {
  width: 100%; height: 180px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem;
  font-size: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  overflow: hidden; position: relative;
}
.course-card-img-icon { font-size: 48px; line-height: 1; }
.course-card-img-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding: 3px 10px; border-radius: 50px;
  background: rgba(255,255,255,.1);
}

.course-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-card-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.course-card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: .5rem; line-height: 1.35; }
.course-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }

.course-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted); margin-bottom: 1rem;
}
.course-card-meta-item { display: flex; align-items: center; gap: 4px; }
.course-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.course-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.course-card-price { font-size: 20px; font-weight: 800; color: var(--navy); }
.course-card-price .currency { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ── BADGES / TAGS ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600;
  letter-spacing: .03em; white-space: nowrap;
}
.badge-ai       { background: #eff6ff; color: #1d4ed8; }
.badge-open     { background: #ecfdf5; color: #059669; }
.badge-soon     { background: #fefce8; color: #92400e; }
.badge-full     { background: #fef2f2; color: #dc2626; }
.badge-corporate{ background: #f5f3ff; color: #6d28d9; }
.badge-mol      { background: #f0fdf4; color: #15803d; }
.badge-beginner { background: var(--bg-light); color: var(--text-muted); }
.badge-intermediate { background: #fff7ed; color: #c2410c; }
.badge-advanced { background: #fdf4ff; color: #7e22ce; }
.badge-inperson { background: var(--off-white); color: var(--navy); }
.badge-online   { background: #eff6ff; color: #1e40af; }
.badge-gray     { background: var(--bg-light); color: var(--text-muted); }

/* ── NAV ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }

.site-nav { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 2rem; }

.nav-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-brand { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.nav-tagline { font-size: 10px; color: var(--text-muted); font-weight: 500; letter-spacing: .05em; }
.lang-ar .nav-brand { font-family: var(--font-ar); }

.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--bg-light); }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.lang-switcher {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border); transition: all var(--transition);
}
.lang-switcher:hover { border-color: var(--border-mid); color: var(--text); background: var(--bg-light); }
.lang-flag { font-size: 14px; }
.lang-label { font-size: 12px; }

.btn-nav-login {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.btn-nav-login:hover { color: var(--navy); }

.btn-nav-cta {
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  background: var(--coral); color: var(--white); transition: all var(--transition);
}
.btn-nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); }

/* Nav user menu */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text); background: var(--white);
  transition: all var(--transition); cursor: pointer;
}
.nav-user-btn:hover { border-color: var(--border-mid); background: var(--bg-light); }
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--coral); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.chevron { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-user-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.user-name-sm { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px);
  right: 0; width: 200px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); z-index: 200; overflow: hidden;
  animation: fadeDown .15s ease;
}
.lang-ar .user-dropdown { right: auto; left: 0; }
.user-dropdown.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; color: var(--text);
  transition: background var(--transition);
}
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.dropdown-item:hover { background: var(--bg-light); }
.dropdown-item-danger { color: var(--error); }
.dropdown-item-danger svg { color: var(--error); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile nav */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; width: 40px; height: 40px; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--bg-light); }
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav dropdowns (desktop) */
.nav-has-dropdown { position: relative; }
.nav-chevron { width: 12px; height: 12px; margin-inline-start: 4px; transition: transform var(--transition); flex-shrink: 0; }
.nav-has-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: .4rem 0; z-index: 300;
  animation: fadeDown .15s ease;
}
.lang-ar .nav-dropdown { left: auto; right: 0; }
.nav-has-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--text);
  transition: background var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg-light); color: var(--navy); }
.nav-dropdown-item.active { color: var(--coral); }
.dd-icon { font-size: 15px; flex-shrink: 0; }

/* Mobile menu */
.mobile-menu { border-top: 1px solid var(--border); padding: 1rem 0; background: var(--white); }

.mobile-menu-cta-row {
  display: flex; gap: .75rem; padding: .75rem 1.5rem 1rem;
}
.mobile-menu-cta-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: all var(--transition);
}
.mobile-menu-cta-primary { background: var(--coral); color: var(--white); }
.mobile-menu-cta-primary:hover { background: var(--coral-dark); }
.mobile-menu-cta-wa { background: #25D366; color: var(--white); }
.mobile-menu-cta-wa:hover { background: #1ebe5d; }

.mobile-links { display: flex; flex-direction: column; }
.mobile-section-label {
  padding: 10px 1.5rem 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-light);
}
.mobile-menu-lang-row { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
.mobile-link {
  padding: 12px 1.5rem; font-size: 15px; font-weight: 500;
  color: var(--text); transition: background var(--transition);
}
.mobile-link:hover { background: var(--bg-light); color: var(--navy); }
.mobile-link-danger { color: var(--error); }
.mobile-lang { color: var(--text-muted); font-size: 14px; }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0d1e3a 0%, #1B2A4A 50%, #1a3460 100%);
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(232,97,42,.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(128,152,187,.08) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 7px 18px; border-radius: 50px; font-size: 13px;
  color: rgba(255,255,255,.85); margin-bottom: 1.75rem;
  backdrop-filter: blur(4px);
}

.hero-content { position: relative; max-width: 860px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--coral); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.7);
  max-width: 640px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.hero-trust-item { display: flex; align-items: center; gap: 5px; }
.hero-trust-dot { width: 4px; height: 4px; background: rgba(255,255,255,.3); border-radius: 50%; }

/* ── STATS BAR ──────────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 2.5rem 1.5rem;
}
.stats-grid { max-width: 700px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat-num { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── WHY SECTION ────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.why-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: all var(--transition);
}
.why-card:hover { border-color: var(--coral); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 1.25rem;
}
.why-icon-coral { background: rgba(232,97,42,.1); }
.why-icon-navy  { background: rgba(27,42,74,.08); }
.why-icon-steel { background: rgba(128,152,187,.12); }
.why-icon-green { background: rgba(5,150,105,.1); }
.why-card h3 { font-size: 17px; margin-bottom: .5rem; }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── CORPORATE CTA BLOCK ────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-xl); padding: 3.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.cta-block h2 { font-size: clamp(22px, 3vw, 30px); color: var(--white); margin-bottom: .75rem; }
.cta-block p  { font-size: 15px; color: rgba(255,255,255,.7); max-width: 560px; line-height: 1.7; margin: 0; }
.cta-block-tags { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.cta-block-tag {
  padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.12);
}

/* ── CONSULTING SECTION ─────────────────────────────────────────── */
.section-consulting {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}
.consulting-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.consulting-heading {
  font-size: clamp(24px, 3.5vw, 38px); font-weight: 800;
  color: var(--white); margin-bottom: 1rem; line-height: 1.2;
}
.consulting-body {
  font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 2rem;
}
.consulting-service-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.consulting-service-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: background var(--transition);
}
.consulting-service-card:hover { background: rgba(255,255,255,.13); }
.consulting-service-icon { font-size: 24px; margin-bottom: .5rem; }
.consulting-service-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: .35rem; }
.consulting-service-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.55; }

/* ── DATA HUB SECTION ───────────────────────────────────────────── */
.section-datahub {
  background: linear-gradient(160deg, #0a1628 0%, #0f1e38 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.section-datahub::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(128,152,187,.15) 1px, transparent 0);
  background-size: 24px 24px;
}
.datahub-header { max-width: 700px; margin-bottom: 3rem; position: relative; }
.datahub-heading {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--white); margin-bottom: 1rem; line-height: 1.15;
}
.datahub-body {
  font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 2rem;
}
.datahub-tags { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; }
.datahub-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .55rem 1.25rem; border-radius: 50px; font-size: .9rem; font-weight: 500;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); transition: all var(--transition);
}
.datahub-tag:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }

/* ── FORMS ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-label .required { color: var(--error); margin-inline-start: 3px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,.07);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.07);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  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 d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
  cursor: pointer;
}
.lang-ar .form-select { background-position: left 14px center; padding-right: 14px; padding-left: 40px; }

.form-error { font-size: 12px; color: var(--error); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.form-hint  { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Password visibility toggle */
.input-group { position: relative; }
.input-group .form-input { padding-inline-end: 44px; }
.input-group-toggle {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 4px;
}
.input-group-toggle:hover { color: var(--text); }

/* ── ALERTS ─────────────────────────────────────────────────────── */
.alert {
  padding: 13px 16px; border-radius: var(--radius); font-size: 14px;
  margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid transparent;
}
.lang-ar .alert { border-left: none; border-right: 4px solid transparent; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #16a34a; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }

/* ── LOADING SPINNER ────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.7);
  padding: 4.5rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }

.footer-logo-img { height: 40px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-tagline { font-size: 14px; line-height: 1.65; margin-bottom: .5rem; max-width: 300px; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-link svg { width: 16px; height: 16px; color: rgba(255,255,255,.65); }
.social-link:hover { background: var(--coral); border-color: var(--coral); }
.social-link:hover svg { color: var(--white); }

.footer-col-title {
  font-size: 13px; font-weight: 700; color: var(--white);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-link { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-link:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.4); }
.footer-contact-list a { font-size: 14px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--white); }
.footer-contact-list span { font-size: 14px; color: rgba(255,255,255,.65); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-sep  { margin: 0 .5rem; }
.footer-mol-badge {
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  padding: 5px 12px; border-radius: 50px; color: rgba(255,255,255,.6);
}

/* ── COURSE DETAIL PAGE ─────────────────────────────────────────── */
.course-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  padding: 4.5rem 1.5rem 3.5rem;
  color: var(--white);
}
.course-hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.course-hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 1.25rem; }
.course-hero-breadcrumb a { color: rgba(255,255,255,.6); }
.course-hero-breadcrumb a:hover { color: var(--white); }
.course-hero-title { font-size: clamp(24px, 3.5vw, 38px); color: var(--white); margin-bottom: 1rem; font-weight: 800; }
.course-hero-desc { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 1.5rem; }
.course-meta-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.course-meta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9); padding: 5px 12px; border-radius: 50px; font-size: 13px; font-weight: 500;
}
.course-meta-badge svg { width: 14px; height: 14px; }

/* Registration sidebar */
.course-register-box {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: sticky; top: 90px;
}
.crb-header { padding: 1.5rem; background: var(--off-white); border-bottom: 1px solid var(--border); }
.crb-price { font-size: 32px; font-weight: 800; color: var(--navy); }
.crb-currency { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.crb-body { padding: 1.5rem; }
.crb-sessions { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.crb-session {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; transition: all var(--transition);
}
.crb-session:hover, .crb-session.selected { border-color: var(--coral); background: rgba(232,97,42,.04); }
.crb-session-date { font-size: 14px; font-weight: 600; color: var(--navy); }
.crb-session-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.crb-session-seats { font-size: 11px; color: var(--success); font-weight: 600; margin-top: 3px; }
.crb-btns { display: flex; flex-direction: column; gap: .75rem; }
.crb-guarantee { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 4px; }
.crb-includes { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.crb-includes-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 5px 0; }
.crb-includes-item svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* Course content sections */
.course-content { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.course-main { min-width: 0; }
.course-section { margin-bottom: 3rem; }
.course-section h2 { font-size: 22px; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }

.outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.outcome-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.outcome-check { width: 20px; height: 20px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.outcome-check svg { width: 11px; height: 11px; color: var(--white); }

.outline-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: .75rem; }
.outline-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 1.25rem; background: var(--white); cursor: pointer; transition: background var(--transition);
}
.outline-header:hover { background: var(--bg-light); }
.outline-num { width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.outline-title { font-size: 15px; font-weight: 600; flex: 1; }
.outline-arrow { width: 18px; height: 18px; transition: transform var(--transition); color: var(--text-muted); }
.outline-item.open .outline-arrow { transform: rotate(180deg); }
.outline-body { padding: 0 1.25rem 1.25rem 3.5rem; font-size: 14px; color: var(--text-muted); line-height: 1.65; display: none; }
.outline-item.open .outline-body { display: block; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy);
}
.faq-question:hover { color: var(--coral); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { font-size: 14px; color: var(--text-muted); line-height: 1.7; padding-bottom: 1rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Instructor card */
.instructor-card { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; background: var(--bg-light); border-radius: var(--radius-lg); border: 1.5px solid var(--border); }
.instructor-avatar { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; background: var(--steel); flex-shrink: 0; }
.instructor-avatar-placeholder { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.instructor-name { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.instructor-bio { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── STUDENT DASHBOARD ──────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
.dash-sidebar {
  background: var(--navy); padding: 2rem 0;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.dash-sidebar-logo { padding: .5rem 1.5rem 2rem; }
.dash-sidebar-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .85; }

.dash-nav { display: flex; flex-direction: column; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 1.5rem; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.65); transition: all var(--transition); cursor: pointer;
  border-left: 3px solid transparent;
}
.lang-ar .dash-nav-item { border-left: none; border-right: 3px solid transparent; }
.dash-nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.dash-nav-item.active { color: var(--white); background: rgba(255,255,255,.1); border-color: var(--coral); }
.dash-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.dash-main { background: var(--bg-light); padding: 2.5rem; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dash-greeting h1 { font-size: 24px; font-weight: 700; color: var(--navy); }
.dash-greeting p { font-size: 14px; color: var(--text-muted); margin: 0; }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.dash-stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.dash-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.dash-stat-value { font-size: 28px; font-weight: 800; color: var(--navy); }

.dash-section-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; }

/* My courses table/cards */
.my-course-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: .75rem; transition: box-shadow var(--transition); }
.my-course-card:hover { box-shadow: var(--shadow); }
.my-course-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.my-course-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.my-course-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.my-course-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .75rem; }

/* ── ADMIN PANEL ────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy-dark); padding: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 100;
}
.admin-sidebar-header {
  padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .75rem;
}
.admin-sidebar-logo { height: 28px; filter: brightness(0) invert(1); opacity: .85; }
.admin-sidebar-title { font-size: 14px; font-weight: 700; color: var(--white); }
.admin-sidebar-sub { font-size: 11px; color: rgba(255,255,255,.4); }

.admin-nav-group { padding: 1.25rem 0 .5rem; }
.admin-nav-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 0 1.25rem; margin-bottom: .5rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 1.25rem; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.6); transition: all var(--transition);
  border-left: 3px solid transparent; cursor: pointer;
}
.lang-ar .admin-nav-item { border-left: none; border-right: 3px solid transparent; }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-nav-item.active { color: var(--white); background: rgba(255,255,255,.1); border-color: var(--coral); }

.admin-main { background: var(--bg-light); min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-page-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.admin-content { padding: 2rem; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.admin-stat { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.admin-stat-num { font-size: 28px; font-weight: 800; color: var(--navy); }
.admin-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.admin-stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th {
  text-align: start; padding: 12px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  background: var(--bg-light); border-bottom: 2px solid var(--border);
}
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }
.table-wrapper { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-section-header h2 { font-size: 18px; font-weight: 700; color: var(--navy); }

.admin-form-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.admin-form-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.admin-form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.admin-form-section-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }

/* ── REGISTRATION FLOW ──────────────────────────────────────────── */
.enroll-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 2.5rem; justify-content: center; }
.enroll-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.enroll-step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: all var(--transition); flex-shrink: 0; }
.enroll-step.active { color: var(--navy); }
.enroll-step.active .enroll-step-num { background: var(--coral); border-color: var(--coral); color: var(--white); }
.enroll-step.done .enroll-step-num { background: var(--success); border-color: var(--success); color: var(--white); }
.enroll-step-connector { flex: 1; height: 2px; background: var(--border); max-width: 80px; }
.enroll-step-connector.done { background: var(--success); }

.enroll-summary-card { background: var(--off-white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1.5px solid var(--border); }
.enroll-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.enroll-summary-row.total { font-size: 17px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ── AUTH PAGES ─────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--bg-light); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 36px; margin: 0 auto; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: .5rem; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-light); }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 1.5rem; }
.auth-switch a { color: var(--coral); font-weight: 600; }

/* ── PAYMENT RESULT ─────────────────────────────────────────────── */
.payment-result { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.payment-result-card { text-align: center; max-width: 480px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 3rem 2.5rem; box-shadow: var(--shadow-md); }
.payment-result-icon { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.payment-result-icon.success { background: #dcfce7; }
.payment-result-icon.cancel  { background: #fef3c7; }
.payment-result-icon.failed  { background: #fee2e2; }
.payment-result-icon svg { width: 40px; height: 40px; }
.payment-result-title { font-size: 26px; font-weight: 800; margin-bottom: .75rem; }
.payment-result-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }

/* ── EMPTY STATES ───────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 48px; margin-bottom: 1rem; }
.empty-state h3 { font-size: 18px; color: var(--navy); margin-bottom: .5rem; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── UTILS ──────────────────────────────────────────────────────── */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.w-full { width: 100%; }

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-hero-inner { grid-template-columns: 1fr; }
  .course-register-box { position: static; }
  .course-content { grid-template-columns: 1fr; }
  .course-sidebar-sticky { order: -1; }
  .admin-layout { grid-template-columns: 220px 1fr; }
  .dash-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav-login, .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .lang-switcher .lang-label { display: none; }
  .footer-company-links { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .consulting-grid { grid-template-columns: 1fr; gap: 2rem; }
  .consulting-service-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .datahub-header { max-width: 100%; }

  .hero { padding: 5rem 1.5rem 4rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-block { padding: 2rem; text-align: center; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 1.5rem; }
  .admin-content { padding: 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .consulting-service-grid { grid-template-columns: 1fr; }
  .datahub-tags { gap: .5rem; }
  .datahub-tag { font-size: .8rem; padding: .4rem .9rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .container { padding: 0 1rem; }
  .auth-card { padding: 2rem 1.5rem; }
}

/* ── TABLET BREAKPOINT (640–1024) ───────────────────────────────── */
@media (min-width: 640px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RTL TWEAKS ─────────────────────────────────────────────────── */
[dir="rtl"] .form-select {
  background-position: left 14px center;
  padding-right: 14px; padding-left: 40px;
}
[dir="rtl"] .alert { border-left: none; border-right: 4px solid transparent; }
[dir="rtl"] .alert-success { border-right-color: #16a34a; }
[dir="rtl"] .alert-error   { border-right-color: #ef4444; }
[dir="rtl"] .alert-warning { border-right-color: #f59e0b; }
[dir="rtl"] .alert-info    { border-right-color: #3b82f6; }
[dir="rtl"] .section-eyebrow::before { display: none; }
[dir="rtl"] .section-eyebrow::after  { content: ''; display: block; width: 24px; height: 2px; background: var(--coral); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   STUDENT SHOWCASE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────── */
.showcase-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.showcase-hero--corporate {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
}
.showcase-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: .5rem 0 1rem;
  line-height: 1.2;
}
.showcase-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.showcase-hero-link {
  display: inline-block;
  color: var(--coral);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
}
.showcase-hero-link:hover { text-decoration: underline; }

/* ── Featured project card ──────────────────────────────────────── */
.showcase-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(10,31,92,.10);
  overflow: hidden;
}
.showcase-featured-img {
  position: relative;
  min-height: 320px;
  background: var(--bg-soft);
  overflow: hidden;
}
.showcase-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.showcase-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--coral);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 20px;
  letter-spacing: .04em;
}
.showcase-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}
.showcase-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.showcase-featured-body { padding: 2.5rem 2.5rem 2.5rem 0; }
.showcase-featured-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: .75rem 0 1.25rem;
  line-height: 1.3;
}
.showcase-featured-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.showcase-featured-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.showcase-featured-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.showcase-share-li {
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── Type / badge tags ──────────────────────────────────────────── */
.showcase-type-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .7rem;
  border-radius: 20px;
  background: rgba(10,31,92,.08);
  color: var(--navy);
  margin-right: .35rem;
  margin-bottom: .35rem;
}
.showcase-type-tag--corp   { background: rgba(126,34,206,.1);  color: #6b21a8; }
.showcase-type-tag--gold   { background: rgba(200,155,47,.15); color: #92701f; }
.showcase-type-tag--course { background: rgba(234,88,12,.1);   color: var(--coral); }

/* ── Project grid ───────────────────────────────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.showcase-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Project card ───────────────────────────────────────────────── */
.showcase-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(10,31,92,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}
.showcase-card:hover {
  box-shadow: 0 8px 32px rgba(10,31,92,.14);
  transform: translateY(-3px);
}
.showcase-card--featured { border: 2px solid var(--coral); }

.showcase-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.showcase-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.showcase-card:hover .showcase-card-img { transform: scale(1.04); }

.showcase-card-video-badge {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
  letter-spacing: .03em;
}

.showcase-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.showcase-card-meta { margin-bottom: .6rem; }
.showcase-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .85rem;
  line-height: 1.35;
}
.showcase-card-title a { color: inherit; text-decoration: none; }
.showcase-card-title a:hover { color: var(--coral); }

.showcase-card-author {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.showcase-card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* ── Placeholder when no image ──────────────────────────────────── */
.showcase-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf8 0%, #dde4f5 100%);
  font-size: 3rem;
  aspect-ratio: 16/9;
}

/* ── Author / avatar ────────────────────────────────────────────── */
.showcase-author-avatar,
.showcase-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.showcase-avatar-initials {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4fa8 100%);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.showcase-avatar-initials--lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}
.showcase-author-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.showcase-author-role {
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
}

/* ── LinkedIn icon / pill ───────────────────────────────────────── */
.showcase-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0a66c2;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
}
.showcase-linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #0a66c2;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 20px;
  text-decoration: none;
  margin-top: .4rem;
  transition: background .18s;
}
.showcase-linkedin-pill:hover { background: #004182; }
.showcase-li-icon {
  font-weight: 800;
  font-size: .82rem;
}

/* ── Read more link ─────────────────────────────────────────────── */
.showcase-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  white-space: nowrap;
}
.showcase-read-more:hover { text-decoration: underline; }

/* ── Share dropdown ─────────────────────────────────────────────── */
.showcase-share-wrap { position: relative; }
.showcase-share-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .55rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: border-color .18s, color .18s;
}
.showcase-share-btn:hover { border-color: var(--navy); color: var(--navy); }
.showcase-share-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  min-width: 150px;
  z-index: 40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-share-menu a,
.showcase-share-menu .share-copy-btn {
  display: block;
  padding: .65rem 1rem;
  font-size: .85rem;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background .14s;
}
.showcase-share-menu a:hover,
.showcase-share-menu .share-copy-btn:hover { background: var(--bg-soft); }
.showcase-share-menu a + a,
.showcase-share-menu a + button { border-top: 1px solid var(--border); }

/* ── Detail page ────────────────────────────────────────────────── */
.showcase-detail-wrap {
  padding: 3rem 0 4rem;
}
.showcase-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.showcase-breadcrumb a { color: var(--navy); text-decoration: none; }
.showcase-breadcrumb a:hover { color: var(--coral); }
.showcase-breadcrumb span { color: var(--text-muted); }

.showcase-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.showcase-detail-media { position: sticky; top: 100px; }
.showcase-detail-main-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(10,31,92,.12);
}
.showcase-detail-main-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Video embed ────────────────────────────────────────────────── */
.showcase-video-wrap { margin-bottom: 1.5rem; }
.showcase-video-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.showcase-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.showcase-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Detail content ─────────────────────────────────────────────── */
.showcase-detail-badges { margin-bottom: 1rem; }
.showcase-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 1.5rem;
}
.showcase-detail-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.showcase-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  flex-shrink: 0;
}
.showcase-detail-author-info { flex: 1; }
.showcase-detail-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}
.showcase-detail-author-role {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* ── Overview text ──────────────────────────────────────────────── */
.showcase-detail-overview { margin-bottom: 2rem; }
.showcase-detail-overview h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.showcase-detail-overview p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: .85rem;
}

/* ── Share block (detail page) ──────────────────────────────────── */
.showcase-detail-share {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.showcase-detail-share-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.showcase-detail-share-btns {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.share-btn-li, .share-btn-wa, .share-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
}
.share-btn-li  { background: #0a66c2; color: #fff; }
.share-btn-wa  { background: #25d366; color: #fff; }
.share-btn-copy { background: var(--bg-soft); color: var(--navy); border: 1px solid var(--border); }
.share-btn-li:hover, .share-btn-wa:hover { opacity: .88; }
.share-btn-copy:hover { background: #e8edf8; }

/* ── Back link ──────────────────────────────────────────────────── */
.showcase-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color .18s;
}
.showcase-back-link:hover { color: var(--coral); }
.showcase-back-mobile { display: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .showcase-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .showcase-detail-media { position: static; }
  .showcase-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .showcase-featured { grid-template-columns: 1fr; }
  .showcase-featured-img { min-height: 220px; }
  .showcase-featured-body { padding: 1.5rem; }
  .showcase-featured-title { font-size: 1.3rem; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid--3 { grid-template-columns: 1fr; }
  .showcase-hero { padding: 3.5rem 0 3rem; }
  .showcase-back-mobile { display: inline-flex; }
  .showcase-detail-share-btns { gap: .5rem; }
  .share-btn-li, .share-btn-wa, .share-btn-copy { font-size: .8rem; padding: .45rem .85rem; }
}
@media (max-width: 480px) {
  .showcase-featured-actions { flex-direction: column; }
  .showcase-detail-author-card { flex-direction: column; align-items: flex-start; }
}

/* ── RTL showcase tweaks ────────────────────────────────────────── */
[dir="rtl"] .showcase-featured-badge { left: auto; right: 1rem; }
[dir="rtl"] .showcase-card-video-badge { right: auto; left: .6rem; }
[dir="rtl"] .showcase-breadcrumb { direction: rtl; }
[dir="rtl"] .showcase-share-menu { right: auto; left: 0; }
[dir="rtl"] .showcase-share-menu a,
[dir="rtl"] .showcase-share-menu .share-copy-btn { text-align: right; }
[dir="rtl"] .showcase-detail-share-btns { direction: rtl; }
[dir="rtl"] .showcase-linkedin-icon { margin-left: 0; margin-right: auto; }
