/* Design-system colors, type scale, spacing, radius and shadows live in
   design-tokens.css (extracted from design-reference/). Only project-level
   semantic colors that the design export doesn't define (form validation
   states) live here. */
:root {
  --color-success: #2f9e6b;
  --color-danger: #d9534f;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-arabic);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: clip;
}

a {
  text-decoration: none;
}

.btn-sandstone {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-surface);
  font-weight: 600;
  transition: background-color var(--dur-base) ease-out, border-color var(--dur-base) ease-out,
    transform var(--dur-base) ease-out, box-shadow var(--dur-base) ease-out;
}
.btn-sandstone:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary-hover);
}
.btn-sandstone:active {
  transform: scale(0.98);
}

.btn-navy {
  background-color: var(--color-navy-950);
  border-color: var(--color-navy-950);
  color: var(--color-surface);
  font-weight: 600;
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out,
    transform var(--dur-fast) ease-out;
}
.btn-navy:hover {
  background-color: var(--color-navy-700);
  border-color: var(--color-navy-700);
  color: var(--color-surface);
  transform: translateY(-1px);
}

.btn-outline-navy {
  border: 2px solid var(--color-navy-950);
  color: var(--color-navy-950);
  font-weight: 600;
  background: transparent;
  transition: background-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.btn-outline-navy:hover {
  background-color: var(--color-navy-950);
  color: var(--color-surface);
}

/* Small filled-terracotta outline button — course card "عرض التفاصيل" */
.btn-outline-terracotta-sm {
  display: inline-block;
  background: rgba(0, 176, 194, 0.09);
  border: 1px solid rgba(0, 176, 194, 0.25);
  color: var(--color-terracotta-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-md-2);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.btn-outline-terracotta-sm:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-surface);
}

/* ===== Navbar =====
   Two-tier, matching the client reference (iu.de): a thin light utility
   bar (search + account) on top of a white main bar (logo, links, a
   hover-triggered mega menu, and two cyan CTA pills). */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  transition: transform var(--dur-nav-hide) var(--ease-out-soft), box-shadow 250ms ease-out;
}
.site-navbar__utility {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.site-navbar__utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}
.site-navbar__search-btn {
  background: none;
  border: none;
  color: var(--color-text-muted-2);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
  transition: color var(--dur-fast) ease-out;
}
.site-navbar__search-btn:hover {
  color: var(--color-text);
}
.site-navbar__utility-account .dropdown-toggle,
.site-navbar__utility-account .site-navbar__login-btn,
.site-navbar__utility-account .site-navbar__cta {
  font-size: 13.5px;
  padding: 2px 4px;
}
.site-navbar__utility-account .site-navbar__cta {
  background: none;
  color: var(--color-text-muted-2);
  font-weight: 600;
  padding: 2px 4px;
}
.site-navbar__utility-account .site-navbar__cta:hover {
  color: var(--color-terracotta-dark);
  transform: none;
  box-shadow: none;
}
.site-navbar__utility-account .site-navbar__login-btn {
  color: var(--color-text-muted-2);
}
.site-navbar__utility-account .site-navbar__login-btn:hover {
  color: var(--color-text);
}
.site-navbar__utility-account .site-navbar__dropdown {
  color: var(--color-text-muted-2);
}
.site-navbar__utility-account .site-navbar__dropdown:hover {
  color: var(--color-text);
}

/* Base styles for the navbar account area. Only the scoped overrides above
   existed, so the login/register/account controls had no look of their own. */
.site-navbar__utility-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.site-navbar__login-btn,
.site-navbar__cta,
.site-navbar__dropdown {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-md-2);
  transition: color var(--dur-fast) ease-out, background var(--dur-fast) ease-out;
}
.site-navbar__login-btn {
  color: var(--color-navy-950);
  padding: 8px 10px;
}
.site-navbar__login-btn:hover {
  color: var(--color-terracotta-dark);
}
.site-navbar__cta {
  background: var(--color-terracotta);
  color: #fff;
  padding: 9px 18px;
}
.site-navbar__cta:hover {
  background: var(--color-terracotta-dark);
  color: #fff;
}
.site-navbar__dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: var(--color-navy-950);
}
.site-navbar__dropdown:hover {
  color: var(--color-terracotta-dark);
}
/* The logout control is a form button; make it match the other menu items. */
.site-navbar__utility-account .dropdown-menu button.dropdown-item {
  width: 100%;
  text-align: inherit;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height var(--dur-nav-shrink) var(--ease-out-soft);
  position: relative;
}
.site-navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md-2);
  background: var(--color-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 18px;
}
.site-navbar__wordmark {
  color: var(--color-navy-950);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: var(--ls-tight);
}
.site-navbar__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--fs-nav);
  margin: 0;
  padding: 0;
}
.site-navbar__link {
  color: var(--color-text-muted-2);
  text-decoration: none;
  padding-bottom: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background-image: linear-gradient(var(--color-terracotta), var(--color-terracotta));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: right bottom;
  transition: background-size var(--dur-nav-link) ease-out, color 200ms ease-out;
}
.site-navbar__link:hover,
.site-navbar__link.is-active {
  color: var(--color-navy-950);
  background-size: 100% 2px;
}
.site-navbar__link.is-active {
  font-weight: 700;
}
.site-navbar__cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-navbar__outline-cta,
.site-navbar__solid-cta {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.site-navbar__outline-cta {
  background: transparent;
  border: 2px solid var(--color-navy-950);
  color: var(--color-navy-950);
}
.site-navbar__outline-cta:hover {
  background: var(--color-navy-950);
  color: var(--color-surface);
  transform: translateY(-1px);
}
.site-navbar__solid-cta {
  background: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
  color: var(--color-navy-950);
}
.site-navbar__solid-cta:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-nav-cta-hover);
}
.site-navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-navy-950);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Mega menu — hover-triggered on desktop (`:hover`/`:focus-within`), with a
   JS-managed `.is-open` class layered on for click/touch + Escape-to-close. */
.site-navbar__has-mega {
  position: static;
}
.site-navbar__mega-btn {
  padding-bottom: 4px;
}
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-card-hover);
  border-top: 1px solid var(--border-subtle);
  z-index: 60;
}
.site-navbar__has-mega:hover .mega-menu,
.site-navbar__has-mega:focus-within .mega-menu,
.mega-menu.is-open {
  display: block;
}
.mega-menu__close {
  position: absolute;
  top: 20px;
  left: 32px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.mega-menu__close:hover {
  color: var(--color-text);
}
.mega-menu__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}
.mega-menu__empty {
  color: var(--color-text-muted);
  margin: 0;
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
}
.mega-menu__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-menu__col-title {
  color: var(--color-navy-950);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 4px;
}
.mega-menu__col-title span {
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-faint);
  font-size: 12.5px;
}
.mega-menu__col-title:hover {
  color: var(--color-terracotta-dark);
}
.mega-menu__link {
  color: var(--color-text-muted-2);
  font-size: 14px;
  text-decoration: none;
}
.mega-menu__link:hover {
  color: var(--color-terracotta-dark);
}

/* Mobile nav collapse — the design export has no breakpoints (fixed
   1200px desktop layout); this is our own addition for small screens.
   `.site-navbar__mobile-panel` wraps the nav links and becomes a single
   opaque dropdown sheet anchored to the (position: sticky) navbar. */
.site-navbar__mobile-panel {
  display: contents;
}

@media (max-width: 991.98px) {
  .site-navbar__toggle {
    display: block;
  }
  .site-navbar__cta-group {
    display: none;
  }
  .site-navbar__mobile-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--color-surface);
    box-shadow: 0 24px 48px rgba(10, 10, 11, 0.18);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-navbar.is-open .site-navbar__mobile-panel {
    display: flex;
  }
  .site-navbar__links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .site-navbar__link {
    padding: 15px 2px;
    border-bottom: 1px solid var(--border-subtle);
    background-image: none;
    text-align: right;
    width: 100%;
  }
  /* In the dropdown sheet the account controls get a full-width stack. */
  .site-navbar__utility-account {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-inline-start: 0;
    padding: 4px 24px 20px;
  }
  .site-navbar__utility-account .site-navbar__login-btn,
  .site-navbar__utility-account .site-navbar__cta,
  .site-navbar__utility-account .site-navbar__dropdown {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 10px;
    font-size: 15px;
  }
  .site-navbar__link.is-active {
    color: var(--color-terracotta-dark);
  }
  .site-navbar__has-mega {
    display: flex;
    flex-direction: column;
  }
  /* No hover/focus-within reveal on mobile (touch has no real :hover, and
     focusing the trigger button would otherwise fight the JS .is-open
     toggle) — the mega menu here is click-driven only. */
  .mega-menu {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--color-bg-alt);
  }
  .mega-menu.is-open {
    display: block;
  }
  .mega-menu__inner {
    padding: 12px 20px 20px;
  }
  .mega-menu__close {
    top: 12px;
    left: 20px;
  }
  .mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 575.98px) {
  .site-navbar__utility-inner {
    padding: 8px 20px;
  }
  .site-navbar__inner {
    padding: 0 20px;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy-950);
  color: rgba(250, 246, 240, 0.6);
}
.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm-2);
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-surface);
  font-weight: 700;
  font-size: 16px;
}
.site-footer__wordmark {
  color: var(--color-cream);
  font-weight: 700;
  font-size: 18px;
}
.site-footer__desc {
  margin: 0;
  font-size: 14px;
  line-height: var(--lh-body-loose);
  max-width: 280px;
}
.site-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.site-footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm-2);
  background: rgba(250, 246, 240, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.site-footer__social:hover {
  background: rgba(0, 214, 232, 0.25);
  transform: translateY(-2px);
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}
.site-footer__col-title {
  color: var(--color-cream);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.site-footer__col a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease-out;
}
.site-footer__col a:hover {
  color: var(--color-terracotta);
}
.site-footer__bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.08);
  padding: 20px 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(250, 246, 240, 0.4);
}

@media (max-width: 991.98px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575.98px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Cards / shared components ===== */
.card-elevated {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-elevated:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Subject badge — overlays the top-right corner of a course thumbnail.
   Same translucent-cream chip for every subject; only the text color
   rotates through the three accent variants below. */
.badge-subject {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(4px);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.wishlist-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-navy-700);
  transition: transform var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.wishlist-toggle:hover {
  transform: scale(1.1);
}
.wishlist-toggle.is-active {
  color: var(--color-terracotta-dark);
}

.badge-subject--sand {
  color: var(--color-terracotta-dark);
}
.badge-subject--navy {
  color: var(--color-navy-700);
}
.badge-subject--olive {
  color: var(--color-olive-dark);
}

/* Generation/grade badge — e.g. "توجيهي 2008" on a course card */
.badge-grade {
  background: var(--border-subtle);
  color: var(--color-text-muted-2);
  font-weight: 500;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 12.5px;
}

.rating-stars {
  color: var(--color-terracotta);
}
.rating-stars--inline {
  font-size: 14px;
  font-weight: 600;
}
.rating-stars--row {
  font-size: 15px;
  letter-spacing: 2px;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.auth-card {
  max-width: 460px;
  margin: 3rem auto;
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card-hover);
  background: var(--color-surface);
}

/* ===== Section header (eyebrow + title [+ cta]) ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-header__eyebrow {
  color: var(--color-terracotta-dark);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  margin-bottom: var(--space-3);
}
.section-header__title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
.section-header__cta {
  color: var(--color-terracotta-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-nav);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.section-header__cta:hover {
  text-decoration: underline;
}

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--color-navy-950);
  border-top: 1px solid rgba(250, 246, 240, 0.08);
}
.stats-strip__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-11);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-9);
}
.stats-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.stats-strip__value {
  font-size: var(--fs-stat);
  font-weight: 700;
  color: var(--color-terracotta);
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
}
.stats-strip__label {
  font-size: var(--fs-nav);
  color: rgba(250, 246, 240, 0.6);
}
@media (max-width: 767.98px) {
  .stats-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Partner / accreditation logo strip ===== */
.partners-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.partners-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px;
  text-align: center;
}
.partners-strip__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.partners-strip__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}
.partners-strip__logo {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--dur-base) ease-out, opacity var(--dur-base) ease-out;
}
.partners-strip__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 575.98px) {
  .partners-strip__row {
    gap: 22px;
  }
  .partners-strip__logo {
    height: 26px;
  }
}

/* ===== Course card ===== */
.course-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-card) ease-out, box-shadow var(--dur-card) ease-out;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.course-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.course-card__thumb {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(10, 10, 11, 0.06) 0px, rgba(10, 10, 11, 0.06) 10px, rgba(10, 10, 11, 0.03) 10px, rgba(10, 10, 11, 0.03) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-thumb-zoom) var(--ease-out-soft);
}
.course-card:hover .course-card__thumb {
  transform: scale(1.05);
}
.course-card__thumb-label {
  font-family: monospace;
  font-size: 11px;
  color: var(--color-text-faint);
  direction: ltr;
}
.course-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}
.course-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.course-card__reviews {
  color: var(--color-text-faint);
  font-size: 13px;
}
.course-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-text);
}
.course-card__teacher {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.course-card__teacher-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-950));
  color: var(--color-terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.course-card__teacher-name {
  font-size: 14px;
  color: var(--color-text-muted-2);
}
.course-card__footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy-950);
  transition: color var(--dur-base) ease-out;
}
.course-card:hover .course-card__price {
  color: var(--color-terracotta-dark);
}
.course-card__currency {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ===== Floating contact widget (bottom-left in RTL) ===== */
/* Contact FAB — stacked labeled pills (matching the client reference)
   instead of bare icon circles, expanding upward from a cyan toggle. */
.fab-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
}
.fab-widget__backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease-out, visibility 240ms ease-out;
}
.fab-widget__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fab-widget__main {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--color-terracotta);
  border: 2px solid var(--color-navy-950);
  color: var(--color-navy-950);
  font-size: 26px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.fab-widget__main:hover {
  background: var(--color-terracotta-dark);
  transform: scale(1.06);
}
.fab-widget__icon {
  display: block;
  line-height: 1;
}
.fab-widget__item {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.85);
  transition: opacity 220ms ease-out, visibility 220ms ease-out,
    transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
