@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --recad-white: #FFFFFF;
  --recad-ivory: #F7F8F5;
  --recad-cool-gray: #EEF2F5;
  --recad-navy: #0D2352;
  --recad-green: #12A855;
  --recad-teal: #1AC98A;
  --recad-text: #14213D;
  --recad-muted: #64748B;
  --recad-border: #E2E8F0;
  --recad-border-subtle: #EDF2F7;
  --recad-border-hover: rgba(18, 168, 85, 0.4);
}

/* ========================================================================= */
/* 1. BASE TYPOGRAPHY, VIEWPORT & RESPONSIVE CONTAINMENT                     */
/* ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #F0FAF5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(18, 168, 85, 0.18) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(13, 35, 82, 0.16) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(26, 201, 138, 0.20) 0px, transparent 55%),
    radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.15) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.10) 0px, transparent 50%),
    linear-gradient(135deg, #F2FBF6 0%, #E6F3FD 25%, #EFFDF5 50%, #ECEFFF 75%, #F2FBF7 100%);
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 200% 200%;
  color: var(--recad-text);
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  scroll-padding-top: 7rem;
}

html[lang="en"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body,
body.bg-white,
body.bg-\[\#F8FAFC\],
body.bg-\[\#F7F8F5\] {
  background-color: transparent !important;
  background: transparent !important;
  color: var(--recad-text);
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-top: 5.75rem !important;
}

@media (min-width: 1024px) {
  body,
  body.bg-white,
  body.bg-\[\#F8FAFC\],
  body.bg-\[\#F7F8F5\] {
    padding-top: 6.75rem !important;
  }
}

section, footer {
  position: relative;
  z-index: 1;
}

/* Universal Living Color Gradient Coverage across ALL Sections */
section.bg-white,
section.bg-\[\#F8FAFC\],
section.bg-\[\#F7F8F5\],
section.bg-slate-50\/70,
section.bg-slate-50 {
  background-color: transparent !important;
}

/* Subtle Glass Elevation for Specific Interactive Strips */
section.border-y,
section.border-t,
section.border-b {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.35) !important;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ========================================================================= */
/* 2. CREATIVE ENGINEERING BLUEPRINT & AMBIENT TEXTURES                     */
/* ========================================================================= */
.hero-blueprint-bg {
  position: relative;
  background-color: transparent;
  background-image: 
    radial-gradient(circle at 80% 12%, rgba(18, 168, 85, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 78%, rgba(13, 35, 82, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(26, 201, 138, 0.07) 0%, transparent 45%),
    linear-gradient(to right, rgba(13, 35, 82, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 35, 82, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

.cad-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(13, 35, 82, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 35, 82, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.cad-grid-accent {
  background-image: 
    linear-gradient(to right, rgba(18, 168, 85, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 168, 85, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cad-dots-subtle {
  background-image: radial-gradient(rgba(13, 35, 82, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Global Fixed Ambient Backdrop Canvas (Disabled per user request) */
.site-ambient-canvas,
.site-wave-container,
.site-wave-band,
.site-wave-svg,
.ambient-glow-orb,
.ambient-soft-navy,
.ambient-soft-green,
.ambient-soft-teal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
  pointer-events: none !important;
}

/* Subtle Animated Mesh Flow with Wave Undulation */
.site-ambient-canvas::before {
  content: '';
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  background: 
    radial-gradient(ellipse at 18% 22%, rgba(18, 168, 85, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 28%, rgba(13, 35, 82, 0.18) 0%, transparent 54%),
    radial-gradient(ellipse at 48% 72%, rgba(26, 201, 138, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 84%, rgba(37, 99, 235, 0.16) 0%, transparent 48%),
    radial-gradient(ellipse at 25% 66%, rgba(245, 158, 11, 0.14) 0%, transparent 46%);
  animation: canvasWaveMeshDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* Architectural Micro-Grid on Background */
.site-ambient-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(13, 35, 82, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 35, 82, 0.022) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  opacity: 0.55;
}

/* Multi-depth Harmonic Wave Ribbons */
.site-wave-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.site-wave-band {
  position: absolute;
  left: 0;
  width: 200%;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

.site-wave-band-bottom {
  bottom: -20px;
  height: 55vh;
  min-height: 380px;
}

.site-wave-band-top {
  top: -20px;
  height: 45vh;
  min-height: 300px;
  transform: rotate(180deg);
  opacity: 0.75;
}

.site-wave-band-mid {
  top: 28%;
  height: 42vh;
  opacity: 0.65;
}

.site-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Seamless Infinite Wave Movement Keyframes */
@keyframes waveRollForward {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-25%, 14px, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes waveRollReverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  50% {
    transform: translate3d(-25%, -14px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes waveRollPulse {
  0% {
    transform: translate3d(0, 0, 0) scaleY(1);
  }
  50% {
    transform: translate3d(-25%, -10px, 0) scaleY(1.08);
  }
  100% {
    transform: translate3d(-50%, 0, 0) scaleY(1);
  }
}

.wave-speed-1 {
  animation: waveRollForward 24s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.wave-speed-2 {
  animation: waveRollReverse 32s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.wave-speed-3 {
  animation: waveRollPulse 20s ease-in-out infinite;
}

.wave-line-svg {
  animation: waveRollForward 28s linear infinite;
}

@keyframes waveGradientFlow {
  0% {
    background-position: 0% 20%;
  }
  50% {
    background-position: 100% 80%;
  }
  100% {
    background-position: 20% 100%;
  }
}

@keyframes canvasWaveMeshDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate3d(-3%, 2%, 0) rotate(1.5deg) scale(1.04);
  }
  66% {
    transform: translate3d(2%, -3%, 0) rotate(-1.5deg) scale(1.02);
  }
  100% {
    transform: translate3d(-2%, -2%, 0) rotate(0.8deg) scale(1.05);
  }
}

/* Floating Living Blur Orbs with Organic Fluid Morphing */
.ambient-glow-orb {
  position: absolute;
  pointer-events: none;
  filter: blur(85px);
  -webkit-filter: blur(85px);
  will-change: transform, border-radius;
  mix-blend-mode: multiply;
  border-radius: 54% 46% 62% 38% / 48% 55% 45% 52%;
}

@media (min-width: 768px) {
  .ambient-glow-orb {
    filter: blur(115px);
    -webkit-filter: blur(115px);
  }
}

/* 1. Emerald Green Living Wave Orb */
.ambient-orb-green {
  background: radial-gradient(circle, rgba(18, 168, 85, 0.32) 0%, rgba(26, 201, 138, 0.18) 45%, transparent 70%);
  animation: floatWaveOrbGreen 19s ease-in-out infinite alternate;
}

/* 2. Deep Navy / Azure Living Wave Orb */
.ambient-orb-navy {
  background: radial-gradient(circle, rgba(13, 35, 82, 0.25) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
  animation: floatWaveOrbNavy 23s ease-in-out infinite alternate;
}

/* 3. Bright Teal / Cyan Living Wave Orb */
.ambient-orb-teal {
  background: radial-gradient(circle, rgba(26, 201, 138, 0.30) 0%, rgba(6, 182, 212, 0.16) 50%, transparent 70%);
  animation: floatWaveOrbTeal 27s ease-in-out infinite alternate;
}

/* 4. Warm Sunlight / Tech Amber Accent Orb */
.ambient-orb-amber {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20) 0%, rgba(251, 191, 36, 0.08) 50%, transparent 70%);
  animation: floatWaveOrbAmber 21s ease-in-out infinite alternate;
}

/* Keyframes for Gentle, Fluid, Hypnotic Organic Wave Movement */
@keyframes floatWaveOrbGreen {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 54% 46% 62% 38% / 48% 55% 45% 52%;
  }
  33% {
    transform: translate3d(70px, -45px, 0) scale(1.14) rotate(25deg);
    border-radius: 65% 35% 48% 52% / 58% 42% 58% 42%;
  }
  66% {
    transform: translate3d(-50px, 55px, 0) scale(0.94) rotate(-15deg);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  100% {
    transform: translate3d(60px, 30px, 0) scale(1.08) rotate(40deg);
    border-radius: 54% 46% 62% 38% / 48% 55% 45% 52%;
  }
}

@keyframes floatWaveOrbNavy {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 46% 54% 38% 62% / 55% 48% 52% 45%;
  }
  33% {
    transform: translate3d(-80px, 55px, 0) scale(1.16) rotate(-30deg);
    border-radius: 58% 42% 65% 35% / 45% 55% 45% 55%;
  }
  66% {
    transform: translate3d(50px, -65px, 0) scale(0.90) rotate(20deg);
    border-radius: 35% 65% 42% 58% / 52% 48% 52% 48%;
  }
  100% {
    transform: translate3d(-40px, -30px, 0) scale(1.06) rotate(-45deg);
    border-radius: 46% 54% 38% 62% / 55% 48% 52% 45%;
  }
}

@keyframes floatWaveOrbTeal {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  }
  50% {
    transform: translate3d(65px, 70px, 0) scale(1.18);
    border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  }
  100% {
    transform: translate3d(-70px, -45px, 0) scale(0.95);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  }
}

@keyframes floatWaveOrbAmber {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
  }
  50% {
    transform: translate3d(-50px, -55px, 0) scale(1.15);
    border-radius: 55% 45% 62% 38% / 42% 58% 42% 58%;
  }
  100% {
    transform: translate3d(55px, 35px, 0) scale(0.98);
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
  }
}

/* Ambient Radial Glows (Sections & Hero) */
.ambient-soft-navy {
  position: absolute;
  width: 520px;
  height: 520px;
  max-width: 80vw;
  max-height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 35, 82, 0.20) 0%, rgba(37, 99, 235, 0.10) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(70px);
  -webkit-filter: blur(70px);
  animation: floatWaveOrbNavy 24s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.ambient-soft-green {
  position: absolute;
  width: 480px;
  height: 480px;
  max-width: 80vw;
  max-height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 168, 85, 0.24) 0%, rgba(26, 201, 138, 0.12) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(70px);
  -webkit-filter: blur(70px);
  animation: floatWaveOrbGreen 20s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.ambient-soft-teal {
  position: absolute;
  width: 460px;
  height: 460px;
  max-width: 80vw;
  max-height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 201, 138, 0.22) 0%, rgba(6, 182, 212, 0.10) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(70px);
  -webkit-filter: blur(70px);
  animation: floatWaveOrbTeal 26s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

/* Accessible reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb-green,
  .ambient-orb-navy,
  .ambient-orb-teal,
  .ambient-orb-amber,
  .ambient-soft-navy,
  .ambient-soft-green,
  .ambient-soft-teal,
  .site-ambient-canvas,
  .site-ambient-canvas::before,
  .site-wave-svg,
  .wave-speed-1,
  .wave-speed-2,
  .wave-speed-3,
  .wave-line-svg {
    animation: none !important;
  }
}

/* ========================================================================= */
/* ========================================================================= */
/* 3. EDITORIAL GLASS HEADER & NAVIGATION (DEEP NAVY THEME)                   */
/* ========================================================================= */
header#mainNavbar,
#mainNavbar,
.cad-glass-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: linear-gradient(
    135deg,
    rgba(10, 26, 62, 0.97) 0%,
    rgba(13, 35, 82, 0.96) 50%,
    rgba(9, 22, 53, 0.98) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 32px -4px rgba(5, 15, 40, 0.5),
    0 2px 8px -1px rgba(18, 168, 85, 0.2);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

#mainNavbar.nav-scrolled {
  box-shadow: 
    0 12px 36px -4px rgba(0, 0, 0, 0.7),
    0 2px 12px -1px rgba(26, 201, 138, 0.35) !important;
  border-bottom-color: rgba(26, 201, 138, 0.35) !important;
}

.cad-glass-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(18, 168, 85, 0.8) 0%,
    rgba(26, 201, 138, 0.95) 30%,
    rgba(18, 168, 85, 0.5) 70%,
    rgba(26, 201, 138, 0.2) 100%
  );
  pointer-events: none;
}

#mobileMenuDrawer {
  background: linear-gradient(
    180deg,
    rgba(10, 26, 62, 0.98) 0%,
    rgba(13, 35, 82, 0.98) 100%
  ) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link-item {
  position: relative;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
  padding: 0.45rem 0.75rem;
  border-radius: 0.625rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  flex-shrink: 0;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #F8FAFC !important;
  letter-spacing: -0.01em;
}

@media (min-width: 1280px) {
  .nav-link-item {
    font-size: 1.125rem !important;
    padding: 0.5rem 0.85rem;
  }
}

.nav-link-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #1AC98A !important;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 0.65rem;
  left: 0.65rem;
  height: 2.5px;
  background: linear-gradient(90deg, #12A855, #1AC98A);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  transform: scaleX(0);
  opacity: 0;
  border-radius: 2px;
}

/* Direction-Aware Underline Expansion */
html[dir="rtl"] .nav-link-item::after {
  transform-origin: right center;
}

html[dir="ltr"] .nav-link-item::after {
  transform-origin: left center;
}

.nav-link-item:hover::after,
.nav-link-item.nav-active-link::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link-item.nav-active-link {
  color: #1AC98A !important;
  font-weight: 800 !important;
  background: rgba(26, 201, 138, 0.18) !important;
}

/* Strict No-Wrap & Word-Break Protection across all Header Elements */
#mainNavbar nav a,
#mainNavbar nav span,
#mainNavbar button,
#mainNavbar .brand-btn-primary,
#mainNavbar .brand-btn-secondary,
#langToggleBtn,
#langToggleMobileBtn {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  flex-shrink: 0;
  font-weight: 700;
}

[data-i18n="brandSlogan"] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: #334155;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Responsive Desktop Optimization (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  #mainNavbar nav {
    gap: 0.35rem !important;
    font-size: 0.95rem !important;
  }
  .nav-link-item {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.95rem !important;
  }
  #mainNavbar .brand-btn-primary {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.85rem !important;
  }
  #langToggleBtn {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    font-size: 0.85rem !important;
  }
}

#mainNavbar .brand-btn-primary {
  font-size: 0.925rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(18, 168, 85, 0.45) !important;
}

#langToggleBtn,
#langToggleMobileBtn {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  color: #FFFFFF !important;
  font-size: 0.925rem !important;
  font-weight: 700 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#langToggleBtn:hover,
#langToggleMobileBtn:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  border-color: rgba(26, 201, 138, 0.50) !important;
  color: #1AC98A !important;
}

#langToggleBtn svg,
#langToggleMobileBtn svg {
  color: #1AC98A !important;
}

#mobileMenuBtn {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  color: #FFFFFF !important;
}

#mobileMenuBtn:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  color: #1AC98A !important;
}

#mainNavbar .dropdown-arrow {
  color: rgba(255, 255, 255, 0.70) !important;
}

.group:hover #mainNavbar .dropdown-arrow,
#mainNavbar .nav-link-item:hover .dropdown-arrow {
  color: #1AC98A !important;
}

#mobileMenuDrawer nav a,
#mobileMenuDrawer button {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

#mobileMenuDrawer nav a:hover,
#mobileMenuDrawer button:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #1AC98A !important;
}

