:root {
  --brand-red: #d70000;
  --brand-red-rgb: 215, 0, 0;
  --brand-red-soft: #ff4f63;
  --brand-red-dark: #5a0009;
  --brand-red-mid: #9f0008;
  --brand-red-deep: #200007;
  --status-active-color: #47ffb0;
  --status-active-color-rgb: 71, 255, 176;
  --brand-black-deep: #020202;
  --gradient-brand-primary: linear-gradient(135deg, var(--brand-red-soft), var(--brand-red-dark));
  --brand-black: #050507;
  --brand-white: #fff;
  --brand-gray: #f3f4f6;
  --brand-border: #e6e7eb;
  --brand-text-muted: #5e636d;
  --floating-actions-top: 58%;
  --divider-glow-soft: 0.2;
  --divider-glow-strong: 0.36;
  --homepage-button-color: var(--brand-red);
  --homepage-header-bg: #ffffff;
  --homepage-text-color: #171a20;
  --homepage-heading-color: #171a20;
  --homepage-paragraph-color: #5e636d;
  --homepage-link-color: #1f232b;
  --hero-custom-image: url('/newhome/booking-workspace.svg');
  --hero-custom-size: cover;
  --hero-custom-position: center;
  --hero-bg-image: none;
  --hero-bg-solid: #0a0a0a;
  --hero-overlay-strength: 0.62;
  --announcement-bg: #1a0208;
  --announcement-text: #ffffff;
  --announcement-speed: 28s;
  --announcement-bar-height: 50px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--brand-gray);
  color: var(--homepage-text-color);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(var(--brand-red-rgb), 0.05), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(var(--brand-red-rgb), 0.04), transparent 36%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--homepage-heading-color);
}

p {
  color: var(--homepage-paragraph-color);
}

a {
  color: var(--homepage-link-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--homepage-header-bg);
  border-bottom: 1px solid #e8e8ec;
  padding-top: 15px;
  padding-bottom: 10px;
}

.top-nav .container {
  max-width: 1420px;
}

.top-nav .inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.nav-main > .brand {
  flex: 0 0 auto;
}

.nav-main > .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--homepage-link-color);
  font-weight: 800;
}

.brand img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: currentColor;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand img {
    height: 55px;
  }
}

@media (max-width: 767px) {
  .logo-text {
    font-size: 14px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  background: #111216;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111216;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease;
}

.nav-dropdown:focus-within summary,
.nav-dropdown[open] summary {
  color: #fff;
  background: #17191f;
}

.nav-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #0f1014;
  border: 1px solid #2a2d36;
  box-shadow: 0 14px 30px rgba(6, 6, 8, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 140;
}

.nav-dropdown-menu a {
  color: #fff;
  padding: 9px 10px;
  border-radius: 9px;
  background: #151821;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: #fff;
  background: #1f1016;
  box-shadow: inset 0 0 0 1px rgba(192, 18, 45, 0.55);
}

.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: #1f1016;
}

.nav-links a.active,
.nav-dropdown[open] summary {
  box-shadow: 0 0 0 1px rgba(192, 18, 45, 0.6), 0 8px 18px rgba(192, 18, 45, 0.28);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.auth-btn {
  text-decoration: none;
  border-radius: 18px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
  border: 1px solid #aeb1b8;
  color: #70757f;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .logo-text {
    display: none;
  }
}

.auth-btn.primary {
  border: none;
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  --hero-bg-shift: 0px;
  --hero-fg-shift: 0px;
  min-height: 560px;
  background-color: #110207;
  background-image:
    linear-gradient(118deg, rgba(8, 4, 8, 0.7) 0%, rgba(38, 0, 7, 0.66) 45%, rgba(9, 2, 8, 0.74) 100%),
    var(--hero-custom-image);
  background-size: cover, var(--hero-custom-size);
  background-position: center, var(--hero-custom-position);
  background-repeat: no-repeat;
  color: #fff;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero.hero-has-video .hero-media-layer,
.hero.hero-has-image .hero-media-layer {
  opacity: 1;
}

.hero.hero-has-video .hero-media-layer video {
  pointer-events: auto;
}

/* Background video: full coverage, no decorative styles */
.hero-media-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Background image: full coverage, lazy-loaded */
.hero-media-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-toggle {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 8, 12, 0.58);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -3%;
  pointer-events: none;
  background: var(--hero-custom-image) var(--hero-custom-position) / var(--hero-custom-size) no-repeat;
  opacity: 0.14;
  filter: blur(8px);
  transform: translate3d(0, var(--hero-bg-shift), 0);
  animation: heroGlowShift 24s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
  opacity: var(--hero-overlay-strength);
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  grid-template-areas: 'content visual';
  gap: 36px;
  align-items: center;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}

.hero-content {
  grid-area: content;
  position: relative;
  z-index: 2;
}

.hero,
.stats,
.categories,
.ads,
.section {
  display: flex;
  justify-content: center;
}

.hero-content,
.section-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-visual {
  grid-area: visual;
  border-radius: 26px;
  height: 454px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(162deg, rgba(43, 7, 13, 0.92), rgba(18, 5, 9, 0.92));
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 66px rgba(4, 5, 9, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(0, calc(var(--hero-fg-shift) * -0.08), 0);
}

.hero-media-stack {
  grid-area: visual;
}

.hero-media-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 15px;
  color: #999;
  line-height: 1.7;
  min-height: 24px;
}

.hero-visual img {
  width: 106px;
  height: 106px;
  object-fit: cover;
  position: absolute;
  left: 20px;
  bottom: 20px;
  opacity: 1;
  z-index: 1;
  transition: transform 0.2s linear, opacity 0.2s linear;
  border-radius: 18px;
  background: rgba(40, 7, 12, 0.82);
  padding: 12px;
  box-shadow: 0 12px 26px rgba(3, 4, 8, 0.4), 0 0 18px rgba(var(--brand-red-rgb), 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dashboard {
  position: absolute;
  inset: 64px 42px 44px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 16px;
}

.hero-panel {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(146deg, rgba(70, 10, 18, 0.92), rgba(28, 6, 12, 0.92));
  box-shadow: 0 14px 30px rgba(6, 6, 10, 0.36);
  color: #fff;
}

.hero-panel-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 18px;
  display: grid;
  gap: 16px;
  animation: floatingOrb 15s ease-in-out infinite;
}

.hero-panel-main header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.hero-panel-main header i {
  margin: 0;
  color: #fff;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--status-active-color);
  box-shadow: 0 0 14px rgba(var(--status-active-color-rgb), 0.78);
}

.hero-chart-bars {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 2px;
}

.hero-chart-bars span {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 113, 131, 0.96), rgba(145, 11, 23, 0.95));
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.26);
}