.fab-widget.is-open .fab-widget__item {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.fab-widget.is-open .fab-widget__item:nth-of-type(1) { transition-delay: 0ms; }
.fab-widget.is-open .fab-widget__item:nth-of-type(2) { transition-delay: 50ms; }
.fab-widget.is-open .fab-widget__item:nth-of-type(3) { transition-delay: 100ms; }
.fab-widget.is-open .fab-widget__item:nth-of-type(4) { transition-delay: 150ms; }
@media (prefers-reduced-motion: reduce) {
  .fab-widget__item {
    transform: none;
    transition-duration: 0ms;
  }
}
.fab-widget__pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  color: var(--color-navy-950);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-popup);
  text-decoration: none;
  transition: transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.fab-widget__pill:hover {
  transform: translateX(-4px);
  color: var(--color-navy-950);
}
.fab-widget__pill-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-surface);
  background: var(--color-terracotta);
  flex-shrink: 0;
}
.fab-widget__pill--wa .fab-widget__pill-icon {
  background: #25D366;
}
.fab-widget__pill--call .fab-widget__pill-icon {
  background: var(--color-navy-700);
}

/* ===== Scroll to top (bottom-center, per client request) ===== */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: var(--color-navy-950);
  border: none;
  color: var(--color-terracotta);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-totop);
}
.scroll-to-top:hover {
  background: var(--color-navy-700);
}

/* Decorative drifting diagonal-stripe pattern — hero + CTA banner */
.pattern-drift {
  position: absolute;
  inset: -80px;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, var(--color-terracotta) 0px, var(--color-terracotta) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(-45deg, var(--color-terracotta) 0px, var(--color-terracotta) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
  animation: patternDrift 60s linear infinite alternate;
}

/* Large filled-terracotta button — hero + CTA banner primary action */
.btn-hero-primary {
  display: inline-block;
  background: var(--color-terracotta);
  border: none;
  color: var(--color-surface);
  font-family: inherit;
  font-size: var(--fs-btn);
  font-weight: 700;
  cursor: pointer;
  padding: 15px 32px;
  border-radius: var(--radius-md-2);
  box-shadow: var(--shadow-btn-primary);
  text-decoration: none;
  transition: background 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}
.btn-hero-primary:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-surface);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-btn-primary-hover);
}
.btn-hero-primary:active {
  transform: scale(0.98);
}

/* Translucent outline button on dark surfaces — hero secondary action */
.btn-hero-outline {
  display: inline-block;
  background: rgba(250, 246, 240, 0.06);
  border: 1px solid rgba(250, 246, 240, 0.2);
  color: var(--color-cream);
  font-family: inherit;
  font-size: var(--fs-btn);
  font-weight: 500;
  cursor: pointer;
  padding: 15px 28px;
  border-radius: var(--radius-md-2);
  text-decoration: none;
  transition: background 200ms ease-out;
}
.btn-hero-outline:hover {
  background: rgba(250, 246, 240, 0.12);
  color: var(--color-cream);
}

/* ===== Hero =====
   Full-bleed background photo (client-supplied) with a dark gradient over
   the text side for legibility — matching the client reference (iu.de). */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.75) 38%, rgba(10, 10, 11, 0.35) 62%, rgba(10, 10, 11, 0.15) 100%), var(--hero-bg-image, url('/images/BackgroundHomePage.webp'));
  background-size: cover;
  background-position: center;
}
.hero__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  width: 100%;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero__highlight {
  display: inline-block;
  background: var(--color-terracotta);
  color: var(--color-navy-950);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  padding: 4px 14px;
  text-wrap: balance;
}
.hero__lead {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  max-width: 480px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Course-selector bar — real filter form, submits to /courses */
.hero__selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-card-hover);
  width: 100%;
  max-width: 620px;
}
.hero__selector input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
  padding: 10px 6px;
}
.hero__selector input {
  flex: 1;
  min-width: 0;
}
.hero__selector > button {
  background: var(--color-terracotta);
  border: none;
  color: var(--color-navy-950);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease-out;
}
.hero__selector > button:hover {
  background: var(--color-terracotta-dark);
}

/* Custom dropdown — native <select> popups can't be styled to match the
   client reference (rounded panel, gray hover, dark selected state), so
   this is a button + absolutely-positioned list driven by initCustomSelects(). */
.custom-select {
  position: relative;
  flex-shrink: 0;
  width: 165px;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: var(--color-surface);
  border: 1.5px solid var(--border-subtle-3);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
  cursor: pointer;
  padding: 9px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color var(--dur-fast) ease-out, border-radius var(--dur-fast) ease-out;
}
.custom-select.is-open .custom-select__trigger {
  border-color: var(--color-navy-950);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.custom-select__chevron {
  font-size: 11px;
  color: var(--color-text-muted);
  transition: transform var(--dur-base) ease-out;
  flex-shrink: 0;
}
.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}
.custom-select__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1.5px solid var(--color-navy-950);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  list-style: none;
  margin: 0;
  padding: 8px;
  z-index: 40;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle-3) transparent;
}
.custom-select__menu::-webkit-scrollbar {
  width: 6px;
}
.custom-select__menu::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select__menu::-webkit-scrollbar-thumb {
  background: var(--color-text-faint);
  border-radius: var(--radius-pill);
}
.custom-select.is-open .custom-select__menu {
  display: block;
}
.custom-select__option {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.custom-select__option:hover {
  background: var(--color-bg-alt);
}
.custom-select__option.is-selected {
  background: var(--color-navy-950);
  color: var(--color-surface);
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: 320px;
}

/* Credential badge cluster — placeholder structure/content pending the
   client's real اعتمادات; do not present these as verified claims. */
.hero__badges {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.badge-seal {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-circle);
  background: var(--color-surface);
  border: 2px solid var(--color-navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: var(--shadow-popup);
}
.badge-seal__icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.badge-seal__text {
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-navy-950);
  text-transform: uppercase;
}
.badge-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-popup);
  text-align: center;
  min-width: 150px;
}
.badge-card__rating {
  color: var(--color-olive);
  font-size: 15px;
  margin-bottom: 2px;
}
.badge-card__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text);
}
.badge-card__sub {
  font-size: 11px;
  color: var(--color-text-muted);
}
.badge-card--dark {
  background: var(--color-navy-950);
  color: var(--color-surface);
}
.badge-card--dark .badge-card__title {
  color: var(--color-surface);
}
.badge-card--dark .badge-card__sub {
  color: rgba(255, 255, 255, 0.6);
}
.badge-card__year {
  display: inline-block;
  background: var(--color-terracotta);
  color: var(--color-navy-950);
  font-weight: 800;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 0;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 56px 24px 72px;
  }
  .hero__visual {
    display: none;
  }
  .hero__highlight {
    font-size: 28px;
  }
  .hero__selector {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 14px;
  }
  .hero__selector input {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
    max-width: none;
  }
  .hero__selector > button {
    width: 100%;
  }
  .custom-select {
    width: 100%;
  }
}

/* ===== Intro video ===== */
.intro-video {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 8px;
}
.video-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-video);
  background: var(--color-navy-950);
}
.video-el {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, rgba(250, 246, 240, 0.05) 0px, rgba(250, 246, 240, 0.05) 14px, rgba(250, 246, 240, 0.02) 14px, rgba(250, 246, 240, 0.02) 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.video-play-btn {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-circle);
  background: rgba(0, 214, 232, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 214, 232, 0.4);
  transition: transform 250ms var(--ease-out-soft);
  cursor: pointer;
}
.video-play-btn:hover {
  transform: scale(1.08);
}
.video-play-icon {
  width: 0;
  height: 0;
  border-block: 14px solid transparent;
  border-right: 22px solid var(--color-surface);
  margin-left: 5px;
}
.video-placeholder-label {
  font-family: monospace;
  font-size: 12px;
  color: rgba(250, 246, 240, 0.45);
  direction: ltr;
}
.video-sound-btn {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 246, 240, 0.2);
  color: var(--color-cream);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background 180ms ease-out;
}
.video-sound-btn:hover {
  background: rgba(10, 10, 11, 0.95);
}

/* ===== Featured courses ===== */
.featured-courses {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 48px;
}
.featured-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== Why us ===== */
.why-us {
  background: var(--color-surface);
  border-block: 1px solid var(--border-subtle);
  margin-top: 40px;
}
.why-us__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg-2);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border-subtle-2);
}
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.feature-card__title {
  margin: 0;
  font-size: var(--fs-h3-sm);
  font-weight: 700;
  color: var(--color-text);
}
.feature-card__desc {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
}

/* ===== Teachers ===== */
.teachers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-teacher);
  transition: transform var(--dur-card) ease-out, box-shadow var(--dur-card) ease-out;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-teacher-hover);
}
.teacher-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-circle);
  background: repeating-linear-gradient(45deg, rgba(10, 10, 11, 0.08) 0px, rgba(10, 10, 11, 0.08) 8px, rgba(10, 10, 11, 0.04) 8px, rgba(10, 10, 11, 0.04) 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(0, 214, 232, 0.3);
}
.teacher-card__avatar-label {
  font-family: monospace;
  font-size: 9px;
  color: var(--color-text-faint);
  direction: ltr;
}
.teacher-card__name {
  margin: 8px 0 0;
  font-size: var(--fs-h3-sm);
  font-weight: 700;
  color: var(--color-text);
}
.teacher-card__subject {
  color: var(--color-terracotta-dark);
  font-size: 14px;
  font-weight: 600;
}
.teacher-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--border-subtle-2);
}
.testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-subtle-2);
}
.testimonial-card__quote {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
  color: var(--color-text-muted-3);
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  background: rgba(245, 166, 35, 0.15);
  color: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.testimonial-card__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-text);
}
.testimonial-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== CTA banner ===== */
.cta-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.cta-banner__inner {
  background: linear-gradient(150deg, var(--color-navy-950), var(--color-navy-700));
  border-radius: var(--radius-3xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-banner__title {
  margin: 0;
  color: var(--color-cream);
  font-size: var(--fs-h2-cta);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  max-width: 560px;
  line-height: var(--lh-heading);
}
.cta-banner__desc {
  margin: 0;
  color: rgba(250, 246, 240, 0.65);
  font-size: 17px;
}
.cta-banner__btn {
  margin-top: 8px;
}

/* Responsive fallbacks for grids — not present in the design export (fixed
   1200px desktop layout with no breakpoints). */
@media (max-width: 991.98px) {
  .featured-courses__grid,
  .why-us__grid,
  .teachers-grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .featured-courses__grid,
  .why-us__grid,
  .teachers-grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Courses listing page — no design-reference export exists for this page;
   extrapolated from the design tokens/components above (navy/terracotta,
   card + pill language, same shadows/radii/motion durations).
   ========================================================================== */

.page-banner {
  background: linear-gradient(165deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
  padding: var(--space-15) 32px;
}
.page-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-9);
  text-align: center;
}
.page-banner__title {
  margin: 0;
  color: var(--color-cream);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
.page-banner__search {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-card-hover);
}
.page-banner__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  padding: 8px 4px;
  color: var(--color-text);
}
.page-banner__search button {
  background: var(--color-terracotta);
  border: none;
  color: var(--color-surface);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) ease-out;
}
.page-banner__search button:hover {
  background: var(--color-terracotta-dark);
}

.courses-page__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-14) 32px var(--space-16);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-12);
  align-items: flex-start;
}

.filters-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-9);
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-11);
}
.filters-sidebar__section-title {
  margin: 0 0 var(--space-6);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.filters-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted-2);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.filter-option:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.filter-option.is-active {
  background: rgba(0, 176, 194, 0.1);
  color: var(--color-terracotta-dark);
  font-weight: 600;
}
.filter-option__count {
  font-size: 12px;
  color: var(--color-text-faint);
}
.filter-option.is-active .filter-option__count {
  color: var(--color-terracotta-dark);
}
.filters-sidebar__clear {
  display: inline-block;
  color: var(--color-terracotta-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.filters-sidebar__clear:hover {
  text-decoration: underline;
}
.filters-drawer-toggle {
  display: none;
}
.filters-drawer-backdrop {
  display: none;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-11);
}
.results-toolbar__count {
  font-size: 14.5px;
  color: var(--color-text-muted);
}
.results-toolbar__count strong {
  color: var(--color-text);
}
.results-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-toolbar__sort label {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.results-toolbar__sort select {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
}

.courses-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-9);
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.empty-state__icon {
  font-size: 40px;
  margin-bottom: var(--space-7);
}
.empty-state__title {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text);
}
.empty-state__desc {
  margin: 0;
  color: var(--color-text-muted);
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-13);
}
.pagination-nav__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--color-surface);
  color: var(--color-text-muted-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.pagination-nav__btn:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta-dark);
}
.pagination-nav__btn.is-active {
  background: var(--color-navy-950);
  border-color: var(--color-navy-950);
  color: var(--color-cream);
}
.pagination-nav__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .courses-page__layout {
    grid-template-columns: 1fr;
  }
  .courses-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters-drawer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-9);
  }
  .filters-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(320px, 86vw);
    max-width: 86vw;
    border-radius: 0;
    z-index: 80;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-nav-hide) var(--ease-out-soft);
  }
  .filters-sidebar.is-open {
    transform: translateX(0);
  }
  .filters-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.5);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) ease-out;
  }
  .filters-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 575.98px) {
  .courses-results__grid {
    grid-template-columns: 1fr;
  }
  .page-banner {
    padding: var(--space-12) 20px;
  }
  .courses-page__layout {
    padding: var(--space-12) 20px var(--space-14);
  }
}

