:root {
  --primary: #2454ff;
  --primary-dark: #1a3fd1;
  --primary-light: #4a72ff;
  --accent-blue: #18a8ff;
  --accent-green: #1ac472;
  --accent-orange: #ff8c00;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-gray: #eef1f7;
  --text: #0c1437;
  --muted: #5b6485;
  --border: #e6eaf2;
  --shadow-sm: 0 6px 18px rgba(20, 35, 80, 0.06);
  --shadow-md: 0 14px 36px rgba(20, 35, 80, 0.1);
  --shadow-lg: 0 24px 56px rgba(20, 35, 80, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── TOP BAR ─── */
.topbar {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent-blue),
    var(--accent-green)
  );
}

/* ========================================================
   HEADER / NAVBAR ── modern
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(20, 35, 80, 0.08);
  border-color: var(--border);
}
.header-inner {
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 60px; /* Even more compact for mobile */
  gap: 8px;
}

.header-inner.ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(36, 84, 255, 0.15);
}
.brand-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.brand-text span {
  display: none;
}

/* Search */
.search {
  display: flex; /* Always visible */
  flex: 1;
  min-width: 0; /* Allow it to shrink on small screens */
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  gap: 6px;
  align-items: center;
  transition: 0.25s var(--ease);
}
.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px; /* Smaller for mobile */
  font-family: inherit;
  direction: rtl;
  width: 100%;
  min-width: 0;
}
.search button {
  color: var(--muted);
  display: flex;
  flex-shrink: 0;
}
.search button svg {
  width: 14px;
  height: 14px;
}

/* Login button - Mobile */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  transition: 0.25s var(--ease);
  flex-shrink: 0;
}
.btn-login:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-login svg {
  width: 16px;
  height: 16px;
}
.btn-login span {
  display: none;
}

