/* ═══════════════════════════════════════════════════════════════
   GoldEdx Academy — main.css  (v2.0)
   All component styles. Tokens defined in style.css.
═══════════════════════════════════════════════════════════════ */

/* ─── HEADER / NAVBAR ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(27, 35, 64, 0.07);
  background: rgba(255, 255, 255, 0.98);
}
:root.dark-mode .header {
  background: rgba(17, 19, 24, 0.92);
}
:root.dark-mode .header.scrolled {
  background: rgba(17, 19, 24, 0.98);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  max-height: 44px;
  width: auto;
}

.nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 6px 14px;
  border-radius: 40px;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list .current-menu-item a,
.nav-list .current_page_item a {
  color: var(--gold);
  background: var(--gold-faint);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.buyBtn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px rgba(184, 137, 42, 0.30);
  white-space: nowrap;
}
.buyBtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 137, 42, 0.40);
}
.darkModeToggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--foreground);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.darkModeToggle:hover { background: var(--cream-warm); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-inline-start: 0.5rem;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: 0.3s ease;
  display: block;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 16px 32px rgba(27, 35, 64, 0.08);
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .nav .nav-list { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
  .nav .nav-list a { font-size: 13px; padding: 8px 16px; }
  .nav.is-open { display: flex; }
}



/* ═══════════════════════════════════════════════════════
   HERO V2 — Multi-layer Parallax
   ═══════════════════════════════════════════════════════ */

.hero-v2 {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--white) 55%, var(--gold-faint) 100%);
  overflow: hidden;
}

/* ── Stage: the parallax canvas ── */
.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* All parallax layers share the same positioning base */
.hl {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* ── Layer: background grid ── */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  opacity: 0.45;
}

/* ── Layer: large circle backdrop ── */
.hl-circle::after {
  content: '';
  position: absolute;
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,185,150,0.18) 0%, rgba(184,137,42,0.04) 60%, transparent 80%);
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  border: 1px solid rgba(184,137,42,0.1);
}

/* ── Glow orbs ── */
.hl-orb { pointer-events: none; }
.hl-orb-1::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,42,0.15) 0%, transparent 70%);
  bottom: -15%;
  left: 25%;
  filter: blur(60px);
}
.hl-orb-2::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,35,64,0.09) 0%, transparent 70%);
  top: -10%;
  right: 10%;
  filter: blur(50px);
}

/* ── Layer: Price chart ── */
.hl-chart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8% 4% 0 0;
}
.hero-chart-svg {
  width: min(55%, 560px);
  filter: drop-shadow(0 20px 40px rgba(27,35,64,0.1));
  border-radius: 20px;
}
/* Animated chart line draw */
.chart-line-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 2.5s ease forwards 0.5s;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
.chart-end-dot {
  opacity: 0;
  animation: dotPop 0.4s ease forwards 3s;
}
@keyframes dotPop {
  from { r: 0; opacity: 0; }
  to   { r: 6; opacity: 1; }
}

/* ── Layer: candlestick panel ── */
.hl-candles {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 5% 12% 0;
}
.hero-candle-panel {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(184,137,42,0.18);
  border-radius: 16px;
  padding: 20px 24px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(27,35,64,0.08);
}
.hc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: candleFloat 4s ease-in-out infinite;
}
.hc:nth-child(1) { animation-delay: 0s; }
.hc:nth-child(2) { animation-delay: 0.4s; }
.hc:nth-child(3) { animation-delay: 0.8s; }
.hc:nth-child(4) { animation-delay: 1.2s; }
.hc:nth-child(5) { animation-delay: 1.6s; }
.hc:nth-child(6) { animation-delay: 2.0s; }

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

.hc-wick {
  width: 2px;
  border-radius: 2px;
  display: block;
}
.hc-wick-top { height: 14px; }
.hc-wick-bot { height: 8px; }
.hc-body     { width: 18px; border-radius: 4px; display: block; }