.hero-chart-bars span:nth-child(1) { height: 44px; }
.hero-chart-bars span:nth-child(2) { height: 66px; }
.hero-chart-bars span:nth-child(3) { height: 90px; }
.hero-chart-bars span:nth-child(4) { height: 56px; }
.hero-chart-bars span:nth-child(5) { height: 74px; }

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
}

.hero-panel-grid span {
  font-size: 13px;
  color: #fff;
}

.hero-panel-grid strong {
  font-size: 20px;
  font-weight: 900;
}

.hero-progress {
  display: grid;
  gap: 7px;
}

.hero-progress .progress-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-progress .progress-fill {
  position: absolute;
  inset: 0;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 116, 135, 0.96), rgba(153, 14, 26, 0.9));
}

.hero-progress .progress-track:nth-child(2) .progress-fill {
  width: 54%;
}

.hero-panel-metrics,
.hero-panel-status {
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 6px;
  animation: floatingOrb 18s ease-in-out infinite;
}

.hero-panel-metrics {
  animation-delay: -3s;
}

.hero-panel-status {
  animation-delay: -7s;
}

.hero-panel-metrics p,
.hero-panel-status span {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.hero-panel-metrics strong,
.hero-panel-status strong {
  font-size: 24px;
  font-weight: 900;
}

.hero-panel-status span i,
.hero-panel-metrics p i {
  margin-left: 6px;
}

.hero-glass-search {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  min-width: 180px;
  max-width: min(62%, 260px);
  height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(35, 7, 12, 0.92);
  box-shadow: 0 8px 18px rgba(8, 8, 12, 0.28);
  animation: floatingOrb 20s ease-in-out infinite;
}

.hero-glass-search i {
  font-size: 14px;
  opacity: 0.95;
}

.hero-glass-search span {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.34;
  letter-spacing: -0.3px;
  color: #fff;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.7s ease-out both;
}

.hero-content h1.hero-heading-white {
  color: var(--brand-white);
}

.hero-content h1::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(95%, 520px);
  height: 70px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.18), transparent 72%);
  filter: blur(5px);
  pointer-events: none;
}

.hero-content h1 .accent {
  color: #ff7b8c;
}

.hero-content p {
  margin: 16px auto 24px;
  font-size: 16px;
  line-height: 1.86;
  font-weight: 400;
  color: #fff;
  max-width: 720px;
  animation: heroFadeUp 0.75s ease-out 0.12s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: heroScaleIn 0.6s ease-out 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-position 0.35s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  color: var(--brand-white);
  background: linear-gradient(120deg, var(--homepage-button-color), var(--brand-red-dark), var(--homepage-button-color));
  background-size: 180% 180%;
  box-shadow: 0 0 0 rgba(var(--brand-red-rgb), 0), 0 12px 24px rgba(var(--brand-red-rgb), 0.24);
}

.btn-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(10, 12, 16, 0.14);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 18px rgba(var(--brand-red-rgb), 0.34), 0 18px 34px rgba(var(--brand-red-rgb), 0.33);
  filter: saturate(1.03);
}

.hero-stats {
  margin: 28px auto 0;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  animation: heroFadeUp 0.75s ease-out 0.34s both;
  text-align: center;
}

.hero-stats .stat {
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-stats span {
  color: #fff;
  font-size: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.section-head {
  margin: 30px 0 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.section-head > div {
  width: 100%;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

.section-head p {
  margin: 8px auto 0;
  color: var(--brand-text-muted);
  font-size: clamp(14px, 1.35vw, 16px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
  position: relative;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-content h1,
.hero-content p,
.section-title {
  text-align: center;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 28px rgba(12, 14, 17, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 38px rgba(12, 14, 17, 0.14);
  border-color: #f3c3cb;
}

.card:hover .icon-box i {
  transform: scale(1.08);
}

.btn.is-pointer-active {
  transform: translateY(-4px) rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 6deg));
}

.icon-box.is-pointer-active {
  transform: rotateX(calc(var(--my, 0) * -8deg)) rotateY(calc(var(--mx, 0) * 8deg));
}

.floating-actions a.is-pointer-active,
.floating-actions button.is-pointer-active {
  transform: translateY(-3px) rotateX(calc(var(--my, 0) * -4deg)) rotateY(calc(var(--mx, 0) * 4deg));
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--gradient-brand-primary);
  color: var(--brand-white);
  transition: transform 0.24s ease;
}

.icon-box i {
  transition: transform 0.22s ease;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--brand-text-muted);
  line-height: 1.7;
  font-size: 16px;
}

.list-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--brand-border);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 18, 20, 0.07);
}

.list-item {
  border-bottom: 1px dashed #eceef2;
  padding: 12px 0;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.list-item p {
  margin: 0;
  color: var(--brand-text-muted);
  font-size: 16px;
}

.incubators-sections {
  margin-bottom: 30px;
}

.incubator-group {
  margin-bottom: 22px;
}

.incubator-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.incubator-group-head h3 {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 26px);
}

.incubator-group-count {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(var(--brand-red-rgb), 0.12);
  color: var(--brand-red-primary);
  border: 1px solid rgba(var(--brand-red-rgb), 0.3);
}

.incubator-grid {
  margin-bottom: 0;
}

.incubator-card {
  position: relative;
}

.incubator-number {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-red-primary);
}

.incubator-category {
  color: var(--brand-red-primary);
  font-weight: 700;
}

.incubators-page {
  margin-bottom: 30px;
}

.incubators-hero {
  background: linear-gradient(135deg, #0d0f14, #121720);
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(11, 15, 22, 0.12);
  padding: 20px;
  margin: 22px 0;
}

.incubators-hero-head {
  text-align: center;
}

.incubators-hero-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 44px);
}

.incubators-hero-head p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.5vw, 18px);
}

.incubators-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.incubators-stat {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  text-align: center;
}

.incubators-stat strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.incubators-stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.incubators-tabs {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.incubators-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(var(--brand-red-rgb), 0.35);
  background: rgba(var(--brand-red-rgb), 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.incubators-search-wrap {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(13, 17, 24, 0.08);
  padding: 8px;
}

.incubators-search-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #1b1f27;
  outline: none;
  padding: 6px 10px;
}

.incubators-search-wrap button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-red-primary), var(--brand-red-hover));
}

.incubator-cta,
.incubators-footer {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(16, 18, 20, 0.08);
  padding: 20px;
  text-align: center;
}

