/* ================================================
   IMAM MALIK ACADEMY — Main CSS
   Premium Arabic Education Theme
================================================ */

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

/* ================================================
   CSS VARIABLES
================================================ */
:root {
  --primary:       #1f8686;
  --primary-dark:  #176b6b;
  --primary-light: #e8f5f5;
  --accent:        #cfb134;
  --accent-dark:   #b99b24;
  --accent-light:  #fdf8e6;
  --text:          #1b1f22;
  --text-muted:    #64707a;
  --line:          #e9edf0;
  --bg:            #ffffff;
  --bg-soft:       #f8fbfb;
  --bg-deep:       #f0f6f6;
  --footer-bg:     #0c1a1c;
  --shadow-sm:     0 4px 16px rgba(19,46,46,.07);
  --shadow:        0 12px 40px rgba(19,46,46,.10);
  --shadow-lg:     0 24px 64px rgba(19,46,46,.14);
  --radius-sm:     12px;
  --radius:        20px;
  --radius-lg:     28px;
  --radius-xl:     36px;
  --transition:    .28s cubic-bezier(.4,0,.2,1);
}

/* ================================================
   RESET & BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
em { color: var(--accent); font-style: normal; }

/* ================================================
   LAYOUT
================================================ */
.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* ================================================
   HEADER
================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233,237,240,.8);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(19,46,46,.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

/* Brand */
.brand, .brand-text {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #2da8a8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(31,134,134,.35);
}
.brand strong, .brand-text strong { display: block; font-size: .98rem; font-weight: 800; }
.brand small, .brand-text small  { display: block; color: var(--text-muted); font-size: .8rem; }

/* Nav */
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: #3b4850;
  font-weight: 600;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }

/* Nav actions */
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  height: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #121200;
  box-shadow: 0 4px 18px rgba(207,177,52,.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(207,177,52,.45); }
.btn-primary.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary.btn-glow:hover::after { opacity: .5; }

.btn-outline {
  border-color: rgba(31,134,134,.3);
  background: #fff;
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); }

.btn-ghost {
  background: rgba(31,134,134,.1);
  color: var(--primary);
}
.btn-ghost:hover { background: rgba(31,134,134,.18); }

.btn-light { background: #fff; color: var(--primary); }
.btn-secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.22); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  gap: 8px;
}
.btn-whatsapp:hover { background: #20ba59; }
.btn-block { width: 100%; }

/* ================================================
   WHATSAPP FLOAT
================================================ */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 8px 28px rgba(207,177,52,.45);
  transition: all var(--transition);
  animation: float-pulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(207,177,52,.55);
}
@keyframes float-pulse {
  0%,100% { box-shadow: 0 8px 28px rgba(207,177,52,.45); }
  50% { box-shadow: 0 8px 36px rgba(207,177,52,.65); }
}

/* ================================================
   HERO
================================================ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(207,177,52,.15), transparent 38%),
    radial-gradient(ellipse at 88% 12%, rgba(31,134,134,.2), transparent 32%),
    linear-gradient(180deg, #fdfefe 0%, #f5fafa 100%);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31,134,134,.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(31,134,134,.1);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid rgba(31,134,134,.15);
}
.section-tag.light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.hero-title {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.28;
  margin: 18px 0 16px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
}
.lead {
  font-size: 1.1rem;
  color: #243038;
  line-height: 1.9;
  margin-bottom: 8px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* Quick trust */
