/* ==========================================================================
   IIARAS Trainers — Premium Cosmic Edition
   Deep indigo hero → Warm parchment body
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --ink-950:  #060312;
  --ink-900:  #0c0623;
  --ink-800:  #130936;
  --ink-700:  #1a1045;

  --violet-500: #7c3aed;
  --violet-400: #8b5cf6;
  --violet-glow: rgba(124, 58, 237, 0.45);

  --gold-100: #fff8e7;
  --gold-200: #fef0c4;
  --gold-300: #fae092;
  --gold-400: #e5a93b;
  --gold-500: #b87b1e;
  --gold-600: #8a5a0e;
  --gold-glow: rgba(229, 169, 59, 0.4);

  --cream-50:  #fdfaf3;
  --cream-100: #fbf7ee;
  --cream-200: #f4ecdc;
  --cream-300: #e8dcc8;
  --border-warm: #dfd0b0;

  --text-950: #130e26;
  --text-700: #3d3358;
  --text-500: #6b5f82;
  --text-dim: #c8bed9;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-xl:  28px;
  --radius-lg:  20px;
  --radius-md:  14px;
  --radius-sm:  8px;
  --radius-full: 9999px;

  --shadow-card:  0 4px 24px rgba(13, 9, 35, 0.07);
  --shadow-hover: 0 20px 50px rgba(13, 9, 35, 0.13);
  --shadow-gold:  0 12px 32px rgba(184, 123, 30, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.trainers-page {
  font-family: var(--font-sans);
  background: var(--cream-100);
  color: var(--text-950);
  line-height: 1.6;
  overflow-x: clip;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════════════════
   TOP NAV BAR
══════════════════════════════════════════════════════════════════════════ */
.top-nav-bar {
  position: relative;
  z-index: 5;
  background: #08031a;
  border-bottom: 1px solid rgba(250, 224, 146, 0.15);
  padding: 0.85rem 0;
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--transition-fast), opacity var(--transition-fast);
}
.nav-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.nav-back:hover { opacity: 0.8; gap: 0.75rem; }
.nav-back:hover svg { transform: translateX(-3px); }

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  opacity: 0.9;
}

.nav-cta {
  background: linear-gradient(135deg, rgba(229,169,59,0.15), rgba(250,224,146,0.08));
  border: 1px solid rgba(229, 169, 59, 0.5);
  color: var(--gold-300);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: #1a0f00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO — COSMIC INDIGO
══════════════════════════════════════════════════════════════════════════ */
.trainers-hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%,  rgba(109, 40, 217, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%,  rgba(229, 169, 59, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 30% 10%,  rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(ellipse 35% 35% at 90% 85%,  rgba(184, 123, 30, 0.12), transparent 50%),
    linear-gradient(160deg, #08031a 0%, #100738 35%, #1a0a4a 65%, #0d0526 100%);
  color: #fff;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(8rem, 13vw, 12rem);
  overflow: hidden;
}

/* Animated star canvas */
.stars-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars-layer::before,
.stars-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8%  12%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 22% 35%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 38% 8%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 52% 55%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 67% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 80% 72%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 91% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 15% 65%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 43% 80%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 71% 50%, var(--gold-300), transparent),
    radial-gradient(1.5px 1.5px at 6%  88%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 55% 28%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 31% 92%, var(--gold-200), transparent),
    radial-gradient(1px 1px at 95% 62%, rgba(255,255,255,0.8), transparent);
  background-size: 100% 100%;
  animation: twinkle-a 4s ease-in-out infinite alternate;
}
.stars-layer::after {
  background-image:
    radial-gradient(1px 1px at 12% 44%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 27% 18%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 45% 72%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 63% 38%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 85%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 89% 25%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 3%  58%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 50% 12%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 18% 80%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 36% 48%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 74% 62%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 92% 90%, rgba(255,255,255,0.5), transparent);
  background-size: 100% 100%;
  animation: twinkle-a 6s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle-a {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

/* Glow aurora blobs */
.hero-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-aura::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 65%);
  top: -160px;
  right: -120px;
  animation: pulse-aura 8s ease-in-out infinite alternate;
}
.hero-aura::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 169, 59, 0.15), transparent 65%);
  bottom: 40px;
  left: -80px;
  animation: pulse-aura 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-aura {
  from { transform: scale(1);    opacity: 0.7; }
  to   { transform: scale(1.18); opacity: 1;   }
}