/* ── BURGER ── */
.burger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  position: relative;
  z-index: 700;
}
.burger:hover {
  border-color: var(--primary);
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.burger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Media Query for Tablet/Desktop Header Adjustments */
@media (min-width: 480px) {
  .header-inner {
    min-height: var(--header-h);
    gap: 14px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand-text strong {
    font-size: 15px;
  }
  .search {
    padding: 8px 16px;
  }
  .search input {
    font-size: 13.5px;
  }
  .search button svg {
    width: 18px;
    height: 18px;
  }
  .btn-login,
  .burger {
    width: 44px;
    height: 44px;
  }
}

/* ========================================================
   NAV FIX — Side Drawer
   ======================================================== */

/* ── OVERLAY ── */
.main-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 55, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 600;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.main-nav.open {
  display: block;
  opacity: 1;
}

/* ── DRAWER ── */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 80vw);
  height: 100dvh;
  background: #fff;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(20, 35, 80, 0.2);
  transform: translateX(110%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
  z-index: 650;
}
.main-nav.open .nav-panel {
  transform: translateX(0);
}

/* ── DRAWER HEADER ── */
.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.brand-drawer img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.brand-drawer strong {
  font-size: 15px;
  font-weight: 800;
}
.nav-close {
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── NAV LIST ── */
.nav-panel > ul {
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.nav-panel > ul > li {
  margin-bottom: 2px;
}
.nav-panel > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-panel > ul > li > a.active,
.nav-panel > ul > li > a:hover {
  background: rgba(36, 84, 255, 0.06);
  color: var(--primary);
}

/* ── CARET ── */
.caret {
  font-size: 10px;
  transition: transform 0.3s var(--ease);
  margin-inline-start: 6px;
}
.has-sub.open-sub > a .caret {
  transform: rotate(180deg);
}

/* ── SUBMENU (Mobile Accordion) ── */
.submenu {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 8px;
  margin: 0 8px;
  transition: max-height 0.3s var(--ease);
}
.has-sub.open-sub > .submenu {
  max-height: 600px;
}
.submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--muted);
  border-right: 2px solid transparent;
  transition: all 0.2s var(--ease);
}
.submenu li a:hover {
  color: var(--primary);
  border-right-color: var(--primary);
}

/* ========================================================
   DESKTOP NAV (≥1025px)
   ======================================================== */
@media (min-width: 1025px) {
  .burger,
  .nav-panel-head {
    display: none;
  }

  .main-nav {
    display: block !important;
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
  }
  .nav-panel {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .nav-panel > ul {
    flex-direction: row;
    gap: 4px;
  }
  .nav-panel > ul > li > a {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* Dropdown on Desktop */
  .has-sub {
    position: relative;
  }
  .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s var(--ease);
    max-height: none !important;
  }
  .has-sub:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .submenu li a {
    border-right: none;
  }

  .brand-text span {
    display: block;
  }
  .btn-login {
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: 12px;
    gap: 8px;
  }
  .btn-login span {
    display: block;
  }
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(36, 84, 255, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 84, 255, 0.36);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-wide {
  min-width: 260px;
  padding: 15px 48px;
  font-size: 16px;
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  padding: 40px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(36, 84, 255, 0.12), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-content h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-inline: auto;
}
.hero-cta {
  display: flex;
  justify-content: center;
}

.hero-figure {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.hero-frame {
  position: relative;
  z-index: 2;
  background: var(--bg-soft);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shape {
  position: absolute;
  z-index: 1;
  border-radius: 14px;
}
.shape-blue {
  width: 56px;
  height: 56px;
  background: var(--accent-blue);
  top: 20px;
  left: -10px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(24, 168, 255, 0.4);
}
.shape-green {
  width: 72px;
  height: 72px;
  background: var(--accent-green);
  bottom: 10px;
  right: -20px;
  animation: float 7s ease-in-out infinite reverse;
  box-shadow: 0 10px 24px rgba(26, 196, 114, 0.4);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 1025px) {
  .hero {
    padding: 70px 0 80px;
    text-align: right; /* المحاذاة الداخلية للنصوص تظل من اليمين لتناسق القراءة العربية */
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns: 0.9fr 1.1fr !important; /* العمود الأول (الأيمن) للصورة، والثاني (الأيسر) للنص */
    flex-direction: row !important;
    align-items: center;
    gap: 60px;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .hero-content p {
    font-size: 19px;
    margin-inline: 0;
  }

  .hero-cta {
    display: flex !important;
    justify-content: flex-start;
  }

  .hero-figure {
    max-width: 440px;
    width: 100% !important;
  }

  .hero-figure {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    order: 1 !important;
  }

  .hero-content {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
    order: 2 !important;
    width: 100% !important;
  }
}

/* ========================================================
   PARTNERS
   ======================================================== */
.partners {
  padding: 30px 0 50px;
}
.partners-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}
.partners-title span {
  color: var(--primary);
  font-weight: 900;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s var(--ease);
}
.partner:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 641px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1025px) {
  .partners-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========================================================
   SECTIONS
   ======================================================== */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-head.center {
  text-align: center;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(36, 84, 255, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}
.section-head h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
}
.more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 4px;
  transition: 0.2s var(--ease);
}
.more:hover {
  letter-spacing: 0.3px;
}

@media (min-width: 1025px) {
  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .section-head.center {
    flex-direction: column;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .more {
    margin-top: 0;
  }
}

/* ========================================================
   CATEGORIES ── "Explore Our Tracks" redesigned
   ======================================================== */
.categories-section {
  position: relative;
  background:
    radial-gradient(
      ellipse at top right,
      rgba(36, 84, 255, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(26, 196, 114, 0.05),
      transparent 60%
    ),
    #fff;
}
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.category-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
}
.category-card > * {
  position: relative;
  z-index: 1;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(36, 84, 255, 0.25);
  border-color: transparent;
}
.category-card:hover::before {
  opacity: 1;
}
.category-card:hover h3,
.category-card:hover span:not(.badge),
.category-card:hover .category-arrow {
  color: #fff;
}
.category-card:hover .category-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    rgba(36, 84, 255, 0.1),
    rgba(24, 168, 255, 0.12)
  );
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 6px;
  transition: all 0.4s var(--ease);
}
.category-icon svg {
  width: 30px;
  height: 30px;
}
.category-card h3 {
  font-size: 17px;
  font-weight: 800;
  transition: color 0.3s var(--ease);
}
.category-card span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}
.category-arrow {
  margin-top: 8px;
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}
.category-card:hover .category-arrow {
  transform: translateX(-6px);
}
.category-card .badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fff1f0;
  color: #f5222d;
  border: 1px solid #ffa39e;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.coming-soon:hover .badge {
  background: #fff;
  color: #f5222d;
  border-color: #fff;
}
@media (min-width: 641px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1025px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
  }
}