/* ==========================================================================
   Course details page — no design-reference export; extrapolated from the
   design tokens/components above (same navy hero language, card/pill/shadow
   system as the rest of the site).
   ========================================================================== */

.course-hero {
  background: linear-gradient(165deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
  padding: var(--space-13) 32px;
}
.course-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.course-hero__badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-7);
}
.course-hero__badges .badge-subject {
  position: static;
}
.course-hero__title {
  margin: 0 0 var(--space-6);
  color: var(--color-cream);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  max-width: 720px;
}
.course-hero__desc {
  margin: 0 0 var(--space-9);
  color: rgba(250, 246, 240, 0.7);
  font-size: var(--fs-body);
  max-width: 640px;
}
.course-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-9);
}
.course-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(250, 246, 240, 0.75);
  font-size: 14.5px;
}
.course-hero__meta-item strong {
  color: var(--color-cream);
}
.course-hero__instructor-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-9);
}
.course-hero__instructor-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.course-hero__instructor-name {
  color: var(--color-cream);
  font-weight: 600;
  font-size: 14.5px;
}
.course-hero__instructor-label {
  color: rgba(250, 246, 240, 0.55);
  font-size: 12.5px;
}

.course-detail__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-14) 32px var(--space-16);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: flex-start;
}
.course-detail__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  min-width: 0;
}
.course-detail__section-title {
  margin: 0 0 var(--space-8);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text);
}
.course-detail__desc {
  color: var(--color-text-muted-3);
  line-height: var(--lh-body-loose);
  white-space: pre-line;
}

/* Curriculum accordion — built on Bootstrap's collapse JS, restyled */
.curriculum {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
}
.curriculum-section {
  border-bottom: 1px solid var(--border-subtle);
}
.curriculum-section:last-child {
  border-bottom: none;
}
.curriculum-section__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: var(--space-8) var(--space-9);
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}
.curriculum-section__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-text);
}
.curriculum-section__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.curriculum-section__chevron {
  transition: transform var(--dur-base) ease-out;
}
.curriculum-section__header[aria-expanded="true"] .curriculum-section__chevron {
  transform: rotate(180deg);
}
.curriculum-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-7) var(--space-9);
  border-top: 1px solid var(--border-subtle);
  font-size: 14.5px;
  color: var(--color-text-muted-2);
}
.curriculum-lesson__icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--color-terracotta-dark);
}
.curriculum-lesson--locked .curriculum-lesson__icon {
  color: var(--color-text-faint);
}
.curriculum-lesson--locked {
  color: var(--color-text-faint);
}
.curriculum-lesson__title {
  flex: 1;
}
.curriculum-lesson__preview-tag {
  background: rgba(245, 166, 35, 0.14);
  color: var(--color-olive-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.curriculum-lesson__duration {
  font-size: 13px;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.instructor-bio-card {
  display: flex;
  gap: var(--space-9);
  padding: var(--space-9);
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.instructor-bio-card__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-950));
  color: var(--color-terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.instructor-bio-card__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.instructor-bio-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.review-item {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.review-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}
.review-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(245, 166, 35, 0.15);
  color: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-item__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-text);
}
.review-item__date {
  font-size: 12.5px;
  color: var(--color-text-faint);
}
.review-item__comment {
  margin: 0;
  color: var(--color-text-muted-3);
  font-size: 14.5px;
  line-height: var(--lh-body);
}
.no-reviews {
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* Sticky enroll card */
.enroll-card {
  position: sticky;
  top: 88px;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}
.enroll-card__thumb {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, rgba(10, 10, 11, 0.06) 0px, rgba(10, 10, 11, 0.06) 10px, rgba(10, 10, 11, 0.03) 10px, rgba(10, 10, 11, 0.03) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.enroll-card__thumb-label {
  font-family: monospace;
  font-size: 11px;
  color: var(--color-text-faint);
  direction: ltr;
}
.enroll-card__body {
  padding: var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.enroll-card__price {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-navy-950);
}
.enroll-card__price .course-card__currency {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.enroll-card__cta {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}
.enroll-card__status {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}
.enroll-card__status--pending {
  background: rgba(0, 214, 232, 0.12);
  color: var(--color-terracotta-dark);
}
.enroll-card__status--done {
  background: rgba(245, 166, 35, 0.14);
  color: var(--color-olive-dark);
}
.enroll-card__includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.enroll-card__includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted-2);
}
.enroll-card__includes li::before {
  content: "✓";
  color: var(--color-olive);
  font-weight: 700;
}
.enroll-card__error {
  background: rgba(217, 83, 79, 0.1);
  color: #a83e3a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
}

.similar-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Checkout placeholder pages */
.checkout-card {
  max-width: 560px;
  margin: var(--space-16) auto;
  padding: var(--space-11);
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card-hover);
  text-align: center;
}
.checkout-card__icon {
  font-size: 40px;
  margin-bottom: var(--space-7);
}
.checkout-card__title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text);
}
.checkout-card__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-9);
  line-height: var(--lh-body);
}
.checkout-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8) var(--space-9);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-9);
}

@media (max-width: 991.98px) {
  .course-detail__layout {
    grid-template-columns: 1fr;
  }
  .enroll-card {
    position: static;
  }
  .similar-courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .similar-courses__grid {
    grid-template-columns: 1fr;
  }
  .course-hero {
    padding: var(--space-11) 20px;
  }
  .course-detail__layout {
    padding: var(--space-11) 20px var(--space-14);
  }
}

/* ==========================================================================
   Student dashboard — no design-reference export; extrapolated from the
   design tokens/components above.
   ========================================================================== */

.dashboard-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-13) 32px var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.dashboard-title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-9);
  background: linear-gradient(120deg, var(--color-navy-950), var(--color-navy-700));
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-11);
  box-shadow: var(--shadow-card-hover);
}
.resume-card__label {
  color: var(--color-terracotta-light);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.resume-card__title {
  color: var(--color-cream);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.resume-card__lesson {
  color: rgba(250, 246, 240, 0.65);
  font-size: 14px;
}
.resume-card__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  width: 260px;
}
.resume-card__progress .progress-bar-track {
  background: rgba(250, 246, 240, 0.15);
}
.resume-card__progress-label {
  color: var(--color-cream);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-subtle);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-terracotta-dark));
  width: 0;
  transition: width 900ms var(--ease-out-soft);
}

.dashboard-tabs {
  display: flex;
  gap: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}
.dashboard-tab {
  background: none;
  border: none;
  padding: 10px 4px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.dashboard-tab:hover {
  color: var(--color-text);
}
.dashboard-tab.active {
  color: var(--color-terracotta-dark);
  border-bottom-color: var(--color-terracotta);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dash-course-card {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: var(--shadow-card);
}
.dash-course-card__subject {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-terracotta-dark);
}
.dash-course-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.dash-course-card__teacher {
  font-size: 13px;
  color: var(--color-text-muted);
}
.dash-course-card__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted-2);
}
.dash-course-card__pending {
  background: rgba(0, 214, 232, 0.12);
  color: var(--color-terracotta-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.dash-course-card__cta {
  margin-top: auto;
  text-align: center;
}

@media (max-width: 991.98px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resume-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-card__progress {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-layout {
    padding: var(--space-11) 20px var(--space-14);
  }
}

/* ===========================================================================
   Innovation Academy brand layer
   ========================================================================== */

.site-navbar {
  border-bottom: 1px solid var(--border-subtle);
}
.site-navbar__utility {
  background: #000;
  color: #fff;
}
.site-navbar__utility .site-navbar__search-btn,
.site-navbar__utility-account .site-navbar__login-btn,
.site-navbar__utility-account .site-navbar__cta,
.site-navbar__utility-account .site-navbar__dropdown {
  color: rgba(255, 255, 255, 0.78);
}
.site-navbar__brand {
  min-width: 240px;
}
.site-navbar__logo,
.site-footer__logo {
  background: transparent;
  border: 1.5px solid var(--color-terracotta);
  color: var(--color-terracotta);
  border-radius: 50% 50% 48% 48%;
  font-size: 21px;
}
.site-navbar__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-navbar__wordmark {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.site-navbar__tagline,
.site-footer__tagline {
  display: block;
  direction: ltr;
  color: var(--color-terracotta);
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
}
.site-navbar__outline-cta,
.site-navbar__solid-cta,
.btn-hero-primary,
.hero__selector,
.hero__selector > button,
.custom-select__trigger {
  border-radius: 0;
}

.hero {
  min-height: 680px;
  /* The category panel intentionally overlays the following section. Keeping
     the hero clipped here cuts the final options off at the section edge. */
  overflow: visible;
  /* The admin-managed hero photo (site image slot "home-hero-background")
     sits under a heavy dark overlay so the ink+glow look survives any image. */
  background:
    radial-gradient(circle at 14% 18%, rgba(243, 74, 35, .23), transparent 28%),
    radial-gradient(circle at 87% 82%, rgba(136, 53, 31, .35), transparent 27%),
    linear-gradient(90deg, rgba(5, 5, 5, .95) 0%, rgba(5, 5, 5, .88) 45%, rgba(5, 5, 5, .78) 100%),
    var(--hero-bg-image, none),
    #000;
  background-size: auto, auto, auto, cover, auto;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  inset-inline-end: -210px;
  top: -170px;
  border: 2px solid rgba(243, 74, 35, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(243, 74, 35, .03), 0 0 0 140px rgba(243, 74, 35, .02);
  pointer-events: none;
}
.hero__grid {
  z-index: 1;
}
.hero__copy {
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  direction: ltr;
  color: var(--color-terracotta);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__highlight {
  /* Alexandria's Arabic ascenders (notably أ) extend above a tight Latin-like
     line box. Extra block padding keeps every diacritic on the color field. */
  line-height: 1.35;
  padding: 8px 14px 10px;
  background: var(--color-terracotta);
  color: #000;
  border-radius: 0;
}
.hero__highlight--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
}
.hero__selector {
  position: relative;
  z-index: 60;
}
.custom-select.is-open {
  z-index: 70;
}
.custom-select__menu {
  z-index: 80;
}
.hero__brand-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 470px;
  margin-inline-start: auto;
  border-radius: 38% 62% 58% 42% / 42% 38% 62% 58%;
  border: 1px solid rgba(243, 74, 35, .4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: brandMorph 12s ease-in-out infinite alternate;
}
.hero__brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.55);
}
.hero__brand-orbit {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(243, 74, 35, .28);
  border-radius: inherit;
  pointer-events: none;
}
@keyframes brandMorph {
  to { border-radius: 61% 39% 42% 58% / 38% 62% 38% 62%; }
}

.stats-strip {
  border-top: 4px solid var(--color-terracotta);
}
.stats-strip__item + .stats-strip__item {
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}
.course-card,
.feature-card,
.teacher-card,
.testimonial-card,
.video-wrap {
  border-radius: 0;
}
.course-card:hover,
.feature-card:hover,
.teacher-card:hover {
  border-color: rgba(243, 74, 35, .35);
}
.why-us {
  background: var(--color-bg-alt);
}
.cta-banner__inner {
  background: linear-gradient(135deg, #000 0%, #171716 58%, #88351F 140%);
  border-radius: 0;
  border-inline-start: 7px solid var(--color-terracotta);
}
.site-footer {
  border-top: 5px solid var(--color-terracotta);
}
.site-footer__brand-row > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fab-widget {
  /* Physical left positioning is intentional for the Arabic layout. The
     control stays close to the viewport edge while its labels expand inward. */
  right: auto;
  left: max(14px, env(safe-area-inset-left));
  z-index: 100;
  align-items: flex-end;
}
.fab-widget.is-open .fab-widget__main {
  background: var(--color-terracotta);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 14px 36px rgba(0, 0, 0, .38);
}
.fab-widget__main {
  color: #fff;
  border-color: #fff;
}
.fab-widget__pill {
  border-radius: 0;
  border-inline-end: 3px solid var(--color-terracotta);
}
.fab-widget__pill:hover {
  transform: translateX(4px);
}
@media (max-width: 575.98px) {
  .fab-widget {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    gap: 10px;
  }
  .fab-widget__pill {
    max-width: calc(100vw - 24px);
  }
}
.scroll-to-top {
  border: 1px solid rgba(255, 255, 255, .28);
}

@media (max-width: 991.98px) {
  .site-navbar__brand { min-width: 0; }
  .hero { min-height: 0; }
  .hero__grid { padding-block: 72px; }
  .hero__visual { display: block; min-height: 0; }
  .hero__brand-card { max-width: 340px; margin: 10px auto 0; }
}

@media (max-width: 575.98px) {
  .site-navbar__tagline { display: none; }
  .site-navbar__wordmark { font-size: 13px; }
  .site-navbar__logo { width: 32px; height: 32px; }
  .hero__brand-card { max-width: 280px; }
  .stats-strip__item + .stats-strip__item { border-inline-start: 0; }
}

/* ==========================================================================
   Lesson player
   ========================================================================== */

.learn-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: calc(100vh - 68px);
}
.learn-main {
  padding: var(--space-9) 32px var(--space-14);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.learn-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-navy-950);
  box-shadow: var(--shadow-video);
  margin-bottom: var(--space-9);
}
.learn-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.learn-lesson-title {
  margin: 0 0 var(--space-6);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}
.learn-lesson-meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: var(--space-9);
}
.learn-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-top: var(--space-9);
  border-top: 1px solid var(--border-subtle);
}
.learn-nav-link {
  color: var(--color-text-muted-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.learn-nav-link:hover {
  color: var(--color-terracotta-dark);
}
.learn-nav-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.learn-complete-btn {
  border: none;
  cursor: pointer;
}
.learn-complete-btn.is-completed {
  background: var(--color-olive);
  border-color: var(--color-olive);
}

.learn-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--border-subtle);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  position: sticky;
  top: 68px;
  padding: var(--space-8) 0;
}
.learn-sidebar__course-title {
  padding: 0 var(--space-8) var(--space-7);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}