.incubator-cta h3,
.incubators-footer h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
}

.incubator-cta p,
.incubators-footer p {
  margin: 10px 0 18px;
  color: var(--brand-text-muted);
  font-size: 16px;
}

.incubators-page .btn.ghost {
  color: #181b22;
  background: #fff;
  border: 1px solid rgba(20, 24, 32, 0.18);
}

.incubators-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.incubators-footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.incubators-footer-links a {
  color: var(--brand-text-muted);
  text-decoration: none;
  font-weight: 700;
}

.booking-tour-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 8px 0 22px;
  position: relative;
  background: linear-gradient(180deg, rgba(var(--brand-red-rgb), 0.05), rgba(var(--brand-red-rgb), 0));
  border-radius: 24px;
  padding: 8px;
}

.tour-form-card,
.tour-image-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 28px rgba(12, 14, 17, 0.08);
  overflow: hidden;
}

.tour-form-card {
  padding: 20px;
}

.tour-form-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  color: #171a20;
}

.tour-form-card p {
  margin: 10px 0 16px;
  color: var(--brand-text-muted);
  font-size: 16px;
}

.tour-form {
  display: grid;
  gap: 10px;
}

.tour-form label {
  font-size: 15px;
  font-weight: 700;
  color: #1f232b;
}

.tour-form input,
.tour-form select,
.tour-form textarea {
  width: 100%;
  border: 1px solid #d9dce3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #151922;
  background: #fff;
}

.tour-form textarea {
  resize: vertical;
  min-height: 86px;
}

.tour-form input:focus,
.tour-form select:focus,
.tour-form textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.12);
}

.tour-form .btn {
  width: 100%;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.tour-feedback,
.form-feedback {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2fff6;
  border: 1px solid #bce6ca;
  color: #1f6b3b;
  font-size: 14px;
  font-weight: 700;
}

.tour-image-card {
  --tour-overlay-strength: 0.55;
  position: relative;
  min-height: 100%;
  background: linear-gradient(130deg, #1a1f27, #2a303a 45%, #0f1218);
  overflow: hidden;
}

/* Gradient overlay (color wash) */
.tour-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(var(--brand-red-rgb), 0.42), rgba(10, 8, 12, 0.38));
}

/* Dark vignette frame — إطار أسود خفيف يهدئ الصورة من الحواف */
.tour-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    transparent 38%,
    rgba(0, 0, 0, calc(var(--tour-overlay-strength) * 0.9)) 100%
  );
  box-shadow: inset 0 0 80px rgba(0, 0, 0, calc(var(--tour-overlay-strength) * 0.75));
}

.tour-image-card img,
.tour-image-card video {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(0.88);
  transform: scale(1.01);
}

.tour-image-card video {
  position: absolute;
  inset: 0;
}

.tour-image-overlay {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  z-index: 3;
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--brand-red-rgb), 0.92), rgba(32, 0, 7, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.tour-image-overlay span {
  font-size: 15px;
  font-weight: 700;
}

.tour-image-overlay a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.registration-section {
  margin: 0 0 22px;
  position: relative;
  background: linear-gradient(180deg, rgba(var(--brand-red-rgb), 0.04), rgba(var(--brand-red-rgb), 0));
  border-radius: 24px;
  padding: 8px;
}

.registration-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 28px rgba(12, 14, 17, 0.08);
  padding: 20px;
}

.registration-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
  color: #171a20;
}

.registration-form {
  display: grid;
  gap: 10px;
}

.registration-form label {
  font-size: 15px;
  font-weight: 700;
  color: #1f232b;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid #d9dce3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #151922;
  background: #fff;
}

.registration-form textarea {
  resize: vertical;
  min-height: 100px;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.12);
}

.phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}

.training-zone {
  margin-top: 6px;
}

.training-zone h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1b1f26;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.training-card {
  border: 1px solid #d7dbe4;
  background: #fff;
  border-radius: 12px;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #202530;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.training-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.training-card:has(input:checked) {
  border-color: var(--brand-red);
  background: rgba(var(--brand-red-rgb), 0.08);
  box-shadow: 0 0 0 2px rgba(var(--brand-red-rgb), 0.12);
}

.registration-submit {
  margin: 10px auto 0;
  width: min(100%, 320px);
  border: 0;
  cursor: pointer;
}

.newsletter-section {
  margin: 8px 0 24px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 12px 28px rgba(14, 18, 26, 0.1);
  padding: 26px 18px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  top: -110px;
  left: -90px;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.1), transparent 65%);
  pointer-events: none;
}

.newsletter-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.2;
  color: #171a20;
}

.newsletter-inner h2::after {
  content: '';
  display: block;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  margin: 12px auto 0;
  background: var(--gradient-brand-primary);
}

.newsletter-inner p {
  margin: 14px 0 18px;
  color: var(--brand-text-muted);
  font-size: clamp(15px, 1.5vw, 17px);
}

.newsletter-form {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid #d9dce3;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.12);
}

.newsletter-form .btn {
  min-width: 140px;
  border: 0;
  cursor: pointer;
}

.newsletter-inner small {
  margin-top: 10px;
  display: block;
  color: #6d717a;
  font-size: 14px;
}

.reference-section {
  margin: 8px 0 24px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red-mid) 44%, var(--brand-red-deep) 70%, var(--brand-black-deep) 100%);
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 20px;
  padding: 20px;
  color: #fff;
}

.reference-visual {
  height: 340px;
  border-radius: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(15, 18, 24, 0.7), rgba(15, 18, 24, 0.2));
  display: grid;
  place-items: center;
}

.reference-visual img {
  width: min(78%, 330px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.32));
}

.reference-visual span {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  color: #1e2229;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 18px;
  font-weight: 800;
}

.reference-visual span i {
  color: var(--brand-red);
}

.reference-content h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 66px);
  line-height: 1.2;
}

.reference-content h2 span {
  color: #ff7b8c;
}

.reference-content p {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  line-height: 1.65;
}

.reference-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reference-section {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 18, 26, 0.1);
}

.reference-shot {
  display: block;
  width: 100%;
  height: auto;
}

.floating-actions {
  position: fixed;
  left: 20px;
  top: var(--floating-actions-top);
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-actions a,
.floating-actions button {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--brand-white);
  background: var(--gradient-brand-primary);
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.32);
}

.floating-actions a:hover,
.floating-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(var(--brand-red-rgb), 0.34);
}

.floating-actions a.is-pointer-active:hover,
.floating-actions button.is-pointer-active:hover {
  transform: translateY(-3px) rotateX(calc(var(--my, 0) * -4deg)) rotateY(calc(var(--mx, 0) * 4deg));
}