.hc-green .hc-wick { background: rgba(34,197,94,0.6); }
.hc-green .hc-body { height: 36px; background: #22c55e; }
.hc-green.hc-tall .hc-body { height: 52px; }

.hc-red .hc-wick { background: rgba(239,68,68,0.5); }
.hc-red .hc-body { height: 28px; background: #ef4444; }

/* ── Layer: sparkles ── */
.hl-particles { pointer-events: none; }
.hero-sparkle {
  position: absolute;
  width: 10px; height: 10px;
}
.hero-sparkle::before,
.hero-sparkle::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-sparkle::before { width: 10px; height: 2px; }
.hero-sparkle::after  { width: 2px; height: 10px; }

.hero-sparkle-sm::before { width: 6px; height: 1.5px; }
.hero-sparkle-sm::after  { width: 1.5px; height: 6px; }

.hero-sparkle {
  animation: sparkleAnim 3s ease-in-out infinite;
}
.hero-sparkle:nth-child(2) { animation-delay: 0.5s; }
.hero-sparkle:nth-child(3) { animation-delay: 1.0s; }
.hero-sparkle:nth-child(4) { animation-delay: 1.5s; }
.hero-sparkle:nth-child(5) { animation-delay: 2.0s; }
.hero-sparkle:nth-child(6) { animation-delay: 2.5s; }
.hero-sparkle:nth-child(7) { animation-delay: 0.8s; }
.hero-sparkle:nth-child(8) { animation-delay: 1.3s; }
.hero-sparkle:nth-child(9) { animation-delay: 1.8s; }
.hero-sparkle:nth-child(10){ animation-delay: 2.3s; }
.hero-sparkle:nth-child(11){ animation-delay: 0.3s; }

@keyframes sparkleAnim {
  0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50%       { opacity: 1;   transform: scale(1.2) rotate(45deg); }
}

/* ── Layer: floating stat badges ── */
.hl-badges { pointer-events: none; }
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(184,137,42,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(27,35,64,0.1);
  animation: badgeFloat 5s ease-in-out infinite;
  white-space: nowrap;
}
.hero-badge-1 { top: 20%;  right: 38%;  animation-delay: 0s; }
.hero-badge-2 { top: 50%;  right: 5%;   animation-delay: 1.5s; }
.hero-badge-3 { bottom: 20%; right: 28%; animation-delay: 0.8s; }

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

.hero-badge-icon { font-size: 1.4rem; flex-shrink: 0; }
.hero-badge-val {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.1;
  font-family: var(--font-display);
}
.hero-badge-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Hero image layer ── */
.hl-main-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 6% 0 0;
}
.hero-main-img {
  width: 380px;
  height: 480px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-warm);
  border-radius: var(--radius) var(--radius) 0 var(--radius);
  box-shadow: 0 40px 80px rgba(27,35,64,0.15);
  border: 1px solid var(--border);
}

/* ── Text content overlay ── */
.hero-v2-content {
  position: relative;
  z-index: 10;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* reuse existing subtitle / title / description / cta styles */
.hero-v2-content .hero-subtitle { margin-bottom: 1.25rem; }
.hero-v2-content .hero-title     { max-width: 520px; }
.hero-v2-content .hero-description { max-width: 480px; }

/* ── Scroll indicator ── */
.hero-scrollIndicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-mouse {
  width: 26px; height: 44px;
  border: 2px solid var(--pebble);
  border-radius: 20px;
  position: relative;
  opacity: 0.6;
}
.hero-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);    opacity: 1; }
  100% { transform: translate(-50%, 18px); opacity: 0; }
}

/* ── Text styles (shared) ── */
.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-subtitle::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--stone);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-ctaBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gold);
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
}
.hero-ctaBtn:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(184,137,42,0.30);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-badge-1 { top: 5%;  right: auto; left: 5%; }
  .hero-badge-2 { top: auto; bottom: 5%; right: auto; left: 5%; }
  .hero-badge-3 { display: none; }
  .hl-candles { display: none; }
  .hero-chart-svg { width: 90%; }
  .hero-v2-content .hero-title { font-size: clamp(2.5rem,8vw,3.5rem); }
  .hero-v2-content .hero-description { margin-inline: auto; }
  .hero-v2-content .hero-ctas { justify-content: center; }
}