/* ========================================================
   PROGRAMS
   ======================================================== */
.slider {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
}
.slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 28px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track > .course {
  flex: 0 0 82%;
  scroll-snap-align: start;
}
@media (min-width: 641px) {
  .slider-track > .course {
    flex-basis: 44%;
  }
}
@media (min-width: 1025px) {
  .slider {
    margin: 0;
    padding: 0;
  }
  .slider-track {
    padding: 14px 4px 32px;
    gap: 26px;
  }
  .slider-track > .course {
    flex-basis: calc(33.333% - 18px);
  }
}

/* IATMS-style card */
.course {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 35, 80, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}
.course:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 35, 80, 0.14);
  border-color: rgba(36, 84, 255, 0.25);
}

.course-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.course:hover .course-img img {
  transform: scale(1.06);
}

.programs-section .section-head h2 span {
  color: #2454ff;
}

/* Orange category badge like IATMS */
.course-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-orange);
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

/* Card body */
.course-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.course-body h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  min-height: 50px;
}
.course-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 0 4px;
}
.course-provider {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.course-lessons {
  font-size: 12px;
  color: var(--muted);
}
.course-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-top: 12px;
}
.price {
  color: var(--primary);
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  background: rgba(36, 84, 255, 0.06);
  padding: 6px;
  border-radius: 8px;
}

.btn-sm {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  transition: all 0.25s var(--ease);
}
.btn-sm:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36, 84, 255, 0.28);
}

/* Slider arrow buttons */
.slider-btn {
  display: none;
}
@media (min-width: 1025px) {
  .slider-btn {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 24px;
    color: var(--primary);
    transition: 0.25s var(--ease);
  }
  .slider-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
  }
  .slider-btn.prev {
    right: -24px;
  }
  .slider-btn.next {
    left: -24px;
  }
  .slider-btn[disabled] {
    opacity: 0;
    pointer-events: none;
  }
}

/* ========================================================
   ABOUT / STATS
   ======================================================== */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-text h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 10px 0 14px;
  letter-spacing: -0.3px;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 16px;
}
.about-list {
  margin-bottom: 26px;
}
.about-list li {
  padding: 7px 0;
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: 0.3s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(36, 84, 255, 0.25);
}
.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 1025px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 80px;
  }
  .about-text h2 {
    font-size: 38px;
  }
  .stats {
    gap: 20px;
  }
  .stat {
    padding: 30px;
  }
  .stat strong {
    font-size: 44px;
  }
}

/* ========================================================
   REVIEWS
   ======================================================== */
.review {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: 0.3s var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: contain;
  background-position: center;
  border: 3px solid #fff;
  outline: 2px solid var(--primary);
  flex-shrink: 0;
}
.review-name strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.review-name span {
  font-size: 13px;
  color: var(--muted);
}
.review-stars {
  color: #f5b301;
  font-size: 16px;
  letter-spacing: 2px;
}
.review p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
@media (min-width: 641px) {
  .review {
    flex-basis: calc(50% - 11px);
  }
}
@media (min-width: 1025px) {
  .review {
    flex-basis: calc(33.333% - 18px);
  }
}

/* ========================================================
   GOALS ── redesigned
   ======================================================== */