.learn-sidebar__section-title {
  padding: var(--space-6) var(--space-8) var(--space-3);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.learn-sidebar__lesson {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-8);
  font-size: 13.5px;
  color: var(--color-text-muted-2);
  text-decoration: none;
  border-right: 3px solid transparent;
}
.learn-sidebar__lesson:hover {
  background: var(--color-bg-alt);
}
.learn-sidebar__lesson.is-current {
  background: rgba(0, 176, 194, 0.08);
  border-right-color: var(--color-terracotta);
  color: var(--color-terracotta-dark);
  font-weight: 700;
}
.learn-sidebar__lesson-check {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--color-olive);
}
.learn-sidebar__lesson-duration {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.congrats-card {
  max-width: 560px;
  margin: var(--space-16) auto;
  padding: var(--space-11);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card-hover);
}
.congrats-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-7);
}
.congrats-card__title {
  margin: 0 0 var(--space-5);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}
.congrats-card__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-9);
}
.congrats-card__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .learn-layout {
    grid-template-columns: 1fr;
  }
  .learn-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   2026 catalog and navigation refresh
   ========================================================================== */

.site-navbar__inner,
.site-navbar__utility-inner {
  max-width: 1380px;
}
.site-navbar__inner {
  justify-content: flex-start;
  gap: 30px;
}
.site-navbar__brand {
  min-width: 220px;
  flex: 0 0 auto;
}
.site-navbar__mobile-panel {
  flex: 0 1 auto;
}
.site-navbar__links {
  gap: 24px;
}
.site-navbar__mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-navbar__mega-btn .bi-chevron-down {
  font-size: 10px;
  transition: transform 180ms ease-out;
}
.site-navbar__has-mega:hover .site-navbar__mega-btn .bi-chevron-down,
.site-navbar__mega-btn[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}
.site-navbar__socials {
  margin-inline-start: 0;
  margin-right: auto;
  margin-left: 0;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border-subtle-3);
}
.site-navbar__socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171716;
  font-size: 15px;
  transition: color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}
.site-navbar__socials a:hover {
  color: #fff;
  background: var(--color-terracotta);
  transform: translateY(-2px);
}

.mega-menu {
  border-top: 3px solid var(--color-terracotta);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .16);
}
.mega-menu__inner {
  max-width: 1320px;
  padding: 34px 32px 38px;
}
.mega-menu__heading {
  display: flex;
  align-items: end;
  gap: 16px 28px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.mega-menu__heading span,
.nav-brief-menu__eyebrow {
  color: var(--color-terracotta-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.mega-menu__heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 750;
}
.mega-menu__heading a {
  margin-inline-start: auto;
  color: #171716;
  font-size: 13px;
  font-weight: 700;
}
.mega-menu__heading a:hover {
  color: var(--color-terracotta-dark);
}
.mega-menu__grid {
  grid-template-columns: repeat(3, 1fr);
}
.mega-menu__col {
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border-subtle);
}
.mega-menu__col-title {
  text-decoration: none;
  font-size: 15px;
}

.nav-brief-menu__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 32px 42px;
  display: grid;
  grid-template-columns: minmax(250px, .7fr) 1.7fr;
  gap: 60px;
}
.nav-brief-menu__intro {
  padding-inline-start: 28px;
  border-inline-start: 4px solid var(--color-terracotta);
}
.nav-brief-menu__intro h2 {
  margin: 8px 0 12px;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.45;
}
.nav-brief-menu__intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.9;
}
.nav-brief-menu__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nav-brief-menu__options > a {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: #171716;
  background: #f6f5f3;
  border: 1px solid transparent;
  border-radius: 0;
  transition: transform 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}
.nav-brief-menu__options > a:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 74, 35, .35);
  background: #fff;
}
.nav-brief-menu__options > a > i {
  color: var(--color-terracotta);
  font-size: 25px;
}
.nav-brief-menu__options span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-brief-menu__options strong,
.teaching-option strong {
  font-size: 15px;
}
.nav-brief-menu__options small,
.teaching-option small {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.nav-brief-menu__inner--compact {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  gap: 18px;
}
.teaching-option {
  padding: 24px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  color: #171716;
  border: 1px solid var(--border-subtle-3);
  border-radius: 0;
  transition: border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.teaching-option:hover {
  color: #171716;
  border-color: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.teaching-option__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 74, 35, .1);
  color: var(--color-terracotta-dark);
  font-size: 22px;
}
.teaching-option > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.teaching-option__arrow {
  color: var(--color-terracotta-dark);
}

/* ==========================================================================
   Courses catalog — IU-reference redesign (sharp edges, site theme kept).
   Reference: iu.de/bachelor — flat bands, marker-highlight heading, minimal
   accordion filters, rectangle result rows + optional 3-up grid view.
   ========================================================================== */

/* ---- Hero: flat ink band with marker-highlight heading ---- */
.courses-hero {
  background: #050505;
  color: #fff;
}
.courses-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 84px 32px 72px;
}
.courses-hero__title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -.02em;
}
.courses-hero__mark {
  background: var(--color-terracotta);
  color: #fff;
  padding: 6px 22px 10px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.courses-hero__sub {
  margin: 26px 6px 0;
  max-width: 640px;
  color: rgba(255, 255, 255, .68);
  font-size: 15.5px;
  line-height: 1.9;
}

/* ---- Search strip ---- */
.courses-search-strip {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}
.courses-search-strip__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 32px;
}
.courses-search {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--color-navy-950);
  background: #fff;
}
.courses-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 15px 20px;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14.5px;
}
.courses-search input::placeholder {
  color: var(--color-text-faint);
}
.courses-search button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 0 28px;
  background: var(--color-terracotta);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out;
}
.courses-search button:hover {
  background: var(--color-terracotta-dark);
}

/* ---- Layout ---- */
.courses-page__layout {
  max-width: 1320px;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px;
  padding-top: 56px;
  background: #fff;
}

/* ---- Filters sidebar: minimal sharp accordion ---- */
.filters-sidebar {
  top: 86px;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 0;
}
.filters-sidebar__header {
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-navy-950);
  font-size: 16px;
  font-weight: 750;
}
.filters-sidebar__close {
  display: none;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
}
.filter-group {
  border-bottom: 1px solid var(--border-subtle-3);
}
.filter-group__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 2px;
  font-size: 14.5px;
  font-weight: 750;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}
.filter-group__summary::-webkit-details-marker {
  display: none;
}
.filter-group__summary::after {
  content: "+";
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
}
.filter-group[open] .filter-group__summary::after {
  content: "\2212"; /* minus sign */
}
.filter-group .filters-sidebar__list {
  padding: 2px 2px 18px;
  gap: 4px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-radius: 0;
  background: none;
  color: var(--color-text-muted-2);
  font-size: 13.5px;
}
.filter-option::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(23, 23, 22, .4);
  background: #fff;
  transition: border-color var(--dur-fast) ease-out, background var(--dur-fast) ease-out;
}
.filter-option:hover {
  background: none;
  color: var(--color-text);
}
.filter-option:hover::before {
  border-color: var(--color-terracotta);
}
.filter-option.is-active {
  background: none;
  color: var(--color-text);
  font-weight: 700;
}
.filter-option.is-active::before {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  box-shadow: inset 0 0 0 3px #fff;
}
.filter-option__count {
  margin-inline-start: auto;
}
.filter-option.is-active .filter-option__count {
  color: var(--color-terracotta-dark);
}
.filters-sidebar__clear {
  margin-top: 20px;
}

/* ---- Results head ---- */
.courses-results__title {
  margin: 0 0 16px;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-text);
}
.applied-filters {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.applied-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 23, 22, .35);
  background: #fff;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.applied-chip i {
  font-size: 14px;
}
.applied-chip:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta-dark);
}