/* Hero content */
.trainers-hero .wrap { position: relative; z-index: 2; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 224, 146, 0.45);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--gold-200);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(250,224,146,0.08), 0 4px 20px rgba(0,0,0,0.25),
              inset 0 1px 0 rgba(255,255,255,0.08);
  animation: fade-down 0.7s ease both;
  position: relative;
}
/* outer glow ring */
.tag::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    from 0deg,
    rgba(250,224,146,0.5) 0deg,
    transparent 60deg,
    rgba(229,169,59,0.4) 120deg,
    transparent 180deg,
    rgba(250,224,146,0.5) 240deg,
    transparent 300deg,
    rgba(250,224,146,0.5) 360deg
  );
  animation: tag-ring 4s linear infinite;
  z-index: -1;
  opacity: 0.55;
}
@keyframes tag-ring {
  to { transform: rotate(360deg); }
}
.tag .sparkle {
  color: var(--gold-400);
  font-size: 0.9rem;
  animation: spin-sparkle 6s ease-in-out infinite;
  display: inline-block;
}
@keyframes spin-sparkle {
  0%, 100% { transform: rotate(0deg)   scale(1);   opacity: 1;   }
  50%       { transform: rotate(180deg) scale(1.4); opacity: 0.7; }
}

.trainers-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.8vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(139, 92, 246, 0.3);
  animation: fade-up 0.8s 0.1s ease both;
}

.gold-gradient {
  background: linear-gradient(110deg, #fffce8 0%, var(--gold-300) 30%, var(--gold-400) 60%, var(--gold-300) 85%, #fffce8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  display: inline;
  animation: shimmer-text 4s linear infinite;
}
@keyframes shimmer-text {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 3rem;
  line-height: 1.75;
  animation: fade-up 0.8s 0.2s ease both;
}

/* ── Metrics island — three glowing cards ──────────────────────────── */
.faculty-metrics {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.2rem;
  animation: fade-up 0.9s 0.3s ease both;
  flex-wrap: wrap;
}

.metric-chip {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 210px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(250, 224, 146, 0.2);
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease;
  overflow: hidden;
}

/* gold shimmer line on top */
.metric-chip::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-300) 40%, var(--gold-400) 60%, transparent 100%);
  background-size: 200% 100%;
  border-radius: 18px 18px 0 0;
  animation: shimmer-border 2.5s ease-in-out infinite;
}
/* subtle bottom inner shadow */
.metric-chip::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(229,169,59,0.04), transparent);
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}

.metric-chip:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 224, 146, 0.45);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(229, 169, 59, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.metric-chip b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-300);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(250, 224, 146, 0.4);
  margin-bottom: 0.5rem;
}
.metric-chip span {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(210, 200, 235, 0.75);
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

/* no more bar divider */
.metric-divider { display: none; }

/* ── Keyframe base animations ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT CONTENT BODY
══════════════════════════════════════════════════════════════════════════ */
.light-body {
  position: relative;
  z-index: 10;
  margin-top: -6rem;
  padding-bottom: 6rem;
  background: var(--cream-100);
  border-radius: 50% 50% 0 0 / 90px 90px 0 0;
}

/* Top transition wash — dark violet → cream */
.light-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    rgba(16, 7, 56, 0.14) 0%,
    rgba(26, 10, 74, 0.05) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle warm dot texture */
.light-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 15%, rgba(184,123,30,0.1),  transparent),
    radial-gradient(1px   1px   at 35% 55%, rgba(184,123,30,0.07), transparent),
    radial-gradient(1.5px 1.5px at 68% 25%, rgba(124,58,237,0.05), transparent),
    radial-gradient(1px   1px   at 82% 70%, rgba(184,123,30,0.08), transparent),
    radial-gradient(1.5px 1.5px at 55% 88%, rgba(124,58,237,0.04), transparent),
    radial-gradient(1px   1px   at 90% 40%, rgba(184,123,30,0.06), transparent);
  background-size: 420px 420px, 600px 600px, 700px 700px, 500px 500px, 650px 650px, 550px 550px;
  pointer-events: none;
  z-index: 0;
}

/* ── Section Heading ────────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  padding: 2.8rem 2.5rem 0;
  position: relative;
  z-index: 1;
}

/* Gold ambient glow behind heading */
.section-heading::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(229,169,59,0.09) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

/* — Eyebrow pill badge — */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(229,169,59,0.12), rgba(250,224,146,0.07));
  border: 1px solid rgba(229,169,59,0.3);
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(184,123,30,0.1);
}
.eyebrow::before,
.eyebrow::after {
  content: '✦';
  font-size: 0.55rem;
  color: var(--gold-400);
  opacity: 0.8;
}