.goals-section {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.goal {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 28px 30px;
  text-align: center;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.goal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
}
.goal::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(36, 84, 255, 0.08), transparent 70%);
  border-radius: 50%;
  transition: 0.5s var(--ease);
}
.goal:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(36, 84, 255, 0.15);
  border-color: rgba(36, 84, 255, 0.2);
}
.goal:hover::after {
  transform: scale(1.6);
}
.goal-number {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(36, 84, 255, 0.08);
  line-height: 1;
  letter-spacing: -1px;
}
.goal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(36, 84, 255, 0.12),
    rgba(24, 168, 255, 0.14)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(36, 84, 255, 0.15);
  position: relative;
  z-index: 1;
  transition: 0.4s var(--ease);
}
.goal:hover .goal-icon {
  transform: rotate(-8deg) scale(1.08);
}
.goal h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}
.goal p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Featured (middle) goal */
.goal-featured {
  background: linear-gradient(
    160deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(36, 84, 255, 0.3);
}
.goal-featured::before {
  background: linear-gradient(90deg, var(--accent-green), #fff);
}
.goal-featured::after {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
}
.goal-featured .goal-number {
  color: rgba(255, 255, 255, 0.16);
}
.goal-featured .goal-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.goal-featured h3 {
  color: #fff;
}
.goal-featured p {
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 641px) {
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goal-featured {
    transform: translateY(-12px);
  }
  .goal-featured:hover {
    transform: translateY(-20px);
  }
}
@media (min-width: 1025px) {
  .goals-grid {
    gap: 30px;
  }
}

/* ========================================================
   NEWS
   ======================================================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(36, 84, 255, 0.25);
}
.news-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-img img {
  transform: scale(1.06);
}
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-body h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}
.news-body p {
  color: var(--muted);
  font-size: 14px;
}
.news-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  transition: 0.2s;
}
.news-more:hover {
  letter-spacing: 0.3px;
}
@media (min-width: 641px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1025px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================
   TRAINER CTA ── image as background
   ======================================================== */
.trainer-cta {
  padding: 0;
  overflow: hidden;
}
.trainer-cta-bg {
  position: relative;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.trainer-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(12, 20, 55, 0.94) 0%,
    rgba(26, 63, 209, 0.85) 50%,
    rgba(36, 84, 255, 0.65) 100%
  );
  z-index: 0;
}
.trainer-cta-bg .container {
  position: relative;
  z-index: 1;
}
.trainer-cta-text {
  color: #fff;
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}
.trainer-cta-text .eyebrow {
  margin-bottom: 16px;
}
.trainer-cta-text h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.trainer-cta-text h2 span {
  color: var(--accent-green);
}
.trainer-cta-text p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 30px;
  line-height: 1.85;
}
.btn-light {
  background: #fff;
  color: var(--primary);
  padding: 15px 38px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s var(--ease);
}
.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

@media (min-width: 1025px) {
  .trainer-cta-bg {
    min-height: 520px;
  }
  .trainer-cta-text {
    text-align: right;
    margin: 0;
  }
  .trainer-cta-text h2 {
    font-size: 40px;
  }
  .trainer-cta-text p {
    font-size: 18px;
    max-width: 560px;
  }
}

/* ========================================================
   CONTACT CTA ── light gray
   ======================================================== */
.cta {
  padding: 70px 0;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  background: var(--bg-gray);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 54px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}
.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.cta-inner::before {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -110px;
  left: -90px;
}
.cta-inner::after {
  width: 220px;
  height: 220px;
  background: var(--accent-green);
  bottom: -70px;
  right: -50px;
}
.cta-inner > * {
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin: 10px 0 6px;
  color: var(--text);
}
.cta-inner p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 641px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 1025px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 60px 70px;
    text-align: right;
    gap: 40px;
  }
  .cta-inner p {
    margin: 0;
    max-width: none;
  }
  .cta-inner h2 {
    font-size: 32px;
  }
  .cta-actions {
    flex-shrink: 0;
  }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: #0c1437;
  color: #cdd3ea;
  padding: 60px 0 24px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}