/* Refined Dropdown Menu Smooth Opening and Closing (Fade + Slide) */
.nav-dropdown-menu,
.group > div.absolute.top-full {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.22s;
  pointer-events: none;
  will-change: opacity, transform;
}

.group:hover > div.absolute.top-full,
.group:focus-within > div.absolute.top-full,
.group:hover .nav-dropdown-menu,
.group:focus-within .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.nav-dropdown-menu a,
.group > div.absolute.top-full a {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .group > div.absolute.top-full a:hover {
  transform: translateX(-3px);
}

html[dir="ltr"] .group > div.absolute.top-full a:hover {
  transform: translateX(3px);
}

/* Language Switcher Button Micro-Interaction */
#langToggleBtn,
#langToggleMobileBtn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#langToggleBtn:hover,
#langToggleMobileBtn:hover {
  border-color: #12A855;
  color: #12A855;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 168, 85, 0.12);
}

/* Mobile Menu Drawer - Smooth Responsive Transition */
#mobileMenuDrawer {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobileMenuDrawer.drawer-animating-out {
  opacity: 0;
  transform: translateY(-8px);
}

#mobileMenuDrawer.drawer-animating-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================= */
/* 4. CAD WORKSTATION WINDOW & HERO VISUAL SHOWCASE                          */
/* ========================================================================= */
.cad-workstation-window {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 1.5rem;
  box-shadow: 
    0 20px 45px -12px rgba(13, 35, 82, 0.08),
    0 0 0 1px rgba(18, 168, 85, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.cad-workstation-window:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 28px 60px -15px rgba(13, 35, 82, 0.12),
    0 0 0 1.5px rgba(18, 168, 85, 0.25);
}

.floating-glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px -6px rgba(13, 35, 82, 0.1);
}