/* ─── STATS ─── */
.stats {
  padding: var(--space-xl) var(--space-md);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,35,64,0.08); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--stone);
  font-weight: 600;
}


/* ─── CLASSES / COURSES SECTION ─── */
.classes {
  padding: var(--space-xl) 0;
  background-color: var(--background);
}
.classes-header {
  max-width: var(--container);
  margin: 0 auto var(--space-lg);
  padding: 0 2rem;
}
.classes-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.classItem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.classItem.reverse { direction: ltr; }
.classItem.reverse > * { direction: rtl; }

/* Image wrapper */
.class-imageWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
}
.class-mainImage {
  width: 100%;
  height: 100%;
  background-color: var(--cream-warm);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(27, 35, 64, 0.10);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.class-mainImage:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(27, 35, 64, 0.14);
}
/* Gold accent bar on image */
.class-mainImage::after {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Category badge */
.class-badge {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  border: 1px solid var(--border);
}

/* Instructor overlay card */
.class-instructorOverlay {
  position: absolute;
  bottom: -36px;
  inset-inline-end: -36px;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(27, 35, 64, 0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}
.classItem.reverse .class-instructorOverlay {
  inset-inline-end: auto;
  inset-inline-start: -36px;
}
.class-instructorImage {
  width: 54px; height: 54px;
  background-color: var(--cream);
  border-radius: 50%;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.class-instructorInfo { display: flex; flex-direction: column; gap: 2px; }
.class-instructorLabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.class-instructorName {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Class content */
.class-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.class-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.class-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--stone);
  font-family: var(--font-body);
}
.class-description {
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.75;
}
.class-learnMoreBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  border: none;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(184, 137, 42, 0.28);
}
.class-learnMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 137, 42, 0.38);
  opacity: 0.95;
}
.class-learnMoreBtn::after {
  content: '←';
  font-size: 1rem;
  transition: transform var(--transition-fast);
}
.class-learnMoreBtn:hover::after { transform: translateX(-4px); }