.quick-trust {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.quick-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: .9rem;
  color: #2b3338;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.quick-trust li svg { color: var(--primary); flex-shrink: 0; }
.quick-trust li:hover { border-color: var(--primary); box-shadow: 0 4px 18px rgba(31,134,134,.1); }

/* Hero Card */
.hero-visual { position: relative; z-index: 1; }
.hero-card {
  background: #fff;
  border: 1px solid rgba(233,237,240,.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition);
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-deep));
}
.hero-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-card:hover .hero-card-img img { transform: scale(1.04); }
.hero-card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--primary);
  opacity: .5;
}
.hero-card-img-placeholder p { font-weight: 700; }
.hero-card-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--accent);
  color: #111;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(207,177,52,.45);
}
.hero-card-badge span { font-size: .72rem; font-weight: 600; }
.hero-card-body { padding: 24px; }
.hero-badge {
  display: inline-block;
  background: rgba(207,177,52,.15);
  color: #6b4e00;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 12px;
  border: 1px solid rgba(207,177,52,.3);
}
.hero-card-body h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; }
.hero-card-body p { color: #55616b; font-size: .95rem; margin-bottom: 18px; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-item span { font-size: .82rem; color: var(--text-muted); margin-top: 4px; display: block; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-light);
  border: 1px dashed rgba(207,177,52,.4);
  border-radius: 14px;
  font-size: .9rem;
  color: #5a4500;
}
.hero-note strong { color: #3d2e00; }
.hero-note svg { color: var(--accent-dark); flex-shrink: 0; }

/* Scroll indicator */
.hero-scroll-indicator {
  text-align: center;
  padding: 30px 0 0;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-up .8s ease 1s both;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-down 1.4s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ================================================
   TRUST STRIP
================================================ */
.trust-strip { padding: 0 0 24px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item {
  padding: 24px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
  transition: background var(--transition);
}
.trust-item:last-child { border-left: 0; }
.trust-item:hover { background: var(--bg-soft); }
.trust-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  font-family: 'Amiri', serif;
}
.trust-item span { display: block; color: #4b5860; margin-top: 6px; font-weight: 700; font-size: .9rem; }

/* ================================================
   SECTIONS BASE
================================================ */
.section { padding: 84px 0; }
.section.muted { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; max-width: 780px; margin-inline: auto; margin-bottom: 36px; }
.section-head .section-tag { margin-bottom: 12px; }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.3;
  margin: 14px 0 12px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.section p { color: #56616a; line-height: 1.9; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ================================================
   WHY SECTION
================================================ */
.why-image-wrap {
  margin-top: 20px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.why-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
}
.why-image-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,.95);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

/* Feature list (mini-cards) */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,134,134,.25);
  box-shadow: 0 12px 32px rgba(31,134,134,.1);
}
.mini-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.mini-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.mini-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ================================================
   CARDS GRID
================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(31,134,134,.08), transparent 70%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(31,134,134,.25);
  box-shadow: 0 16px 48px rgba(31,134,134,.12);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: background var(--transition);
}
.card:hover .card-icon { background: rgba(31,134,134,.18); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid rgba(207,177,52,.25);
}
.card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 8px; }
.card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================
   TIMELINE
================================================ */
.timeline-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 40px;
}
.timeline-step {
  position: relative;
  padding: 0 12px;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2da8a8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(31,134,134,.35);
}
.step-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.step-body:hover {
  border-color: rgba(31,134,134,.25);
  box-shadow: 0 10px 32px rgba(31,134,134,.1);
  transform: translateY(-3px);
}
.step-emoji { font-size: 1.8rem; margin-bottom: 8px; }
.step-body strong { display: block; color: var(--primary); font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.step-duration {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-body p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  position: absolute;
  top: 24px;
  left: -12px;
  width: calc(100% - 24px + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(31,134,134,.3));
  z-index: 1;
  pointer-events: none;
}

/* Timeline stats row */
.timeline-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tstat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition);
}
.tstat-item:hover { border-color: rgba(31,134,134,.2); box-shadow: 0 8px 24px rgba(31,134,134,.08); }
.tstat-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.tstat-value { font-size: 1rem; font-weight: 800; color: var(--text); }

