/* ═══════════════════════════════════════════════════════
   NAYA MEDICAL ACADEMY (LMS) — Stylesheet
   Theme: Light/Dark Medical Academic (Naya Blue, Gold)
   Palette sampled from the Naya Med Company mark —
   see naya-med-company-palette.md
   Direction: RTL (default) / LTR support
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Brand ramp — 400 and 500 are lifted pixel-for-pixel from the logo.
     600 is the lightest step that still clears 4.5:1 with white text,
     so every solid button and link uses it rather than the logo blue. */
  --brand-50:      #F0F9FE;
  --brand-100:     #DCF1FC;
  --brand-200:     #B4E2F7;
  --brand-300:     #6FC8EE;
  --brand-400:     #0CA2E2;   /* tooth mark + sparkle */
  --brand-500:     #0386D2;   /* wordmark + rule      */
  --brand-600:     #0272B4;   /* interactive — 5.19:1 on white */
  --brand-700:     #025C92;
  --brand-800:     #0A4468;
  --brand-900:     #0B2D42;
  --brand-950:     #071F2C;

  /* Brand Colors — Naya Med Company */
  --primary:       #0272B4;
  --primary-dark:  #0B2D42;
  --primary-light: #0CA2E2;
  --primary-xlt:   #EAF6FD;
  --secondary:     #0386D2;
  --secondary-soft:rgba(3, 134, 210, 0.12);
  --accent:        #C9A227;
  --accent-light:  #FAF3DF;
  --accent-gold:   #C9A227;
  --accent-wash:   #E9D8A6;   /* gold that holds up on the navy grounds */

  /* Status Colors */
  --success:       #1B8A5A;
  --success-soft:  #E4F5EC;
  --danger:        #C0392B;
  --danger-soft:   #FBEAE7;
  --warning:       #B7791F;
  --warning-soft:  #FDF5E3;
  --info:          #0272B4;
  --info-soft:     #E8F4FB;

  /* Surfaces & Backgrounds */
  --bg:            #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-soft:       #F4F9FC;
  --bg-footer:     #0B2D42;
  --border:        #DCEAF3;
  --border-strong: #B9D4E6;
  --text:          #14293A;
  --text-muted:    #5A7386;
  --white:         #FFFFFF;

  /* Layout Variables */
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     30px;
  --nav-h:         85px;
  --topbar-h:      40px;

  /* Shadows — tinted with the ink navy, never neutral grey */
  --shadow-sm:     0 2px 8px rgba(11, 45, 66, .06);
  --shadow:        0 8px 24px rgba(11, 45, 66, .10);
  --shadow-lg:     0 16px 40px rgba(11, 45, 66, .16);
  --shadow-glow:   0 0 20px rgba(12, 162, 226, 0.28);

  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.78);
  --glass-border:  rgba(255, 255, 255, 0.45);
  --glass-blur:    blur(18px);
}

/* ── Dark Mode Variables ── */
[data-theme="dark"] {
  --bg:            #071720;
  --bg-card:       #0F2531;
  --bg-soft:       #0B1D27;
  --bg-footer:     #05131B;
  --border:        #1E3542;
  --border-strong: #2C4A5A;
  --text:          #EAF3F8;
  --text-muted:    #92AEBD;
  --white:         #0F2531;
  --primary-xlt:   rgba(12, 162, 226, 0.14);
  /* The logo blue is legible on the navy ground; #0272B4 is not.
     Interactive colour steps one rung lighter in dark mode. */
  --primary:       #3FB6EC;
  --secondary:     #0CA2E2;
  --accent:        #E9D8A6;
  --accent-light:  rgba(201, 162, 39, 0.14);

  --shadow-sm:     0 2px 8px rgba(0,0,0,.2);
  --shadow:        0 8px 24px rgba(0,0,0,.3);
  --shadow-lg:     0 16px 40px rgba(0,0,0,.45);

  --glass-bg:      rgba(15, 37, 49, 0.78);
  --glass-border:  rgba(255, 255, 255, 0.06);
}

/* ── Reset & General Styles ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.lang-en {
  font-family: 'Cairo', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 0;
}

/* ── Top Bar ── */
#topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary), var(--primary-dark));
  background-size: 300% 100%;
  animation: topbarBgFlow 12s linear infinite;
  color: #fff;
  height: var(--topbar-h);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