/* — h2 typography — */
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  font-weight: 700;
  color: var(--text-950);
  line-height: 1.08;
  margin-bottom: 0;
  letter-spacing: -0.015em;
}

/* Italic shimmering gold on "Instructors" */
.section-heading h2 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--gold-600) 0%, var(--gold-400) 40%, var(--gold-500) 70%, var(--gold-400) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 4.5s linear infinite;
}

/* — thin gold ornamental rule — */
.section-heading-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.2rem auto 1.3rem;
  width: 280px;
}
.section-heading-rule::before,
.section-heading-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, rgba(184,123,30,0.4));
}
.section-heading-rule::before { --dir: right; }
.section-heading-rule::after  { --dir: left;  }
.section-heading-rule i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gold-400);
  opacity: 0.75;
  letter-spacing: 0.15em;
}

/* — subtitle — */
.section-heading p {
  color: var(--text-700);
  font-size: 1.08rem;
  line-height: 1.72;
  max-width: 50ch;
  margin: 0 auto;
  font-weight: 400;
}

/* No ::after star divider (removed) */
.section-heading::after { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   FACULTY GRID — TRAINER CARDS
══════════════════════════════════════════════════════════════════════════ */
/* Columns and gutters come from the Bootstrap .row (g-4) */
.faculty-grid {
  margin-bottom: 5rem;
  align-items: start;
}
.faculty-grid.row {
  display: flex !important;
  gap: 0;
  align-items: stretch;
  padding-top: 0.75rem;
}

/* ── Trainer Card ─────────────────────────────────────────────────────── */
.trainer-card {
  background: #fff;
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-med);
}

/* Shimmer top accent */
.trainer-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-300), var(--gold-500), var(--gold-300), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-med);
  animation: shimmer-border 2.5s linear infinite;
}
@keyframes shimmer-border {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Card hover glow background */
.trainer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(229, 169, 59, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.trainer-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(229, 169, 59, 0.2);
  border-color: var(--gold-400);
}
.trainer-card:hover::before { opacity: 1; }
.trainer-card:hover::after  { opacity: 1; }

/* Featured card */
.trainer-card.featured {
  background: linear-gradient(175deg, #fffdf7 0%, #fdf9ef 100%);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}
.trainer-card.featured::before { opacity: 1; }

.featured-ribbon {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1a0800;
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 60%, var(--gold-300) 100%);
  background-size: 200% 100%;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(229, 169, 59, 0.35);
  animation: shimmer-border 2s linear infinite;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
  position: relative;
}

.avatar-ring {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    var(--gold-500)    0deg,
    var(--gold-300)   90deg,
    #fff              180deg,
    var(--gold-300)   270deg,
    var(--gold-500)   360deg
  );
  box-shadow: 0 0 0 4px rgba(229,169,59,0.08), 0 6px 24px rgba(0,0,0,0.1);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  animation: rotate-ring 12s linear infinite;
}
@keyframes rotate-ring {
  from { --conic-start: 0deg; }
  to   { --conic-start: 360deg; }
}
.trainer-card:hover .avatar-ring {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(229,169,59,0.15), 0 10px 32px rgba(0,0,0,0.14), 0 0 40px rgba(229, 169, 59, 0.2);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1e1050;
  color: var(--gold-300);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
}

.faculty-empty { color: #6b6280; padding: 2rem 0; }

.zodiac-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  border: 1px solid rgba(250, 224, 146, 0.4);
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-300);
  white-space: nowrap;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ── Card Body ──────────────────────────────────────────────────────────── */
.trainer-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.trainer-card .card-footer {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.trainer-meta {
  text-align: center;
  margin-bottom: 1rem;
}

.trainer-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--text-950);
  margin-bottom: 0.25rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color var(--transition-fast);
}
.trainer-card:hover .trainer-meta h3 { color: var(--gold-600); }

.designation {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.04em;
}

.exp-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-500);
  margin-top: 0.3rem;
  background: var(--cream-200);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.bio {
  font-size: 0.9rem;
  color: var(--text-700);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  text-align: center;
}

/* Modules */
.modules-taught {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-300);
}

.modules-taught .label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-500);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags-cluster span {
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--cream-200);
  border: 1px solid var(--border-warm);
  color: var(--text-950);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.trainer-card:hover .tags-cluster span {
  background: var(--gold-100);
  border-color: rgba(229, 169, 59, 0.35);
  color: var(--gold-600);
}

/* Card footer */
.card-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--cream-300);
}