.floating-actions i {
  transition: transform 0.2s ease;
}

.floating-actions a:hover i,
.floating-actions button:hover i {
  transform: scale(1.08);
}

main#modules {
  position: relative;
  isolation: isolate;
}

main#modules::before,
main#modules::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

main#modules::before {
  width: 220px;
  height: 220px;
  top: 12%;
  right: -110px;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.08), transparent 68%);
}

main#modules::after {
  width: 180px;
  height: 180px;
  top: 58%;
  left: -90px;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.06), transparent 70%);
}

main#modules > section {
  position: relative;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

main#modules > section:not(:first-child)::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--brand-red-rgb), var(--divider-glow-soft)),
    rgba(var(--brand-red-rgb), var(--divider-glow-strong)),
    rgba(var(--brand-red-rgb), var(--divider-glow-soft)),
    transparent
  );
  background-size: 220% 100%;
  animation: dividerFlow 7s linear infinite;
}

.hero-visual img,
.reference-shot {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.18));
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease var(--reveal-delay, 0ms), transform 0.65s ease var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.18;
  z-index: 0;
  transition: transform 0.2s linear;
  animation: floatingOrb 16s ease-in-out infinite;
}

.hero .hero-orb.orb-one {
  width: 180px;
  height: 180px;
  top: 10%;
  right: 14%;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.24), rgba(var(--brand-red-rgb), 0.02) 70%);
}

.hero .hero-orb.orb-two {
  width: 140px;
  height: 140px;
  bottom: 18%;
  left: 11%;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.46), rgba(var(--brand-red-rgb), 0.06) 72%);
  animation-delay: -4s;
}

.hero .hero-orb.orb-three {
  width: 96px;
  height: 96px;
  top: 48%;
  right: 46%;
  background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.24), rgba(var(--brand-red-rgb), 0.03) 68%);
  animation-delay: -8s;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes heroGlowShift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.05);
  }
}

@keyframes floatingOrb {
  0%,
  100% {
    transform: translate3d(0, calc(var(--hero-fg-shift) + 0px), 0);
  }
  50% {
    transform: translate3d(0, calc(var(--hero-fg-shift) - 16px), 0);
  }
}

@keyframes dividerFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

@keyframes heroScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-footer {
  margin-top: 20px;
  background: #000;
  color: #fff;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 26px;
  padding: 34px 0 24px;
}

.site-footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}

.site-footer-brand p {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  color: #fff;
  max-width: 440px;
}

.site-footer-col h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.site-footer-col a,
.site-footer-col p {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.7;
}

.site-footer-col i {
  margin-left: 8px;
}

.site-footer-col p a {
  display: inline;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-bottom-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 16px;
}

.site-footer .site-footer-bottom-inner span {
  color: #fff;
}

body.homepage {
  --homepage-bg-main: #ffffff;
  --homepage-bg-section: #f5f6fa;
  --homepage-bg-card: #ffffff;
  --homepage-border: rgba(229, 9, 20, 0.14);
  --homepage-bg-glow-x: 72%;
  --homepage-bg-glow-y: 8%;
  --homepage-bg-glow-opacity: 0.12;
  --homepage-bg-glow-stop: 42%;
  --homepage-hero-gradient-start: #0d0d0d;
  --homepage-hero-gradient-mid: #1a0000;
  --homepage-red: #e50914;
  --homepage-red-bright: #ff3b3b;
  --homepage-red-hover: #ff3b3b;
  --homepage-text-primary: #121826;
  --homepage-text-secondary: #4f5d75;
  --homepage-hero-glow-size: 420px;
  --homepage-hero-glow-top: 18%;
  --homepage-hero-glow-left: 16%;
  --homepage-top-nav-angle: 120deg;
  --homepage-top-nav-start: rgba(255, 255, 255, 0.96);
  --homepage-top-nav-end: rgba(248, 249, 251, 0.96);
  --homepage-hero-overlay-x: 82%;
  --homepage-hero-overlay-y: 18%;
  --homepage-hero-overlay-stop: 38%;
  --homepage-hero-overlay-opacity: 0.12;
  --homepage-hero-overlay-dark-start: rgba(13, 13, 13, 0.6);
  --homepage-hero-overlay-dark-end: rgba(26, 0, 0, 0.25);
  --homepage-hero-visual-fallback: linear-gradient(130deg, rgba(120, 8, 20, 0.94), rgba(36, 5, 10, 0.95));
  --homepage-btn-hover-brightness: 1.09;
  --homepage-top-nav-offset: 5px;
  --homepage-top-nav-min-height: 84px;
  background: var(--homepage-bg-main);
  color: var(--homepage-text-primary);
  padding-top: var(--announcement-bar-height);
}

body.homepage .top-nav {
  background: linear-gradient(var(--homepage-top-nav-angle), var(--homepage-top-nav-start), var(--homepage-top-nav-end));
  border-bottom: 1px solid var(--homepage-border);
  backdrop-filter: blur(10px);
  top: var(--announcement-bar-height);
  margin-top: var(--homepage-top-nav-offset);
  padding-top: 10px;
  padding-bottom: 8px;
}

body.homepage .top-nav .inner {
  min-height: var(--homepage-top-nav-min-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

body.homepage .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
  top: auto;
}

body.homepage .announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background-color: var(--announcement-bg);
  background-image: linear-gradient(90deg, rgba(28, 2, 10, 0.96) 0%, rgba(118, 16, 26, 0.94) 50%, rgba(28, 2, 10, 0.96) 100%);
  color: var(--announcement-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  min-height: var(--announcement-bar-height);
  display: flex;
  align-items: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

body.homepage .announcement-track {
  white-space: nowrap;
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  padding-inline: 16px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  will-change: transform;
  animation: homepageAnnouncementSlide var(--announcement-speed) linear infinite;
}

body.homepage .announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

@keyframes homepageAnnouncementSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

body.homepage .brand,
body.homepage .brand span,
body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage h4 {
  color: var(--homepage-text-primary);
}

body.homepage p,
body.homepage .section-head p,
body.homepage .card p,
body.homepage .list-item p,
body.homepage .tour-form-card p,
body.homepage .newsletter-inner p,
body.homepage .newsletter-inner small {
  color: var(--homepage-text-secondary);
}

body.homepage .nav-links a,
body.homepage .nav-dropdown summary {
  background: #ffffff;
  border: 1px solid var(--homepage-border);
  color: #1f2937;
}

body.homepage .nav-links a:hover,
body.homepage .nav-dropdown summary:hover {
  color: var(--homepage-red-hover);
}

body.homepage .nav-links a.active,
body.homepage .nav-dropdown[open] summary {
  background: var(--homepage-red);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.28);
}

body.homepage .nav-dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--homepage-border);
}