/* ---- Toolbar: count / sort / view toggle ---- */
.results-toolbar {
  margin-bottom: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.results-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.results-toolbar__sort select {
  border-radius: 0;
}
.view-toggle {
  display: flex;
  border: 1px solid rgba(23, 23, 22, .3);
}
.view-toggle__btn {
  width: 41px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #fff;
  color: var(--color-text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.view-toggle__btn + .view-toggle__btn {
  border-inline-start: 1px solid rgba(23, 23, 22, .3);
}
.view-toggle__btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.view-toggle__btn.is-active {
  background: var(--color-navy-950);
  color: #fff;
}

/* ---- Result rows (list view, default) ---- */
.courses-results__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
.catalog-course-card {
  display: grid;
  grid-template-columns: minmax(225px, 29%) minmax(0, 1fr) 62px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 23, 22, .16);
  border-radius: 0;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.catalog-course-card:hover {
  border-color: var(--color-navy-950);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .1);
}
.catalog-course-card__visual {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, #10100f 10%, #2d1b16 70%, #a63a21 145%);
}
.catalog-course-card__visual:hover {
  color: #fff;
}
.catalog-course-card__pattern {
  position: absolute;
  width: 250px;
  height: 250px;
  top: -70px;
  inset-inline-start: -70px;
  border: 1px solid rgba(243, 74, 35, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(243, 74, 35, .06), 0 0 0 72px rgba(243, 74, 35, .035);
  transition: transform 450ms ease-out;
}
.catalog-course-card:hover .catalog-course-card__pattern {
  transform: scale(1.12) translate(-5px, 5px);
}
.catalog-course-card__subject-icon {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  color: var(--color-terracotta);
  font-size: 38px;
}
.catalog-course-card__subject,
.catalog-course-card__grade {
  position: relative;
  z-index: 1;
}
.catalog-course-card__subject {
  font-size: 19px;
  font-weight: 750;
}
.catalog-course-card__grade {
  margin-top: 5px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}
.catalog-course-card__body {
  min-width: 0;
  padding: 22px 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.catalog-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.catalog-course-card__chip {
  padding: 5px 10px;
  background: var(--color-terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.catalog-course-card__meta-item {
  color: var(--color-text-muted);
  font-size: 12px;
}
.catalog-course-card__meta-item i {
  margin-inline-end: 3px;
  color: var(--color-text-muted-2);
}
.catalog-course-card__rating {
  color: var(--color-text);
  font-weight: 700;
}
.catalog-course-card__rating i {
  color: #e5a718;
}
.catalog-course-card__rating small {
  color: var(--color-text-faint);
  font-weight: 500;
}
.catalog-course-card__kicker {
  margin-top: 16px;
  color: var(--color-terracotta-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
}
.catalog-course-card__title-link {
  color: var(--color-text);
  text-decoration: none;
}
.catalog-course-card__title-link:hover {
  color: var(--color-terracotta-dark);
}
.catalog-course-card__title-link h2 {
  margin: 7px 0 8px;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.45;
}
.catalog-course-card__description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-course-card__footer {
  margin-top: auto;
  padding-top: 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
}
.catalog-course-card__instructor {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-course-card__avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.catalog-course-card__instructor > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalog-course-card__instructor small {
  color: var(--color-text-faint);
  font-size: 10px;
}
.catalog-course-card__instructor strong {
  overflow: hidden;
  color: var(--color-text-muted-2);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-course-card__price {
  white-space: nowrap;
  color: var(--color-text);
}
.catalog-course-card__price strong {
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 19px;
  font-weight: 800;
}
.catalog-course-card__price span {
  color: var(--color-text-muted);
  font-size: 11px;
}
.catalog-course-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-start: 1px solid var(--border-subtle-3);
  background: #fff;
  color: var(--color-text);
  font-size: 21px;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.catalog-course-card__arrow i {
  transition: transform var(--dur-fast) ease-out;
}
.catalog-course-card__arrow:hover {
  background: var(--color-terracotta);
  color: #fff;
}
.catalog-course-card:hover .catalog-course-card__arrow i {
  transform: translateX(-4px);
}

/* ---- Grid view (3-up squares) ---- */
.courses-results__grid.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.courses-results__grid.is-grid .catalog-course-card {
  grid-template-columns: minmax(0, 1fr);
}
.courses-results__grid.is-grid .catalog-course-card__visual {
  min-height: 168px;
  padding: 20px;
}
.courses-results__grid.is-grid .catalog-course-card__body {
  padding: 18px 20px;
  flex: 1;
}
.courses-results__grid.is-grid .catalog-course-card__meta {
  gap: 10px;
}
.courses-results__grid.is-grid .catalog-course-card__meta-item:not(.catalog-course-card__rating) {
  display: none;
}
.courses-results__grid.is-grid .catalog-course-card__title-link h2 {
  font-size: 17.5px;
}
.courses-results__grid.is-grid .catalog-course-card__description {
  font-size: 12.5px;
}
.courses-results__grid.is-grid .catalog-course-card__arrow {
  display: none;
}

/* ---- Sharp overrides for shared page furniture ---- */
.empty-state,
.pagination-nav__btn {
  border-radius: 0;
}
@media (max-width: 1199.98px) {
  .site-navbar__inner { gap: 20px; }
  .site-navbar__brand { min-width: 190px; }
  .site-navbar__links { gap: 17px; }
  .site-navbar__socials a:nth-last-child(-n+2) { display: none; }
}

@media (max-width: 991.98px) {
  .site-navbar__inner { justify-content: space-between; }
  .site-navbar__socials { display: none; }
  .site-navbar__mobile-panel { flex: none; }
  .site-navbar__links { gap: 0; }
  .site-navbar__mega-btn { justify-content: space-between; }
  .mega-menu { border-top-width: 1px; }
  .mega-menu__heading { align-items: flex-start; flex-direction: column; }
  .mega-menu__heading a { margin-inline-start: 0; }
  .mega-menu__grid { grid-template-columns: 1fr 1fr; }
  .nav-brief-menu__inner,
  .nav-brief-menu__inner--compact { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .nav-brief-menu__options { grid-template-columns: 1fr; }
  .nav-brief-menu__options > a { min-height: 0; flex-direction: row; }
  .courses-hero__inner { padding-block: 58px 48px; }
  .courses-page__layout { grid-template-columns: 1fr; }
  .filters-sidebar { padding: 24px; }
  .filters-sidebar__close { display: inline-flex; }
  .courses-results__grid.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .courses-search button { padding: 13px 18px; }
  .catalog-course-card { grid-template-columns: 1fr; }
  .catalog-course-card__visual { min-height: 200px; }
  .catalog-course-card__arrow { display: none; }
}

@media (max-width: 575.98px) {
  .courses-hero__inner { padding: 48px 20px 42px; }
  .courses-hero__title { font-size: 27px; line-height: 1.75; }
  .courses-hero__sub { font-size: 14px; }
  .courses-search-strip__inner { padding: 18px 20px; }
  .courses-page__layout { padding-top: 42px; }
  .courses-results__title { font-size: 27px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .results-toolbar__tools { flex-wrap: wrap; }
  .courses-results__grid.is-grid { grid-template-columns: 1fr; }
  .catalog-course-card__body { padding: 20px 18px; }
  .catalog-course-card__footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .teaching-option { grid-template-columns: 46px 1fr auto; padding: 18px 14px; }
  .teaching-option__icon { width: 46px; height: 46px; }
}

/* ==========================================================================
   Client refinement pass - navigation, trust area and homepage media
   ========================================================================== */

.site-navbar__inner {
  width: 100%;
  max-width: none;
  height: 84px;
  padding-inline: clamp(24px, 4.2vw, 78px);
  gap: clamp(22px, 2.4vw, 42px);
}
.site-navbar__utility {
  display: none !important;
}
.site-navbar__brand {
  min-width: 250px;
  gap: 12px;
}
.site-navbar__logo {
  width: 48px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
}
.site-navbar__brand-copy {
  gap: 3px;
}
.site-navbar__wordmark {
  font-size: 17px;
  line-height: 1.35;
}
.site-navbar__tagline {
  font-size: 8.5px;
}
.site-navbar__mobile-panel {
  flex: 0 1 auto;
}
.site-navbar__links {
  gap: clamp(17px, 1.7vw, 30px);
}
.site-navbar__mega-btn .bi-chevron-down {
  font-size: 13px;
  font-weight: 900;
  -webkit-text-stroke: .35px currentColor;
}
.site-navbar__socials {
  margin-inline-start: auto;
  padding-inline-start: 0;
  padding-inline-end: 22px;
  border-inline-start: 0;
  border-inline-end: 1px solid var(--border-subtle-3);
  gap: 4px;
}
.site-navbar__socials a {
  width: 36px;
  height: 36px;
  background: transparent;
  font-size: 17px;
  transform: none;
}
.site-navbar__socials .social-link--instagram { color: #d62976; }
.site-navbar__socials .social-link--facebook { color: #1877f2; }
.site-navbar__socials .social-link--youtube { color: #ff0000; }
.site-navbar__socials .social-link--tiktok { color: #111; }
.site-navbar__socials .social-link--linkedin { color: #0a66c2; }
.site-navbar__socials a:hover {
  color: inherit;
  background: #f1f0ee;
  transform: translateY(-2px);
}

.site-footer__logo {
  width: 62px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
}

.hero__grid {
  max-width: 1380px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
}
.hero__lead {
  font-weight: 700;
}
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero__brand-art {
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  margin-right: auto;
  overflow: hidden;
  background: transparent;
}
.hero__brand-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(.94);
}
.hero-credentials {
  width: min(100%, 290px);
  margin-right: auto;
  color: #171716;
}
.hero-credentials__header {
  margin-bottom: 12px;
  padding: 0 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.hero-credentials__header > span {
  font-size: 16px;
  font-weight: 800;
}
.hero-credentials__header > small {
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
}
.hero-credentials__seal {
  width: 142px;
  height: 142px;
  margin: 0 auto 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: #fff;
  border: 2px solid #171716;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
}
.hero-credentials__seal i {
  color: var(--color-terracotta);
  font-size: 30px;
}
.hero-credentials__seal strong {
  font-size: 14px;
}
.hero-credentials__seal span {
  color: var(--color-text-muted);
  font-size: 9px;
}
.hero-credentials__card {
  min-height: 72px;
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-inline-start: 4px solid var(--color-terracotta);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.hero-credentials__card > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #171716;
  border-radius: 50%;
  font-size: 17px;
}
.hero-credentials__card > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-credentials__card strong {
  font-size: 12px;
}
.hero-credentials__card small {
  color: var(--color-text-muted);
  font-size: 9px;
}

.custom-select__chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #171716;
  font-size: 21px;
  line-height: 1;
  -webkit-text-stroke: .55px currentColor;
}
.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

.intro-video {
  /* Full-bleed section: the video column's left edge touches the viewport's
     left edge; the copy column keeps the regular 1380px-container gutter. */
  max-width: none;
  padding: 112px 0 72px;
}
.intro-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(48px, 6vw, 94px);
  direction: ltr;
  padding-right: max(calc((100vw - 1380px) / 2 + 32px), 32px);
}
.intro-video__grid > * {
  direction: rtl;
}
.intro-video__grid .video-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(17, 17, 16, .18);
}
.intro-video__grid .video-placeholder {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  display: grid;
  place-items: center;
  background: #171716;
}
.video-placeholder > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.video-placeholder__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .48));
}
.intro-video__grid .video-play-btn {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  background: rgba(23, 23, 22, .88);
  border: 2px solid rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}
.intro-video__grid .video-play-icon {
  border-right-color: #fff;
}
.intro-video__copy {
  max-width: 480px;
}
.intro-video__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-terracotta-dark);
  font-size: 12px;
  font-weight: 800;
}
.intro-video__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}
.intro-video__copy h2 {
  margin: 14px 0 18px;
  color: #171716;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.035em;
}
.intro-video__copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}
.intro-video__link {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #171716;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid var(--color-terracotta);
  padding-bottom: 5px;
}
.intro-video__link:hover {
  color: var(--color-terracotta-dark);
}

.partners-strip {
  margin-block: 38px 0;
  border-top: 1px solid var(--border-subtle);
}
.partners-strip__inner {
  max-width: 1320px;
  padding-block: 48px;
}
.partners-strip__logo,
.partners-strip__logo:hover {
  height: 46px;
  max-width: 145px;
  filter: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.fab-widget__backdrop {
  background: rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.fab-widget {
  left: max(0px, env(safe-area-inset-left));
  align-items: flex-start;
  direction: ltr;
}
.fab-widget__main {
  width: 66px;
  height: 66px;
  margin-left: 14px;
  padding: 0;
  overflow: hidden;
  background: #000;
  font-size: 32px;
  border-width: 2px;
}
.fab-widget__icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.fab-widget__icon > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 180ms ease-out, transform 220ms ease-out;
}
.fab-widget__close-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: scale(.72);
  transition: opacity 180ms ease-out, transform 220ms ease-out;
}
.fab-widget.is-open .fab-widget__icon > img {
  opacity: 0;
  transform: scale(.78);
}
.fab-widget.is-open .fab-widget__close-mark {
  opacity: 1;
  transform: scale(1);
}
.fab-widget__pill {
  min-width: 255px;
  min-height: 62px;
  padding: 9px 12px 9px 18px;
  justify-content: flex-start;
  direction: rtl;
  gap: 13px;
  border-radius: 0;
  border-inline-end: 0;
  border-left: 4px solid var(--color-terracotta);
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}
.fab-widget__pill-icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.fab-widget__pill--email .fab-widget__pill-icon {
  background: #f34a23;
}
.fab-widget__pill--calendar .fab-widget__pill-icon {
  background: #f34a23;
}
.fab-widget__pill:hover {
  transform: translateX(4px);
}

.scroll-to-top {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #171716;
  color: var(--color-terracotta);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}
.scroll-to-top svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-to-top:hover {
  background: #000;
  color: #ff5a35;
}

@media (max-width: 1199.98px) {
  .site-navbar__inner {
    padding-inline: 24px;
    gap: 18px;
  }
  .site-navbar__brand {
    min-width: 205px;
  }
  .site-navbar__wordmark {
    font-size: 14px;
  }
  .site-navbar__links {
    gap: 15px;
  }
}

@media (max-width: 991.98px) {
  .site-navbar__inner {
    height: 76px;
  }
  .site-navbar__brand {
    min-width: 0;
  }
  .site-navbar__logo {
    width: 43px;
    height: 50px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    justify-content: center;
  }
  .hero__brand-art {
    width: min(100%, 520px);
    margin: 18px auto 0;
  }
  .hero-credentials {
    width: min(100%, 540px);
    margin: 18px auto 0;
  }
  .hero-credentials__seal {
    width: 132px;
    height: 132px;
  }
  .intro-video {
    padding: 112px 32px 72px;
  }
  .intro-video__grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-right: 0;
  }
  .intro-video__grid .video-wrap {
    border-radius: 0;
  }
  .intro-video__copy {
    max-width: 680px;
  }
}

@media (max-width: 575.98px) {
  .site-navbar__inner {
    padding-inline: 16px;
  }
  .site-navbar__logo {
    width: 37px;
    height: 45px;
  }
  .site-navbar__wordmark {
    font-size: 12px;
  }
  .hero-credentials {
    max-width: 310px;
  }
  .hero__brand-art {
    width: min(100%, 340px);
  }
  .intro-video {
    padding: 76px 20px 44px;
  }
  .intro-video__grid .video-placeholder {
    aspect-ratio: 1.2 / 1;
  }
  .intro-video__copy h2 {
    font-size: 30px;
  }
  .partners-strip__row {
    gap: 28px 20px;
  }
  .partners-strip__logo,
  .partners-strip__logo:hover {
    height: 34px;
    max-width: 110px;
  }
  .fab-widget {
    left: max(0px, env(safe-area-inset-left));
  }
  .fab-widget__main {
    width: 60px;
    height: 60px;
    margin-left: 10px;
  }
  .fab-widget__pill {
    min-width: min(255px, calc(100vw - 20px));
    min-height: 56px;
    font-size: 13px;
  }
  .scroll-to-top {
    width: 60px;
    height: 60px;
  }
}

/* Monochrome contact-bar treatment matching the supplied reference. */
.fab-widget { gap: 5px; }
.fab-widget__main {
  background: #fff;
  border-color: #222;
  color: #222;
  box-shadow: none;
}
.fab-widget__main:hover { background: #f2f2f2; }
.fab-widget__pill {
  justify-content: flex-start;
  gap: 14px;
  width: 330px;
  min-height: 62px;
  padding: 12px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
  font-size: 17px;
  font-weight: 800;
}
.fab-widget__pill:hover {
  color: #111;
  background: #f5f5f5;
  transform: translateX(-3px);
}
.fab-widget__pill-icon,
.fab-widget__pill--wa .fab-widget__pill-icon,
.fab-widget__pill--call .fab-widget__pill-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: #222;
  font-size: 26px;
}
@media (max-width: 420px) {
  .fab-widget { left: 12px; }
  .fab-widget__pill { width: calc(100vw - 24px); }
}
.fab-widget.is-open .fab-widget__main {
  background: #fff;
  border-color: #222;
  box-shadow: none;
}
.fab-widget__icon > img { filter: grayscale(1); }
.fab-widget__close-mark { color: #222; }
.fab-widget__pill--email .fab-widget__pill-icon,
.fab-widget__pill--calendar .fab-widget__pill-icon {
  background: transparent;
  color: #222;
}

/* Preserve the original toggle artwork while keeping the monochrome list inset. */
.fab-widget { left: max(12px, env(safe-area-inset-left)); }
.fab-widget__main {
  background: #000;
  border-color: #fff;
  color: #fff;
  box-shadow: var(--shadow-fab);
}
.fab-widget__main:hover { background: #000; }
.fab-widget.is-open .fab-widget__main {
  background: var(--color-terracotta);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 14px 36px rgba(0, 0, 0, .38);
}
.fab-widget__icon > img { filter: none; }
.fab-widget__close-mark { color: #fff; }

/* Temporary statistics-number color test. */
.stats-strip__value { color: #fff; }

.hero__selector input::placeholder { font-weight: 700; }

/* ==========================================================================
   Course details — IU-reference redesign (sharp edges, site theme kept).
   Reference: iu.de/bachelor/psychologie — light hero with tilted envelope
   photo frame, marker-highlight title, anchor sub-nav, flat sections and a
   bottom contact/lead band. New cd-* namespace; checkout pages still use the
   legacy course-hero/enroll-card styles above.
   ========================================================================== */

.cd-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.cd-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}
.cd-hero__tag {
  display: inline-block;
  padding: 7px 14px;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.cd-hero__title {
  margin: 18px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: -.02em;
}
.cd-hero__mark {
  background: var(--color-terracotta);
  color: #fff;
  padding: 5px 16px 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cd-hero__lead {
  margin: 20px 0 0;
  max-width: 560px;
  color: var(--color-text);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.8;
}
.cd-hero__lang {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.cd-hero__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.cd-hero__meta span {
  color: var(--color-text-muted-2);
  font-size: 13px;
  font-weight: 600;
}
.cd-hero__meta i {
  margin-inline-end: 4px;
  color: var(--color-terracotta-dark);
}
.cd-hero__meta .bi-star-fill {
  color: #e5a718;
}
.cd-hero__meta small {
  color: var(--color-text-faint);
  font-weight: 500;
}
.cd-hero__instructor {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cd-hero__instructor-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}
.cd-hero__instructor > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-hero__instructor small {
  color: var(--color-text-faint);
  font-size: 11px;
}
.cd-hero__instructor strong {
  color: var(--color-text);
  font-size: 14.5px;
  font-weight: 750;
}

/* Envelope-style tilted photo frame (IU reference) */
.cd-hero__media {
  filter: drop-shadow(0 26px 40px rgba(10, 10, 11, .2));
}
.cd-envelope {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline-start: auto;
  aspect-ratio: 16 / 11;
  background: var(--color-terracotta);
  clip-path: polygon(2% 7%, 44% 4.2%, 47.5% 0%, 98.5% 3%, 96.8% 95.5%, .6% 98.5%);
  transform: rotate(-2.2deg);
}
.cd-envelope__inner {
  position: absolute;
  inset: 0;
  clip-path: polygon(4.4% 10.4%, 44.9% 7.6%, 48.4% 3.6%, 96.2% 6.4%, 94.6% 92.4%, 3% 95.2%);
  overflow: hidden;
}
.cd-envelope__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cd-envelope__inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cd-envelope__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 16, 15, .15), rgba(16, 16, 15, .55));
  transition: background .2s ease;
}
.cd-envelope__play:hover,
.cd-envelope__play:focus-visible {
  background: linear-gradient(180deg, rgba(16, 16, 15, .3), rgba(16, 16, 15, .68));
}
.cd-envelope__play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--color-terracotta);
  box-shadow: 0 10px 26px rgba(10, 10, 11, .35);
  font-size: 38px;
  line-height: 1;
  transition: transform .2s ease;
}
.cd-envelope__play:hover .cd-envelope__play-icon,
.cd-envelope__play:focus-visible .cd-envelope__play-icon {
  transform: scale(1.08);
}
.cd-envelope__play-label {
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(10, 10, 11, .5);
}
.cd-envelope__identity {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 36px;
  color: #fff;
  background: linear-gradient(145deg, #10100f 10%, #2d1b16 70%, #a63a21 145%);
}
.cd-envelope__pattern {
  position: absolute;
  width: 300px;
  height: 300px;
  top: -90px;
  inset-inline-start: -80px;
  border: 1px solid rgba(243, 74, 35, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(243, 74, 35, .06), 0 0 0 88px rgba(243, 74, 35, .035);
}
.cd-envelope__identity > i {
  position: absolute;
  top: 30px;
  inset-inline-end: 34px;
  color: var(--color-terracotta);
  font-size: 58px;
}
.cd-envelope__subject {
  position: relative;
  font-size: 25px;
  font-weight: 780;
}
.cd-envelope__grade {
  position: relative;
  margin-top: 6px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

/* Anchor sub-nav strip */
.cd-subnav {
  background: #fff;
  border-top: 1px solid var(--border-subtle);
}
.cd-subnav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
}
.cd-subnav__inner a {
  padding: 17px 0;
  color: var(--color-text-muted-2);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.cd-subnav__inner a:hover {
  color: var(--color-terracotta-dark);
  border-bottom-color: var(--color-terracotta);
}
.cd-subnav__contact {
  margin-inline-start: auto;
  color: var(--color-text) !important;
  font-weight: 750 !important;
}
.cd-subnav__contact:hover {
  color: var(--color-terracotta-dark) !important;
}

/* Layout + sections */
.cd-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: flex-start;
  background: #fff;
}
.cd-section {
  margin-bottom: 58px;
}
.cd-section:last-child {
  margin-bottom: 0;
}
.cd-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}
.cd-eyebrow--light {
  background: var(--color-terracotta);
}
.cd-section__title {
  margin: 14px 0 14px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-text);
}
.cd-section__text {
  margin: 0;
  color: var(--color-text-muted-2);
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-line;
}
.cd-section__hint {
  margin: -4px 0 18px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Curriculum accordion */
.cd-curriculum {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-curriculum__section {
  border: 1px solid rgba(23, 23, 22, .18);
  background: #fff;
}
.cd-curriculum__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 0;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out;
}
.cd-curriculum__header:hover {
  background: var(--color-bg-alt);
}
.cd-curriculum__side {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.cd-curriculum__meta {
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.cd-curriculum__header .bi-chevron-down {
  font-size: 14px;
  transition: transform var(--dur-base) ease-out;
}
.cd-curriculum__header[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}
.cd-lessons {
  list-style: none;
  margin: 0;
  padding: 4px 20px 14px;
}
.cd-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border-subtle-2);
}
.cd-lesson:first-child {
  border-top: 0;
}
.cd-lesson__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-terracotta-dark);
  font-size: 13px;
}
.cd-lesson__title {
  flex: 1;
  min-width: 0;
  color: var(--color-text-muted-2);
  font-size: 13.5px;
}
.cd-lesson--locked .cd-lesson__title {
  color: var(--color-text-faint);
}
.cd-lesson--locked .cd-lesson__icon {
  color: var(--color-text-faint);
}
.cd-lesson__preview {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--color-terracotta);
  color: var(--color-terracotta-dark);
  font-size: 11px;
  font-weight: 700;
}
.cd-lesson__duration {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

/* Instructor + reviews */
.cd-instructor {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(23, 23, 22, .18);
  background: #fff;
}
.cd-instructor__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 24px;
  font-weight: 780;
}
.cd-instructor__name {
  margin: 2px 0 8px;
  font-size: 17px;
  font-weight: 780;
  color: var(--color-text);
}
.cd-instructor__bio {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.85;
}
.cd-reviews {
  display: flex;
  flex-direction: column;
}
.cd-review {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cd-review:first-child {
  padding-top: 4px;
}
.cd-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-review__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 750;
}
.cd-review__name {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--color-text);
}
.cd-review__date {
  color: var(--color-text-faint);
  font-size: 11.5px;
}
.cd-review__stars {
  margin-inline-start: auto;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}
.cd-review__stars i {
  color: #e5a718;
}
.cd-review__comment {
  margin: 12px 0 0;
  color: var(--color-text-muted-2);
  font-size: 13.5px;
  line-height: 1.85;
}

/* Sticky enroll card */
.cd-aside {
  position: sticky;
  top: 96px;
}
.cd-enroll {
  border: 1px solid rgba(23, 23, 22, .2);
  background: #fff;
}
.cd-enroll__thumb {
  height: 158px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #10100f 10%, #2d1b16 70%, #a63a21 145%);
  overflow: hidden;
}
.cd-enroll__thumb i {
  color: var(--color-terracotta);
  font-size: 46px;
}
.cd-enroll__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-enroll__body {
  padding: 22px;
}
.cd-enroll__error {
  margin-bottom: 14px;
  padding: 11px 14px;
  background: rgba(243, 74, 35, .09);
  color: var(--color-terracotta-darker);
  font-size: 13px;
  font-weight: 600;
}
.cd-enroll__price {
  margin-bottom: 16px;
  color: var(--color-text);
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 31px;
  font-weight: 800;
}
.cd-enroll__price span {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}
.cd-enroll__cta {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: var(--color-terracotta);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out;
}
.cd-enroll__cta:hover {
  background: var(--color-terracotta-dark);
  color: #fff;
}
.cd-enroll__cta--ink {
  background: var(--color-navy-950);
}
.cd-enroll__cta--ink:hover {
  background: var(--color-navy-700);
}
.cd-enroll__status {
  padding: 13px 16px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted-2);
  font-size: 13.5px;
  font-weight: 650;
  text-align: center;
}
.cd-enroll__status--done {
  background: rgba(37, 160, 90, .12);
  color: #1a7f3d;
}
.cd-enroll__includes {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cd-enroll__includes li {
  color: var(--color-text-muted-2);
  font-size: 13px;
}
.cd-enroll__includes i {
  margin-inline-end: 7px;
  color: var(--color-terracotta-dark);
}
.cd-enroll__ask {
  display: block;
  margin-top: 16px;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.cd-enroll__ask:hover {
  color: var(--color-terracotta-dark);
}
.cd-enroll__ask i {
  margin-inline-end: 5px;
}

/* Bottom contact / lead band */
.cd-contact {
  background: #050505;
  color: #fff;
}
.cd-contact__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 76px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
  align-items: flex-start;
}
.cd-contact__title {
  margin: 16px 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cd-contact__text {
  margin: 0 0 22px;
  max-width: 520px;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.9;
}
.cd-contact__points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-contact__points li {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}
.cd-contact__points i {
  margin-inline-end: 9px;
  color: var(--color-terracotta);
  font-weight: 700;
}
.cd-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.cd-contact__phone > i {
  color: var(--color-terracotta);
  font-size: 22px;
}
.cd-contact__phone strong {
  display: block;
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 17px;
  font-weight: 750;
}
.cd-contact__phone small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}
.cd-contact__form {
  padding: 30px 28px 26px;
  background: #fff;
  color: var(--color-text);
}
.cd-contact__form-title {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 800;
}
.cd-contact__success {
  margin-bottom: 18px;
  padding: 13px 16px;
  background: #e7f6ec;
  border: 1px solid #bfe5cd;
  color: #1a7f3d;
  font-size: 13.5px;
  font-weight: 650;
}
.cd-contact__success i {
  margin-inline-end: 6px;
}
.cd-field {
  margin-bottom: 16px;
}
.cd-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
  color: var(--color-text);
}
.cd-field input,
.cd-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(23, 23, 22, .35);
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast) ease-out;
}
.cd-field input:focus,
.cd-field textarea:focus {
  border-color: var(--color-terracotta);
}
.cd-field input::placeholder,
.cd-field textarea::placeholder {
  color: var(--color-text-faint);
}
.cd-field textarea {
  resize: vertical;
  min-height: 96px;
}
.cd-field input.input-validation-error,
.cd-field textarea.input-validation-error {
  border-color: var(--color-terracotta-dark);
}
.cd-field .field-validation-error {
  display: block;
  margin-top: 6px;
  color: var(--color-terracotta-darker);
  font-size: 12px;
  font-weight: 600;
}
.cd-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  background: var(--color-terracotta);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out;
}
.cd-contact__submit:hover {
  background: var(--color-terracotta-dark);
}
.cd-contact__privacy {
  margin: 14px 0 0;
  color: var(--color-text-faint);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
}