/* No courses placeholder */
.classes-empty {
  text-align: center;
  width: 100%;
  padding: 4rem 2rem;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.classes-empty p { font-size: 1.1rem; color: var(--stone); line-height: 1.75; }

@media (max-width: 992px) {
  .classItem { grid-template-columns: 1fr; gap: 5rem; }
  .classItem.reverse { direction: rtl; }
  .class-imageWrapper { max-width: 460px; margin: 0 auto; }
  .class-instructorOverlay { inset-inline-end: -16px !important; inset-inline-start: auto !important; }
}


/* ─── TIMETABLE SECTION ─── */
.timetable {
  padding: var(--space-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
}
.timetable-header {
  max-width: var(--container);
  margin: 0 auto var(--space-md);
}
.tt-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.tt-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tt-filterBtn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 6px 14px;
  border-radius: 40px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  user-select: none;
}
.tt-filterBtn:hover,
.tt-filterBtn.active {
  background: var(--gold-faint);
  color: var(--gold-dark);
  border-color: var(--gold);
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(27,35,64,0.06);
}
.tt-dayHeader {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.25rem 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-inline-start: 1px solid rgba(255,255,255,0.1);
}
.tt-dayHeader:first-child { border-inline-start: none; }
.tt-dayColumn {
  border-inline-start: 1px solid var(--border);
  min-height: 480px;
}
.tt-dayColumn:first-child { border-inline-start: none; }

.tt-classCard {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
  border-inline-start: 3px solid transparent;
  cursor: pointer;
  position: relative;
}
.tt-classCard:hover {
  background: var(--gold-faint);
  border-inline-start-color: var(--gold);
}
.tt-cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.tt-classTitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
}
.tt-playIcon {
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid var(--border);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.tt-classCard:hover .tt-playIcon {
  background: var(--gold);
  color: #fff;
  transform: scale(1.1);
}
.tt-classTime {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.tt-classRoom,
.tt-classInstructor {
  font-size: 0.78rem;
  color: var(--pebble);
  margin-bottom: 0.15rem;
}

/* Timetable CTA block (used on front-page) */
.tt-cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.tt-cta-block h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.tt-cta-block p { color: var(--stone); margin-bottom: 2rem; font-size: 1.05rem; }

@media (max-width: 1200px) {
  .timetable { padding: 2rem 1rem; }
}


/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: var(--space-xl) var(--space-md);
  background: var(--cream-warm);
}
.testimonials-container {
  max-width: var(--container);
  margin: 0 auto;
}
.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.testimonials-header .section-label { justify-content: center; }
.testimonials-header .section-label::before { display: none; }
.testimonials-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(27, 35, 64, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 35, 64, 0.10);
}
/* Decorative quote mark */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  inset-inline-start: 20px;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--gold-pale);
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  position: relative;
}
.testimonial-text {
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.testimonial-avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.testimonial-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonials-empty {
  text-align: center;
  width: 100%;
  color: var(--stone);
  padding: 2rem 0;
}


/* ─── GALLERY SLIDER ─── */
.gallerySlider {
  padding: var(--space-lg) 0;
  background: var(--white);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gs-marqueeContainer {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.gs-marquee {
  display: flex;
  width: max-content;
  animation: gs-scroll 45s linear infinite;
  gap: 0;
}
.gs-marquee:hover { animation-play-state: paused; }
.gs-slideItem { padding: 0; }
.gs-imagePlaceholder {
  width: 340px;
  height: 440px;
  background: linear-gradient(135deg, var(--cream-warm) 0%, rgba(184, 137, 42, 0.08) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(27,35,64,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  margin: 0 12px;
  overflow: hidden;
  position: relative;
}
.gs-imagePlaceholder:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(184, 137, 42, 0.18);
}
/* Gold shimmer on hover */
.gs-imagePlaceholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gs-imagePlaceholder:hover::after { opacity: 1; }
.gs-itemText {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

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


/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  margin-top: auto;
}
.footer-top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}
.footer-main {
  padding: var(--space-xl) var(--space-md);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.footer-brand .footer-logo img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(240,237,232,0.7);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-socialIcon {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,237,232,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.footer-socialIcon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-nav-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-list a {
  color: rgba(240,237,232,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.footer-nav-list a:hover { color: var(--gold-light); }

.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-info-list p {
  color: rgba(240,237,232,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-info-list a { color: var(--gold-light); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem var(--space-md);
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  color: rgba(240,237,232,0.4);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}


/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(160deg, var(--cream-warm) 0%, var(--white) 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-hero p {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 500;
}
.page-hero .hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}


/* ─── SINGLE COURSE ─── */
.course-layout {
  max-width: var(--container);
  margin: var(--space-lg) auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.course-thumbnail {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(27,35,64,0.08);
}
.course-section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.course-content-body {
  color: var(--stone);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* Instructor card */
.instructor-card {
  background: var(--cream-warm);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.instructor-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--cream);
}
.instructor-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.instructor-job {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.instructor-bio {
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Course sidebar */
.course-sidebar-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(27,35,64,0.07);
  position: sticky;
  top: 90px;
}
.course-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.75rem;
  font-weight: 700;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.course-detail-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.course-detail-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.course-detail-icon {
  width: 36px; height: 36px;
  background: var(--gold-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.course-detail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pebble);
  margin-bottom: 3px;
}
.course-detail-value {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.course-enroll-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(184,137,42,0.28);
}
.course-enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184,137,42,0.38);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-thumbnail { height: 280px; }
}


/* ─── TIMETABLE PAGE specific ─── */
.timetable-page-wrap {
  max-width: 1400px;
  margin: var(--space-lg) auto;
  padding: 0 2rem;
}


/* ─── UTILITY CLASSES ─── */
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-stone { color: var(--stone); }
.bg-cream   { background: var(--cream-warm); }
.container-narrow {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── PREMIUM NEWS / BLOG LAYOUT ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(27, 35, 64, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(27, 35, 64, 0.08);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--pebble);
  font-weight: 500;
}

.blog-card-category {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gold-faint);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.blog-card-title {
  font-family: var(--font-body); /* Standard readable arabic title */
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.blog-card-link::after {
  content: '←';
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-link::after {
  transform: translateX(-4px);
}

