/* ==========================================================
   مايسترو الكيمياء | Design System
   Deep Blue · Cyan · Purple · Glassmorphism
   ========================================================== */

:root {
  --navy-950: #030718;
  --navy-900: #060d24;
  --navy-800: #0a1636;
  --navy-700: #10204d;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --white: #f6faff;
  --muted: #9db0d0;
  --line: rgba(148, 190, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);

  --grad-main: linear-gradient(
    135deg,
    var(--cyan),
    var(--blue) 45%,
    var(--purple)
  );
  --grad-text: linear-gradient(
    100deg,
    #ffffff,
    var(--cyan-soft) 45%,
    var(--violet)
  );
  --grad-glow: radial-gradient(
    circle at 50% 50%,
    rgba(34, 211, 238, 0.35),
    transparent 65%
  );

  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 60px -12px rgba(34, 211, 238, 0.45);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- theme-aware surfaces / overlays / text ---- */
  --nav-bg: rgba(6, 13, 36, 0.55);
  --nav-bg-scrolled: rgba(6, 13, 36, 0.85);
  --ovl-96: rgba(3, 7, 24, 0.96);
  --ovl-95: rgba(3, 7, 24, 0.95);
  --ovl-94: rgba(3, 7, 24, 0.94);
  --ovl-9: rgba(3, 7, 24, 0.9);
  --ovl-86: rgba(3, 7, 24, 0.86);
  --ovl-85: rgba(3, 7, 24, 0.85);
  --ovl-7: rgba(3, 7, 24, 0.7);
  --auth-veil-2: rgba(88, 28, 135, 0.55);
  --surface-float: rgba(8, 16, 40, 0.72);
  --surface-float-strong: rgba(8, 16, 40, 0.8);
  --surface-marquee: rgba(6, 13, 36, 0.45);
  --surface-course-fade: rgba(6, 13, 36, 1);
  --surface-input: rgba(3, 9, 26, 0.6);
  --text-soft: #cfe0f7;
  --text-desc: #b9cbe6;
  --text-marquee: #8fb3dd;
  --text-alt: #cadcf3;
  --text-alt2: #c4d6ee;
  --text-meta: #a9c0e0;
  --btn-ink: #04101f;
  --toggle-icon: "\f186";
}

/* ==========================================================
   LIGHT MODE
   ========================================================== */
html[data-theme="light"] {
  --navy-950: #eef3fb;
  --navy-900: #e8eff9;
  --navy-800: #f8fafd;
  --navy-700: #dbe6f7;
  --cyan: #0c8599;
  --cyan-soft: #0e7490;
  --blue: #3358d4;
  --purple: #7c3aed;
  --violet: #9333ea;
  --white: #1c2740;
  --muted: #5c6b8a;
  --line: rgba(28, 55, 100, 0.11);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.8);

  --shadow-soft: 0 20px 50px -24px rgba(30, 55, 95, 0.18);
  --shadow-glow: 0 0 50px -14px rgba(12, 133, 153, 0.28);

  --nav-bg: rgba(248, 251, 255, 0.72);
  --nav-bg-scrolled: rgba(248, 251, 255, 0.92);
  --ovl-96: rgba(248, 251, 255, 0.96);
  --ovl-95: rgba(248, 251, 255, 0.94);
  --ovl-94: rgba(248, 251, 255, 0.93);
  --ovl-9: rgba(248, 251, 255, 0.9);
  --ovl-86: rgba(248, 251, 255, 0.86);
  --ovl-85: rgba(248, 251, 255, 0.88);
  --ovl-7: rgba(248, 251, 255, 0.78);
  --auth-veil-2: rgba(147, 51, 234, 0.2);
  --surface-float: rgba(255, 255, 255, 0.78);
  --surface-float-strong: rgba(255, 255, 255, 0.85);
  --surface-marquee: rgba(255, 255, 255, 0.5);
  --surface-course-fade: rgba(244, 249, 253, 1);
  --surface-input: rgba(28, 55, 100, 0.045);
  --text-soft: #223252;
  --text-desc: #435068;
  --text-marquee: #566380;
  --text-alt: #263650;
  --text-alt2: #3c4a68;
  --text-meta: #566380;
  --toggle-icon: "\f185";
}

html[data-theme="light"] body {
  background: linear-gradient(
    180deg,
    #eef6fc 0%,
    #eef3fb 14%,
    #eff1fa 24%,
    #eaf8f4 34%,
    #e9f7f1 42%,
    #eef2fb 52%,
    #f0f0fa 62%,
    #fbf1f6 72%,
    #f7eef8 80%,
    #eef4fc 90%,
    #e6ecf6 100%
  );
}
html[data-theme="light"] .hex-grid {
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'><path d='M30 0 L60 17 L60 52 L30 69 L0 52 L0 17 Z' fill='none' stroke='%23c3d9f0' stroke-width='1'/><path d='M30 69 L60 86 L60 121 L30 138 L0 121 L0 86 Z' fill='none' stroke='%23c3d9f0' stroke-width='1'/></svg>");
}
html[data-theme="light"] .bg-fx .orb {
  opacity: 0.22;
}
html[data-theme="light"] .equations span {
  color: rgba(12, 133, 153, 0.1);
}
html[data-theme="light"] ::selection {
  color: var(--navy-950);
}
html[data-theme="light"] .burger span {
  background: #223252;
}
html[data-theme="light"] .hero-outline {
  -webkit-text-stroke: 1.5px rgba(12, 133, 153, 0.6);
}
html[data-theme="light"] .photo {
  border-color: rgba(28, 55, 100, 0.13);
}
html[data-theme="light"] .stars {
  color: #c2790a;
}
html[data-theme="light"] .feature,
html[data-theme="light"] .course,
html[data-theme="light"] .testi {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.32)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  background: var(--navy-950);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
ul {
  list-style: none;
}