/* Admin — course inquiries */
.admin-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 88px;
}
.admin-page__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}
.admin-page__title {
  margin: 14px 0 8px;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-text);
}
.admin-page__sub {
  margin: 0 0 30px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.admin-page__sub strong {
  color: var(--color-terracotta-dark);
}
.admin-empty {
  padding: 70px 24px;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  text-align: center;
}
.admin-empty__icon {
  font-size: 38px;
  color: var(--color-text-faint);
}
.admin-empty h2 {
  margin: 10px 0 6px;
  font-size: 19px;
  font-weight: 780;
  color: var(--color-text);
}
.admin-empty p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.admin-inquiries {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inquiry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
}
.inquiry-row--unread {
  border-inline-start: 3px solid var(--color-terracotta);
}
.inquiry-row__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.inquiry-row__badge {
  padding: 4px 10px;
  background: var(--color-terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.inquiry-row__course {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.inquiry-row__course:hover {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
}
.inquiry-row__date {
  margin-inline-start: auto;
  color: var(--color-text-faint);
  font-size: 12px;
  white-space: nowrap;
}
.inquiry-row__person {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.inquiry-row__name {
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 700;
}
.inquiry-row__contact {
  color: var(--color-text-muted-2);
  font-size: 13px;
  text-decoration: none;
}
.inquiry-row__contact:hover {
  color: var(--color-terracotta-dark);
}
.inquiry-row__person i {
  margin-inline-end: 5px;
  color: var(--color-text-muted);
}
.inquiry-row__message {
  margin: 14px 0 0;
  padding: 13px 16px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.inquiry-row__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}
.inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(23, 23, 22, .3);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.inquiry-btn:hover {
  background: var(--color-bg-alt);
}
.inquiry-btn--danger {
  border-color: rgba(179, 38, 30, .4);
  color: #b3261e;
}
.inquiry-btn--danger:hover {
  background: rgba(179, 38, 30, .06);
}

/* Course details + admin responsive */
@media (max-width: 1199.98px) {
  .cd-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
  }
  .cd-contact__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 44px;
  }
}
@media (max-width: 991.98px) {
  .cd-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 48px;
  }
  .cd-hero__media {
    order: -1;
  }
  .cd-envelope {
    margin-inline: auto;
  }
  .cd-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cd-aside {
    position: static;
    order: -1;
  }
  .cd-contact__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 56px 64px;
  }
}
@media (max-width: 575.98px) {
  .cd-hero__inner {
    padding: 36px 20px 40px;
  }
  .cd-hero__title {
    font-size: 24px;
    line-height: 1.85;
  }
  .cd-hero__lead {
    font-size: 15px;
  }
  .cd-subnav__inner {
    padding: 0 20px;
    gap: 20px;
  }
  .cd-layout {
    padding: 44px 20px 56px;
  }
  .cd-section__title {
    font-size: 23px;
  }
  .cd-curriculum__meta {
    display: none;
  }
  .cd-contact__inner {
    padding-inline: 20px;
  }
  .cd-contact__form {
    padding: 24px 18px 20px;
  }
  .admin-page {
    padding: 40px 20px 64px;
  }
  .inquiry-row {
    grid-template-columns: 1fr;
  }
  .inquiry-row__actions {
    flex-direction: row;
  }
  .inquiry-row__date {
    margin-inline-start: 0;
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Admin panel — sharp-edged shell matching the IU-style redesign.
   ========================================================================== */

.admin-head {
  background: #050505;
  color: #fff;
}
.admin-head__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 34px;
}
.admin-head__title {
  margin: 14px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.admin-head .admin-page__eyebrow {
  background: var(--color-terracotta);
}

.admin-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle-3);
}
.admin-tabs__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.admin-tabs__link {
  padding: 15px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted-2);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.admin-tabs__link:hover {
  color: var(--color-text);
}
.admin-tabs__link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-terracotta);
}