/* ================================================
   CURRICULUM
================================================ */
.curriculum-img {
  margin-top: 20px;
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.highlight-box {
  background: linear-gradient(160deg, #fff, #fdfcf4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.highlight-icon { font-size: 2.4rem; margin-bottom: 14px; }
.highlight-box h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 12px; }
.highlight-box p { color: #56616a; line-height: 1.9; margin-bottom: 18px; }
.highlight-features {
  list-style: none;
  display: grid;
  gap: 10px;
}
.highlight-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: #2b3338;
}
.highlight-features li svg { color: var(--primary); flex-shrink: 0; }

/* ================================================
   CERTIFICATE
================================================ */
.certificate-panel {
  background: linear-gradient(160deg, #fff 0%, #fdfcf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.cert-icon { font-size: 2.8rem; margin-bottom: 16px; }
.cert-content { display: flex; align-items: start; gap: 16px; }
.cert-text h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 12px; }
.cert-text p  { color: #56616a; line-height: 1.9; margin-bottom: 12px; }
.cert-note { font-size: .9rem; color: var(--text-muted) !important; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cert-badge {
  background: rgba(31,134,134,.08);
  color: var(--primary);
  border: 1px solid rgba(31,134,134,.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.cert-image img {
  width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ================================================
   CHECK LIST
================================================ */
.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: .93rem;
  font-weight: 600;
  color: #2b3338;
  line-height: 1.7;
  transition: all var(--transition);
}
.check-list li:hover { border-color: rgba(31,134,134,.25); background: var(--primary-light); }
.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  background: rgba(31,134,134,.12);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 900;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ================================================
   FAQ
================================================ */
.faq-list { display: grid; gap: 12px; max-width: 940px; margin-inline: auto; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq-list details[open] { box-shadow: 0 8px 28px rgba(31,134,134,.1); border-color: rgba(31,134,134,.2); }
.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 1rem;
  color: #1e2d36;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: 1; }
.faq-icon { transition: transform var(--transition); color: var(--primary); flex-shrink: 0; }
.faq-list details[open] .faq-icon { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 20px 18px;
  color: #56616a;
  line-height: 1.9;
  margin: 0;
  font-size: .95rem;
}

/* ================================================
   CTA BAND
================================================ */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #1e7c7c 55%, #175f5f 100%);
  color: #fff;
  overflow: hidden;
}
.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: #fff; margin: 14px 0 12px; }
.cta-band p  { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================================================
   REGISTER FORM
================================================ */
.register-box { align-items: start; }
.register-trust { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: #2b3338;
}
.trust-badge svg { color: var(--primary); }

.register-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.register-form.compact {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.register-form.compact .field-grid {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}
.full { grid-column: 1 / -1; }

label { display: grid; gap: 6px; }
label span { font-size: .9rem; font-weight: 700; color: #2d3740; }

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1.5px solid #dce5e7;
  background: #fff;
  font: inherit;
  font-size: .93rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,134,134,.1);
}
input.error, select.error, textarea.error { border-color: #e53e3e; }
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }

.form-submit-btn { margin-top: 4px; min-height: 52px; }
.btn-spinner { display: flex; }
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
}
.form-message.success { background: rgba(31,134,134,.1); color: var(--primary); border: 1px solid rgba(31,134,134,.2); }
.form-message.error   { background: rgba(229,62,62,.08); color: #c53030; border: 1px solid rgba(229,62,62,.2); }

/* ================================================
   POPUP
================================================ */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.popup.is-open { display: flex; animation: fade-in .2s ease; }
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,17,18,.6);
  backdrop-filter: blur(4px);
}
.popup-card {
  position: relative;
  max-width: 860px;
  width: calc(100% - 24px);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(9,17,18,.3);
  z-index: 1;
  overflow: hidden;
  animation: slide-up .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.popup-close {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f2f5f6;
  color: var(--text);
  display: grid;
  place-items: center;
  border: none;
  transition: all var(--transition);
  z-index: 2;
}
.popup-close:hover { background: #e2e6e8; transform: rotate(90deg); }
.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.popup-info {
  padding: 32px 28px;
  background: linear-gradient(160deg, var(--primary-light), var(--bg-soft));
  border-left: 1px solid var(--line);
}
.popup-info h3 { font-size: 1.5rem; font-weight: 900; margin: 12px 0 10px; }
.popup-info p  { color: #56616a; line-height: 1.9; font-size: .95rem; }
.popup-whatsapp-alt { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.popup-whatsapp-alt p { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.popup-card .register-form { padding: 32px 28px; }

@keyframes fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-up   { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes zoom-in    { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--footer-bg);
  color: #c8d5d6;
  position: relative;
}
.footer-top-wave {
  height: 60px;
  overflow: hidden;
  line-height: 0;
  background: var(--bg-soft);
}
.footer-top-wave svg { width: 100%; height: 100%; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 32px;
  padding: 48px 0 36px;
}
.footer-brand .footer-logo { margin-bottom: 12px; }
.footer-brand-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #2da8a8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}
.site-footer h3 { color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer p  { color: #8fa8a9; font-size: .9rem; line-height: 1.8; }
.footer-social { margin-top: 16px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  transition: all var(--transition);
}
.social-btn:hover { transform: translateY(-2px); }
.whatsapp-btn { background: rgba(37,211,102,.15); color: #25d366; }
.whatsapp-btn:hover { background: rgba(37,211,102,.25); }

.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul li a {
  color: #8fa8a9;
  font-size: .88rem;
  transition: color var(--transition);
}
.site-footer ul li a:hover { color: #fff; }
.footer-contact-list li { color: #8fa8a9; font-size: .88rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom p { color: #6a8a8b; font-size: .82rem; margin: 0; }
.footer-built { opacity: .7; }

/* ================================================
   AOS (basic fallback)
================================================ */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-left"]  { transform: translateX(-20px); }
[data-aos="fade-right"] { transform: translateX(20px); }
[data-aos="zoom-in"]    { transform: scale(.92); }
[data-aos].aos-animate  { opacity: 1 !important; transform: none !important; }

/* CRITICAL FALLBACK: If JS fails or is slow, show content after 1 second */
@keyframes aosShow { to { opacity:1; transform:none; } }
.hero-copy, .hero-visual, .hero-card,
.trust-item, .card, .section-head,
.timeline-step, .faq-list, .certificate-panel,
.register-box > div, .cta-grid > div,
.split > div, .curriculum-box > div {
    animation: aosShow 0s 1.5s forwards;
}
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ================================================
   UTILITY
================================================ */
.muted-text { color: var(--text-muted); }
.animate-in { animation: fade-up .6s ease .1s both; }

/* ================================================
   ELEMENTOR OVERRIDES
================================================ */
.elementor-section .register-form { margin: 0; }
.elementor-widget-wrap .btn { display: inline-flex; }

/* ================================================
   RESPONSIVE — 1024px
================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: flex !important; }
  .hero-grid, .split, .cta-grid, .popup-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-visual { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step-connector { display: none; }
  .timeline-stats-row { grid-template-columns: repeat(3, 1fr); }
  .certificate-panel { grid-template-columns: 1fr; }
  .cert-image img { width: 100%; }
  .hero-grid { gap: 28px; }

  /* ── HEADER MOBILE ── */
  .site-header { position: sticky; }

  .nav-wrap {
    padding: 10px 16px;
    gap: 8px;
  }

  /* Brand: logo takes up remaining space */
  .brand {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .logo-desktop-link img,
  .logo-mobile-link img {
    max-height: 44px !important;
    width: auto;
  }

  /* Nav actions: lang + register btn + hamburger */
  .nav-actions {
    flex-shrink: 0;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* Hide consult button on mobile — only show register + hamburger */
  .nav-actions .btn-outline { display: none !important; }

  /* Register button smaller on mobile */
  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: .82rem;
    white-space: nowrap;
  }

  /* Language switcher compact */
  .nav-actions .lang-switcher .lang-current {
    padding: 5px 10px;
    font-size: .78rem;
  }
  .nav-actions .lang-switcher .lang-current span { display: none; }
  .nav-actions .lang-switcher .lang-current svg { display: none; }

  /* Hamburger */
  .nav-toggle {
    padding: 6px;
    flex-shrink: 0;
  }
  .nav-toggle span {
    width: 20px;
    height: 2px;
  }

  /* Mobile nav dropdown */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: #fff;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    gap: 2px;
    z-index: 99;
  }
  .nav.is-open ul { flex-direction: column !important; gap: 2px !important; }
  .nav.is-open li a {
    display: block;
    padding: 12px 16px;
    font-size: .95rem;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
  }
  .nav.is-open li a:hover { background: rgba(31,134,134,.08); color: var(--primary); }
}

/* ================================================
   RESPONSIVE — 767px
================================================ */
@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.6rem); }
  .hero-actions, .cta-actions, .nav-actions { flex-wrap: wrap; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2n) { border-left: 0; }
  .trust-item { border-bottom: 1px solid var(--line); padding: 18px; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .timeline-visual { grid-template-columns: 1fr; }
  .timeline-stats-row { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
  .quick-trust { grid-template-columns: 1fr; }
  .popup-grid { grid-template-columns: 1fr; }
  .popup-info { order: 2; }
  .popup-card .register-form { order: 1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .whatsapp-float { left: 12px; bottom: 16px; padding: 12px 16px; font-size: .82rem; }
  .register-form { padding: 20px; }
  .hero-card-body { padding: 18px; }
  .hero-scroll-indicator { display: none; }
}

/* ================================================
   PRINT
================================================ */
@media print {
  .site-header, .whatsapp-float, .popup { display: none !important; }
  .section { padding: 20px 0; }
}

/* ================================================
   CUSTOM LOGO — Image Logo Support
================================================ */
/* WordPress custom_logo wraps img in <a class="custom-logo-link"> */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.custom-logo-link img,
.custom-logo {
  max-height: var(--logo-max-h, 60px);
  max-width:  var(--logo-max-w, 200px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity .2s;
}
.custom-logo-link:hover img { opacity: .88; }

/* Site header logo area */
.site-header .brand .custom-logo-link,
.site-header .brand-text { display: flex; align-items: center; }

/* Footer logo */
.footer-logo .custom-logo-link img { max-height: 50px; max-width: 160px; }

/* Remove WP default caption below logo */
.site-header .custom-logo-link + .site-title,
.site-header .custom-logo-link + p { display: none; }

/* ================================================
   LANGUAGE SWITCHER (extra header styles)
================================================ */
.nav-actions .lang-switcher { margin-inline-end: 4px; }

/* ================================================
   MULTILINGUAL — LTR override for non-Arabic
================================================ */
body.dir-ltr {
  direction: ltr;
  text-align: left;
}
body.dir-ltr .site-header .nav-wrap { flex-direction: row; }
body.dir-ltr .hero-grid { direction: ltr; }
body.dir-ltr .quick-trust { direction: ltr; }
body.dir-ltr .check-list li::before { margin-right: 0; margin-left: 10px; order: -1; }
body.dir-ltr .trust-item { border-left: 0; border-right: 1px solid var(--line); }
body.dir-ltr .trust-item:last-child { border-right: 0; }
body.dir-ltr input, body.dir-ltr select, body.dir-ltr textarea {
  direction: ltr;
  text-align: left;
}
body.dir-ltr .footer-grid { direction: ltr; }
body.dir-ltr .faq-list summary { flex-direction: row; }
body.dir-ltr .lang-menu { right: auto; left: 0; }

/* Russian font support */
body.lang-ru-RU { font-family: 'Cairo', 'Roboto', sans-serif; }

/* ================================================
   NAV MENU — Reset WordPress default li/ul bullets
================================================ */
.site-header .nav ul,
.site-header .nav .nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.site-header .nav li,
.site-header .nav .nav-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .nav li::before,
.site-header .nav .nav-list li::before {
  display: none !important;
  content: none !important;
}
.site-header .nav li a,
.site-header .nav .nav-list li a {
  color: #3b4850;
  font-weight: 600;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
}
.site-header .nav li a:hover,
.site-header .nav .nav-list li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
/* Sub-menus if any */
.site-header .nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.site-header .nav li:hover .sub-menu { display: block; }
/* Mobile nav */
.nav.is-open ul,
.nav.is-open .nav-list {
  flex-direction: column;
  gap: 2px;
}

/* FOOTER NAV — also reset */
.site-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-footer ul li::before {
  display: none !important;
  content: none !important;
}

/* ================================================
   NAV MENU — Fix WordPress default list bullets
   v3.0 complete reset
================================================ */
.site-header .nav .nav-list,
.site-header .nav ul,
.site-header nav ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.site-header .nav .nav-list li,
.site-header .nav ul li,
.site-header nav ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}
.site-header .nav .nav-list li::before,
.site-header .nav .nav-list li::marker,
.site-header .nav ul li::before,
.site-header .nav ul li::marker {
    display: none !important;
    content: none !important;
}
.site-header .nav .nav-list li > a,
.site-header .nav ul li > a {
    display: inline-block;
    color: #3b4850;
    font-weight: 600;
    font-size: .92rem;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.site-header .nav .nav-list li > a:hover,
.site-header .nav ul li > a:hover {
    color: var(--primary);
    background: rgba(31,134,134,.1);
}

/* Footer nav fix */
.site-footer .footer-nav-list,
.site-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: 10px;
}
.site-footer .footer-nav-list li::before,
.site-footer .footer-nav-list li::marker,
.site-footer ul li::before,
.site-footer ul li::marker {
    display: none !important;
    content: none !important;
}
.footer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: 10px;
}

/* Mobile nav open state */
@media (max-width: 1024px) {
    .nav.is-open .nav-list,
    .nav.is-open ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
}

/* ── NAV BULLETS FIX ── */
.site-header .nav ul,.site-header .nav .nav-list,.site-header nav ul{list-style:none!important;margin:0!important;padding:0!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:2px;}
.site-header .nav li,.site-header .nav .nav-list li{list-style:none!important;margin:0!important;padding:0!important;}
.site-header .nav li::before,.site-header .nav li::marker,.site-header .nav .nav-list li::before,.site-header .nav .nav-list li::marker{display:none!important;content:none!important;}
.site-header .nav li>a,.site-header .nav .nav-list li>a{display:inline-block;color:#3b4850;font-weight:600;font-size:.92rem;padding:7px 14px;border-radius:999px;text-decoration:none;transition:background .2s,color .2s;white-space:nowrap;}
.site-header .nav li>a:hover,.site-header .nav .nav-list li>a:hover{color:var(--primary);background:rgba(31,134,134,.1);}
.site-footer .footer-nav-list,.site-footer ul,.footer-contact-list{list-style:none!important;padding:0!important;margin:0!important;}
.site-footer li::before,.site-footer li::marker{display:none!important;content:none!important;}
@media(max-width:1024px){.nav.is-open .nav-list,.nav.is-open ul{flex-direction:column!important;align-items:flex-start!important;}}

/* ================================================
   LOGO — Desktop/Mobile switching
   Only ONE logo shows at a time
================================================ */
.logo-desktop-link { display: block !important; }
.logo-mobile-link  { display: none  !important; }

@media (max-width: 768px) {
    .logo-desktop-link { display: none  !important; }
    .logo-mobile-link  { display: block !important; }
}

/* ================================================
   HEADER — Mobile responsive fixes
================================================ */
@media (max-width: 1024px) {
    .nav-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
    }
    .brand {
        flex-shrink: 0;
        max-width: 160px;
    }
    .nav {
        display: none;
    }
    .nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(280px, 80vw);
        background: #fff;
        padding: 80px 24px 32px;
        box-shadow: -8px 0 40px rgba(0,0,0,.15);
        z-index: 999;
        overflow-y: auto;
    }
    .nav.is-open .nav-list {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .nav.is-open .nav-list li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-right: auto;
    }
    .nav-actions .btn-outline {
        display: none;
    }
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        z-index: 1000;
        width: auto !important;
        height: auto !important;
        appearance: none;
        -webkit-appearance: none;
    }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all .25s;
    }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}
@media (min-width: 1025px) {
    .nav-toggle { display: none !important; }
    .nav { display: flex !important; }
}




/* ================================================
   VIDEOS SECTION
================================================ */
.section-videos { background: var(--muted, #f8fbfb); }

/* Embed area — flexible to handle any iframe/playlist */
.videos-embed-area {
    width: 100%;
    margin: 0 auto 28px;
    max-width: 1100px;
}
.videos-embed-area iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 40px rgba(19,46,46,.12);
}
/* Multiple iframes side by side */
.videos-embed-area > div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.videos-embed-area > div > iframe {
    flex: 1 1 calc(33.33% - 12px);
    min-width: 280px;
}

/* Playlist button */
.videos-playlist-cta { display: flex; justify-content: center; margin-top: 8px; }
.videos-playlist-cta .btn { gap: 8px; }

/* VIDEO MODAL (kept for compatibility) */
.video-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.video-modal.is-open { opacity: 1; pointer-events: all; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); cursor: pointer; }
.video-modal-inner { position: relative; z-index: 1; width: min(900px, 95vw); }
.video-modal-close { position: absolute; top: -44px; left: 0; background: none; border: none; cursor: pointer; padding: 6px; transition: transform .2s; }
.video-modal-close:hover { transform: rotate(90deg); }
.video-modal-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

@media(max-width: 768px) {
    .videos-embed-area > div > iframe { flex: 1 1 100%; }
    .videos-embed-area iframe { border-radius: 10px; }
}

/* ── Kill any stray bullets near language switcher ── */
.nav-actions li,
.nav-actions ul li,
.lang-switcher li,
.lang-polylang li {
    list-style: none !important;
    list-style-type: none !important;
}
.nav-actions li::before,
.nav-actions li::marker,
.lang-switcher li::before,
.lang-switcher li::marker {
    display: none !important;
    content: none !important;
}