::selection {
  background: var(--cyan);
  color: var(--navy-950);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy-900);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 9px;
}

/* ---------- Shared layout ---------- */
.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cyan-soft);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
  line-height: 1.35;
  font-weight: 900;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 18px 0 14px;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.08em;
}

/* ==========================================================
   SITE SLOGAN — "مع حمزة الكيميا دايما سهله"
   ========================================================== */
.slogan-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
}
.slogan-line i {
  color: var(--cyan);
  font-size: 0.85rem;
}
.slogan-line span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--purple);
}
.slogan-line--sm {
  font-size: 0.85rem;
}
.slogan-line--footer {
  margin-top: 14px;
}
.slogan-line--auth {
  margin-top: 10px;
  color: var(--muted);
}
.slogan-line--page-hero {
  justify-content: center;
  margin-top: 14px;
}

/* ==========================================================
   PAGE LOADER / SPLASH SCREEN
   ========================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--navy-950);
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s var(--ease);
}
.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.5;
  pointer-events: none;
}
.page-loader-logo {
  position: relative;
  width: clamp(96px, 18vw, 140px);
  height: clamp(96px, 18vw, 140px);
  animation: loaderFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.35));
}
.page-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
html[data-theme="light"] .page-loader-logo img {
  filter: none;
}
@keyframes loaderFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.page-loader-bar {
  position: relative;
  width: min(180px, 40vw);
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.page-loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 999px;
  background: var(--grad-main);
  animation: loaderBar 1.3s ease-in-out infinite;
}
@keyframes loaderBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.page-loader-slogan {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.2px;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-logo {
    animation: none;
  }
  .page-loader-bar::after {
    animation: none;
    width: 100%;
  }
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}
#video .section-sub {
  font-size: 1.18rem;
  color: var(--text-alt);
  font-weight: 600;
  line-height: 1.9;
}
html[data-theme="light"] #video .section-sub {
  color: var(--text-soft);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: var(--grad-main);
  color: var(--btn-ink);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 70px -6px rgba(139, 92, 246, 0.65);
}
.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--white);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover {
  background: var(--glass-strong);
  border-color: rgba(34, 211, 238, 0.5);
}
.btn-sm {
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* ---------- Decorative chemistry background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-fx .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.orb-1 {
  width: 520px;
  height: 520px;
  background: rgba(34, 211, 238, 0.28);
  top: -140px;
  right: -120px;
  animation: drift 22s infinite alternate ease-in-out;
}
.orb-2 {
  width: 460px;
  height: 460px;
  background: rgba(139, 92, 246, 0.26);
  bottom: 5%;
  left: -140px;
  animation: drift 28s infinite alternate-reverse ease-in-out;
}
.orb-3 {
  width: 380px;
  height: 380px;
  background: rgba(59, 130, 246, 0.2);
  top: 45%;
  left: 40%;
  animation: drift 34s infinite alternate ease-in-out;
}
@keyframes drift {
  to {
    transform: translate3d(70px, -60px, 0) scale(1.15);
  }
}

.hex-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'><path d='M30 0 L60 17 L60 52 L30 69 L0 52 L0 17 Z' fill='none' stroke='%232d5c8f' stroke-width='1'/><path d='M30 69 L60 86 L60 121 L30 138 L0 121 L0 86 Z' fill='none' stroke='%232d5c8f' stroke-width='1'/></svg>");
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

.equations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.equations span {
  position: absolute;
  font-family: "Cairo", serif;
  color: rgba(103, 232, 249, 0.12);
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  font-weight: 700;
  white-space: nowrap;
  animation: floatEq 16s ease-in-out infinite;
}
@keyframes floatEq {
  50% {
    transform: translateY(-26px) rotate(2deg);
  }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-soft), transparent 70%);
  animation: rise linear infinite;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1300px, 94%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-soft);
  transition:
    top 0.4s var(--ease),
    background 0.4s,
    padding 0.4s;
}
.navbar.scrolled {
  top: 8px;
  background: var(--nav-bg-scrolled);
  padding: 8px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--btn-ink);
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: none;
  animation: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
html[data-theme="light"] .brand-mark img {
  filter: none;
}
@keyframes spinSlow {
  to {
    filter: hue-rotate(360deg);
  }
}
.brand-text b {
  display: block;
  font-family: "Cairo";
  font-size: 1.02rem;
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition:
    color 0.3s,
    background 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
  transition:
    width 0.35s var(--ease),
    right 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--glass);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 55%;
  right: 22.5%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--cyan-soft);
  font-size: 1.05rem;
  font-weight: 700;
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s var(--ease);
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
}
.theme-toggle .tt-icons {
  position: relative;
  width: 18px;
  height: 18px;
}
.theme-toggle .tt-icons i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    transform 0.45s var(--ease),
    opacity 0.35s;
}
.theme-toggle .fa-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
.theme-toggle .fa-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle .fa-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}
.theme-toggle .tt-label {
  display: none;
}
.mobile-menu .theme-toggle {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 8px;
  justify-content: flex-start;
  font-size: 0.95rem;
}
.mobile-menu .theme-toggle .tt-label {
  display: inline;
}
.mobile-menu .theme-toggle .tt-label::after {
  content: "تفعيل الوضع الفاتح";
}
html[data-theme="light"] .mobile-menu .theme-toggle .tt-label::after {
  content: "تفعيل الوضع الداكن";
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.35s var(--ease);
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0 0 auto;
  top: 0;
  z-index: 99;
  padding: 110px 6% 40px;
  background: var(--ovl-96);
  backdrop-filter: blur(20px);
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 16px 18px;
  margin-bottom: 8px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 700;
}
.mobile-menu .m-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.mobile-menu .m-actions .btn {
  flex: 1;
  margin-bottom: 0;
}
/* .mobile-menu a sets a translucent glass background with higher
   specificity than .btn-primary, which was hiding its gradient and
   leaving dark ink text unreadable. Restore it explicitly here. */