.credential-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-500);
}
.credential-check svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-500);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   METHODOLOGY SECTION
══════════════════════════════════════════════════════════════════════════ */
.methodology-bar {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 5rem;
  text-align: center;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.06), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(229, 169, 59, 0.08), transparent 55%),
    linear-gradient(145deg, var(--cream-200) 0%, var(--cream-100) 100%);
  border: 1.5px solid var(--border-warm);
  box-shadow: var(--shadow-card);
}

.methodology-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b87b1e' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.methodology-bar h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: var(--text-950);
  margin-bottom: 0.4rem;
  position: relative;
}

.methodology-bar > .wrap > p {
  color: var(--text-500);
  font-size: 1rem;
  margin-bottom: 2.8rem;
  position: relative;
}

/* Columns and gutters come from the Bootstrap .row (g-3 g-md-4) */
.methodology-grid {
  text-align: left;
  position: relative;
}
.methodology-grid.row {
  display: flex !important;
  gap: 0;
  align-items: stretch;
}

.m-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  position: relative;
  overflow: hidden;
}

.m-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity var(--transition-med);
}
.m-box:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 169, 59, 0.4);
  box-shadow: 0 12px 32px rgba(184, 123, 30, 0.1);
}
.m-box:hover::before { opacity: 1; }

.m-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-100), var(--cream-200));
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.m-box h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-950);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.m-box p {
  font-size: 0.88rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA CALLOUT
══════════════════════════════════════════════════════════════════════════ */
.trainer-cta {
  position: relative;
  border-radius: 30px;
  padding: clamp(2.8rem, 5vw, 4rem);
  overflow: hidden;
  color: #fff;

  background:
    radial-gradient(ellipse 80% 70% at 70% 0%, rgba(229, 169, 59, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(124, 58, 237, 0.15), transparent 60%),
    linear-gradient(145deg, #1c0f42 0%, #0d0722 60%, #15093a 100%);

  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 24px 60px rgba(6, 3, 18, 0.4), 0 0 0 1.5px rgba(229, 169, 59, 0.35);
}

/* Animated shimmering border effect */
.trainer-cta::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 31px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--gold-300) 0deg,
    rgba(229, 169, 59, 0.1) 60deg,
    var(--gold-500) 120deg,
    rgba(229, 169, 59, 0.1) 180deg,
    var(--gold-300) 240deg,
    rgba(255,255,255,0) 300deg,
    var(--gold-300) 360deg
  );
  animation: spin-border 8s linear infinite;
  z-index: -1;
  opacity: 0.5;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}

/* Stars inside CTA */
.trainer-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, var(--gold-300), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, var(--gold-300), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.6;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-inner h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.cta-inner p {
  color: rgba(200, 190, 220, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-med);
  white-space: nowrap;
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, #c4831a 100%);
  background-size: 200% 100%;
  color: #1a0e00;
  box-shadow: 0 8px 24px var(--gold-glow), 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn.gold:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(229, 169, 59, 0.55), 0 2px 8px rgba(0,0,0,0.15);
}
.btn.gold .arr {
  display: inline-block;
  transition: transform var(--transition-fast);
}
.btn.gold:hover .arr { transform: translateX(4px); }