@keyframes topbarBgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-info svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.9);
}
.topbar-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.topbar-socials {
  display: flex;
  gap: 10px;
}
.topbar-socials a {
  opacity: 0.85;
  display: flex;
  align-items: center;
}
.topbar-socials a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.theme-lang-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  color: #fff;
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.3);
}

.lang-toggle-btn {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  transition: all 0.2s;
}
.lang-toggle-btn:hover {
  background: #fff;
  color: var(--primary);
}

/* ── Header / Navigation ── */
#navbar-header {
  position: fixed;
  top: calc(var(--topbar-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1280px;
  height: var(--nav-h);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar-header.scrolled {
  top: 10px;
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
  transform: translateX(-50%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 75px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-item a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
}
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-item a:hover::after,
.nav-item a.active::after {
  width: 18px;
}
.nav-item a:hover {
  background: var(--primary-xlt);
  color: var(--primary);
}
.nav-item a.active {
  background: var(--primary-xlt);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dropdown Submenu */
.nav-dropdown-wrapper {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  animation: dropdownFade 0.25s ease forwards;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  display: flex;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-menu a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-dropdown-menu a:hover {
  background: var(--primary-xlt);
  color: var(--primary);
}

/* ── Hamburger / Mobile Trigger ── */
.mobile-nav-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.mobile-nav-trigger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-nav-trigger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-nav-trigger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-trigger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(2,114,180, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2,114,180, 0.45);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(3,134,210, 0.3);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,134,210, 0.45);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-xlt);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(202,171,73, 0.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-gold));
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202,171,73, 0.55);
}
.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--primary-xlt);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ── Hero Carousel ── */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-footer);
  z-index: 1;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -1;
  transition: transform 6s ease;
}
.hero-slide.active .hero-bg-overlay {
  transform: scale(1.05);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}
.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3,134,210, 0.2);
  border: 1px solid rgba(3,134,210, 0.4);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: #E9D8A6;
  -webkit-text-fill-color: #E9D8A6;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 35px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 15px;
}

/* Slider Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
}
.hero-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-glow);
}
.hero-arrow-prev { right: 20px; }
.hero-arrow-next { left: 20px; }

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.25s ease;
}
.hero-dot.active {
  background: var(--secondary);
  width: 30px;
  border-radius: 10px;
}

/* ── Section Titles & Headers ── */
.section-py {
  padding: 80px 0;
}
.text-center {
  text-align: center;
}
.section-header {
  margin-bottom: 50px;
}
.section-badge {
  display: inline-block;
  background: var(--primary-xlt);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(2,114,180,0.15);
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Filter / Finder Bar ── */
.finder-wrapper {
  position: relative;
  z-index: 20;
  margin-top: -50px;
  margin-bottom: 40px;
}
.finder-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.finder-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finder-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.finder-select, .finder-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.finder-select:focus, .finder-input:focus {
  border-color: var(--secondary);
}
.finder-btn-search {
  height: 48px;
  width: 100%;
}

/* ── Courses Browser ── */
.courses-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.filter-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-checkbox-label input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--primary);
}

.courses-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.courses-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.courses-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Course Card ── */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.course-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-xlt);
}
.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-card-image img {
  transform: scale(1.05);
}
.course-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.course-card-cme {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}
.course-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-specialty {
  font-size: 12px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}
.course-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 15px;
}
.course-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-card-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-light);
}
.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: auto;
}
.course-card-price {
  display: flex;
  flex-direction: column;
}
.course-price-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.course-price-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.course-price-value small {
  font-size: 11px;
  font-weight: 700;
  margin-right: 2px;
}

/* ── Certificate Verification Tool ── */
.verification-card {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.verify-form {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.verify-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.verify-input:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-glow);
}
.verify-result {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius);
  display: none;
  animation: fadeIn 0.4s ease;
}
.verify-result.success {
  background: var(--success-soft);
  border: 1px solid var(--success);
  color: #064E3B;
  display: block;
}
.verify-result.error {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: #7F1D1D;
  display: block;
}
.verify-status-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.verify-details-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  text-align: right;
  font-size: 13.5px;
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 12px;
  margin-top: 12px;
}
.verify-details-grid div:nth-child(odd) {
  font-weight: 800;
  opacity: 0.8;
}