.mobile-menu .m-actions .btn-primary {
  background: var(--grad-main);
  color: var(--btn-ink);
  border-color: transparent;
}
.mobile-menu .m-actions .btn-ghost {
  background: var(--glass);
  color: var(--white);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 140px 0 70px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  position: relative;
  width: min(1240px, 92%);
  margin-inline: auto;
}
.hero-marquee {
  width: 100%;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 22px 0 10px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}
.hero-title .line:nth-child(3) > span {
  animation-delay: 0.24s;
}
@keyframes riseIn {
  to {
    transform: translateY(0);
  }
}

.hero-outline {
  -webkit-text-stroke: 1.5px rgba(103, 232, 249, 0.75);
  color: transparent;
}

.hero-desc {
  color: var(--text-desc);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
}
.stat-card {
  padding: 20px 16px;
  border-radius: var(--r-md);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    background 0.4s;
}
.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--glass-strong);
}
.stat-card b {
  display: block;
  font-family: "Cairo";
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-collage {
  position: relative;
  height: 620px;
}
.collage-ring {
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  border: 1px dashed rgba(103, 232, 249, 0.3);
  animation: spin 40s linear infinite;
}
.collage-ring::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}
.collage-ring.r2 {
  inset: -4% -2%;
  animation-duration: 60s;
  animation-direction: reverse;
  border-color: rgba(168, 85, 247, 0.28);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.glow-blob {
  position: absolute;
  inset: 12%;
  background: var(--grad-glow);
  filter: blur(10px);
}

.photo {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  background: var(--navy-800);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo:hover {
  box-shadow: 0 0 70px -14px rgba(34, 211, 238, 0.7);
}

.photo-main {
  width: 62%;
  height: 82%;
  top: 9%;
  right: 19%;
  border-radius: 220px 220px 28px 28px;
  z-index: 2;
}
.photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ovl-85), transparent 55%);
}
.photo-hex {
  width: 168px;
  height: 190px;
  top: 4%;
  left: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  z-index: 3;
  animation: floatY 7s ease-in-out infinite;
}
.photo-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  bottom: 8%;
  right: 0;
  z-index: 3;
  animation: floatY 9s ease-in-out infinite 0.6s;
}
@keyframes floatY {
  50% {
    transform: translateY(-22px);
  }
}

.float-card {
  position: absolute;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface-float);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: floatY 6s ease-in-out infinite;
}
.float-card i {
  font-size: 1.2rem;
}
.fc-1 {
  top: 12%;
  right: 0;
}
.fc-2 {
  bottom: 22%;
  left: -4%;
  animation-delay: 1.2s;
}
.fc-3 {
  bottom: 2%;
  right: 26%;
  animation-delay: 2.1s;
}