.brand-footer {
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-footer img {
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  width: 38px;
  height: 38px;
}
.brand-footer strong {
  font-size: 15px;
}
.footer-grid h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.footer-grid ul li {
  padding: 6px 0;
  font-size: 13.5px;
  transition: 0.2s;
}
.footer-grid ul li a:hover {
  color: var(--accent-blue);
  padding-right: 4px;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 34px;
  padding-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: #8b93b5;
}
@media (min-width: 1025px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
  }
}

/* ========================================================
   REVEAL ANIMATION
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========================================================
   PROGRAMS ── section heading with faded background text (IATMS-style)
   ======================================================== */
.programs-section .section-head {
  position: relative;
  padding-top: 30px;
  margin-bottom: 28px;
}
.programs-section .section-head h2 {
  position: relative;
  z-index: 2;
}
.programs-section .section-head h2[data-bg]::before {
  content: attr(data-bg);
  position: absolute;
  top: -20%;
  inset-inline-start: -10px;
  transform: translateY(-58%);
  font-size: clamp(64px, 14vw, 20px);
  font-weight: 900;
  line-height: 1;
  color: rgba(36, 84, 255, 0.07);
  letter-spacing: -2px;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}
.programs-section .section-head .eyebrow {
  align-self: flex-start;
}
.programs-section .section-head .more {
  margin-inline-start: auto;
}
@media (min-width: 1025px) {
  .programs-section .section-head {
    padding-top: 50px;
  }
  .programs-section .section-head h2[data-bg]::before {
    inset-inline-start: -20px;
    transform: translateY(-65%);
  }
}

/* ========================================================
   GOALS — IATMS-style clean (icon + title + quote, no card)
   ======================================================== */
.goals-section {
  background: var(--bg-soft);
  padding: 80px 0;
}
.goals-head {
  text-align: center;
  margin-bottom: 56px;
}
.goals-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.goals-head h2 .accent {
  color: var(--primary);
}
.goals-section .goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 32px;
}
.goals-section .goal {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.3s var(--ease);
}
.goals-section .goal::before,
.goals-section .goal::after {
  content: none;
}
.goals-section .goal:hover {
  transform: translateY(-6px);
  box-shadow: none;
  border-color: transparent;
}
.goals-section .goal .goal-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.4s var(--ease);
}
.goals-section .goal .goal-icon svg {
  width: 100%;
  height: 100%;
}
.goals-section .goal:hover .goal-icon {
  transform: scale(1.08);
  background: transparent;
  color: var(--primary);
}
.goals-section .goal h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
}
.goals-section .goal p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 641px) {
  .goals-section .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1025px) {
  .goals-section .goals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
  }
  .goals-section {
    padding: 100px 0;
  }
}

/* ========================================================
   AUTH MODAL OVERLAY & POPUP STYLES
   ======================================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.auth-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: 8px;
  padding: 45px 40px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  direction: ltr;
  transform: translateY(-40px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.auth-modal-overlay.show .auth-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaaaaa;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #333333;
}

.modal-auth-view {
  display: none;
}

.modal-auth-view.active {
  display: block;
}

.modal-title {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 25px;
}

.modal-form-group {
  margin-bottom: 16px;
  position: relative;
}

.modal-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #000000;
  border-radius: 6px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.modal-form-group input:focus {
  border-color: #4472f7;
}

.password-group {
  position: relative;
}

.password-toggle-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888888;
  font-size: 14px;
  user-select: none;
}

.modal-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13.5px;
}

.modal-options-row.align-right {
  justify-content: flex-end;
  direction: rtl;
}

.modal-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #222222;
  font-weight: 600;
}

.modal-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #4472f7;
}

.modal-link {
  color: #4472f7;
  text-decoration: none;
  font-weight: 700;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-btn-submit {
  width: 100%;
  padding: 11px;
  background-color: #4472f7;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn-submit:hover {
  background-color: #2b5cf5;
}

.modal-switch-text {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  color: #444444;
}

.switch-link-btn {
  background: none;
  border: none;
  color: #4472f7;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
}

.switch-link-btn:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .auth-modal-card {
    padding: 35px 20px;
    margin: 0 15px;
  }
  .modal-title {
    font-size: 20px;
  }
}

/* ========================================================
   ISOLATED ADDITIONS: CONSULTATIONS, FAQ & FLOATING WHATSAPP
   ======================================================== */