/* ── Success Stories / Managed Events ── */
.stories-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}
.stories-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.story-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-body {
  padding: 24px;
}
.story-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.story-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial-card::before {
  content: "“";
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: -10px;
  right: 15px;
  line-height: 1;
}
.testimonial-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-size: 13.5px;
  font-weight: 800;
}
.testimonial-role {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
}

/* ── Corporate / Business Form ── */
.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.business-info-side {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.business-info-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.business-info-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 24px;
}
.business-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.business-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.business-feat-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--secondary);
}

.business-form-side {
  padding: 40px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 16px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.form-req {
  color: var(--danger);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: all 0.25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── About Details ── */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease;
}
.about-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.about-feat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-xlt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.about-feat-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.about-feat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Guides & Policies ── */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.guide-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.guide-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-title svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
}
.guide-item:hover {
  border-color: var(--border-strong);
}
.guide-dl-btn {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.guide-dl-btn:hover {
  color: var(--primary);
}

.policies-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.policy-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.policy-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Contact Section ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  gap: 15px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-xlt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-text {
  display: flex;
  flex-direction: column;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-info-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 350px;
}

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 16px;
  font-weight: 800;
}
.modal-close-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.modal-close-btn:hover {
  background: rgba(255,255,255,0.35);
}
.modal-body {
  padding: 24px;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.modal-tab {
  padding: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.modal-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

/* ── Footer ── */
#footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.75);
  border-top: 4px solid var(--accent-gold);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  filter: brightness(0.85);
}
.footer-logo-title {
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}
.footer-brand-desc {
  line-height: 1.7;
}
.footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.footer-links a:hover {
  color: var(--secondary);
  padding-right: 6px;
}
.footer-newsletter-desc {
  line-height: 1.7;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  font-size: 13px;
}
.newsletter-input:focus {
  border-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-bottom-links a:hover {
  color: var(--secondary);
}

/* ── Mobile Sidebar Drawer ── */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
}
#mobile-drawer.open {
  display: block;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -320px;
  width: min(85vw, 320px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 10;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-drawer.open .drawer-content {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-logo img {
  height: 38px;
}
.drawer-logo-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-xlt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}
.drawer-item a {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display:block;
  padding: 10px 14px;
  border-radius: 10px;
}
.drawer-item a:hover, .drawer-item a.active {
  background: var(--primary-xlt);
  color: var(--primary);
}

/* ── Direction LTR override ── */
body.lang-en {
  direction: ltr;
}
body.lang-en .skip-link {
  right: auto;
  left: 20px;
}
body.lang-en .nav-dropdown-menu {
  right: auto;
  left: 0;
}
body.lang-en #mobile-drawer .drawer-content {
  right: auto;
  left: -320px;
  border-left: none;
  border-right: 1px solid var(--border);
}
body.lang-en #mobile-drawer.open .drawer-content {
  left: 0;
}
body.lang-en .footer-title::after {
  right: auto;
  left: 0;
}
body.lang-en .verify-details-grid {
  text-align: left;
}
body.lang-en .course-card-tag {
  right: auto;
  left: 12px;
}
body.lang-en .course-card-cme {
  left: auto;
  right: 12px;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 48px);
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-right: 4px solid var(--success); }
.toast.error { border-right: 4px solid var(--danger); }
.toast-icon { font-size: 20px; }
.toast-content h4 { font-size: 14px; font-weight: 800; }
.toast-content p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Responsive Styling ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .about-features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-features-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .business-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #navbar-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 80px;
    border-radius: 12px;
  }
  .nav-logo-img {
    height: 70px;
  }
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-nav-trigger {
    display: flex;
  }
  .finder-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .courses-container {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: none;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .policies-list {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .about-features-grid > div:last-child {
    grid-column: auto;
  }
  .stories-track {
    grid-template-columns: 1fr;
  }
  .verify-form {
    flex-direction: column;
  }
  .verify-btn {
    width: 100%;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.footer-dev {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.footer-dev a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-dev a:hover {
  color: #fff;
}
.footer-dev img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