/* Architectural Crosshair Accents */
.cad-crosshair-tl::before {
  content: '+';
  position: absolute;
  top: -9px;
  right: -9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #12A855;
  line-height: 1;
}

.cad-crosshair-br::after {
  content: '+';
  position: absolute;
  bottom: -9px;
  left: -9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #0D2352;
  line-height: 1;
}

/* ========================================================================= */
/* 5. DISCIPLINE RIBBON (RESPONSIVE SAFE, TOUCH READY)                       */
/* ========================================================================= */
.discipline-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.discipline-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* ========================================================================= */
/* 5.5 ENGINEERING DISCIPLINE SHOWCASE CARDS (HIGH-END EXECUTIVE STRIP)     */
/* ========================================================================= */
.discipline-card {
  position: relative;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px -2px rgba(13, 35, 82, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  overflow: hidden;
}

.discipline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(18, 168, 85, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.discipline-card:hover {
  background: #FFFFFF;
  border-color: rgba(18, 168, 85, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(18, 168, 85, 0.18), 0 4px 8px -2px rgba(13, 35, 82, 0.04);
}

.discipline-card:hover::before {
  opacity: 1;
}

.discipline-icon-box {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: rgba(18, 168, 85, 0.08);
  border: 1px solid rgba(18, 168, 85, 0.18);
  color: #12A855;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.discipline-card:hover .discipline-icon-box {
  background: #12A855;
  color: #FFFFFF;
  border-color: #12A855;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(18, 168, 85, 0.3);
}

.discipline-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 0.375rem;
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
  display: inline-block;
  line-height: 1.2;
  transition: all 0.25s ease;
}

.discipline-card:hover .discipline-num {
  background: rgba(18, 168, 85, 0.12);
  color: #12A855;
  border-color: rgba(18, 168, 85, 0.25);
}

.discipline-title {
  font-size: 0.785rem;
  font-weight: 700;
  color: #0D2352;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.discipline-card:hover .discipline-title {
  color: #12A855;
}

.discipline-badge {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.85rem;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(13, 35, 82, 0.02);
  flex-shrink: 0;
}

.discipline-badge:hover {
  background: #F0FDF4;
  border-color: #12A855;
  color: #0D2352;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(18, 168, 85, 0.15);
}

/* ========================================================================= */
/* 6. EDITORIAL CARDS & ELEVATIONS                                           */
/* ========================================================================= */
.editorial-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(13, 35, 82, 0.03), 0 8px 24px -4px rgba(13, 35, 82, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  will-change: transform, box-shadow;
}

/* Card Hover Elevation: 4-6px upward movement, RECAD green border, smooth shadow */
.editorial-card:hover {
  border-color: rgba(18, 168, 85, 0.45);
  box-shadow: 0 16px 36px -10px rgba(13, 35, 82, 0.10), 0 8px 18px -4px rgba(18, 168, 85, 0.12);
  transform: translateY(-5px);
}

/* Card Thumbnail Image Zoom (1.03-1.05 scale) */
.editorial-card img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.editorial-card:hover img {
  transform: scale(1.04);
}

/* Play Button Micro-Interactions on Course & Review Cards */
.play-btn-pulse,
button[onclick*="openVideoModal"],
.group\\/play {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s ease, 
              box-shadow 0.25s ease;
  will-change: transform;
}

.play-btn-pulse:hover,
button[onclick*="openVideoModal"]:hover {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(18, 168, 85, 0.55);
}

/* Brand Buttons & Gradients with Restrained Elevation (180-250ms) */
.brand-btn-primary {
  background: linear-gradient(135deg, #0D2352 0%, #12A855 100%);
  color: #FFFFFF;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease;
  box-shadow: 0 4px 14px rgba(18, 168, 85, 0.24);
  will-change: transform;
}

.brand-btn-primary:hover {
  background: linear-gradient(135deg, #0B1C40 0%, #1AC98A 100%);
  box-shadow: 0 8px 24px rgba(18, 168, 85, 0.36);
  transform: translateY(-2px);
}

.brand-btn-primary:active {
  transform: translateY(0);
}

.brand-btn-secondary {
  background: #FFFFFF;
  color: #0D2352;
  border: 1.5px solid #E2E8F0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease, 
              color 0.22s ease, 
              background-color 0.22s ease;
  will-change: transform;
}

.brand-btn-secondary:hover {
  border-color: #12A855;
  color: #12A855;
  background: #F7F8F5;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(18, 168, 85, 0.10);
}

.brand-btn-secondary:active {
  transform: translateY(0);
}

/* Direction-Aware Arrow Micro-Movement on CTA Hover */
.rtl-flip {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

html[dir="rtl"] a:hover .rtl-flip,
html[dir="rtl"] button:hover .rtl-flip {
  transform: scaleX(-1) translateX(4px);
}

html[dir="ltr"] a:hover .rtl-flip,
html[dir="ltr"] button:hover .rtl-flip {
  transform: scaleX(1) translateX(4px);
}

/* Clear Keyboard Focus State across all interactables */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #12A855 !important;
  outline-offset: 2px !important;
}

/* Gallery Card Hover Effects */
#galleryGridContainer > div {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  will-change: transform;
}

#galleryGridContainer > div:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 168, 85, 0.5);
  box-shadow: 0 16px 36px -10px rgba(13, 35, 82, 0.12), 0 8px 18px -4px rgba(18, 168, 85, 0.12);
}

#galleryGridContainer img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#galleryGridContainer > div:hover img {
  transform: scale(1.04);
}

/* WhatsApp Floating Button */
.whatsapp-pulse-btn {
  animation: pulseGentle 3.5s infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-pulse-btn:hover {
  transform: scale(1.08);
}

@keyframes pulseGentle {
  0% { box-shadow: 0 0 0 0 rgba(18, 168, 85, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(18, 168, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 168, 85, 0); }
}

/* Modal Windows & Lightbox - Smooth 250ms Fade + 0.96->1 Scale Transitions */
.modal-overlay,
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(13, 35, 82, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.25s;
  overflow-y: auto;
}

.modal-overlay.active,
.custom-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container,
.custom-modal-dialog {
  width: 100%;
  max-width: min(94vw, 840px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  margin: auto;
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

.modal-overlay.active .modal-container,
.custom-modal-backdrop.active .custom-modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Body lock when mobile menu or modal is active */
body.mobile-menu-open {
  overflow: hidden !important;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #12A855;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================================================= */
/* 6. ADVANCED RESPONSIVE ENGINE & VIEWPORT ADAPTATIONS                      */
/* ========================================================================= */

/* Strict containment to guarantee NO horizontal scroll on any viewport */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* Safe word break and text wrapping: break ONLY at natural word boundaries, NEVER split letters */
h1, h2, h3, h4, h5, h6, p, label {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Interactive elements, links, buttons, tabs: keep words intact and prevent letter splitting */
a, button, span, .nav-link-item, .discipline-badge, .specialty-filter-btn, .course-type-tab, .gallery-category-tab {
  word-break: keep-all;
}

/* Tablet & Mobile (<= 768px) */
@media (max-width: 768px) {
  .ambient-soft-navy,
  .ambient-soft-green,
  .ambient-soft-teal {
    width: 75vw !important;
    height: 75vw !important;
    filter: blur(50px) !important;
    -webkit-filter: blur(50px) !important;
  }

  .ambient-glow-orb {
    width: 60vw !important;
    height: 60vw !important;
    filter: blur(65px) !important;
    -webkit-filter: blur(65px) !important;
  }

  .site-wave-band-bottom {
    height: 42vh !important;
    min-height: 260px !important;
  }

  .site-wave-band-top {
    height: 32vh !important;
    min-height: 200px !important;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  /* Fluid typography clamps to avoid headline wrapping breaks */
  h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.35rem) !important;
    line-height: 1.24 !important;
  }
  h2 {
    font-size: clamp(1.3rem, 5.2vw, 1.85rem) !important;
    line-height: 1.28 !important;
  }

  /* Safe container horizontal padding for narrow 320px-375px screens */
  .max-w-7xl,
  .max-w-5xl,
  .max-w-4xl,
  .max-w-3xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Ergonomic mobile touch targets */
  button, 
  .brand-btn-primary, 
  .brand-btn-secondary,
  .specialty-filter-btn,
  .gallery-category-tab,
  .course-type-tab {
    min-height: 42px;
  }

  /* Floating badge inside hero gracefully rests inside mobile layout */
  .floating-glass-card {
    position: static !important;
    margin-top: 1rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Compact padding for workstation preview card */
  .cad-workstation-window {
    padding: 0.75rem !important;
    border-radius: 1.25rem !important;
  }

  /* Full-bleed responsive modals on phones */
  .modal-container,
  .custom-modal-dialog {
    max-width: 95vw !important;
    max-height: 92vh !important;
    border-radius: 1.25rem !important;
    padding: 0 !important;
  }
}

/* Ultra-compact screens (<= 375px) */
@media (max-width: 375px) {
  .brand-btn-primary,
  .brand-btn-secondary {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.75rem !important;
  }
  
  .specialty-filter-btn,
  .course-type-tab {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    font-size: 0.7rem !important;
  }
}

/* Landscape Mobile Viewports */
@media (max-height: 500px) and (orientation: landscape) {
  #mobileMenuDrawer {
    max-height: calc(100vh - 4.5rem) !important;
    overflow-y: auto !important;
  }
  .modal-container,
  .custom-modal-dialog {
    max-height: 85vh !important;
  }
}

/* ========================================================================= */
/* 6.5 EXPANSIVE WIDESCREEN CONTAINMENT & BRAND PROMINENCE                   */
/* ========================================================================= */

/* High-Legibility Scaled Navbar Brand Logo */
.navbar-brand-logo {
  height: 56px !important;
  width: auto !important;
  max-height: 56px !important;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .navbar-brand-logo {
    height: 68px !important;
    max-height: 68px !important;
  }
}

@media (min-width: 1024px) {
  .navbar-brand-logo {
    height: 80px !important;
    max-height: 80px !important;
  }
}

@media (min-width: 1280px) {
  .navbar-brand-logo {
    height: 88px !important;
    max-height: 88px !important;
  }
}

/* Full-width responsive navbar across entire viewport */
#mainNavbar > div {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

@media (min-width: 768px) {
  #mainNavbar > div {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 1280px) {
  #mainNavbar > div {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

@media (min-width: 1536px) {
  #mainNavbar > div {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

/* Widescreen container expansions to eliminate empty side gutters */
@media (min-width: 1280px) {
  .max-w-7xl {
    max-width: min(95vw, 1680px) !important;
    width: 95% !important;
  }
  .hero-blueprint-bg .max-w-7xl {
    max-width: min(96vw, 1750px) !important;
    width: 96% !important;
  }
}

@media (min-width: 1536px) {
  .max-w-7xl {
    max-width: min(96vw, 1780px) !important;
    width: 96% !important;
  }
  .hero-blueprint-bg .max-w-7xl {
    max-width: min(97vw, 1840px) !important;
    width: 97% !important;
  }
}

@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 1840px !important;
    width: 96% !important;
  }
  .hero-blueprint-bg .max-w-7xl {
    max-width: 1880px !important;
    width: 97% !important;
  }
}

/* Accessible Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================= */
/* 7. PREMIUM ANIMATIONS, HERO ENTRANCE & SCROLL REVEAL ENGINE               */
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
/* 7.1 PAGE CONTENT ENTRANCE TRANSITION (SUBTLE, NON-BLOCKING, 350ms)        */
/* ------------------------------------------------------------------------- */
@keyframes pageContentEntrance {
  0% {
    opacity: 0.88;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main,
section.hero-blueprint-bg,
body > section:first-of-type {
  animation: pageContentEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ------------------------------------------------------------------------- */
/* 7.2 HERO ENTRANCE SEQUENCE (PREMIUM, RESTRAINED, 500-800ms)               */
/* ------------------------------------------------------------------------- */
@keyframes heroItemEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageEntrance {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroDecoEntrance {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Introductory label (eyebrow) fades in */
.hero-blueprint-bg [data-hero-reveal="eyebrow"] {
  animation: heroItemEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

/* 2. Main heading reveals smoothly from slightly lower position */
.hero-blueprint-bg [data-hero-reveal="heading"] {
  line-height: 1.34 !important;
  overflow: visible !important;
}

.hero-blueprint-bg [data-hero-reveal="heading"] > span:first-child {
  display: block;
  padding-bottom: 0.15em !important;
  overflow: visible !important;
  animation: heroItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

/* 3. Highlighted green text appears with a subtle stagger */
.hero-blueprint-bg [data-hero-reveal="heading"] [data-i18n="heroHeadingGradient"] {
  display: block !important;
  padding-bottom: 0.22em !important;
  line-height: 1.28 !important;
  overflow: visible !important;
  animation: heroItemEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

[dir="rtl"] .hero-blueprint-bg [data-hero-reveal="heading"] [data-i18n="heroHeadingGradient"] {
  word-spacing: 0.55em !important;
}

/* 4. Supporting paragraph fades in */
.hero-blueprint-bg [data-hero-reveal="subtitle"] {
  line-height: 1.85 !important;
  padding-bottom: 0.5rem !important;
  overflow: visible !important;
  animation: heroItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

/* 5. CTA buttons appear with a small upward movement */
.hero-blueprint-bg [data-hero-reveal="cta"] {
  opacity: 1 !important;
  visibility: visible !important;
  animation: heroItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

/* Hero Key metrics capsule row */
.hero-blueprint-bg [data-hero-reveal="stats"] {
  opacity: 1 !important;
  visibility: visible !important;
  animation: heroItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

/* 6. Main engineering image reveals with smooth opacity and scale transition */
.hero-blueprint-bg [data-hero-reveal="visual"] .cad-workstation-window {
  animation: heroImageEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* 7. Small decorative engineering elements appear with subtle delays */
.hero-blueprint-bg .cad-workstation-window .absolute.top-3.end-3 {
  animation: heroDecoEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-blueprint-bg .cad-workstation-window .border-t {
  animation: heroDecoEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.50s both;
}

.hero-blueprint-bg .floating-glass-card {
  animation: heroDecoEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* ------------------------------------------------------------------------- */
/* 7.3 SCROLL REVEAL ENGINE (FAIL-SAFE, 100% VISIBLE DEFAULT, OBSERVER-ACTIVATED) */
/* ------------------------------------------------------------------------- */

/* Default fail-safe state: all elements remain 100% visible and unshifted */
.section-reveal,
.reveal-item,
.reveal-on-scroll,
.discipline-badge,
section h2,
.editorial-card {
  opacity: 1;
  transform: none;
}

/* When JS IntersectionObserver is active, apply smooth scroll entrance to all sections */
html.has-scroll-observer .section-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.has-scroll-observer .section-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

html.has-scroll-observer .section-reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

/* When JS IntersectionObserver is active, apply smooth scroll entrance to child cards */
html.has-scroll-observer .reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.has-scroll-observer .reveal-item.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Short staggered delays for cards & items in grids */
html.has-scroll-observer .stagger-delay-1 { transition-delay: 0.05s; }
html.has-scroll-observer .stagger-delay-2 { transition-delay: 0.10s; }
html.has-scroll-observer .stagger-delay-3 { transition-delay: 0.15s; }
html.has-scroll-observer .stagger-delay-4 { transition-delay: 0.20s; }
html.has-scroll-observer .stagger-delay-5 { transition-delay: 0.25s; }
html.has-scroll-observer .stagger-delay-6 { transition-delay: 0.30s; }

/* ------------------------------------------------------------------------- */
/* 7.4 INTERACTIVE MOUSE MOTION & SECTION PARALLAX SYSTEM                   */
/* ------------------------------------------------------------------------- */
.mouse-interactive-section {
  position: relative;
}

.section-cursor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  background: radial-gradient(
    650px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(18, 168, 85, 0.08) 0%,
    rgba(13, 35, 82, 0.035) 40%,
    transparent 70%
  );
  will-change: transform, opacity;
}

/* Smooth motion elements inside interactive sections */
.mouse-interactive-section .cad-workstation-window,
.mouse-interactive-section .discipline-card,
.mouse-interactive-section .editorial-card,
.mouse-interactive-section .floating-glass-card,
.mouse-interactive-section .editorial-frame,
.mouse-interactive-section .faq-accordion-item,
.mouse-interactive-section [data-hero-reveal="stats"] > div {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  will-change: transform;
}

/* Hover elevation when cursor is directly over a card */
.mouse-interactive-section .discipline-card:hover,
.mouse-interactive-section .editorial-card:hover,
.mouse-interactive-section .editorial-frame:hover {
  box-shadow: 0 16px 36px -6px rgba(18, 168, 85, 0.20), 0 4px 12px -2px rgba(13, 35, 82, 0.06);
}

/* ========================================================================= */
/* 7.5 CREATIVE MEGA-DROPDOWN MENU SYSTEM                                    */
/* ========================================================================= */
.courses-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: top center;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s;
  pointer-events: none;
}

.group:hover .courses-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-item-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-card:hover {
  transform: translateX(-3px);
}

html[lang="en"] .dropdown-item-card:hover {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------------- */
/* 7.6 STATEMENT SECTION & BLUEPRINT BENCHMARK CARDS                         */
/* ------------------------------------------------------------------------- */
.statement-glass-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
  will-change: transform;
}

.statement-glass-card:hover {
  transform: translateY(-6px);
}

.statement-step-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.statement-step-card:hover {
  transform: translateY(-3px);
}

/* ------------------------------------------------------------------------- */
/* 7.7 PERFORMANCE & ACCESSIBILITY (PREFERS-REDUCED-MOTION)                   */
/* ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section-reveal,
  .reveal-item,
  .discipline-card,
  .statement-glass-card,
  .statement-step-card,
  .section-cursor-glow,
  .hero-blueprint-bg [data-hero-reveal],
  .editorial-card,
  .cad-workstation-window,
  .floating-glass-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------------- */
/* 7.8 VIDEO PLAYLIST SCROLLBAR & ENHANCEMENTS                              */
/* ------------------------------------------------------------------------- */
.custom-playlist-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 168, 85, 0.4) transparent;
  scroll-behavior: smooth;
}

.custom-playlist-scroll::-webkit-scrollbar {
  width: 5px;
}

.custom-playlist-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-playlist-scroll::-webkit-scrollbar-thumb {
  background: rgba(18, 168, 85, 0.35);
  border-radius: 9999px;
}

.custom-playlist-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 168, 85, 0.65);
}

/* ------------------------------------------------------------------------- */
/* 7.9 ACCREDITED SOFTWARE & PARTNERS LOGO MARQUEE SLIDER                   */
/* ------------------------------------------------------------------------- */
.logos-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.logos-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.25rem;
  animation: marqueeRoll 45s linear infinite;
  will-change: transform;
}

[dir="rtl"] .logos-marquee-track {
  animation: marqueeRollRtl 45s linear infinite;
}

.logos-marquee-wrapper:hover .logos-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeRoll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRollRtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.logo-slider-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  min-width: 8.5rem;
  border-radius: 1rem;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
  opacity: 0.85;
  white-space: nowrap;
}

.logo-slider-item:hover {
  opacity: 1 !important;
  transform: translateY(-4px) scale(1.06);
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.logo-slider-icon {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.logo-slider-icon svg {
  width: 2.75rem !important;
  height: 2.75rem !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.logo-slider-item:hover .logo-slider-icon svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 14px rgba(26, 201, 138, 0.55));
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee-track {
    animation: none !important;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .logo-slider-item:hover {
    transform: none !important;
  }
}

/* ========================================================================= */
/* UNIVERSAL ARABIC LIGATURE & SCRIPT INTEGRITY PROTECTION                   */
/* ========================================================================= */
[dir="rtl"] {
  letter-spacing: normal !important;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] a,
[dir="rtl"] div,
[dir="rtl"] .tracking-tight,
[dir="rtl"] .tracking-tighter,
[dir="rtl"] .tracking-wide,
[dir="rtl"] .tracking-wider,
[dir="rtl"] .tracking-widest {
  letter-spacing: normal !important;
}

/* Allow letter-spacing only on strictly Latin / uppercase mono tags */
[dir="rtl"] .font-mono-latin,
[dir="rtl"] [data-allow-tracking="true"] {
  letter-spacing: 0.05em !important;
}

/* ========================================================================= */
/* METHODOLOGY & BENCHMARK CARDS SECTION ENHANCEMENT                         */
/* ========================================================================= */
#methodologySection {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
}

#methodologySection .statement-glass-card {
  background: #FFFFFF !important;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(13, 35, 82, 0.05), 0 2px 6px -1px rgba(13, 35, 82, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#methodologySection .statement-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -5px rgba(18, 168, 85, 0.12), 0 8px 16px -3px rgba(13, 35, 82, 0.06);
}

#methodologySection .statement-step-card {
  transition: all 0.25s ease;
}

#methodologySection .statement-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 168, 85, 0.45);
  box-shadow: 0 8px 20px -4px rgba(18, 168, 85, 0.1);
}

/* ========================================================================= */
/* UNIVERSAL COMPREHENSIVE DARK MODE SYSTEM (ENGINEERING MIDNIGHT PALETTE)   */
/* ========================================================================= */
html.dark,
html.dark body {
  background-color: #060D1E !important;
  color: #F8FAFC !important;
  color-scheme: dark;
}

/* Background replacements */
html.dark .bg-white {
  background-color: #0D1C3F !important;
}

html.dark .bg-white\/95,
html.dark .bg-white\/90,
html.dark .bg-white\/80 {
  background-color: rgba(13, 28, 63, 0.85) !important;
}

html.dark .bg-slate-50,
html.dark .bg-slate-50\/90,
html.dark .bg-slate-50\/80,
html.dark .bg-\[\#F7F8F5\],
html.dark .bg-\[\#F8FAFC\] {
  background-color: #08132B !important;
}

html.dark .bg-slate-100,
html.dark .bg-slate-100\/90,
html.dark .bg-\[\#EEF2F5\] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark .bg-slate-200 {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Section backgrounds */
html.dark section.bg-white {
  background-color: #060D1E !important;
}

html.dark section.bg-\[\#F7F8F5\] {
  background-color: #08132B !important;
}

html.dark section.bg-slate-50 {
  background-color: #08132B !important;
}

/* Borders across Dark Mode */
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-200\/90,
html.dark .border-slate-200\/80,
html.dark .border-slate-300,
html.dark .border-slate-400 {
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html.dark .border-b-slate-200,
html.dark .border-t-slate-200 {
  border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Typography & Headings */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark .text-\[\#0D2352\],
html.dark .text-\[\#14213D\],
html.dark .text-slate-900,
html.dark .text-slate-800 {
  color: #F8FAFC !important;
}

html.dark .text-slate-700,
html.dark .text-slate-600 {
  color: #CBD5E1 !important;
}

html.dark .text-slate-500 {
  color: #94A3B8 !important;
}

html.dark .text-slate-400 {
  color: #94A3B8 !important;
}

/* Keep Green and Accents Vibrant */
html.dark .text-\[\#12A855\],
html.dark .text-\[\#1AC98A\] {
  color: #1AC98A !important;
}

/* Hero Blueprint Canvas in Dark Mode */
html.dark .hero-blueprint-bg {
  position: relative;
  background-color: #060D1E !important;
  background-image: 
    radial-gradient(circle at 80% 12%, rgba(18, 168, 85, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 78%, rgba(13, 35, 82, 0.60) 0%, transparent 55%),
    radial-gradient(circle at 50% 45%, rgba(26, 201, 138, 0.12) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

html.dark .cad-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
}

html.dark .cad-dots-subtle {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
}

/* Engineering Discipline Cards & Ribbon */
html.dark .discipline-card {
  background: rgba(13, 28, 63, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html.dark .discipline-card:hover {
  background: #11234F !important;
  border-color: rgba(26, 201, 138, 0.5) !important;
  box-shadow: 0 12px 28px -6px rgba(18, 168, 85, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html.dark .discipline-title {
  color: #F8FAFC !important;
}

html.dark .discipline-num {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark .discipline-card:hover .discipline-num {
  background: rgba(18, 168, 85, 0.2) !important;
  color: #1AC98A !important;
  border-color: rgba(18, 168, 85, 0.4) !important;
}

html.dark .discipline-badge {
  background: rgba(13, 28, 63, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #CBD5E1 !important;
}

html.dark .discipline-badge:hover {
  background: #11234F !important;
  border-color: #1AC98A !important;
  color: #FFFFFF !important;
}

/* CAD Workstation Hero Frame & Floating Card */
html.dark .cad-workstation-window {
  background: #091533 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

html.dark .floating-glass-card {
  background: rgba(10, 24, 58, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5) !important;
}

/* Editorial Cards */
html.dark .editorial-card {
  background: rgba(13, 28, 63, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

html.dark .editorial-card:hover {
  background: rgba(18, 36, 78, 0.95) !important;
  border-color: rgba(26, 201, 138, 0.45) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 8px 20px -4px rgba(18, 168, 85, 0.25) !important;
}

/* Secondary Button in Dark Mode */
html.dark .brand-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html.dark .brand-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #1AC98A !important;
  color: #1AC98A !important;
}

/* Methodology Section */
html.dark #methodologySection {
  background: linear-gradient(180deg, #060D1E 0%, #09142E 50%, #060D1E 100%) !important;
}

html.dark #methodologySection .statement-glass-card {
  background: rgba(13, 28, 63, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

html.dark #methodologySection .statement-glass-card:hover {
  background: rgba(18, 36, 78, 0.95) !important;
  border-color: rgba(26, 201, 138, 0.45) !important;
}

/* Software Marquee Slider (Clean, Borderless, Floating Logos) */
html.dark .logo-slider-item {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

html.dark .logo-slider-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .logo-slider-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark .logo-slider-item span:first-child,
html.dark .logo-slider-item .text-\[\#0D2352\] {
  color: #F1F5F9 !important;
}

html.dark .logo-slider-item:hover span:first-child,
html.dark .logo-slider-item:hover .text-\[\#0D2352\] {
  color: #1AC98A !important;
}

html.dark .logo-slider-item span:last-child {
  color: #94A3B8 !important;
}

/* Mega-Dropdown Menu in Dark Mode */
html.dark .courses-dropdown-menu > div {
  background: rgba(10, 24, 58, 0.97) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-top-color: #1AC98A !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75) !important;
}

html.dark .courses-dropdown-menu .dropdown-item-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Category & Type Filter Tabs */
html.dark .course-type-tab:not(.bg-\[\#12A855\]),
html.dark .specialty-filter-btn:not(.bg-\[\#12A855\]),
html.dark .gallery-category-tab:not(.bg-\[\#12A855\]) {
  background-color: transparent !important;
  color: #94A3B8 !important;
}

html.dark .course-type-tab:not(.bg-\[\#12A855\]):hover,
html.dark .specialty-filter-btn:not(.bg-\[\#12A855\]):hover,
html.dark .gallery-category-tab:not(.bg-\[\#12A855\]):hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #F8FAFC !important;
}

/* Form Inputs, Search & Textareas */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark input[type="number"],
html.dark select,
html.dark textarea,
html.dark #courseSearchInput {
  background-color: #091533 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748B !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #1AC98A !important;
  box-shadow: 0 0 0 3px rgba(26, 201, 138, 0.25) !important;
}

/* Modals & Dialogs */
html.dark .fixed.inset-0 .bg-white,
html.dark #courseModal .bg-white,
html.dark #videoModal .bg-white,
html.dark #lightboxModal .bg-white {
  background-color: #0A1738 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
}

/* Badges & HUD Capsules */
html.dark .bg-emerald-100,
html.dark .bg-emerald-50 {
  background-color: rgba(18, 168, 85, 0.18) !important;
  color: #1AC98A !important;
}

html.dark .bg-amber-100,
html.dark .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
}

html.dark .bg-blue-100,
html.dark .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.18) !important;
  color: #60A5FA !important;
}

html.dark .border-amber-200,
html.dark .border-amber-200\/80 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

html.dark .border-emerald-200 {
  border-color: rgba(18, 168, 85, 0.3) !important;
}

html.dark .border-blue-100,
html.dark .border-blue-200 {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Footer Dark Mode Styling */
html.dark footer {
  background: #050B18 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}



/* ------------------------------------------------------------------------- */
/* 8.5 INTERACTIVE VIDEO TESTIMONIAL SWITCHER                                */
/* ------------------------------------------------------------------------- */
#activeReviewVideoThumb {
  transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.review-video-tab {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-video-tab:hover {
  transform: translateY(-2px);
}

/* Course bundles moving strip (courses pages) */
.bundles-marquee-track { animation-duration: 38s; }
[dir="rtl"] .bundles-marquee-track { animation-duration: 38s; }
.bundle-focus { box-shadow: 0 0 0 3px #12A855, 0 0 24px rgba(18, 168, 85, 0.35); transition: box-shadow 0.3s ease; }
@media (prefers-reduced-motion: reduce) {
  .bundles-marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .bundles-marquee-track [aria-hidden="true"] { display: none; }
}