.admin-flash {
  max-width: 1320px;
  margin: 20px auto -14px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 650;
}
.admin-flash i {
  margin-inline-end: 7px;
}
.admin-flash--ok {
  background: #e7f6ec;
  border: 1px solid #bfe5cd;
  color: #1a7f3d;
}
.admin-flash--error {
  background: rgba(243, 74, 35, .08);
  border: 1px solid rgba(243, 74, 35, .35);
  color: var(--color-terracotta-darker);
}

.admin-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 32px 88px;
}
.admin-page__sub {
  margin: 0 0 22px;
}

/* Dashboard */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
a.admin-stat:hover {
  border-color: var(--color-navy-950);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  color: var(--color-text);
}
.admin-stat__value {
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.admin-stat__label {
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.admin-stat--alert {
  border-color: var(--color-terracotta);
}
.admin-stat--alert .admin-stat__value {
  color: var(--color-terracotta-dark);
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.admin-panel {
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  padding: 20px 22px;
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-panel__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 780;
}
.admin-panel__head a {
  color: var(--color-terracotta-dark);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.admin-panel__head a:hover {
  text-decoration: underline;
}
.admin-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-panel__list li {
  padding: 11px 0;
  border-top: 1px solid var(--border-subtle-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.admin-panel__row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-panel__row-top strong {
  font-weight: 700;
}
.admin-panel__muted {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 12px;
}
.admin-panel__row-top .admin-panel__muted {
  margin-inline-start: auto;
}
.admin-panel__empty {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

/* Toolbar + buttons */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.admin-toolbar__hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(23, 23, 22, .3);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.admin-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.admin-btn--primary {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #fff;
}
.admin-btn--primary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #fff;
}
.admin-btn--danger {
  border-color: rgba(179, 38, 30, .4);
  color: #b3261e;
}
.admin-btn--danger:hover {
  background: rgba(179, 38, 30, .06);
  color: #b3261e;
}
.admin-btn[disabled] {
  opacity: .35;
  pointer-events: none;
}
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-text-muted-2);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.admin-back:hover {
  color: var(--color-terracotta-dark);
}
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tables */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table thead th {
  padding: 13px 16px;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: start;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--border-subtle-2);
  vertical-align: middle;
}
.admin-table tbody tr:hover td {
  background: rgba(242, 241, 241, .55);
}
.admin-table__title {
  display: block;
  color: var(--color-text);
  font-weight: 750;
  text-decoration: none;
}
a.admin-table__title:hover {
  color: var(--color-terracotta-dark);
}
.admin-table a:not(.admin-btn):not(.admin-table__title) {
  color: var(--color-text-muted-2);
  text-decoration: none;
}
.admin-table a:not(.admin-btn):not(.admin-table__title):hover {
  color: var(--color-terracotta-dark);
}

.admin-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.admin-chip--ok {
  background: #e7f6ec;
  color: #1a7f3d;
}
.admin-chip--muted {
  background: var(--color-bg-alt);
  color: var(--color-text-muted-2);
}
.admin-chip--accent {
  background: var(--color-terracotta);
  color: #fff;
}

/* Forms */
.admin-form {
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  padding: 26px;
}
.admin-form--narrow {
  max-width: 620px;
}
.admin-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: flex-start;
}
.admin-form__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}
.admin-form__thumb {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle-3);
}
.admin-form__thumb--logo {
  width: auto;
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}
.admin-form__hint {
  display: block;
  margin-top: 7px;
  color: var(--color-text-faint);
  font-size: 12px;
  line-height: 1.7;
}
.cd-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(23, 23, 22, .35);
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease-out;
}
.cd-field select:focus {
  border-color: var(--color-terracotta);
}
.cd-field input[type="file"] {
  padding: 10px;
  border-style: dashed;
  cursor: pointer;
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted-2);
  cursor: pointer;
}
.admin-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--color-terracotta);
}

.admin-inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.admin-inline-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid rgba(23, 23, 22, .35);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.admin-inline-form input[type="number"] {
  padding: 11px 14px;
  border: 1.5px solid rgba(23, 23, 22, .35);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.admin-inline-form input:focus {
  border-color: var(--color-terracotta);
}

/* Curriculum builder */
.admin-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-section {
  border: 1px solid rgba(23, 23, 22, .18);
  background: #fff;
}
.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--color-bg-alt);
}
.admin-section__rename {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-section__number {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
.admin-section__rename input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid rgba(23, 23, 22, .25);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.admin-section__rename input:focus {
  border-color: var(--color-terracotta);
}
.admin-lessons {
  list-style: none;
  margin: 0;
  padding: 6px 18px 12px;
}
.admin-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle-2);
}
.admin-lesson:first-child {
  border-top: 0;
}
.admin-lesson__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-terracotta-dark);
  font-size: 13px;
}
.admin-lesson__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-lesson__duration {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-size: 12.5px;
}
.admin-section .admin-panel__empty {
  padding: 12px 18px 16px;
}

/* Accreditation logo cards */
.admin-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-logo-card {
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-logo-card--off {
  opacity: .55;
}
.admin-logo-card__img {
  height: 110px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.admin-logo-card__img img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}
.admin-logo-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-logo-card__body strong {
  font-size: 13.5px;
  font-weight: 750;
}

/* Site images manager */
.admin-site-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-image-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
  padding: 16px 20px;
}
.admin-image-row__preview {
  height: 96px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.admin-image-row__preview--dark {
  background: #171716;
}
.admin-image-row__preview img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.admin-image-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-image-row__info strong {
  font-size: 14.5px;
  font-weight: 750;
}
.admin-image-row__form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-image-row__form input[type="file"] {
  max-width: 230px;
  font-size: 12.5px;
}

/* Enrollment filter tabs + grade rows */
.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-filter-tabs a {
  padding: 9px 16px;
  border: 1px solid rgba(23, 23, 22, .3);
  background: #fff;
  color: var(--color-text-muted-2);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.admin-filter-tabs a:hover {
  background: var(--color-bg-alt);
}
.admin-filter-tabs a.is-active {
  background: var(--color-navy-950);
  border-color: var(--color-navy-950);
  color: #fff;
}
.admin-grade-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border-subtle-2);
}
.admin-grade-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid rgba(23, 23, 22, .25);
  border-radius: 0;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.admin-grade-row input[type="number"] {
  width: 90px;
  padding: 9px 12px;
  border: 1.5px solid rgba(23, 23, 22, .25);
  border-radius: 0;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.admin-grade-row input:focus {
  border-color: var(--color-terracotta);
}

/* Admin responsive */
@media (max-width: 1199.98px) {
  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .admin-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-image-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .admin-image-row__form {
    grid-column: 1 / -1;
  }
}
@media (max-width: 575.98px) {
  .admin-head__inner,
  .admin-tabs__inner {
    padding-inline: 20px;
  }
  .admin-page {
    padding: 26px 20px 64px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-logos {
    grid-template-columns: 1fr;
  }
  .admin-inline-form {
    flex-wrap: wrap;
  }
  .admin-image-row {
    grid-template-columns: 1fr;
  }
}

/* Sharp-edge pass: square off Bootstrap-styled surfaces (account dropdown). */
.dropdown-menu {
  border-radius: 0;
}

/* Navbar menu manager */
.admin-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.admin-menu-groups section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-menu-groups__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}
.admin-menu-groups__title i {
  margin-inline-end: 8px;
  color: var(--color-terracotta-dark);
}
.admin-menu-cat__name {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14.5px;
}
.admin-menu-cat__name > i {
  font-size: 18px;
  color: var(--color-terracotta-dark);
}
.admin-menu-cat--hidden > .admin-section__head {
  opacity: .6;
}
.admin-menu-course--hidden .admin-lesson__icon,
.admin-menu-course--hidden .admin-lesson__title {
  opacity: .5;
}

/* Admin — teachers */
.admin-teachers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-teacher-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(23, 23, 22, .16);
  background: #fff;
}
.admin-teacher-card__avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 27px;
  font-weight: 780;
}
.admin-teacher-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-teacher-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
}
.admin-teacher-card__body strong {
  font-weight: 780;
}
.admin-teacher-card__body a {
  text-decoration: none;
}
.admin-teacher-card__bio {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home — real teacher cards (photo or initial) */
.teacher-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher-card__initial {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-terracotta);
}

@media (max-width: 767.98px) {
  .admin-teachers {
    grid-template-columns: 1fr;
  }
}

/* Clip teacher photos to the circular avatar */
.teacher-card__avatar {
  overflow: hidden;
}

/* Two-step hint on the course create form + status pages */
.admin-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid rgba(23, 23, 22, .16);
  background: var(--color-bg-alt);
}
.admin-steps > i {
  color: var(--color-text-muted);
}
.admin-steps__step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-text-muted-2);
  font-size: 13px;
  font-weight: 650;
}
.admin-steps__step strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid rgba(23, 23, 22, .35);
  font-size: 13px;
}
.admin-steps__step.is-active strong {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #fff;
}
.admin-steps__step small {
  color: var(--color-text-faint);
  font-size: 11.5px;
}

.status-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  text-align: center;
}
.status-page__code {
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-terracotta);
}
.status-page__title {
  margin: 18px 0 10px;
  font-size: 27px;
  font-weight: 800;
  color: var(--color-text);
}
.status-page__message {
  margin: 0 0 26px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.status-page__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Navbar direct-contact block: socials pinned to the far left edge, with the
   phone + email filling the freed space beside them. */
.site-navbar__contact {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-navbar__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted-2);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease-out;
}
.site-navbar__contact-item i {
  color: var(--color-terracotta-dark);
  font-size: 14px;
}
.site-navbar__contact-item:hover {
  color: var(--color-terracotta-dark);
}
/* The auto margin that used to push the socials now lives on the contact
   block, so the socials sit flush at the line's end. */
.site-navbar__socials {
  margin-inline-start: 0;
}

@media (max-width: 1499.98px) {
  .site-navbar__contact-item--email { display: none; }
  .site-navbar__socials a:nth-last-child(-n+2) { display: none; }
}
@media (max-width: 1199.98px) {
  .site-navbar__contact { display: none; }
}

/* Hero selector — IU-style pair of dropdowns (kind + interest) */
.custom-select--kind {
  width: 150px;
}
.custom-select--interest {
  flex: 1;
  width: auto;
  min-width: 0;
}
.custom-select__trigger [data-select-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select__trigger .is-placeholder {
  color: var(--color-text-muted);
}
@media (max-width: 575.98px) {
  .hero__selector {
    flex-wrap: wrap;
    padding: 12px;
  }
  .custom-select--kind,
  .custom-select--interest {
    width: 100%;
    flex: none;
  }
  .hero__selector > button {
    width: 100%;
  }
}

/* Full-bleed intro video: flush left edge stays sharp, the inner (right)
   corners get a soft radius. Falls back to square when the layout stacks. */
.intro-video__grid .video-wrap {
  border-radius: 0 24px 24px 0;
}
@media (max-width: 991.98px) {
  .intro-video__grid .video-wrap {
    border-radius: 0;
  }
}

/* Diplomas mega menu: placeholder line for categories awaiting courses */
.mega-menu__soon {
  display: block;
  padding: 6px 0;
  color: var(--color-text-faint);
  font-size: 12.5px;
}

/* ==========================================================================
   Exclusive offers — flip-clock countdown band (replaces the old features
   section). Warm gold gradient per client: #C58C2F -> #D2A759 -> #F1C85D.
   ========================================================================== */

:root {
  --gold-gradient: linear-gradient(180deg, #C58C2F 0%, #D2A759 50%, #F1C85D 100%);
  --gold-mid: #D2A759;
}

.offer-section {
  background: #0b0b0a;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #C58C2F 0%, #D2A759 50%, #F1C85D 100%) 1;
  color: #fff;
}
.offer-section__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 76px 32px 80px;
  text-align: center;
}
.offer-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--gold-gradient);
  color: #171716;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .03em;
}
.offer-section__title {
  margin: 20px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.offer-section__desc {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, .65);
  font-size: 15px;
  line-height: 1.9;
}