.hero-marquee {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  background: var(--surface-marquee);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  color: var(--text-marquee);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.scroll-hint i {
  animation: floatY 2s ease-in-out infinite;
}

/* ==========================================================
   FEATURES
   ========================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s;
}
.feature::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -120px;
  left: -80px;
  background: var(--grad-glow);
  opacity: 0;
  transition: opacity 0.5s;
}
.feature:hover {
  transform: translateY(-10px);
  border-color: rgba(34, 211, 238, 0.45);
}
.feature:hover::before {
  opacity: 1;
}
.feature .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--btn-ink);
  background: var(--grad-main);
  margin-bottom: 18px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-photo {
  grid-column: span 4;
  grid-row: span 2;
  position: relative;
  min-height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.feature-photo:hover img {
  transform: scale(1.08);
}
.feature-photo .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(to top, var(--ovl-95), transparent);
}
.feature-photo .cap b {
  font-family: "Cairo";
  font-size: 1.15rem;
  display: block;
}
.feature-photo .cap span {
  color: var(--cyan-soft);
  font-size: 0.86rem;
}

.feature-wide {
  grid-column: span 8;
}

/* ==========================================================
   VIDEO
   ========================================================== */
#video {
  position: relative;
  overflow: hidden;
}
#video::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'><g fill='none' stroke='%2367e8f9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.55'><path d='M150 70 L150 118 L96 246 Q90 262 106 262 L238 262 Q254 262 248 246 L194 118 L194 70 Z'/><line x1='136' y1='70' x2='208' y2='70'/><line x1='114' y1='214' x2='230' y2='214'/><circle cx='158' cy='238' r='5' fill='%2367e8f9' stroke='none'/><circle cx='186' cy='226' r='3.5' fill='%2367e8f9' stroke='none'/><circle cx='140' cy='244' r='3' fill='%2367e8f9' stroke='none'/><path d='M990 360 L990 460 Q990 476 1006 476 Q1022 476 1022 460 L1022 360'/><line x1='980' y1='360' x2='1032' y2='360'/><line x1='990' y1='420' x2='1022' y2='420'/><circle cx='1000' cy='440' r='3' fill='%2367e8f9' stroke='none'/><path d='M1044 384 L1044 460 Q1044 476 1060 476 Q1076 476 1076 460 L1076 384'/><line x1='1034' y1='384' x2='1086' y2='384'/><line x1='1044' y1='432' x2='1076' y2='432'/><ellipse cx='120' cy='470' rx='58' ry='23' transform='rotate(30 120 470)'/><ellipse cx='120' cy='470' rx='58' ry='23' transform='rotate(-30 120 470)'/><ellipse cx='120' cy='470' rx='58' ry='23'/><circle cx='120' cy='470' r='7' fill='%2367e8f9' stroke='none'/><path d='M1000 90 L1038 68 L1076 90 L1076 134 L1038 156 L1000 134 Z'/><circle cx='1000' cy='90' r='4' fill='%2367e8f9' stroke='none'/><circle cx='1038' cy='68' r='4' fill='%2367e8f9' stroke='none'/><circle cx='1076' cy='90' r='4' fill='%2367e8f9' stroke='none'/><circle cx='1076' cy='134' r='4' fill='%2367e8f9' stroke='none'/><circle cx='1038' cy='156' r='4' fill='%2367e8f9' stroke='none'/><circle cx='1000' cy='134' r='4' fill='%2367e8f9' stroke='none'/><line x1='1038' y1='156' x2='1038' y2='192'/><circle cx='1038' cy='202' r='5' stroke='none' fill='%2367e8f9'/><path d='M60 340 Q90 320 120 340 T180 340' stroke-opacity='0.35'/><circle cx='60' cy='340' r='3' fill='%2367e8f9' stroke='none' opacity='0.6'/><circle cx='120' cy='340' r='3' fill='%2367e8f9' stroke='none' opacity='0.6'/><circle cx='180' cy='340' r='3' fill='%2367e8f9' stroke='none' opacity='0.6'/></g></svg>");
}
html[data-theme="light"] #video::before {
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'><g fill='none' stroke='%230c8599' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.3'><path d='M150 70 L150 118 L96 246 Q90 262 106 262 L238 262 Q254 262 248 246 L194 118 L194 70 Z'/><line x1='136' y1='70' x2='208' y2='70'/><line x1='114' y1='214' x2='230' y2='214'/><circle cx='158' cy='238' r='5' fill='%230c8599' stroke='none'/><circle cx='186' cy='226' r='3.5' fill='%230c8599' stroke='none'/><circle cx='140' cy='244' r='3' fill='%230c8599' stroke='none'/><path d='M990 360 L990 460 Q990 476 1006 476 Q1022 476 1022 460 L1022 360'/><line x1='980' y1='360' x2='1032' y2='360'/><line x1='990' y1='420' x2='1022' y2='420'/><circle cx='1000' cy='440' r='3' fill='%230c8599' stroke='none'/><path d='M1044 384 L1044 460 Q1044 476 1060 476 Q1076 476 1076 460 L1076 384'/><line x1='1034' y1='384' x2='1086' y2='384'/><line x1='1044' y1='432' x2='1076' y2='432'/><ellipse cx='120' cy='470' rx='58' ry='23' transform='rotate(30 120 470)'/><ellipse cx='120' cy='470' rx='58' ry='23' transform='rotate(-30 120 470)'/><ellipse cx='120' cy='470' rx='58' ry='23'/><circle cx='120' cy='470' r='7' fill='%230c8599' stroke='none'/><path d='M1000 90 L1038 68 L1076 90 L1076 134 L1038 156 L1000 134 Z'/><circle cx='1000' cy='90' r='4' fill='%230c8599' stroke='none'/><circle cx='1038' cy='68' r='4' fill='%230c8599' stroke='none'/><circle cx='1076' cy='90' r='4' fill='%230c8599' stroke='none'/><circle cx='1076' cy='134' r='4' fill='%230c8599' stroke='none'/><circle cx='1038' cy='156' r='4' fill='%230c8599' stroke='none'/><circle cx='1000' cy='134' r='4' fill='%230c8599' stroke='none'/><line x1='1038' y1='156' x2='1038' y2='192'/><circle cx='1038' cy='202' r='5' stroke='none' fill='%230c8599'/><path d='M60 340 Q90 320 120 340 T180 340' stroke-opacity='0.22'/><circle cx='60' cy='340' r='3' fill='%230c8599' stroke='none' opacity='0.5'/><circle cx='120' cy='340' r='3' fill='%230c8599' stroke='none' opacity='0.5'/><circle cx='180' cy='340' r='3' fill='%230c8599' stroke='none' opacity='0.5'/></g></svg>");
}
#video .container {
  position: relative;
  z-index: 1;
}
.video-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: center;
}
.video-side .mini-photos {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}
.mini-photos img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.4);
  transition: transform 0.4s var(--ease);
}
.mini-photos img:hover {
  transform: translateY(-8px) scale(1.06);
}