.btn.ghost {
  color: rgba(255,255,255,0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(250, 224, 146, 0.45);
  color: var(--gold-300);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — every screen size
══════════════════════════════════════════════════════════════════════════ */

/* Prevent double horizontal padding (Bootstrap container + .wrap) */
.trainers-page-wrapper .container-xl.wrap,
.trainers-page-wrapper .container-xl.nav-wrap {
  max-width: 1240px;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}
.trainers-page-wrapper { width: 100%; overflow-x: clip; }
.trainers-hero h1, .section-heading h2, .cta-inner h3 { overflow-wrap: break-word; }
.trainer-card, .m-box { height: 100%; }

/* ── Large desktops (≥1600px) ── */
@media (min-width: 1600px) {
  .trainers-page-wrapper .container-xl.wrap,
  .trainers-page-wrapper .container-xl.nav-wrap { max-width: 1360px; }
  .trainers-hero h1 { font-size: 5.6rem; }
  .hero-desc { font-size: 1.25rem; }
}

/* ── Small laptops (992–1199px): tighter cards ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .trainer-card { padding: 2.2rem 1.5rem 1.6rem; }
  .trainer-meta h3 { font-size: 1.45rem; }
  .avatar-ring { width: 112px; height: 112px; }
  .m-box { padding: 1.6rem 1.3rem; }
}

/* ── Tablets (≤991px) ── */
@media (max-width: 991.98px) {
  .trainers-hero { padding: 3.5rem 0 7rem; }
  .trainers-hero h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }
  .hero-desc { margin-bottom: 2.4rem; }
  .light-body { margin-top: -4.5rem; border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
  .section-heading { padding: 2.4rem 1rem 0; margin-bottom: 2.5rem; }
  .faculty-grid { margin-bottom: 3.5rem; }
  .methodology-bar { margin-bottom: 3.5rem; }
  .cta-inner { flex-direction: column; text-align: center; gap: 1.8rem; }
  .cta-actions { justify-content: center; width: 100%; }
}

/* ── Large phones / small tablets (≤767px) ── */
@media (max-width: 767.98px) {
  .top-nav-bar { padding: 0.65rem 0; }
  /* Single column: no side gutter, so cards keep the .wrap padding */
  .faculty-grid.row { --bs-gutter-x: 0; }
  .nav-brand { display: none; }
  .nav-back span { font-size: 0.78rem; }

  .trainers-hero { padding: 2.8rem 0 6rem; }
  .tag { font-size: 0.65rem; letter-spacing: 0.1em; padding: 0.45rem 1rem; max-width: 100%; }
  .trainers-hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .hero-desc { font-size: 0.98rem; }

  .faculty-metrics { gap: 0.75rem; }
  .metric-chip { flex: 1 1 140px; min-width: 0; max-width: none; padding: 1.3rem 0.9rem; }

  .section-heading h2 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
  .section-heading-rule { width: 200px; }
  .section-heading::before { width: 100%; }

  .trainer-card { padding: 2.2rem 1.4rem 1.5rem; }
  .trainer-card:hover { transform: translateY(-4px); }

  .methodology-bar { padding: 2.4rem 1.2rem; border-radius: var(--radius-lg); }
  .methodology-grid { text-align: center; }
  .m-icon { margin-left: auto; margin-right: auto; }

  .trainer-cta { padding: 2.4rem 1.4rem; border-radius: 22px; }
  .trainer-cta::before { border-radius: 23px; }
  .cta-actions .btn { flex: 1 1 200px; }
}

/* ── Phones (≤575px) ── */
@media (max-width: 575.98px) {
  .nav-cta { padding: 0.35rem 0.85rem; font-size: 0.72rem; }
  .trainers-hero { padding: 2.2rem 0 5.5rem; }
  .light-body { margin-top: -3.5rem; border-radius: 50% 50% 0 0 / 36px 36px 0 0; padding-bottom: 4rem; }

  .faculty-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .metric-chip { padding: 1rem 0.4rem; border-radius: 14px; }
  .metric-chip b { font-size: 1.6rem; }
  .metric-chip span { font-size: 0.56rem; letter-spacing: 0.08em; }

  .section-heading { padding: 2rem 0.25rem 0; }
  .section-heading p { font-size: 0.98rem; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.18em; }

  .avatar-ring { width: 108px; height: 108px; }
  .trainer-meta h3 { font-size: 1.45rem; }
  .featured-ribbon { top: 0.8rem; right: 0.8rem; font-size: 0.6rem; }
  .tags-cluster { justify-content: center; }
  .modules-taught .label { text-align: center; }
  .credential-check { justify-content: center; text-align: left; }

  .methodology-bar h2 { font-size: 1.8rem; }
  .cta-inner h3 { font-size: 1.7rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; flex: none; padding: 0.85rem 1.4rem; }
}

/* ── Very small phones (≤380px) ── */
@media (max-width: 380px) {
  .nav-back span { display: none; }
  .trainers-hero h1 { font-size: 2.05rem; }
  .tag { font-size: 0.58rem; }
  .faculty-metrics { grid-template-columns: 1fr; }
  .metric-chip { display: flex; align-items: center; justify-content: center; gap: 0.75rem; text-align: left; }
  .metric-chip b { margin-bottom: 0; }
  .trainer-card { padding: 2rem 1rem 1.3rem; }
  .tags-cluster span { font-size: 0.68rem; padding: 0.24rem 0.55rem; }
}

/* ── Landscape phones: avoid oversized hero ── */
@media (max-height: 500px) and (orientation: landscape) {
  .trainers-hero { padding: 2rem 0 5rem; }
  .trainers-hero h1 { font-size: 2.4rem; margin-bottom: 0.8rem; }
  .hero-desc { margin-bottom: 1.5rem; }
}

/* ── Touch devices: no sticky hover lifts ── */
@media (hover: none) {
  .trainer-card:hover, .m-box:hover, .metric-chip:hover { transform: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}