/* Flip-clock tiles */
.offer-countdown {
  margin-top: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.offer-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.offer-countdown__tile {
  position: relative;
  min-width: 104px;
  padding: 22px 10px;
  background: linear-gradient(180deg, #201f1e 0%, #131312 100%);
  border: 1px solid rgba(210, 167, 89, .35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
}
.offer-countdown__tile span {
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.offer-countdown__unit small {
  color: var(--gold-mid);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .08em;
}
.offer-countdown__sep {
  align-self: flex-start;
  padding-top: 24px;
  color: rgba(210, 167, 89, .8);
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

/* Offer course cards */
.offer-courses {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: start;
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  background: #fff;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #C58C2F 0%, #D2A759 50%, #F1C85D 100%) 1;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
  color: var(--color-text);
}
.offer-card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--gold-gradient);
  color: #171716;
  font-size: 11px;
  font-weight: 800;
}
.offer-card__title {
  margin: 6px 0 0;
  font-size: 16.5px;
  font-weight: 780;
  line-height: 1.6;
}
.offer-card__meta {
  color: var(--color-text-muted);
  font-size: 12.5px;
}
.offer-card__footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.offer-card__price {
  font-family: 'Montserrat', var(--font-arabic);
  font-size: 18px;
  font-weight: 800;
}
.offer-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--gold-gradient);
  color: #171716;
  font-size: 12.5px;
  font-weight: 800;
  transition: filter var(--dur-fast) ease-out;
}
.offer-card:hover .offer-card__cta {
  filter: brightness(1.06);
}

/* Admin: offer course picker */
.admin-offer-picker {
  max-height: 320px;
  overflow-y: auto;
  border: 1.5px solid rgba(23, 23, 22, .25);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-offer-pick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13.5px;
  cursor: pointer;
}
.admin-offer-pick:hover {
  background: var(--color-bg-alt);
}
.admin-offer-pick input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-terracotta);
}
.admin-offer-pick__title {
  font-weight: 700;
}
.admin-offer-pick--draft .admin-offer-pick__title {
  color: var(--color-text-muted);
}

@media (max-width: 991.98px) {
  .offer-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-countdown__tile {
    min-width: 84px;
    padding: 18px 8px;
  }
  .offer-countdown__tile span {
    font-size: 40px;
  }
}
@media (max-width: 575.98px) {
  .offer-section__inner {
    padding: 54px 20px 58px;
  }
  .offer-countdown {
    gap: 8px;
  }
  .offer-countdown__sep {
    display: none;
  }
  .offer-countdown__tile {
    min-width: 70px;
    padding: 14px 6px;
  }
  .offer-countdown__tile span {
    font-size: 30px;
  }
  .offer-courses {
    grid-template-columns: 1fr;
  }
}

/* Home departments grid (replaces the teacher cards) — taller vertical cards:
   department name on top, teacher count beneath. */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.dept-card {
  position: relative;
  min-height: 320px;
  padding: 44px 26px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(23, 23, 22, .14);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.dept-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-terracotta);
  box-shadow: 0 20px 44px rgba(10, 10, 11, .12);
  color: var(--color-text);
}
.dept-card__icon {
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  background: rgba(243, 74, 35, .09);
  color: var(--color-terracotta);
  font-size: 38px;
}
.dept-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.dept-card__count {
  color: var(--color-terracotta-dark);
  font-size: 14.5px;
  font-weight: 750;
}
.dept-card__meta {
  color: var(--color-text-muted);
  font-size: 12.5px;
}
.dept-card__arrow {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  color: var(--color-text-faint);
  font-size: 18px;
  transition: color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.dept-card:hover .dept-card__arrow {
  color: var(--color-terracotta-dark);
  transform: translateX(50%) translateX(-4px);
}

@media (max-width: 1199.98px) {
  .dept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dept-card {
    min-height: 270px;
    padding: 34px 20px 52px;
  }
}
@media (max-width: 575.98px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Course details hero — enlarged IU-style folder: the framed visual now
   bleeds from the page's left edge toward the center at full hero height,
   with the folder-tab notch on its top edge (mirrored for RTL).
   ========================================================================== */

.cd-hero__inner {
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: stretch;
}
.cd-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 64px;
  /* RTL: inline-start = right — keep the regular page gutter on the text side */
  padding-inline-start: max(calc((100vw - 1320px) / 2 + 32px), 32px);
}
.cd-hero__media {
  display: flex;
}
.cd-envelope {
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 560px;
  margin: 0;
  aspect-ratio: auto;
  transform: none;
  clip-path: polygon(0 3.5%, 52% 6.2%, 55.5% 0, 99.4% 7.5%, 94.5% 100%, 0 100%);
}
.cd-envelope__inner {
  clip-path: polygon(1% 6.8%, 52.3% 9.2%, 55.9% 3.4%, 98% 10.4%, 93.2% 97.6%, 1% 97.6%);
}
.cd-envelope__identity {
  padding: 48px 52px;
}
.cd-envelope__pattern {
  width: 460px;
  height: 460px;
  top: -120px;
  inset-inline-start: -110px;
  box-shadow: 0 0 0 64px rgba(243, 74, 35, .06), 0 0 0 128px rgba(243, 74, 35, .035);
}
.cd-envelope__identity > i {
  top: 15%;
  inset-inline-end: 12%;
  font-size: 88px;
}
.cd-envelope__subject {
  font-size: 34px;
}
.cd-envelope__grade {
  margin-top: 8px;
  font-size: 15px;
}

@media (max-width: 1199.98px) {
  .cd-envelope {
    min-height: 470px;
  }
}
@media (max-width: 991.98px) {
  .cd-hero__inner {
    padding-block: 0;
    gap: 36px;
  }
  .cd-hero__copy {
    padding: 6px 32px 48px;
    padding-inline-start: 32px;
  }
  .cd-envelope {
    min-height: 360px;
    margin-inline: 0;
    clip-path: polygon(0 5%, 52% 8%, 56.5% 0, 99% 9.5%, 96% 100%, 0 100%);
  }
  .cd-envelope__identity {
    padding: 30px;
  }
  .cd-envelope__subject {
    font-size: 25px;
  }
  .cd-envelope__identity > i {
    font-size: 56px;
  }
}
@media (max-width: 575.98px) {
  .cd-hero__copy {
    padding: 0 20px 40px;
    padding-inline-start: 20px;
  }
  .cd-envelope {
    min-height: 280px;
  }
}

/* ==========================================================================
   Courses catalog hero — redesigned: layered gradients and glows, decorative
   ring, gradient headline and accent bar (replaces the flat marker block).
   ========================================================================== */

.courses-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px circle at 88% 25%, rgba(243, 74, 35, .2), transparent 62%),
    radial-gradient(720px circle at 6% 115%, rgba(136, 53, 31, .42), transparent 62%),
    linear-gradient(168deg, #0c0c0b 28%, #16110e 78%, #1c130e 100%);
}
.courses-hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  inset-inline-end: -170px;
  top: -190px;
  border: 1px solid rgba(243, 74, 35, .35);
  box-shadow: 0 0 0 72px rgba(243, 74, 35, .05), 0 0 0 150px rgba(243, 74, 35, .028);
  pointer-events: none;
}
.courses-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(243, 74, 35, .08));
  pointer-events: none;
}
.courses-hero__inner {
  position: relative;
  z-index: 1;
  padding: 92px 32px 80px;
}
.courses-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #F09E89;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: .05em;
}
.courses-hero__kicker i {
  color: var(--color-terracotta);
  font-size: 17px;
}
.courses-hero__title {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.courses-hero__grad {
  background: linear-gradient(90deg, #F34A23 0%, #F09E89 52%, #D2A759 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.courses-hero__bar {
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--color-terracotta), rgba(243, 74, 35, 0));
}
.courses-hero__sub {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .62);
  font-size: 15.5px;
  line-height: 1.95;
}
.courses-hero__sub strong {
  margin-inline-end: 4px;
  padding: 2px 12px;
  background: rgba(243, 74, 35, .16);
  border: 1px solid rgba(243, 74, 35, .5);
  color: #fff;
  font-family: 'Montserrat', var(--font-arabic);
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .courses-hero__inner {
    padding: 56px 20px 50px;
  }
  .courses-hero__title {
    font-size: 30px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Courses filter sidebar — rebuilt to match the IU reference: always-visible
   radio group on top, accordion sections with big titles and +/− toggles,
   circular radios / square checkboxes filled in ink, RESET link at the end.
   ========================================================================== */

.filters-sidebar__header {
  display: none;
}

.fs-top {
  list-style: none;
  margin: 0;
  padding: 4px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid #d9d8d6;
}
.fs-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-radio,
.fs-check {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur-fast) ease-out;
}
.fs-radio:hover,
.fs-check:hover {
  color: var(--color-terracotta-dark);
}
.fs-num {
  color: var(--color-text-muted);
  font-size: 13px;
}

.fs-radio__dot {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid #767674;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color var(--dur-fast) ease-out;
}
.fs-radio:hover .fs-radio__dot {
  border-color: var(--color-text);
}
.fs-radio.is-checked {
  font-weight: 700;
}
.fs-radio.is-checked .fs-radio__dot {
  border-width: 2px;
  border-color: var(--color-text);
}
.fs-radio.is-checked .fs-radio__dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text);
}

.fs-check__box {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 1.5px solid #767674;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 15px;
  transition: border-color var(--dur-fast) ease-out, background var(--dur-fast) ease-out;
}
.fs-check:hover .fs-check__box {
  border-color: var(--color-text);
}
.fs-check.is-checked {
  font-weight: 700;
}
.fs-check.is-checked .fs-check__box {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.fs-group {
  border-bottom: 1px solid #d9d8d6;
}
.fs-group__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  color: var(--color-text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  user-select: none;
}
.fs-group__summary::-webkit-details-marker {
  display: none;
}
.fs-group__summary::after {
  content: "+";
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-text);
}
.fs-group[open] .fs-group__summary::after {
  content: "\2212";
}

.fs-reset {
  display: inline-block;
  margin-top: 26px;
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.fs-reset:hover {
  color: var(--color-terracotta-dark);
}

@media (max-width: 991.98px) {
  .filters-sidebar__header {
    display: flex;
  }
}

.admin-filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(23, 23, 22, .25);
  border-radius: 0;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.admin-filter-input:focus {
  border-color: var(--color-terracotta);
}

.admin-settings-heading {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}
.admin-settings-heading:not(:first-child) {
  margin-top: 30px;
}
.admin-settings-heading i {
  margin-inline-end: 8px;
  color: var(--color-terracotta-dark);
}

/* Fix: gradient-clipped headline was cutting Arabic descenders — give the
   painted text box extra bottom room and looser line height. */
.courses-hero__title {
  line-height: 1.5;
}
.courses-hero__grad {
  display: inline-block;
  padding-bottom: .22em;
  margin-bottom: -.22em;
}

/* Course details folder: nudge the subject/grade labels away from the frame
   edge (inline-start margin pushes leftward in RTL). */
.cd-envelope__subject,
.cd-envelope__grade {
  margin-inline-start: 38px;
}
@media (max-width: 991.98px) {
  .cd-envelope__subject,
  .cd-envelope__grade {
    margin-inline-start: 22px;
  }
}

/* ---------------------------------------------------------------------------
   Navbar fit + floating widget hit-testing.
   Added after the account area was restored to the navbar: the extra ~196px
   pushed the social icons past the left edge at some widths (1535 and 1280
   were both clipping). The socials are decorative and duplicated in the
   footer, so they yield first; the account controls and contact details stay.
   --------------------------------------------------------------------------- */
.site-navbar__inner {
  flex-wrap: nowrap;
}
.site-navbar__contact,
.site-navbar__socials {
  min-width: 0;
}
/* The long email (info@innovationgroupjo.com) costs ~218px and is repeated
   in the footer, so it yields before the social icons do. */
@media (max-width: 1699.98px) {
  .site-navbar__contact-item--email {
    display: none;
  }
}
@media (max-width: 1365.98px) {
  .site-navbar__inner {
    gap: 20px;
  }
}

/* The contact widget is a full-width fixed container whose visible part is
   only the button. Without this it intercepted taps across a 366x328 area at
   the bottom of a phone screen, so links underneath did nothing. */
.fab-widget,
.fab-widget__backdrop {
  pointer-events: none;
}
.fab-widget > *,
.fab-widget__main,
.fab-widget__item,
.fab-widget__pill {
  pointer-events: auto;
}
.fab-widget.is-open,
.fab-widget.is-open .fab-widget__backdrop {
  pointer-events: auto;
}

/* ---------------------------------------------------------------------------
   Account controls sit in the white navbar, not the old black utility bar.
   The rule near .site-navbar__utility still paints them rgba(255,255,255,.78),
   which rendered them white-on-white and effectively invisible. These
   overrides are scoped under .site-navbar so a real utility bar, if one is
   reintroduced, keeps its own light-on-dark treatment.
   --------------------------------------------------------------------------- */
.site-navbar .site-navbar__utility-account .site-navbar__login-btn,
.site-navbar .site-navbar__utility-account .site-navbar__dropdown {
  color: var(--color-navy-950);
  font-size: 14px;
  padding: 8px 10px;
}
.site-navbar .site-navbar__utility-account .site-navbar__login-btn:hover,
.site-navbar .site-navbar__utility-account .site-navbar__dropdown:hover {
  color: var(--color-terracotta-dark);
}
/* إنشاء حساب is the primary conversion action, so it reads as a button. */
.site-navbar .site-navbar__utility-account .site-navbar__cta {
  background: var(--color-terracotta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md-2);
}
.site-navbar .site-navbar__utility-account .site-navbar__cta:hover {
  background: var(--color-terracotta-dark);
  color: #fff;
}