.video-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16/10;
}
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--ovl-7), rgba(10, 22, 54, 0.25));
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 104px;
  height: 104px;
  z-index: 3;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: var(--btn-ink);
  background: var(--grad-main);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}
.play-btn::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.6);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  to {
    transform: scale(1.45);
    opacity: 0;
  }
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 5;
}

/* ==========================================================
   COURSES & FILTER STYLES
   ========================================================== */
.course-filters-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.course-filters {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(18px);
}

.course-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  background: transparent;
  border: none;
  color: var(--muted);
  transition:
    color 0.3s var(--ease),
    background 0.3s var(--ease);
  white-space: nowrap;
}

.course-filter-btn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transition:
    opacity 0.3s,
    background 0.3s;
  flex-shrink: 0;
}

.course-filter-btn.active {
  background: var(--grad-main);
  color: var(--btn-ink);
  box-shadow: 0 4px 18px -4px rgba(34, 211, 238, 0.5);
}

.course-filter-btn.active::before {
  background: rgba(4, 16, 31, 0.5);
  opacity: 1;
}

.course-filter-btn:not(.active):hover {
  color: var(--white);
  background: var(--glass-strong);
}

.course.hide {
  display: none !important;
}

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

@media (max-width: 960px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s;
}
.course:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(34, 211, 238, 0.45);
}

.course-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1s var(--ease);
}
.course:hover .course-media img {
  transform: scale(1.08);
}
.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--surface-course-fade),
    transparent 65%
  );
}
.grade-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ovl-7);
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan-soft);
  backdrop-filter: blur(10px);
}

.course-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.course-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.7;
  flex: 1;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-meta);
  margin-bottom: 16px;
}
.course-meta i {
  color: var(--cyan);
  margin-left: 5px;
}

.course-foot {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.course-foot .btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s,
    color 0.3s,
    transform 0.3s var(--ease);
  backdrop-filter: blur(10px);
}
.course-foot .btn-details:hover {
  background: var(--glass-strong);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

.course-foot .btn-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--grad-main);
  color: var(--btn-ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px -6px rgba(34, 211, 238, 0.55);
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.course-foot .btn-enroll:hover {
  box-shadow: 0 6px 28px -4px rgba(139, 92, 246, 0.65);
  transform: translateY(-2px);
}

.price {
  font-family: "Cairo";
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--cyan-soft);
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testi-container-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.testi-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  touch-action: pan-y;
}

.testi-slider {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.testi-card {
  position: relative;
  flex: 0 0 100%;
  padding: 24px 24px 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--r-lg);
}

.testi-card .quote {
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 2.4rem;
  color: rgba(103, 232, 249, 0.18);
  font-family: serif;
  line-height: 1;
}

.testi-card .stars {
  color: #fbbf24;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testi-card p {
  color: var(--text-alt);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34, 211, 238, 0.45);
  flex-shrink: 0;
}
.testi-user b {
  display: block;
  font-size: 0.92rem;
}
.testi-user span {
  font-size: 0.78rem;
  color: var(--muted);
}

.stars {
  color: #fbbf24;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testi-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--cyan-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.testi-nav-btn:hover {
  background: var(--grad-main);
  color: var(--btn-ink);
  transform: translateY(-50%) scale(1.1);
}
.testi-nav-prev {
  right: -55px;
}
.testi-nav-next {
  left: -55px;
}

