/**
 * Premium header + hero (DEWA-inspired UX)
 * BEM: gate-site-header, gate-hero-*
 */

:root {
  --gate-brand: #ff6400;
  --gate-brand-dark: #e55a00;
  --gate-ink: #0b1220;
  --gate-muted: #5b667a;
  --gate-header-h: 72px;
  /* Set by gate-site-header.js from real #gateSiteHeader height (logos strip + menu) */
  --gate-hero-header-offset: 148px;
}

/* Global typography (Plus Jakarta Sans linked in theme2 header) */
body.theme-light {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Site header --- */
.gate-site-header {
  width: 100%;
  z-index: 1040;
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.gate-site-header__bar {
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

/* Top row: partner logo (start) + main logo (end) — full width like DEWA */
.gate-site-header__logos-strip {
  width: 100%;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.gate-site-header__logos-strip__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  width: 100%;
  padding: 0.65rem clamp(0.5rem, 2vw, 1.25rem);
}

.gate-site-header__brand--push-end {
  margin-inline-start: auto;
}

.gate-site-header__logos-strip .gate-site-header__brand img {
  max-height: clamp(40px, 7vw, 62px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.gate-site-header--overlap:not(.is-scrolled) .gate-site-header__logos-strip {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Logos keep original colours (no invert) on hero overlap */

/* Menu bar: minimal side padding, links start from logical “start” of the row */
.gate-site-header__inner--menubar.container-fluid {
  padding-left: clamp(0.5rem, 1.5vw, 0.85rem);
  padding-right: clamp(0.5rem, 1.5vw, 0.85rem);
}

.gate-site-header__nav--leading {
  justify-content: flex-start;
}

.gate-site-header__nav--leading .gate-nav-primary {
  justify-content: flex-start;
}

.gate-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--gate-header-h);
  flex-wrap: nowrap;
}

/* Avoid Bootstrap .navbar default wrap/padding conflicting with our single-row bar */
.gate-site-header__inner.navbar {
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
}

.gate-site-header__brand img {
  max-height: 48px;
  width: auto;
  display: block;
}

.gate-site-header__scroll-brand {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  margin-top: 0;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gate-site-header__scroll-brand img {
  max-height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Homepage: sit over hero until scroll */
.gate-site-header--overlap:not(.is-scrolled) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-site-header__bar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-nav-primary .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.gate-site-header--overlap:not(.is-scrolled) .gate-nav-primary .nav-link:hover,
.gate-site-header--overlap:not(.is-scrolled) .gate-nav-primary .nav-link.active {
  color: #fff !important;
}

/* Sticky / scrolled */
.gate-site-header.is-scrolled {
  position: relative;
}

.gate-site-header.is-scrolled .gate-site-header__bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1045;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(11, 18, 32, 0.1);
}

.gate-site-header:not(.gate-site-header--overlap) {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gate-site-header.is-scrolled .gate-site-header__scroll-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gate-site-header.is-scrolled .gate-nav-primary .nav-link {
  color: var(--gate-ink) !important;
}

.gate-site-header.is-scrolled .gate-nav-primary .nav-link:hover,
.gate-site-header.is-scrolled .gate-nav-primary .nav-link.active {
  color: var(--gate-brand) !important;
}

/* Inner pages (no overlap) */
.gate-site-header:not(.gate-site-header--overlap) .gate-nav-primary .nav-link {
  color: var(--gate-ink) !important;
}

.gate-site-header:not(.gate-site-header--overlap) .gate-nav-primary .nav-link:hover,
.gate-site-header:not(.gate-site-header--overlap) .gate-nav-primary .nav-link.active {
  color: var(--gate-brand) !important;
}

/* Nav */
.gate-site-header__collapse {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .gate-site-header__collapse {
    flex-wrap: nowrap;
  }

  /*
   * Bootstrap sets .collapse:not(.show) { display: none } with higher specificity than
   * .gate-site-header__collapse alone. Theme CSS loaded after Bootstrap can also interfere
   * with .navbar-expand-lg .navbar-collapse. Force the nav row visible on desktop.
   */
  .gate-site-header .gate-site-header__collapse.collapse.navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }
}

.gate-site-header__nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
 
}

.gate-nav-primary {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.gate-nav-primary .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.gate-nav-primary .nav-link.active {
  position: relative;
}

.gate-nav-item {
  position: relative;
}

.gate-nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(11, 18, 32, 0.18);
  padding: 0.5rem;
  margin: 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.gate-nav-item--has-sub:hover .gate-nav-submenu,
.gate-nav-item--has-sub:focus-within .gate-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

html[dir="rtl"] .gate-nav-submenu {
  right: 0;
}

html[dir="ltr"] .gate-nav-submenu {
  left: 0;
}

.gate-nav-submenu__link {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: #3a3a3a !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s, background-color 0.2s;
}

.gate-nav-submenu__link:hover,
.gate-nav-submenu__link.is-active {
  color: var(--gate-brand) !important;
  background: rgba(255, 100, 0, 0.08);
}

.gate-nav-primary .nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

html[dir="rtl"] .gate-nav-primary .nav-link::after {
  transform-origin: right center;
}

.gate-site-header:not(.gate-site-header--overlap) .gate-nav-primary .nav-link::after,
.gate-site-header.is-scrolled .gate-nav-primary .nav-link::after {
  background: var(--gate-brand);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-nav-primary .nav-link::after {
  background: #fff;
}

.gate-nav-primary .nav-link:hover::after,
.gate-nav-primary .nav-link:focus-visible::after,
.gate-nav-primary .nav-link.active::after {
  transform: scaleX(1);
}

.gate-site-header:not(.gate-site-header--overlap) .gate-nav-primary .nav-link.active::after,
.gate-site-header.is-scrolled .gate-nav-primary .nav-link.active::after {
  background: var(--gate-brand);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-nav-primary .nav-link.active::after {
  background: #fff;
}

/* Actions / CTAs */
.gate-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.gate-btn--primary {
  background: var(--gate-brand);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 100, 0, 0.35);
}

.gate-btn--primary:hover {
  background: var(--gate-brand-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.gate-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

@keyframes gate-training-shake {
  0%,
  100% {
    transform: translateY(-3px) scale(1.03) translateX(0);
  }
  15% {
    transform: translateY(-3px) scale(1.03) translateX(-5px);
  }
  30% {
    transform: translateY(-3px) scale(1.03) translateX(5px);
  }
  45% {
    transform: translateY(-3px) scale(1.03) translateX(-4px);
  }
  60% {
    transform: translateY(-3px) scale(1.03) translateX(4px);
  }
  75% {
    transform: translateY(-3px) scale(1.03) translateX(-2px);
  }
  90% {
    transform: translateY(-3px) scale(1.03) translateX(2px);
  }
}

.gate-btn--training-platform {
  background: #ff6400;
  color: #fff !important;
  border: 2px solid #ffffff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.5rem 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    filter 0.3s ease;
}

.gate-btn--training-platform::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.gate-btn--training-platform:hover,
.gate-btn--training-platform:focus-visible {
  box-shadow:
    0 8px 24px rgba(255, 100, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.15);
  animation: none;
  transform: none;
}

.gate-btn--training-platform:hover::after,
.gate-btn--training-platform:focus-visible::after {
  transform: scaleX(1);
}

.gate-btn--training-platform:active {
  animation: none;
  transform: translateY(-1px) scale(1.01);
  transition-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .gate-btn--training-platform:hover,
  .gate-btn--training-platform:focus-visible {
    animation: none;
    transform: none;
  }
}

.gate-site-header:not(.gate-site-header--overlap) .gate-btn--ghost,
.gate-site-header.is-scrolled .gate-btn--ghost {
  background: transparent;
  color: var(--gate-ink) !important;
  border-color: rgba(11, 18, 32, 0.15);
}

.gate-btn--outline {
  background: transparent;
  color: var(--gate-ink) !important;
  border-color: rgba(11, 18, 32, 0.2);
}

.gate-btn--lang {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.85rem;
}

.gate-site-header:not(.gate-site-header--overlap) .gate-btn--lang,
.gate-site-header.is-scrolled .gate-btn--lang {
  background: #fff;
  color: var(--gate-ink) !important;
  border-color: rgba(11, 18, 32, 0.12);
}

.gate-lang__menu {
  min-width: 10rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
}

.gate-site-header__icon-btn {
  position: relative;
  color: inherit;
  font-size: 1.35rem;
  padding: 0.35rem;
}

.gate-site-header--overlap:not(.is-scrolled) .gate-site-header__icon-btn {
  color: #fff;
}

.gate-site-header__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background: var(--gate-brand);
  color: #fff;
  border-radius: 999px;
}

/* Mobile nav toggler: dark gradient pad + white hamburger bars */
.gate-site-header__toggler {
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #5c5c5c 0%, #2a2a2a 48%, #121212 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.gate-site-header__toggler:hover {
  filter: brightness(1.08);
}

.gate-site-header__toggler:focus-visible {
  outline: 2px solid var(--gate-brand);
  outline-offset: 2px;
}

.gate-site-header__toggler-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-site-header__toggler {
  border-color: rgba(0, 0, 0, 0.5);
}

.gate-site-header:not(.gate-site-header--overlap) .gate-site-header__toggler,
.gate-site-header.is-scrolled .gate-site-header__toggler {
  border-color: rgba(0, 0, 0, 0.4);
}

/* Mobile header: training (inline-end) + lang & menu (inline-start) */
.gate-site-header__mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-inline-start: auto;
}

.gate-site-header__mobile-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.gate-site-header__mobile-training {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

html[dir="ltr"] .gate-site-header__mobile-bar {
  flex-direction: row-reverse;
}

@media (max-width: 991.98px) {
  .gate-site-header__mobile-bar {
    display: flex;
  }

  .gate-site-header__mobile-training .gate-btn--training-platform {
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }

  .gate-site-header__mobile-tools .gate-btn--lang {
    min-height: 38px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8125rem;
  }

  .gate-site-header__action-item--mobile-bar {
    display: none !important;
  }

  .gate-nav-primary .gate-mega-trigger {
    display: none !important;
  }

  .gate-site-header__scroll-brand {
    display: none !important;
  }

  /* Desktop nav row stays in DOM for ≥992px; mobile uses full-screen mega menu only */
  .gate-site-header .gate-site-header__collapse.collapse.navbar-collapse {
    display: none !important;
  }

  .gate-site-header__actions {
    display: none !important;
  }
}

/* --- Hero (Splide) --- */
/* Splide fade sets inactive slides to opacity:0; without a dark track, the page body (white) shows through during transitions and while images decode. */
.gate-hero-splide,
.gate-hero-splide .splide__track,
.gate-hero-splide .splide__list {
  background-color: #0b1220;
}

.gate-hero-splide {
  position: relative;
  width: 100%;
}

/* Keep one hero slide per viewport at all times (including first paint). */
.gate-hero-splide .splide__track {
  overflow: hidden;
}

.gate-hero-splide .splide__list {
  display: flex;
}

.gate-hero-splide .splide__slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Before Splide init, render only first slide to avoid side-by-side flash. */
.gate-hero-splide:not(.is-initialized) .splide__slide {
  display: none;
}

.gate-hero-splide:not(.is-initialized) .splide__slide:first-child {
  display: block;
}

.gate-hero-splide .splide__arrow {
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gate-hero-splide .splide__arrow:hover {
  background: #fff;
}

.gate-hero-splide .splide__pagination {
  bottom: 1.75rem;
}

.gate-hero-splide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.gate-hero-splide .splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.2);
}

.gate-hero-slide {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0b1220;
}

.gate-hero-slide--fallback {
  background: linear-gradient(120deg, #0b1220 0%, #1b2a44 55%, #2c3f61 100%);
}

.gate-hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  object-fit: cover;
  background: #0b1220;
  z-index: 0;
}

.gate-hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.30) 42%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.gate-hero-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 90vh;
  min-height: 90dvh;
  padding-top: calc(var(--gate-hero-header-offset) + max(1.25rem, env(safe-area-inset-top, 0px)));
  padding-right: 1.25rem;
  padding-bottom: 4rem;
  padding-left: 1.25rem;
  box-sizing: border-box;
}

.gate-hero-slide__inner {
  max-width: 38rem;
  color: #fff;
}

.gate-hero-slide__title {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.gate-hero-slide__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ebcdb9;
  opacity: 1;
  margin-bottom: 0.5rem;
}

.gate-hero-slide__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #ebcdb9;
  opacity: 1;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.gate-hero-slide__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gate-hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  background: var(--gate-brand);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: filter 0.2s, transform 0.15s;
}

.gate-hero-slide__btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.gate-hero-slide__btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Fade-in on active slide */
.gate-hero-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}

.splide__slide.is-active .gate-hero-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Before Splide mounts (or if JS fails), first slide must not stay opacity:0 (was worse on AR: heavy scripts delay Splide). */
.gate-hero-splide:not(.is-initialized) .splide__slide:first-child .gate-hero-animate {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] .gate-hero-slide__inner {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

@media (max-width: 991.98px) {
  .gate-hero-slide__content {
    padding-top: calc(var(--gate-hero-header-offset) + max(1.75rem, env(safe-area-inset-top, 0px)));
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Homepage: a bit more vertical rhythm below the hero */
.motivation-featured-area {
  padding-top: 5.5rem !important;
  padding-bottom: 4.5rem !important;
}

.motivation-courses-area {
  padding-top: 5.5rem !important;
  padding-bottom: 4.5rem !important;
}

/* Home stats cards directly under hero */
.gate-hero-stats {
  background: #f3efdf;
  padding: 2.25rem 0 2.5rem;
}

/* Stats section style (ported layout) */
.stats-container {
  background: #f3efdf;
  padding: 1.9rem 0 2.2rem;
}

.stats-container .row {
  row-gap: 1.1rem;
}

.stats-container .stats-item {
  background: #fff !important;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  min-height: 100%;
  min-height: 240px;
  padding-top: 1.55rem !important;
  padding-bottom: 1.15rem !important;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 1.58s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.28s ease,
    background-color 0.9s ease,
    color 0.9s ease;
}

.stats-container .stats-item:hover {
  transform: translate3d(0, -14px, 0) scale(1.02) !important;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
  background: #000 !important;
  color: #fff;
}

.stats-container .stats-item:hover .stat-number,
.stats-container .stats-item:hover .stat-title,
.stats-container .stats-item:hover .stat-desc {
  color: #fff;
}

.stats-container .stat-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  margin-inline: auto;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.stats-container .stat-icon-box.teacher {
  background: linear-gradient(145deg, #4fb8ff 0%, #2f9de7 100%);
}

.stats-container .stat-icon-box.student {
  background: linear-gradient(145deg, #c95de8 0%, #9f3ec8 100%);
}

.stats-container .stat-icon-box.video {
  background: linear-gradient(145deg, #1fd36f 0%, #11b559 100%);
}

.stats-container .stat-icon-box.course {
  background: linear-gradient(145deg, #ff6f8d 0%, #ff9a76 100%);
}

.stats-container .stat-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  filter: brightness(0) invert(1);
}

.stats-container .stat-number {
  margin: 0 0 0.25rem;
  color: #111827;
  font-size: clamp(2.05rem, 2.35vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stats-container .stat-title {
  margin: 0 0 0.3rem;
  color: #111827;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.3;
}

.stats-container .stat-desc {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

@keyframes gateStatsFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-container .stats-item--animated {
  opacity: 0;
  animation: gateStatsFadeUp 0.6s ease forwards;
}

.stats-container .col-lg-3:nth-child(1) .stats-item--animated { animation-delay: 0.05s; }
.stats-container .col-lg-3:nth-child(2) .stats-item--animated { animation-delay: 0.12s; }
.stats-container .col-lg-3:nth-child(3) .stats-item--animated { animation-delay: 0.19s; }
.stats-container .col-lg-3:nth-child(4) .stats-item--animated { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .stats-container .stats-item,
  .stats-container .stats-item--animated {
    transition: none !important;
    animation: none !important;
    opacity: 1;
  }
}

/* Home programs slider (match reference look) */
.gate-home-programs {
  background: #f3efdf;
}

.gate-home-programs .gate-home-programs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.gate-home-programs .gate-home-programs__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: #1f2231;
}

.gate-home-programs .gate-home-programs__view-all {
  background: #fff;
  color: #1f2231 !important;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

/* Legacy `.courses-slides.owl-theme { margin-top: -25px }` (theme style.css) pulls the carousel into the heading; reset only here */
.gate-home-programs .courses-slides.owl-theme {
  margin-top: 0;
}

.gate-home-programs .gate-home-programs__item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.14);
  margin-bottom: 8px !important;
}

.gate-home-programs .gate-home-programs__image-wrap {
  position: relative;
  border-bottom: 1px solid rgba(20, 26, 40, 0.06);
}

.gate-home-programs .gate-home-programs__image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gate-home-programs .gate-home-programs__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff7b12;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

html[dir="ltr"] .gate-home-programs .gate-home-programs__badge {
  right: auto;
  left: 12px;
}

.gate-home-programs .gate-home-programs__line {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  z-index: 2;
}

.gate-home-programs .gate-home-programs__content {
  padding: 1rem 1rem 1.05rem;
  text-align: center;
}

.gate-home-programs .gate-home-programs__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 700;
}

.gate-home-programs .gate-home-programs__title a {
  color: #1f2231 !important;
  text-decoration: none;
}

.gate-home-programs .gate-home-programs__degree {
  margin: 0 0 0.8rem;
  color: #6d7280;
  font-size: 0.84rem;
  font-weight: 600;
}

.gate-home-programs .gate-home-programs__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gate-home-programs .gate-home-programs__date {
  color: #2f3341;
  font-size: 0.9rem;
  font-weight: 600;
}

.gate-home-programs .gate-home-programs__date i {
  vertical-align: -0.13em;
}

.gate-home-programs .gate-home-programs__price {
  color: #de7c19;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.gate-home-programs .courses-slides.owl-theme .owl-dots {
  margin-top: 0.4rem !important;
}

.gate-home-programs .courses-slides.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #d6d9e0;
}

.gate-home-programs .courses-slides.owl-theme .owl-dots .owl-dot.active span {
  background: #f08a1a;
  border-color: #f08a1a;
}

/* VR / interactive highlight (under study programs) */
.gate-vr-highlight {
  background: #f9f5eb;
  overflow: hidden;
}

.gate-vr-highlight__row {
  direction: ltr;
}

.gate-vr-highlight__copy {
  text-align: start;
}

.gate-vr-highlight__copy-inner {
  padding-inline-end: clamp(0px, 4vw, 2.5rem);
  padding-inline-start: clamp(0px, 2vw, 0.5rem);
}

.gate-vr-highlight--text-right .gate-vr-highlight__copy-inner {
  padding-inline-start: clamp(0px, 4vw, 2.5rem);
  padding-inline-end: clamp(0px, 2vw, 0.5rem);
}

@media (min-width: 992px) {
  .gate-vr-highlight--text-right .gate-vr-highlight__copy {
    margin-inline-start: auto;
  }
}

.gate-vr-highlight__title {
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .gate-vr-highlight__copy[dir="rtl"] .gate-vr-highlight__title {
  font-family: "Amiri", "Times New Roman", "Segoe UI", serif;
  font-weight: 700;
}

.gate-vr-highlight__body {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.85;
  color: #3d4555;
  max-width: 38rem;
}

.gate-vr-highlight__dots {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: 20%;
  width: 44px;
  height: 100px;
  background-image: radial-gradient(circle at center, rgba(45, 143, 92, 0.55) 1.5px, transparent 1.6px);
  background-size: 10px 10px;
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 992px) {
  .gate-vr-highlight__dots {
    display: block;
  }
}

.gate-vr-highlight__figure {
  display: inline-block;
  max-width: min(100%, 520px);
}

.gate-vr-highlight__img,
.gate-vr-highlight__video {
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(11, 18, 32, 0.14);
  width: 100%;
  height: auto;
  display: block;
}

.gate-vr-highlight__img {
  object-fit: cover;
}

.gate-vr-highlight__video {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #fff;
}

@media (max-width: 991.98px) {
  .gate-vr-highlight {
    text-align: center;
  }

  .gate-vr-highlight__copy {
    text-align: center !important;
  }

  .gate-vr-highlight__body {
    margin-left: auto;
    margin-right: auto;
  }

  .gate-vr-highlight__figure {
    max-width: 420px;
  }
}

/* Home teachers slider (match reference look) */
.gate-home-teachers {
  background: #f3efdf;
}

.gate-home-teachers .gate-home-teachers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.gate-home-teachers .gate-home-teachers__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 800;
  color: #1f2231;
}

.gate-home-teachers .gate-home-teachers__view-all {
  background: #fff;
  color: #1f2231 !important;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.gate-home-teachers .gate-home-teachers__slide {
  padding: 0.3rem 0.15rem 0.8rem;
}

.gate-home-teachers .gate-home-teachers__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.1);
  text-align: center;
  padding: 1.1rem 0.95rem 1rem;
  min-height: 280px;
}

.gate-home-teachers .gate-home-teachers__avatar-link {
  display: inline-flex;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.gate-home-teachers .gate-home-teachers__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gate-home-teachers .gate-home-teachers__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.gate-home-teachers .gate-home-teachers__name a {
  color: #1f2231 !important;
  text-decoration: none;
}

.gate-home-teachers .gate-home-teachers__job {
  margin: 0 0 0.55rem;
  color: #6c7383;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 2.1em;
}

.gate-home-teachers .gate-home-teachers__rating {
  color: #2a2f40;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.gate-home-teachers .gate-home-teachers__profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff7b12;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.33rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(255, 123, 18, 0.35);
}

.gate-home-teachers .gate-home-teachers__slider.owl-theme .owl-dots {
  margin-top: 0.55rem !important;
}

.gate-home-teachers .gate-home-teachers__slider.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #d6d9e0;
}

.gate-home-teachers .gate-home-teachers__slider.owl-theme .owl-dots .owl-dot.active span {
  background: #f08a1a;
  border-color: #f08a1a;
}

/* Home partners: professional orange strip */
.gate-home-partners .gate-home-partners__shell {
  background: #ff6d00;
  border-radius: 14px;
  padding: 1.1rem 1rem 0.6rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.gate-home-partners .gate-home-partners__item {
  text-align: center;
  padding: 0.15rem 0.9rem;
  position: relative;
}

.gate-home-partners .gate-home-partners__item::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 14px;
  inset-inline-end: -1px;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.gate-home-partners .owl-item:last-child .gate-home-partners__item::after {
  display: none;
}

.gate-home-partners .gate-home-partners__logo-link {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.gate-home-partners .gate-home-partners__logo-link img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.gate-home-partners .title p {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.gate-home-partners .partner-slides.owl-theme .owl-dots {
  margin-top: 0.9rem !important;
}

.gate-home-partners .partner-slides.owl-theme .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.55);
}

.gate-home-partners .partner-slides.owl-theme .owl-dots .owl-dot.active span {
  background: #fff;
}

/* Home testimonials: editable from dashboard feedbacks */
.gate-home-testimonials {
  background: #f3efdf;
  position: relative;
  overflow: hidden;
}

.gate-home-testimonials .section-title h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.gate-home-testimonials .section-title p {
  margin: 0 auto 1.4rem;
  color: #6f7686;
  max-width: 440px;
  font-weight: 600;
}

.gate-home-testimonials__item {
  padding: 0.5rem 0.35rem 0.9rem;
}

.gate-home-testimonials__card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
  padding: 2.25rem 1rem 1rem;
  text-align: center;
  position: relative;
  min-height: 320px;
}

.gate-home-testimonials__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #ff6d00 0%, #9df7ba 100%);
}

.gate-home-testimonials__avatar-wrap {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
}

.gate-home-testimonials__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gate-home-testimonials__name {
  margin: 0;
  color: #1f2231;
  font-size: 1.08rem;
  font-weight: 800;
}

.gate-home-testimonials__job {
  margin: 0.2rem 0 0.5rem;
  color: #6f7686;
  font-size: 0.92rem;
  font-weight: 600;
}

.gate-home-testimonials__stars {
  color: #f6bf2a;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.gate-home-testimonials__text {
  margin: 0;
  color: #2f3341;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.7;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gate-home-testimonials__slider.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #d6d9e0;
}

.gate-home-testimonials__slider.owl-theme .owl-dots .owl-dot.active span {
  background: #f08a1a;
  border-color: #f08a1a;
}

/* All instructors page: compact grid cards */
.gate-all-teachers {
  background: #f3efdf;
}

.gate-all-teachers .gate-all-teachers__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gate-all-teachers .gate-all-teachers__item {
  min-width: 0;
}

.gate-all-teachers .gate-all-teachers__card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ece6d8;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  margin-bottom: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gate-all-teachers .gate-all-teachers__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}

.gate-all-teachers .gate-all-teachers__image-wrap {
  margin: 0;
}

.gate-all-teachers .gate-all-teachers__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gate-all-teachers .gate-all-teachers__content {
  padding: 0.45rem 0.5rem 0.6rem;
  text-align: center;
}

.gate-all-teachers .gate-all-teachers__name {
  margin: 0 0 0.18rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.gate-all-teachers .gate-all-teachers__name a {
  color: #1f2231 !important;
  text-decoration: none;
}

.gate-all-teachers .gate-all-teachers__job {
  display: block;
  margin: 0;
  color: #6f7686;
  font-size: 0.62rem;
  line-height: 1.25;
}

@media (max-width: 1199.98px) {
  .gate-all-teachers .gate-all-teachers__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .gate-all-teachers .gate-all-teachers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gate-all-teachers .gate-all-teachers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.gate-hero-stat-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  padding: 1.15rem 1rem 1rem;
  text-align: center;
  height: 100%;
}

.gate-hero-stat-card__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.8rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gate-hero-stat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gate-hero-stat-card__value {
  margin: 0 0 0.25rem;
  color: #111827;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.gate-hero-stat-card__title {
  margin: 0 0 0.35rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.gate-hero-stat-card__desc {
  color: #374151;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
}

.gate-hero-stats__slider .gate-hero-stat-slide {
  padding: 0.35rem 0.35rem 0.75rem;
}

/* Inner pages: page banner sits under transparent header (same as homepage hero) */
html:has(.gate-site-header--overlap:not(.is-scrolled)) .page-title-area {
  padding-top: calc(var(--gate-hero-header-offset) + 2.5rem);
}

html:has(.gate-site-header--overlap:not(.is-scrolled)) .page-title-area.page-title-style-two {
  padding-top: calc(var(--gate-hero-header-offset) + 2.5rem);
  padding-bottom: 120px;
}

html:has(.gate-site-header--overlap:not(.is-scrolled)) .page-title-area.page-title-style-three {
  padding-top: calc(var(--gate-hero-header-offset) + 2rem);
}

html:has(.gate-site-header--overlap:not(.is-scrolled)) .page-title-area.gate-teachers-hero {
  min-height: min(520px, 72vh);
  padding-top: calc(var(--gate-hero-header-offset) + 2rem);
  padding-bottom: 120px;
}

html[dir="rtl"] .gate-hero-slide__overlay {
  background: linear-gradient(
    -105deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.36) 42%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

/* --- Dynamic header: topbar, no-sticky, mega overlay --- */
.gate-site-header__topbar {
  background: rgba(11, 18, 32, 0.92);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.gate-site-header__topbar a {
  color: inherit;
}

.gate-site-header--no-sticky,
.gate-site-header--no-sticky.is-scrolled {
  position: relative !important;
  top: auto !important;
}

.gate-site-header--solid:not(.gate-site-header--overlap),
.gate-site-header--solid.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
}

.gate-site-header--dark:not(.gate-site-header--overlap),
.gate-site-header--dark.is-scrolled {
  background: #0b1220 !important;
}

.gate-site-header--dark:not(.gate-site-header--overlap) .gate-nav-primary .nav-link,
.gate-site-header--dark.is-scrolled .gate-nav-primary .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.gate-site-header__left-cluster {
  min-width: 0;
}

.gate-site-header__aux-link {
  padding: 0.35rem 0.5rem !important;
}

/* Mega menu launcher: dark pad + white hamburger (three equal bars, even spacing) */
.gate-mega-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  background-color:transparent;

  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.gate-mega-trigger:hover {
  filter: brightness(1.08);
}

.gate-mega-trigger:active {
  transform: scale(0.98);
}

.gate-mega-trigger:focus-visible {
  outline: 2px solid var(--gate-brand);
  outline-offset: 2px;
}

.gate-mega-trigger__bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gate-mega-trigger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.gate-site-header--overlap:not(.is-scrolled) .gate-mega-trigger {
  border-color: rgba(0, 0, 0, 0.5);
}

.gate-site-header:not(.gate-site-header--overlap) .gate-mega-trigger,
.gate-site-header.is-scrolled .gate-mega-trigger {
  border-color: rgba(0, 0, 0, 0.4);
}

/* Full-screen mega menu: entire viewport, white surface, brand-orange copy */
.gate-mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.gate-mega-overlay[hidden] {
  display: flex !important;
}

.gate-mega-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s linear 0s;
}

.gate-mega-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: #fff;
  backdrop-filter: none;
}

.gate-mega-overlay__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100%;
  max-height: none;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  background: #fff;
  color: var(--gate-brand);
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-42px) scale(0.97);
  transform-origin: top center;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}

.gate-mega-overlay.is-open .gate-mega-overlay__panel {
  transform: translateY(0) scale(1);
}

.gate-mega-overlay__head {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.gate-mega-overlay__close {
  border: 2px solid var(--gate-brand);
  background: #fff;
  color: var(--gate-brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-mega-overlay__close:hover {
  background: var(--gate-brand);
  color: #fff;
}

.gate-mega-overlay__body {
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gate-mega-overlay__mobile-actions {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(11, 18, 32, 0.12);
}

.gate-mega-overlay__mobile-actions .gate-btn--ghost {
  background: transparent;
  color: #3a3a3a !important;
  border-color: rgba(11, 18, 32, 0.2);
}

.gate-mega-overlay__mobile-actions .gate-btn--lang {
  background: #fff;
  color: #3a3a3a !important;
  border-color: rgba(11, 18, 32, 0.2);
}

.gate-mega-overlay__mobile-actions .gate-btn--ghost:hover,
.gate-mega-overlay__mobile-actions .gate-btn--lang:hover {
  color: var(--gate-brand) !important;
  border-color: var(--gate-brand);
}

.gate-mega-overlay__contact {
  margin-top: 0.45rem;
  padding: 0.15rem 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
}

.gate-mega-overlay__contact-wrap {
  display: flex;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  margin-bottom: 1rem !important;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

/* RTL: flex-start aligns the contact block to the physical right (matches Arabic layout) */
.gate-mega-overlay__contact-wrap--ar {
  justify-content: flex-start;
}

.gate-mega-overlay__contact-wrap--en {
  justify-content: flex-end;
}

.gate-mega-overlay__contact--ar {
  margin: 0;
  text-align: right;
  align-items: flex-start;
gate-mega-overlay__contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gate-mega-overlay__contact-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gate-brand);
}

.gate-mega-overlay__contact-line {
  color: #1f2937 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.gate-mega-overlay__contact-line:hover {
  color: var(--gate-brand) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-mega-overlay__contact-label {
  font-weight: 800;
}

.gate-mega-overlay__contact-value--ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.gate-mega-overlay__contact--ar .gate-mega-overlay__contact-lines {
  align-items: flex-end;
  width: 100%;
}

.gate-mega-overlay__contact--ar .gate-mega-overlay__contac  align-items: flex-end;
  width: 100%;
}

.gate-mega-overlay__contact--ar .gate-mega-overlay__contact-line {
  flex-direction: row-reverse;
}

.gate-mega-overlay__contact--ar .gate-mega-overlay__social {
  justify-content: flex-start;
 height: 34px;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--gate-brand) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.gate-mega-overlay__social a:hover {
  background: var(--gate-brand);
  color: #fff !important;
  transform: translateY(-2px);
}

.gate-mega-overlay__section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--gate-brand) !important;
  opacity: 0.92;
}

.gate-mega-overlay__link {
  color: #3a3a3a !important;
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  border-radius: 6px;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

.gate-mega-overlay__link i {
  color: #3a3a3a !important;
  opacity: 0.95;
  vertical-align: -0.1em;
}

.gate-mega-overlay__link:hover {
  color: var(--gate-brand) !important;
  opacity: 1;
  transform: translateX(4px);
}

/* Underline only for the three outside actions on hover */
.gate-site-header__actions .gate-btn:not(.gate-btn--training-platform):hover,
.gate-site-header__actions .gate-btn:not(.gate-btn--training-platform):focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.gate-mega-overlay__link:hover i {
  color: var(--gate-brand) !important;
}

.gate-mega-overlay__desc {
  color: #3a3a3a !important;
  opacity: 0.72;
  font-weight: 500;
}

.gate-mega-overlay__link:hover .gate-mega-overlay__desc {
  opacity: 0.9;
  color: var(--gate-brand) !important;
}

html[dir="rtl"] .gate-mega-overlay__link:hover {
  transform: translateX(-4px);
}

body.gate-mega-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .gate-mega-overlay__body {
    padding: 0.25rem 1rem 1rem;
  }

  .gate-mega-overlay__body > .row {
    --bs-gutter-y: 0.75rem;
  }

  .gate-mega-overlay__section-title {
    margin-bottom: 0.5rem;
  }

  .gate-mega-overlay__list .mb-2 {
    margin-bottom: 0.35rem !important;
  }

  .gate-mega-overlay__contact-wrap {
    margin-top: 0.75rem !important;
    padding-top: 0.65rem;
    margin-bottom: 0.75rem !important;
  }

  .gate-mega-overlay__contact {
    width: 100%;
  }

  .gate-mega-overlay__contact--ar {
    align-self: stretch;
    text-align: right;
  }

  .gate-mega-overlay__contact--en {
    align-self: stretch;
    text-align: left;
  }

  .gate-    align-self: stretch;
    text-align: right;
  }

  .gate-mega-overlay__contact--en {
    align-self: stretch;
    text-align: left;
  }

  .gate-mega-overlay__contact-wrap--ar {
    justify-content: flex-end;
  }

  .gate-mega-overlay__contact--ar .gate-mega-overlay__contact-lines,
  .gate-mega-overlay__contact--ar .gate-mega-overlay__social {
    align-items: flex-end;
number,
.single-courses-item .courses-box-footer ul .courses-lesson,
.single-motivation-courses-item .courses-content .courses-box-footer ul .students-number,
.single-motivation-courses-item .courses-content .courses-box-footer ul .courses-lesson {
  display: none !important;
}

.single-motivation-courses-item .courses-content .courses-box-footer.gate-course-card__footer,
.single-courses-box .courses-box-footer.gate-course-card__footer,
.single-courses-item .courses-box-footer.gate-course-card__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center !important;
  border-top: 1px solid #f0f0f0;
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.15rem;
}

.gate-course-card__price {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center !important;
  color: #ff6400;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

html[dir="rtl"] .single-motivation-courses-item .courses-content .gate-course-card__footer,
html[dir="rtl"] .single-motivation-courses-item .courses-content .gate-course-card__price,
html[dir="rtl"] .single-courses-box .courses-box-footer.gate-course-card__footer,
html[dir="rtl"] .single-courses-box .courses-box-footer .gate-course-card__price {
  text-align: center !important;
}

.single-courses-box .courses-box-footer ul,
.single-courses-item .courses-box-footer ul {
  justify-content: center;
}

.single-courses-box .courses-box-footer ul .courses-price,
.single-courses-item .courses-box-footer ul .courses-price {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
}

.single-motivation-courses-item:has(.gate-course-card__footer) .courses-image .price {
  display: none;
}

.single-motivation-courses-item .courses-image .price {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.gate-home-programs .gate-home-programs__meta {
  align-items: center;
  text-align: center;
}

/* VR page styles: frontend/virtual-reality/virtual-reality.css (page-scoped only) */