body.homepage .nav-dropdown-menu a {
  background: #ffffff;
  color: #1f2937;
}

body.homepage .nav-dropdown-menu a:hover {
  background: #fff5f5;
  color: var(--homepage-red-hover);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 59, 0.35);
}

body.homepage .auth-btn {
  border: 1px solid rgba(229, 9, 20, 0.22);
  background: #ffffff;
  color: #1f2937;
}

body.homepage .auth-btn.primary {
  background: linear-gradient(135deg, var(--homepage-red), var(--homepage-red-hover));
  border: none;
  color: #ffffff;
}

body.homepage .hero {
  display: flex;
  min-height: 85vh;
  align-items: center;
  background-color: #140007;
  background-image: linear-gradient(128deg, #0c0003 0%, #230009 38%, #500014 70%, #380010 100%);
  border: 1px solid rgba(229, 9, 20, 0.22);
  box-shadow:
    0 28px 90px rgba(60, 0, 14, 0.58),
    inset 0 1px 0 rgba(255, 180, 180, 0.06);
}

body.homepage .hero.hero-bg-image {
  background-image:
    linear-gradient(90deg, rgba(8, 4, 8, 0.82) 30%, rgba(100, 10, 18, 0.62) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

body.homepage .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 44%, rgba(220, 50, 76, 0.26), transparent 54%),
    radial-gradient(ellipse at 18% 56%, rgba(155, 20, 44, 0.16), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(100, 0, 18, 0.22), transparent 46%);
  z-index: 0;
}

body.homepage .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(10, 0, 4, 0.58), rgba(0, 0, 0, 0.12)),
    linear-gradient(to top, rgba(0, 0, 0, 0.36) 0%, transparent 42%);
  opacity: 1;
  z-index: 1;
}

body.homepage .hero .hero-orb {
  display: block;
  opacity: 0.14;
}

body.homepage .hero-content h1::after {
  display: none;
}

body.homepage .hero-content h1 {
  font-size: clamp(22px, 3.0vw, 40px);
  font-weight: 900;
  line-height: 1.34;
  margin-bottom: 18px;
  text-align: right;
  color: #ffffff;
  letter-spacing: -0.2px;
}

body.homepage .hero-content p {
  max-width: 600px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.80;
  color: rgba(255, 220, 228, 0.78);
  text-align: right;
}

body.homepage .hero-inner {
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr) 200px;
  grid-template-areas: 'visual content sidebar';
  gap: 28px;
  align-items: center;
  align-self: stretch;
  align-content: center;
  padding: 48px 24px 48px;
  direction: ltr;
  position: relative;
  z-index: 2;
}

body.homepage .hero-media-stack {
  position: relative;
  grid-area: visual;
  width: 100%;
  max-width: 640px;
  margin: 0;
  justify-self: center;
  align-self: center;
  animation: heroVisualFloat 7s ease-in-out infinite;
  will-change: transform;
}

/* Frame wrapper — position:relative so float card can overflow without hero-visual clipping */
body.homepage .hero-media-frame {
  position: relative;
  width: 100%;
}

/* ── Floating card ─────────────────────────────────────────────────── */
body.homepage .hero-float-card {
  position: absolute;
  bottom: -18px;
  right: -12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 9, 20, 0.12);
  box-shadow:
    0 18px 40px rgba(8, 10, 18, 0.24),
    0 4px 12px rgba(229, 9, 20, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 238px;
  min-width: 168px;
  animation: heroFloatCardAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both,
             heroFloatCardFloat 5.5s ease-in-out 1.5s infinite;
  will-change: transform;
}

body.homepage .hero-float-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff2d2d, #e50914);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.38);
}

body.homepage .hero-float-body {
  min-width: 0;
  direction: rtl;
}

body.homepage .hero-float-title {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f0f14;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.homepage .hero-float-desc {
  display: block;
  font-size: 11px;
  color: #64697a;
  line-height: 1.45;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

@keyframes heroFloatCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

body.homepage .hero-content {
  grid-area: content;
  direction: rtl;
  text-align: right;
  align-self: center;
  max-width: 620px;
  justify-self: end;
}

body.homepage .hero-ctas {
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
}

body.homepage .hero-stats {
  margin: 24px 0 0;
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: right;
  gap: 16px;
  color: #ffffff;
}

body.homepage .hero-stats strong {
  color: #ffffff;
}

body.homepage .hero-stats span {
  color: #ffe4e8;
}

body.homepage .hero-visual,
body.homepage .hero-panel,
body.homepage .hero-glass-search {
  background: #ffffff;
  border: 1px solid rgba(229, 9, 20, 0.16);
  box-shadow: 0 14px 28px rgba(21, 30, 47, 0.12);
}

body.homepage .hero-visual {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 24px;
  background: var(--homepage-hero-visual-fallback);
  border: 1px solid rgba(248, 194, 184, 0.22);
  box-shadow: 0 36px 80px rgba(4, 6, 10, 0.72), 0 12px 32px rgba(160, 0, 20, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  margin-inline: 0;
  transition: transform 0.40s ease, box-shadow 0.40s ease;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, calc(var(--hero-fg-shift) * -0.05), 0);
}

body.homepage .hero-visual:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 48px 90px rgba(4, 6, 10, 0.68), 0 0 44px rgba(160, 0, 20, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.homepage .hero-visual::after {
  content: '';
  position: absolute;
  inset: -6px;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.28);
  filter: blur(2px);
  z-index: 1;
}

/* Logo badge inside frame — smaller, no background box, subtle branding */
body.homepage #site-logo-hero-badge {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  opacity: 0.92;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.homepage #site-logo-hero-badge:hover {
  opacity: 1;
  transform: scale(1.06);
}

body.homepage .hero-visual-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--homepage-hero-visual-fallback);
}

body.homepage .hero-has-image .hero-visual-media {
  background-image: var(--hero-custom-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroMediaZoom 20s ease-in-out infinite alternate;
}

body.homepage .hero-has-video .hero-visual-media {
  background: #120509;
}

body.homepage .hero-dashboard,
body.homepage .hero-glass-search {
  display: none;
}

body.homepage #hero-bg-video {
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
  transform: scale(1.05);
  animation: heroMediaZoom 20s ease-in-out infinite alternate;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 0.22s ease;
}

body.homepage #hero-bg-video.is-switching {
  opacity: 0.72;
}