@media (max-width: 768px) {
  .testi-nav-prev {
    right: -15px;
  }
  .testi-nav-next {
    left: -15px;
  }
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid rgba(103, 232, 249, 0.3);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.testi-dot.active {
  background: var(--cyan);
  transform: scale(1.35);
}

html[data-theme="light"] .testi-card {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.45)
  );
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  min-height: 100%;
}
.contact-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.contact-card .overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 40px;
  background: linear-gradient(
    150deg,
    rgba(3, 7, 24, 0.92) 0%,
    rgba(10, 22, 54, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.contact-card .overlay h3 {
  color: #ffffff !important;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-item .ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.3);
  color: var(--cyan-soft);
  font-size: 1.1rem;
}
.contact-item b {
  display: block;
  font-size: 0.98rem;
  color: #ffffff !important;
}
.contact-item span {
  font-size: 0.85rem;
  color: #dbe6f7 !important;
}

.form {
  padding: 38px;
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-alt2);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--surface-input);
  border: 1px solid var(--line);
  color: var(--white);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.form-alert {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  font-size: 0.9rem;
}
.form-alert.show {
  display: block;
  animation: fadeUp 0.4s var(--ease);
}
.form-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* ==========================================================
   FOOTER & WHATSAPP SUBSCRIPTION
   ========================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--ovl-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer a,
.footer li {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 10px;
  display: block;
  transition:
    color 0.3s,
    transform 0.3s;
}
.footer a:hover {
  color: var(--cyan-soft);
  transform: translateX(-6px);
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--white);
  margin: 0;
}
.socials a:hover {
  background: var(--grad-main);
  color: var(--btn-ink);
  transform: translateY(-5px);
}

.footer-whatsapp-sub {
  display: flex;
  flex-direction: column;
}

.wa-sub-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wa-input-wrap .wa-icon {
  position: absolute;
  right: 14px;
  color: #25d366;
  font-size: 1.2rem;
  pointer-events: none;
}

.wa-input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-input);
  border: 1px solid var(--line);
  color: var(--white);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.wa-input-wrap input:focus {
  border-color: #25d366;
}

.wa-sub-btn {
  width: 100%;
  border-radius: var(--r-sm);
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ==========================================================
   FLOATING UTILITIES
   ========================================================== */
.whatsapp-btn,
.top-btn {
  position: fixed;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s;
}
.whatsapp-btn {
  bottom: 26px;
  left: 26px;
  background: #25d366;
  color: #05240f;
  font-size: 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
}
.whatsapp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}
.top-btn {
  bottom: 26px;
  right: 26px;
  background: var(--surface-float-strong);
  color: var(--cyan);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
}
.top-btn.show {
  opacity: 1;
  pointer-events: auto;
}
.top-btn:hover {
  transform: translateY(-6px);
}

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.1s;
}
.reveal.d2 {
  transition-delay: 0.2s;
}
.reveal.d3 {
  transition-delay: 0.3s;
}
.reveal.d4 {
  transition-delay: 0.4s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ==========================================================
   GALLERY PAGE
   ========================================================== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 190px 0 70px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 16px 0 10px;
}
.page-hero p {
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 44px;
}
.filter {
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: 0.35s var(--ease);
}
.filter.active,
.filter:hover {
  background: var(--grad-main);
  color: var(--btn-ink);
  border-color: transparent;
}

.masonry {
  columns: 3;
  column-gap: 20px;
}
.masonry .item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  cursor: pointer;
}
.masonry .item img {
  width: 100%;
  transition: transform 1s var(--ease);
}
.masonry .item:hover img {
  transform: scale(1.08);
}
.masonry .item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  opacity: 0;
  background: linear-gradient(to top, var(--ovl-95), transparent);
  transition: opacity 0.4s;
  font-weight: 700;
}
.masonry .item:hover .cap {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 40px;
  background: var(--ovl-94);
  backdrop-filter: blur(16px);
}
.lightbox.open {
  display: grid;
  animation: fadeUp 0.35s var(--ease);
}
.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.lightbox .close {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ==========================================================
   AUTH LAYOUT (login.html / register.html)
   ========================================================== */
.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.auth-visual .veil {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  padding: 60px;
  background: linear-gradient(
    140deg,
    rgba(3, 7, 24, 0.82),
    rgba(88, 28, 135, 0.55)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.auth-visual h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #ffffff !important;
}
.auth-visual p {
  color: rgba(255, 255, 255, 0.82) !important;
  max-width: 420px;
}
.auth-visual .eyebrow {
  color: #67e8f9;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(103, 232, 249, 0.4);
}
.auth-visual .slogan-line {
  color: rgba(255, 255, 255, 0.7) !important;
}
.auth-visual .slogan-line span {
  color: rgba(255, 255, 255, 0.7) !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  background: none !important;
}
.auth-visual .gradient-text {
  background: linear-gradient(100deg, #ffffff, #67e8f9 45%, #c084fc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 110px 6% 60px;
}
.auth-box {
  width: min(460px, 100%);
}
.auth-box h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.auth-box > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-alt a {
  color: var(--cyan-soft);
  font-weight: 700;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-alt2);
}
.checkbox input {
  width: auto;
  accent-color: var(--cyan);
}

/* ==========================================================
   COURSE DETAILS SECTION
   ========================================================== */
.course-detail-section {
  position: relative;
  z-index: 1;
  padding: 150px 0 60px;
}

.course-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

.course-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.course-title-main {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.25;
}
.course-main-desc {
  color: var(--text-desc);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.course-instructor-inline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 32px;
}
.course-instructor-inline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
}

.course-sidebar-card {
  position: sticky;
  top: 100px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.course-preview-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
}
.course-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.course-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.course-price-main {
  font-family: "Cairo", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan-soft);
}
.course-price-old {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}
.course-highlights-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.course-highlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.93rem;
  color: var(--text-soft);
}
.course-highlight-item span i {
  color: var(--cyan);
  margin-left: 8px;
}