/* ─── CONSULTATIONS INDEPENDENT LAYOUT ─── */
.consultations-container-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 15px;
}
.consultation-box-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}
.consult-box-icon {
  width: 64px;
  height: 64px;
  background: rgba(36, 84, 255, 0.06);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.consultation-box-card h3 {
  font-size: 19.5px;
  font-weight: 800;
  color: var(--text);
}
.consultation-box-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}
.btn-consult-action {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: all 0.25s var(--ease);
}
.btn-consult-action:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}
.unique-consult-card {
  background: linear-gradient(145deg, #0c1437 0%, #17245c 100%);
  border-color: transparent;
  color: #ffffff;
}
.unique-consult-card h3 {
  color: #ffffff;
}
.unique-consult-card p {
  color: #cdd3ea;
}
.unique-consult-card .consult-box-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
}
.unique-consult-card .btn-consult-action {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border: none;
}
.unique-consult-card .btn-consult-action:hover {
  box-shadow: 0 8px 22px rgba(36, 84, 255, 0.3);
}
.consultation-box-card:hover .consult-box-icon {
  transform: scale(1.1) rotate(-6deg);
}

@media (min-width: 768px) {
  .consultations-container-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1025px) {
  .consultations-container-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* ─── FAQ CUSTOM ACCORDION LAYOUT ─── */
.faq-custom-section {
  background: var(--bg-soft);
  transition: background 0.3s;
}
.faq-accordion-container-layout {
  margin-top: 15px;
}
.faq-accordion-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(20, 35, 80, 0.02);
  transition: all 0.3s var(--ease);
}
.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  background: var(--bg);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.faq-accordion-trigger:hover {
  background: var(--bg-soft);
}
.faq-node-indicator {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}
.faq-accordion-content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: var(--bg);
  border-top: 1px solid transparent;
}
.faq-accordion-content-panel p {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* Active State Accordion */
.faq-accordion-node.faq-node-active {
  border-color: rgba(36, 84, 255, 0.25);
  box-shadow: var(--shadow-sm);
}
.faq-accordion-node.faq-node-active .faq-accordion-trigger {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.faq-accordion-node.faq-node-active .faq-accordion-content-panel {
  max-height: 800px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}
.faq-accordion-node.faq-node-active .faq-node-indicator {
  transform: rotate(45deg);
  color: var(--accent-orange);
}

/* ─── FLOATING WHATSAPP FIXED LAYOUT ─── */
.whatsapp-floating-action-node {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}
.whatsapp-anchor-element {
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease);
  position: relative;
}
.whatsapp-icon-svg-element {
  width: 28px;
  height: 28px;
}
.whatsapp-anchor-element:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #20ba5a;
}
.whatsapp-anchor-element::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappNodePulse 2s infinite ease-in-out;
  z-index: -1;
  opacity: 0.6;
}
@keyframes whatsappNodePulse {
  0 {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   CSS STYLING FOR RECENTLY ADDED FORMS & DROPDOWNS
   ========================================================================== */

/* ─── CONSULTATION FORM & WRAPPER STYLES ─── */
.consult-form-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}
.consult-form-side {
  padding: 10px 0;
}
.consult-form-side h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.consult-form-side p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 25px;
}
.consult-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consult-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cf-icon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.consult-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}
.consult-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-group label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}