body.homepage .hero-media-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.homepage .hero-slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  cursor: pointer;
}

body.homepage .hero-slider-toggle {
  position: static;
  top: auto;
  left: auto;
}

body.homepage .hero-chart-bars span,
body.homepage .hero-progress .progress-fill {
  background: linear-gradient(180deg, var(--homepage-red-hover), var(--homepage-red));
}

body.homepage .btn-primary {
  background: linear-gradient(135deg, #ff2d2d, #e50914);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

body.homepage .btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  border-radius: 999px;
}

body.homepage .btn:hover {
  transform: scale(1.05) translateY(-2px);
  transition: transform 0.30s ease, box-shadow 0.30s ease, filter 0.30s ease;
}

body.homepage .btn-primary:hover {
  filter: brightness(var(--homepage-btn-hover-brightness));
  box-shadow: 0 0 28px rgba(229, 9, 20, 0.56), 0 18px 44px rgba(229, 9, 20, 0.40);
}

body.homepage .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
}

body.homepage .hero-media-caption {
  color: #ffffff;
  text-align: center;
  margin-top: 14px;
}

body.homepage .hero-media-description {
  color: #ffe4e8;
  text-align: center;
  margin: 6px 0 0;
  min-height: 20px;
}

body.homepage .hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.homepage .hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

body.homepage .hero-slider-dot.is-active {
  width: 24px;
  background: #ffffff;
}

@keyframes heroMediaZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.1); }
}

@keyframes heroVisualFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Background control button */
body.homepage .hero-bg-ctrl {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

body.homepage .hero-bg-ctrl:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.1);
}

/* Smooth slide-in transition for frame media items */
body.homepage .hero-visual-media.is-fading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.homepage .hero-visual-media {
  transition: opacity 0.3s ease;
}

/* ── Hero Sidebar (right-side vertical menu) ─────────────────────────── */
body.homepage .hero-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
  direction: rtl;
  padding: 4px 0;
}

body.homepage .hero-sidebar-item {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 0, 4, 0.55);
  border: 1px solid rgba(229, 9, 20, 0.25);
  color: rgba(255, 220, 228, 0.88);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

body.homepage .hero-sidebar-item:hover,
body.homepage .hero-sidebar-item:focus-visible {
  background: linear-gradient(135deg, #e50914, #b5000e);
  border-color: rgba(229, 9, 20, 0.7);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.40);
  outline: none;
}

/* ── Hero Sidebar – Expandable nested menu (الإمبراطورة) ──────────────── */
body.homepage .hero-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

body.homepage .hero-sidebar-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  text-align: right;
  white-space: normal;
}

body.homepage .hero-sidebar-arrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

body.homepage .hero-sidebar-toggle[aria-expanded="true"] .hero-sidebar-arrow {
  transform: rotate(-180deg);
}

/* Submenu panel – hidden by default, smooth slide in */
body.homepage .hero-sidebar-submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 0;
  margin-top: 0;
  border-right: 2px solid rgba(229, 9, 20, 0.35);
  margin-right: 10px;
}

body.homepage .hero-sidebar-submenu.open {
  max-height: 800px;
  opacity: 1;
  padding-top: 4px;
  margin-top: 4px;
}

/* Sub-items (first level) */
body.homepage .hero-sidebar-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 0, 4, 0.45);
  border: 1px solid rgba(229, 9, 20, 0.18);
  color: rgba(255, 210, 218, 0.82);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  text-align: right;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

body.homepage .hero-sidebar-subitem:hover,
body.homepage .hero-sidebar-subitem:focus-visible {
  background: linear-gradient(135deg, #c50712, #960009);
  border-color: rgba(229, 9, 20, 0.6);
  color: #ffffff;
  transform: translateX(2px);
  outline: none;
}

/* Sub-sub-items (deeper indent) */
body.homepage .hero-sidebar-subsubitem {
  font-size: 12px;
  padding: 7px 10px;
  background: rgba(10, 0, 4, 0.35);
  margin-right: 6px;
}

/* ── Hero Media Note area (below media frame) ────────────────────────── */
body.homepage .hero-media-note {
  margin-top: 14px;
  background: rgba(10, 0, 4, 0.52);
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.homepage .hero-note-text {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 9, 20, 0.20);
  border-radius: 10px;
  color: #ffe4e8;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.65;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

body.homepage .hero-note-text::placeholder {
  color: rgba(255, 200, 210, 0.48);
}

body.homepage .hero-note-text:focus {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(255, 255, 255, 0.10);
}

body.homepage .hero-note-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.30);
  color: rgba(255, 200, 210, 0.88);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  align-self: flex-start;
}

body.homepage .hero-note-upload input[type="file"] {
  display: none;
}

body.homepage .hero-note-upload:hover {
  background: linear-gradient(135deg, #e50914, #b5000e);
  border-color: rgba(229, 9, 20, 0.8);
  color: #ffffff;
}

/* Background image zoom on hero */
body.homepage .hero.hero-has-bg-image .hero-media-layer img {
  animation: heroMediaZoom 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .hero-has-image .hero-visual-media,
  body.homepage #hero-bg-video,
  body.homepage .hero.hero-has-bg-image .hero-media-layer img {
    animation: none;
    transform: none;
  }
}

body.homepage .card,
body.homepage .list-card,
body.homepage .tour-form-card,
body.homepage .tour-image-card,
body.homepage .registration-card,
body.homepage .training-card {
  background: var(--homepage-bg-card);
  border: 1px solid rgba(229, 9, 20, 0.1);
  box-shadow: 0 10px 25px rgba(21, 30, 47, 0.08);
}

body.homepage .card:hover,
body.homepage .training-card:hover,
body.homepage .tour-form-card:hover,
body.homepage .registration-card:hover {
  border-color: rgba(229, 9, 20, 0.28);
  box-shadow: 0 18px 32px rgba(229, 9, 20, 0.18);
}

body.homepage .icon-box {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.25);
  color: var(--homepage-red);
}

body.homepage .tour-form label,
body.homepage .registration-form label,
body.homepage .training-zone h4 {
  color: var(--homepage-text-primary);
}

body.homepage .tour-form input,
body.homepage .tour-form select,
body.homepage .tour-form textarea,
body.homepage .registration-form input,
body.homepage .registration-form select,
body.homepage .registration-form textarea,
body.homepage .newsletter-form input {
  border: 1px solid rgba(229, 9, 20, 0.2);
  background: #ffffff;
  color: var(--homepage-text-primary);
}