.detail-block {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  padding: 30px;
  margin-bottom: 28px;
}
.detail-block h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-block h3 i {
  color: var(--cyan);
}

.outcomes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-alt);
}
.outcome-item i {
  color: #25d366;
  margin-top: 5px;
}

.curriculum-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-section {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-input);
  overflow: hidden;
}
.acc-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  text-align: right;
}
.acc-body {
  padding: 0 20px 16px;
  display: none;
  border-top: 1px solid var(--line);
}
.acc-section.active .acc-body {
  display: block;
}
.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.lesson-row:last-child {
  border-bottom: none;
}
.lesson-row i {
  color: var(--cyan-soft);
  margin-left: 8px;
}

/* ==========================================================
   COURSE REGISTER PAGE
   ========================================================== */
.cr-page {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 100vh;
}
.cr-header {
  text-align: center;
  margin-bottom: 52px;
}
.cr-header .eyebrow {
  margin-bottom: 14px;
}
.cr-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  line-height: 1.25;
}
.cr-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.cr-course-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.cr-course-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.06),
    rgba(139, 92, 246, 0.06)
  );
  pointer-events: none;
}
.cr-course-thumb {
  width: 100px;
  height: 72px;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
  background: var(--navy-700);
}
.cr-course-info {
  flex: 1;
  min-width: 0;
}
.cr-course-grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-soft);
  margin-bottom: 6px;
}
.cr-course-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-course-meta {
  font-size: 0.84rem;
  color: var(--muted);
}
.cr-course-price {
  font-family: "Cairo", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--cyan-soft);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}
.cr-course-price small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  font-family: "Tajawal", sans-serif;
  margin-top: 2px;
}

.cr-grid {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 32px;
  align-items: start;
}

.cr-payment-card {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.cr-card-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-card-title i {
  color: var(--cyan);
  font-size: 1rem;
}

.pay-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pay-tab {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--surface-input);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.pay-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.28s;
}
.pay-tab.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.3);
}
.pay-tab:hover:not(.active) {
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--glass);
}
.pay-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  font-family: "Cairo", sans-serif;
  position: relative;
  z-index: 1;
}
.pay-tab-icon.instapay {
  background: linear-gradient(135deg, #0fa0d0, #0c6fa8);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: -1px;
}
.pay-tab-icon.vodafone {
  background: linear-gradient(135deg, #e60012, #b50010);
  color: #fff;
  font-size: 0.78rem;
}
.pay-tab-icon.fawry {
  background: linear-gradient(135deg, #f5a623, #e08c00);
  color: #fff;
  font-size: 0.78rem;
}
.pay-tab-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}
.pay-tab.active .pay-tab-name {
  color: var(--cyan-soft);
}
.pay-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--navy-950);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.pay-tab.active .pay-check {
  opacity: 1;
}

.pay-instructions {
  display: none;
  animation: fadeIn 0.3s ease;
}
.pay-instructions.active {
  display: block;
}

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

.pay-instr-box {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.pay-instr-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-soft);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.pay-number {
  font-family: "Cairo", sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
  word-break: break-all;
}
.pay-account-name {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.pay-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: transparent;
  color: var(--cyan-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-copy-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--cyan);
}
.pay-copy-btn.copied {
  background: rgba(34, 211, 238, 0.15);
  color: #25d366;
  border-color: #25d366;
}
.pay-steps {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-alt);
}
.pay-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-main);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.cr-form-card {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 32px;
  position: sticky;
  top: 110px;
}

.cr-field {
  margin-bottom: 18px;
}
.cr-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.cr-field label span.req {
  color: var(--cyan);
  margin-right: 3px;
}
.cr-field input,
.cr-field select,
.cr-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface-input);
  color: var(--white);
  font-size: 0.95rem;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.cr-field input::placeholder,
.cr-field textarea::placeholder {
  color: var(--muted);
  font-size: 0.88rem;
}
.cr-field input:focus,
.cr-field select:focus,
.cr-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.cr-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239db0d0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 12px;
  padding-left: 38px;
  cursor: pointer;
}
.cr-field textarea {
  resize: none;
  height: 80px;
}

html[data-theme="light"] .cr-field input,
html[data-theme="light"] .cr-field select,
html[data-theme="light"] .cr-field textarea {
  background: rgba(28, 55, 100, 0.04);
  border-color: rgba(28, 55, 100, 0.15);
  color: var(--white);
}

.cr-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cr-upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.22s,
    background 0.22s;
  position: relative;
  overflow: hidden;
  background: var(--surface-input);
}
.cr-upload-area:hover,
.cr-upload-area.dragover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
}
.cr-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.cr-upload-icon {
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 8px;
}
.cr-upload-text {
  font-size: 0.88rem;
  color: var(--text-alt);
  line-height: 1.6;
}
.cr-upload-text strong {
  color: var(--cyan-soft);
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.cr-upload-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
#uploadPreview {
  margin-top: 12px;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: none;
}
#uploadPreview img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
#uploadPreview .remove-img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #f87171;
  cursor: pointer;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  width: fit-content;
  margin-inline: auto;
  transition: background 0.2s;
}
#uploadPreview .remove-img:hover {
  background: rgba(248, 113, 113, 0.16);
}