.cf-group input[type="text"],
.cf-group input[type="email"],
.cf-group input[type="tel"],
.cf-group textarea,
.cf-modern-select-element,
.cf-phone-country-selector {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--bg-soft);
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.cf-group input:focus,
.cf-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(36, 84, 255, 0.08);
}
.cf-phone-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.cf-phone-wrap:focus-within {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(36, 84, 255, 0.08);
}
.cf-phone-country-selector {
  background: rgba(0, 0, 0, 0.02);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 0 12px;
  height: 100%;
  border-left: 1px solid var(--border);
  cursor: pointer;
}
.cf-phone-wrap input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ─── DROPDOWN STYLES ─── */
.cf-dropdown-wrap {
  position: relative;
  width: 100%;
}
.cf-modern-select-element {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.cf-dropdown-wrap::after {
  content: "▼";
  font-size: 10px;
  color: var(--muted);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cf-submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(36, 84, 255, 0.2);
  transition: all 0.25s var(--ease);
}
.cf-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 84, 255, 0.28);
}
.cf-submit-btn svg {
  transition: transform 0.2s;
}
.cf-submit-btn:hover svg {
  transform: translate(-2px, -2px);
}
.cf-success-msg {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(26, 196, 114, 0.08);
  border: 1px solid rgba(26, 196, 114, 0.25);
  border-radius: 10px;
  color: var(--accent-green);
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .consult-form-wrapper {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
  }
  .consult-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cf-full {
    grid-column: span 2;
  }
}
@media (min-width: 1025px) {
  .consult-form-wrapper {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
  }
  .consult-form-card {
    padding: 36px;
  }
}

