/* ═══════════════════════════════════════════════════════
   AZZAM ALLAM LMS — ENHANCEMENTS v2
   High-level Saudi health training site improvements
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts – add Tajawal for richer Arabic ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ── Accreditation strip height compensation ── */
:root { --strip-h: 34px; }
header#navbar-header { top: calc(var(--topbar-h) + var(--strip-h) + 10px) !important; }
header#navbar-header.scrolled { top: var(--strip-h) !important; }

/* ── SCFHS Accreditation Ticker Strip ── */
.accreditation-strip {
  background: linear-gradient(90deg, #0B2D42 0%, #0272B4 50%, #0B2D42 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 1002;
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: stripScroll 30s linear infinite;
  white-space: nowrap;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
  animation: stripPulse 2s ease-in-out infinite;
}
@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes stripPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── Vision 2030 Ribbon on hero ── */
.vision-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0,92,61,0.85), rgba(0,70,45,0.85));
  border: 1px solid rgba(74,222,128,0.3);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}
.vision-ribbon svg { stroke: #4ADE80; }

/* ── Trust Badges Bar ── */
.trust-badges-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
  padding: 28px 0;
}
.trust-badges-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: all 0.25s ease;
  cursor: default;
}
.trust-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(2,114,180,0.12);
  transform: translateY(-3px);
}
.trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trust-badge-icon.green  { background: #D1FAE5; color: #059669; }
.trust-badge-icon.teal   { background: var(--primary-xlt); color: var(--primary); }
.trust-badge-icon.gold   { background: #FEF3C7; color: #D97706; }
.trust-badge-icon.blue   { background: #DBEAFE; color: #2563EB; }
.trust-badge-text strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); }
.trust-badge-text small  { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ── Improved Stats with Icons ── */
.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stat-icon-v2 {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-xlt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}
.stat-number-v2 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-suffix { font-size: 20px; }
.stat-label-v2 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.4;
}

/* ── How It Works Section ── */
.steps-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0B2D42 50%, var(--primary-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.steps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}
.step-card {
  text-align: center;
  color: #fff;
  position: relative;
}
.step-card:not(:last-child)::after {
  content: '←';
  position: absolute;
  top: 30px;
  left: -20px;
  font-size: 24px;
  color: rgba(255,255,255,0.3);
}
body.lang-en .step-card:not(:last-child)::after {
  content: '→';
  left: auto;
  right: -20px;
}
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px rgba(3,134,210,0.2);
  animation: stepGlow 3s ease-in-out infinite;
}
@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(3,134,210,0.2); }
  50%       { box-shadow: 0 0 0 12px rgba(3,134,210,0.1); }
}
.step-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* ── Improved Testimonial Cards ── */
.testimonial-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}
.testimonial-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.testimonial-v2::before {
  content: '"';
  font-family: 'Cairo', sans-serif;
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 70px;
  font-weight: 900;
  color: var(--primary-xlt);
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #F59E0B;
  font-size: 15px;
}
.testimonial-body-v2 {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); }
.testimonial-meta span   { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.testimonial-badge {
  margin-top: 4px;
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Partner Logos Section ── */
.partners-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.partners-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-logo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.partner-logo-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.partner-logo-pill span.partner-emoji { font-size: 18px; }

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C4F);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.1); }
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── Scroll-to-top Button ── */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* ── Urgency/Upcoming Courses Strip ── */
.upcoming-strip {
  background: linear-gradient(90deg, #7C3AED, #6D28D9);
  color: #fff;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.upcoming-strip a {
  color: #FDE68A;
  text-decoration: underline;
  margin-right: 8px;
}
.upcoming-strip .close-strip {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.7;
  font-size: 18px;
}

/* ── Course Cards v2 (enhanced) ── */
.course-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.course-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(2,114,180,0.18);
  border-color: var(--secondary);
}
.course-card-v2 .hot-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  animation: hotBadge 2s ease-in-out infinite;
}
@keyframes hotBadge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

/* ── Newsletter Section ── */
.newsletter-section-v2 {
  background: linear-gradient(135deg, var(--primary-dark), #0B2D42);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section-v2::after {
  content: '📧';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  right: -30px;
  bottom: -40px;
}
.newsletter-section-v2 .section-title { color: #fff; }
.newsletter-section-v2 .section-desc { color: rgba(255,255,255,0.75); }
.newsletter-form-v2 {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 30px auto 0;
}
.newsletter-form-v2 input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s;
}
.newsletter-form-v2 input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form-v2 input:focus { border-color: var(--secondary); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  padding: 100px 0 60px;
  margin-top: calc(var(--topbar-h) + var(--nav-h) + 20px);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero-breadcrumb a:hover { color: #fff; }

/* ── Stat Cards Dark Version ── */
[data-theme="dark"] .stat-card-v2 {
  background: var(--bg-card);
  border-color: var(--border-strong);
}
[data-theme="dark"] .trust-badge {
  background: var(--bg-card);
}
[data-theme="dark"] .partner-logo-pill {
  background: var(--bg-card);
}

/* ── Animated background gradient on hero ── */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,45,66, 0.75) 0%,
    rgba(2,114,180, 0.5) 50%,
    rgba(11,45,66, 0.75) 100%
  );
  z-index: 0;
}

/* ── CME Hours highlight bar ── */
.cme-highlight-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .trust-badges-inner { gap: 16px; }
  .step-card:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps-grid    { grid-template-columns: 1fr; }
  .newsletter-form-v2 { flex-direction: column; }
  .trust-badge { padding: 10px 14px; }
  .whatsapp-float { bottom: 20px; left: 20px; width: 52px; height: 52px; }
}