.cr-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.cr-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--r-md);
  border: none;
  background: var(--grad-main);
  color: var(--navy-950);
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-glow);
  margin-top: 4px;
}
.cr-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px -8px rgba(139, 92, 246, 0.6);
}
.cr-submit:active {
  transform: translateY(0);
}
.cr-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cr-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}
.cr-note i {
  color: var(--cyan);
}

.cr-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
}
.cr-alert.success {
  display: flex;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25d366;
}
.cr-alert.error {
  display: flex;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES (FIXED OVERRIDES)
   ========================================================== */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .hero-stage {
    grid-template-columns: 1fr;
  }
  .hero-collage {
    height: 500px;
    margin-top: 40px;
  }
  .features-grid .feature,
  .feature-wide,
  .feature-photo {
    grid-column: span 6;
  }
  .video-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .masonry {
    columns: 2;
  }

  /* ── Auth: hide the side photo entirely on mobile/tablet,
     the form panel takes the full width instead ── */
  .auth {
    grid-template-columns: 1fr !important;
  }
  .auth .auth-visual {
    display: none !important;
  }
  .auth .auth-panel {
    padding: 90px 6% 56px;
  }
}

@media (max-width: 1024px) {
  .course-layout-grid {
    grid-template-columns: 1fr;
  }
  .course-sidebar-card {
    position: static;
  }
  .cr-grid {
    grid-template-columns: 1fr;
  }
  .cr-form-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 50px 0;
  }
  .features-grid .feature,
  .feature-wide,
  .feature-photo {
    grid-column: span 12;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-collage {
    height: 420px;
  }
  .photo-hex {
    width: 110px;
    height: 128px;
  }
  .photo-circle {
    width: 96px;
    height: 96px;
  }
  .float-card {
    font-size: 0.75rem;
    padding: 9px 12px;
  }
  .footer-grid,
  .masonry {
    grid-template-columns: 1fr;
    columns: 1;
  }
  .form,
  .auth-panel {
    padding: 26px;
  }
  .row-2 {
    grid-template-columns: 1fr;
  }
  .testi-card {
    min-height: 160px;
    padding: 20px 16px;
  }
  .testi-nav-prev {
    right: -10px;
  }
  .testi-nav-next {
    left: -10px;
  }

  /* ── Auth small devices ── */
  .auth .auth-panel {
    padding: 100px 18px 48px;
  }
  .auth-box h1 {
    font-size: 1.65rem;
  }

  /* Orbs & BG optimization */
  .orb-1 {
    width: 280px;
    height: 280px;
    filter: blur(60px);
  }
  .orb-2 {
    width: 240px;
    height: 240px;
    filter: blur(60px);
  }
  .orb-3 {
    display: none;
  }
  .hex-grid {
    display: none;
  }
  .stat-card,
  .grade-tag {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (max-width: 600px) {
  .cr-course-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cr-course-thumb {
    width: 100%;
    height: 140px;
  }
  .cr-course-price {
    font-size: 1.4rem;
  }
  .pay-tabs {
    gap: 8px;
  }
  .pay-tab {
    min-width: 90px;
  }
  .cr-row-2 {
    grid-template-columns: 1fr;
  }
  .cr-payment-card,
  .cr-form-card {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .auth .auth-panel {
    padding: 96px 14px 40px;
  }
  .auth-box h1 {
    font-size: 1.45rem;
  }
  .auth-box > p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .form {
    padding: 20px 16px;
  }
  .field input,
  .field select {
    padding: 12px 14px;
    font-size: 0.93rem;
  }
}

/* ==========================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================== */
.bg-fx .orb,
.collage-ring,
.marquee-track,
.particle,
.brand-mark,
.whatsapp-btn::after,
.play-btn::before,
.eyebrow::before {
  will-change: transform;
}

.hero,
.section,
.courses-grid,
.features-grid {
  contain: layout style;
}

@media (prefers-reduced-data: reduce) {
  @keyframes spinSlow {
    to {
      opacity: 0.85;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1ms !important;
  }
  .marquee-track {
    animation: none;
  }
}

@media (prefers-reduced-data: reduce), (update: slow) {
  .bg-fx .orb {
    filter: none;
    opacity: 0.18;
  }
  .particles {
    display: none;
  }
  .navbar,
  .mobile-menu,
  .glass,
  .course-filters,
  .testi-card,
  .float-card,
  .grade-tag,
  .btn-ghost,
  .course-filter-btn,
  .btn-details,
  .eyebrow,
  .theme-toggle,
  .stat-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .collage-ring,
  .collage-ring.r2,
  .photo-hex,
  .photo-circle,
  .float-card {
    animation: none;
  }
  @keyframes drift {
    to {
      transform: none;
    }
  }
  @keyframes floatEq {
    50% {
      transform: none;
    }
  }
  @keyframes spinSlow {
    to {
      filter: none;
    }
  }
}