/* ─── FRIENDLY PARTNER COMPANIES LOGOS TRACK STYLES ─── */
.partner-companies-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.partner-logos-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.partner-logo-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.partner-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.partner-logo-placeholder svg rect {
  transition: fill 0.3s;
}
.partner-logo-card span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s;
}
.partner-logo-card:hover {
  background: var(--bg);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.partner-logo-card:hover .partner-logo-placeholder {
  transform: scale(1.08);
}
.partner-logo-card:hover .partner-logo-placeholder svg rect {
  fill: rgba(36, 84, 255, 0.05);
}
.partner-logo-card:hover span {
  color: var(--primary);
}
@media (min-width: 576px) {
  .partner-logos-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 992px) {
  .partner-logos-track {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   🆕 CSS NEW STYLES: WHATSAPP SUBSCRIBE SECTION & SOCIAL ICONS & BACK TO TOP BUTTON
   ========================================================================== */

/* ─── 1. قائمة الاشتراك في الواتساب ─── */
.whatsapp-subscribe-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 35px;
  margin-bottom: 40px;
}
.whatsapp-subscribe-inner {
  background-color: #111a42;
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.whatsapp-subscribe-text h3 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.whatsapp-subscribe-text p {
  color: #9aa3c5;
  font-size: 15px;
}
.whatsapp-subscribe-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  background-color: #1c2554;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
}
.whatsapp-subscribe-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
}
.whatsapp-subscribe-form input::placeholder {
  color: #5d6790;
}
.whatsapp-subscribe-form button {
  background-color: #5e35b1;
  color: #ffffff;
  padding: 0 30px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  transition: background-color 0.25s;
}
.whatsapp-subscribe-form button:hover {
  background-color: #4e279b;
}

@media (min-width: 768px) {
  .whatsapp-subscribe-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
  .whatsapp-subscribe-form {
    max-width: 440px;
  }
}

/* ─── 2. شريط الحقوق الجديد وأيقونات التواصل الاجتماعي ─── */
.copyright-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 25px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 20px;
}
.copyright-wrapper .copyright {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.footer-social-icons {
  display: flex;
  gap: 10px;
  direction: ltr; /* لترتيب الأيقونات من اليسار لليمين كما ف الصورة */
}
.social-icon {
  width: 36px;
  height: 36px;
  background-color: #1c2554;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .copyright-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ─── 3. سهم الصعود للأعلى العائم ─── */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: #0c1437;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 84, 255, 0.3);
}

/* ==========================================================================
   🌙 DARK MODE — نهج مزدوج: CSS Variables + High-specificity rules
   ========================================================================== */
body.dark {
  --bg: #121833;
  --bg-soft: #1a2240;
  --bg-gray: #1e2a50;
  --text: #e8ecf5;
  --muted: #9aa3c5;
  --border: #2b3566;
}

body.dark .consultations-section {
  background: #0f1628 !important;
}
body.dark .partner-companies-section {
  background: #0f1628 !important;
  border-color: #1e2a50 !important;
}
body.dark .faq-custom-section {
  background: #13172b !important;
}
body.dark .faq-custom-section .section-head h2,
body.dark .faq-custom-section .section-head p {
  color: #e0e4f5 !important;
}
body.dark .consultation-box-card {
  background: #1c2347 !important;
  border-color: #2b3566 !important;
}
body.dark .consultation-box-card h3 {
  color: #ffffff !important;
}
body.dark .consultation-box-card p {
  color: #cdd3ea !important;
}
body.dark .consult-box-icon {
  background: rgba(255, 255, 255, 0.06) !important;
}
body.dark .consult-form-card {
  background: #1c2347 !important;
  border-color: #2b3566 !important;
}
body.dark .consult-form-side h3 {
  color: #ffffff !important;
}
body.dark .consult-form-side p {
  color: #9aa3c5 !important;
}
body.dark .consult-features-list li {
  color: #e0e4f5 !important;
}
body.dark .cf-icon {
  background: #232b54 !important;
  border-color: #2b3566 !important;
}
body.dark .cf-group label {
  color: #e0e4f5 !important;
}
body.dark .cf-group input[type="text"],
body.dark .cf-group input[type="email"],
body.dark .cf-group input[type="tel"],
body.dark .cf-group textarea,
body.dark .cf-modern-select-element {
  background-color: #0e1329 !important;
  border-color: #2b3566 !important;
  color: #e8ecf5 !important;
}
body.dark .cf-phone-wrap {
  background: #0e1329 !important;
  border-color: #2b3566 !important;
}
body.dark .cf-phone-country-selector {
  background: #0e1329 !important;
  color: #e8ecf5 !important;
  border-color: #2b3566 !important;
}
body.dark .cf-group input:focus,
body.dark .cf-group textarea:focus {
  background-color: #121833 !important;
  border-color: var(--primary) !important;
}
body.dark .cf-phone-wrap:focus-within {
  background: #121833 !important;
  border-color: var(--primary) !important;
}
body.dark .cf-group input::placeholder,
body.dark .cf-group textarea::placeholder {
  color: rgba(205, 211, 234, 0.45) !important;
  opacity: 1 !important;
}
body.dark .cf-modern-select-element option,
body.dark .cf-phone-country-selector option {
  background-color: #1c2347 !important;
  color: #ffffff !important;
}
body.dark .partner-logo-card {
  background: #1c2347 !important;
  border-color: #2b3566 !important;
}
body.dark .partner-logo-card span {
  color: #9aa3c5 !important;
}
body.dark .partner-logo-card:hover {
  background: #232b54 !important;
  border-color: var(--primary) !important;
}
body.dark .partner-logo-card:hover span {
  color: var(--accent-blue) !important;
}
body.dark .partner-logo-placeholder svg rect {
  fill: #0e1329 !important;
}
body.dark .partner-logo-placeholder svg text {
  fill: #8b93b5 !important;
}
body.dark .faq-accordion-node {
  background: #1c2347 !important;
  border-color: #2b3566 !important;
}
body.dark .faq-accordion-trigger {
  background: #1c2347 !important;
  color: #ffffff !important;
}
body.dark .faq-accordion-trigger:hover {
  background: #232b54 !important;
}
body.dark .faq-accordion-node.faq-node-active .faq-accordion-trigger {
  background: #232b54 !important;
  color: #ffffff !important;
  border-bottom-color: #2b3566 !important;
}
body.dark .faq-accordion-content-panel {
  background: #1a2240 !important;
  border-color: #2b3566 !important;
}
body.dark .faq-accordion-content-panel p {
  color: #cdd3ea !important;
}
body.dark .faq-node-indicator {
  color: var(--accent-blue) !important;
}

/* تحديثات دارك مود الإضافية للعناصر الجديدة */
body.dark .scroll-to-top-btn {
  background-color: #1c2347;
  color: #ffffff;
  border-color: #2b3566;
}
body.dark .scroll-to-top-btn:hover {
  background-color: var(--primary);
}