body.homepage .tour-form input:focus,
body.homepage .tour-form select:focus,
body.homepage .tour-form textarea:focus,
body.homepage .registration-form input:focus,
body.homepage .registration-form select:focus,
body.homepage .registration-form textarea:focus,
body.homepage .newsletter-form input:focus {
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

body.homepage .newsletter-section {
  background: linear-gradient(180deg, #0d0d0d, #000000);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

body.homepage .newsletter-inner h2 {
  color: #ffffff;
}

body.homepage .newsletter-inner p,
body.homepage .newsletter-inner small {
  color: #cccccc;
}

body.homepage .newsletter-form input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111111;
  color: #ffffff;
}

body.homepage .newsletter-form input::placeholder {
  color: #777777;
}

body.homepage .newsletter-inner h2::after {
  background: linear-gradient(135deg, var(--homepage-red), var(--homepage-red-hover));
}

body.homepage .newsletter-form .btn {
  background: linear-gradient(135deg, #ff2d2d, #e50914);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

body.homepage .floating-actions a,
body.homepage .floating-actions button {
  background: #ffffff;
  border: 1px solid rgba(229, 9, 20, 0.25);
  color: var(--homepage-red);
}

body.homepage .floating-actions a:hover,
body.homepage .floating-actions button:hover {
  background: var(--homepage-red);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(229, 9, 20, 0.32);
}

body.homepage .site-footer {
  background: linear-gradient(180deg, #0d0d0d, #000000);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.homepage .site-footer-brand p,
body.homepage .site-footer-col p,
body.homepage .site-footer-bottom-inner,
body.homepage .site-footer .site-footer-bottom-inner span {
  color: #cccccc;
}

body.homepage .site-footer-col h3 {
  color: #ffffff;
}

body.homepage .site-footer-col a,
body.homepage .site-footer-col p a {
  color: #ffffff;
}

body.homepage .site-footer-col a:hover,
body.homepage .site-footer-col p a:hover {
  color: #ff3b3b;
}

body.homepage .site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.homepage .highlight {
  color: var(--homepage-red-hover);
}

/* ── Main Sections Grid: 6-per-row ───────────────────────────────── */
#main-sections-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  justify-items: stretch;
}

/* ── Premium card upgrades (scoped to main sections grid) ────────── */
@keyframes sectionCardFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.homepage #main-sections-grid .card {
  animation: sectionCardFadeUp 0.38s ease both;
  will-change: transform, opacity;
}

body.homepage #main-sections-grid .card:nth-child(1)  { animation-delay: 0.04s; }
body.homepage #main-sections-grid .card:nth-child(2)  { animation-delay: 0.08s; }
body.homepage #main-sections-grid .card:nth-child(3)  { animation-delay: 0.12s; }
body.homepage #main-sections-grid .card:nth-child(4)  { animation-delay: 0.16s; }
body.homepage #main-sections-grid .card:nth-child(5)  { animation-delay: 0.20s; }
body.homepage #main-sections-grid .card:nth-child(6)  { animation-delay: 0.24s; }
body.homepage #main-sections-grid .card:nth-child(n+7) { animation-delay: 0.28s; }

body.homepage #main-sections-grid .card:hover .icon-box {
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

/* Tablet: 3 per row */
@media (max-width: 1050px) {
  #main-sections-grid,
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile: 2 per row */
@media (max-width: 600px) {
  #main-sections-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Very small screens: 1 per row */
@media (max-width: 360px) {
  #main-sections-grid,
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Disable animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.homepage #main-sections-grid .card {
    animation: none;
  }
}

@media (max-width: 1050px) {
  body.homepage .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'content'
      'visual';
    gap: 18px;
    padding: 24px 0 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero-glass-search {
    top: 14px;
    left: 14px;
    min-width: 190px;
    height: 48px;
    border-radius: 14px;
  }

  body.homepage .hero-float-card {
    right: -8px;
    bottom: -14px;
    max-width: 210px;
    padding: 11px 14px;
  }

  .hero-dashboard {
    inset: 56px 28px 30px;
  }

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

  .hero-content p {
    font-size: 15px;
    max-width: none;
  }

  .hero-stats strong {
    font-size: 34px;
  }

  .hero-stats span {
    font-size: 16px;
  }

  .auth-btn,
  .btn,
  .card h3,
  .list-item h3,
  .section-head p {
    font-size: 16px;
  }

  .card p,
  .list-item p {
    font-size: 15px;
  }

  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-brand p {
    font-size: 18px;
  }

  .site-footer-col h3 {
    font-size: 18px;
  }

  .site-footer-col a,
  .site-footer-col p {
    font-size: 15px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .booking-tour-section {
    grid-template-columns: 1fr;
  }

  .training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .tour-image-card img {
    min-height: 320px;
  }

  .reference-section {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 0;
  }

  .reference-visual {
    height: 280px;
  }

  .reference-content h2 {
    font-size: 34px;
  }

  .reference-content p {
    font-size: 18px;
  }
}

@media (max-width: 740px) {
  img,
  video {
    max-width: 100%;
    height: auto;
  }

  .container {
    max-width: 100%;
  }

  .top-nav {
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(8, 10, 14, 0.06);
  }

  body.homepage {
    --announcement-bar-height: 40px;
  }

  body.homepage .announcement-bar {
    min-height: 40px;
    padding: 6px 12px;
  }

  body.homepage .announcement-track {
    font-size: 14px;
  }

  .top-nav .inner {
    min-height: 0;
    align-items: stretch;
    padding: 8px 0;
    flex-direction: column;
    gap: 8px;
  }

  .nav-main {
    width: 100%;
    gap: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-dropdown summary {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    right: auto;
    left: 0;
    min-width: 150px;
    padding: 8px;
  }

  .nav-dropdown-menu a {
    padding: 8px;
    font-size: 13px;
  }

  .auth-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .auth-actions::-webkit-scrollbar {
    display: none;
  }

  .auth-btn {
    font-size: 14px;
    padding: 9px 14px;
    border-radius: 14px;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 60px 0 70px;
    gap: 22px;
    min-height: auto;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    text-align: right;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(25px, 8vw, 31px);
    line-height: 1.38;
  }

  .hero-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    max-width: 36ch;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 360px;
    min-height: 48px;
  }

  .hero-visual {
    height: 320px;
    min-height: 0;
    padding-top: 0;
  }

  .hero-visual img {
    width: 74px;
    height: 74px;
    left: 14px;
    bottom: 12px;
    border-radius: 14px;
    padding: 8px;
  }

  body.homepage #site-logo-hero-badge {
    width: 36px;
    height: 36px;
    left: 14px;
    bottom: 14px;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    border: none;
  }

  .hero-glass-search {
    top: 10px;
    left: 10px;
    height: 40px;
    min-width: 130px;
    width: auto;
    max-width: calc(100% - 20px);
    margin: 0;
    padding: 0 10px;
    border-radius: 12px;
  }

  body.homepage .hero-float-card {
    right: 10px;
    bottom: -12px;
    max-width: 190px;
    min-width: 0;
    padding: 10px 13px;
    gap: 9px;
    border-radius: 14px;
  }

  body.homepage .hero-float-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 12px;
  }

  body.homepage .hero-float-title {
    font-size: 11.5px;
  }

  body.homepage .hero-float-desc {
    font-size: 10.5px;
  }

  .hero-dashboard {
    inset: 52px 16px 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-panel-main {
    grid-row: auto;
  }

  .hero-panel-main,
  .hero-panel-metrics,
  .hero-panel-status {
    border-radius: 16px;
    padding: 10px 12px;
  }

  .hero-panel-main header {
    font-size: 12px;
  }

  .hero-panel-grid strong,
  .hero-panel-metrics strong,
  .hero-panel-status strong {
    font-size: 18px;
  }

  .hero-panel-grid span,
  .hero-panel-metrics p,
  .hero-panel-status span {
    font-size: 12px;
  }

  .hero-chart-bars {
    gap: 6px;
    padding: 4px 0;
  }

  .hero-chart-bars span:nth-child(1) { height: 28px; }
  .hero-chart-bars span:nth-child(2) { height: 42px; }
  .hero-chart-bars span:nth-child(3) { height: 56px; }
  .hero-chart-bars span:nth-child(4) { height: 36px; }
  .hero-chart-bars span:nth-child(5) { height: 46px; }

  .hero-stats {
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: center;
  }

  .hero-stats .stat {
    min-width: 0;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats strong {
    font-size: clamp(30px, 7.2vw, 36px);
  }

  .hero-stats span {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .floating-actions {
    position: static;
    width: fit-content;
    margin: 0 auto 18px;
    flex-direction: row;
    justify-content: center;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    gap: 8px;
  }

  .floating-actions a,
  .floating-actions button {
    width: 40px;
    height: 40px;
    font-size: 15px;
    box-shadow: 0 8px 16px rgba(var(--brand-red-rgb), 0.28);
  }

  .reference-section {
    padding: 0;
    border-radius: 18px;
  }

  main#modules {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  main#modules::before,
  main#modules::after {
    display: none;
  }

  .tour-form-card,
  .tour-image-card {
    border-radius: 18px;
  }

  .tour-form-card h3 {
    font-size: 24px;
  }

  .tour-form-card p,
  .tour-form label,
  .tour-image-overlay span {
    font-size: 14px;
  }

  .reference-visual {
    height: 220px;
    border-radius: 16px;
  }

  .reference-visual span {
    font-size: 14px;
    padding: 8px 10px;
  }

  .reference-content h2 {
    font-size: 27px;
  }

  .reference-content p {
    font-size: 16px;
    margin: 12px 0 18px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer-brand p {
    font-size: 18px;
  }

  .site-footer-bottom-inner {
    min-height: 0;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body.homepage .hero {
    min-height: auto;
  }

  body.homepage .hero-visual {
    max-width: 100%;
    height: 250px;
  }

  /* Override global .card width reset inside all grid sections */
  .cards .card {
    width: 100%;
    margin: 0;
  }

  body.homepage #site-logo-hero-badge {
    width: 36px;
    height: 36px;
    left: 14px;
    bottom: 14px;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    border: none;
  }

  body.homepage .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'visual'
      'content'
      'sidebar';
    gap: 20px;
    padding: 40px 16px 36px;
    min-height: auto;
  }

  body.homepage .hero-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-self: auto;
  }

  body.homepage .hero-sidebar::-webkit-scrollbar {
    display: none;
  }

  body.homepage .hero-sidebar-item {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  body.homepage .hero-sidebar-item:hover,
  body.homepage .hero-sidebar-item:focus-visible {
    transform: none;
  }

  /* On mobile the sidebar is a horizontal row – keep the group inline,
     submenus stack below with a contained width for readability */
  body.homepage .hero-sidebar-group {
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    max-width: 160px;
  }

  body.homepage .hero-sidebar-submenu {
    margin-right: 4px;
  }

  body.homepage .hero-sidebar-subitem {
    white-space: normal;
    font-size: 11.5px;
    padding: 6px 10px;
    flex-shrink: 0;
  }

  body.homepage .hero-sidebar-subitem:hover,
  body.homepage .hero-sidebar-subitem:focus-visible {
    transform: none;
  }

  body.homepage .hero-media-note {
    margin-top: 10px;
  }

  .cards {
    justify-items: center;
  }

  .card {
    width: min(90%, 420px);
    margin: 10px auto;
    text-align: center;
  }

  .card img {
    margin: 0 auto;
    display: block;
  }

  .card .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .text-right {
    text-align: center;
  }

  /* ── Homepage hero content: fill column width and center on mobile ── */
  body.homepage .hero-content {
    justify-self: stretch;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  body.homepage .hero-content h1 {
    text-align: center;
    font-size: clamp(20px, 6vw, 28px);
  }

  body.homepage .hero-content p {
    text-align: center;
    max-width: 100%;
    margin: 0 0 20px;
    font-size: 15px;
  }

  body.homepage .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  body.homepage .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    min-height: 48px;
    justify-content: center;
  }

  body.homepage .hero-stats {
    text-align: center;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.homepage .hero-media-stack {
    width: 100%;
    max-width: min(100%, 420px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .announcement-track {
    animation: none;
    transform: none;
  }

  .btn,
  .card,
  .icon-box i,
  .floating-actions i,
  .reveal-on-scroll,
  .hero,
  .hero::before,
  .hero::after,
  .hero .hero-orb,
  .hero-glass-search,
  .hero-panel-main,
  .hero-panel-metrics,
  .hero-panel-status,
  .hero-content h1,
  .hero-content h1::after,
  .hero-content p,
  .hero-ctas,
  .hero-stats,
  .hero-float-card {
    transition: none;
    animation: none;
  }

  .btn:hover,
  .card:hover,
  .floating-actions a:hover,
  .floating-actions button:hover {
    transform: none;
    filter: none;
  }

  .btn.is-pointer-active,
  .icon-box.is-pointer-active,
  .floating-actions a.is-pointer-active,
  .floating-actions button.is-pointer-active {
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  main#modules > section:not(:first-child)::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
