/* Fonts are loaded from each page's <head> so discovery does not wait for this file. */

/* --- 1. CSS VARIABLES & THEME --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #0c0c0c;
  --color-card-bg: #111111;
  --color-card-border: #1e1e1e;
  --color-border: #1a1a1a;
  --color-brand-red: #d31e25;
  --color-brand-red-hover: #b0171d;
  --color-brand-red-light: rgba(211, 30, 37, 0.1);
  --color-brand-red-glow: rgba(211, 30, 37, 0.15);
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-text-dark: #18181b;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-round: 9999px;
  
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(211, 30, 37, 0.25);
  
  --max-width-content: 1280px;
}

/* --- 2. BASE RESET & NORMALIZER --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html {
    scrollbar-width: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
}

/* Custom Scrollbar (desktop only) */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #080808;
  }
  ::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: var(--border-radius);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-red);
  }
}

::selection {
  background-color: var(--color-brand-red);
  color: #ffffff;
}

/* --- 3. UTILITY LAYOUT & HELPER CLASSES --- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
  scroll-margin-top: 4rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
    scroll-margin-top: 4.75rem;
  }
}

/* Extra scroll clearance where the secondary icon nav is visible (below navbar) */
@media (max-width: 1023px) {
  .section-padding {
    scroll-margin-top: calc(4rem + 3.25rem);
  }
}

/* Screen Reader / Hidden helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: monospace; }

.hidden { display: none !important; }

/* Line Clamp helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 4. BUTTONS & ACTIONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  font-size: 0.875rem;
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-brand-red);
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(211, 30, 37, 0.3);
}
.btn-primary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  border: 1px solid #2e2e2e;
  background-color: transparent;
  color: var(--color-text-secondary);
}
.btn-secondary:hover {
  background-color: rgba(30, 30, 30, 0.6);
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.btn-block {
  width: 100%;
}

/* Tatami mat floor. Whole mats are painted rather than hairline seams, so the plane
   is fully covered instead of the ~2% a grid line reaches. The plane is tipped away
   from the viewer at its top edge, which is the horizon. No image or video files, so
   nothing can be revoked the way the old hot-linked hero video was. */
.hero-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: 0;
  height: 56%;
  z-index: 1;
  perspective: 900px;
  perspective-origin: 50% 0%;
  pointer-events: none;
}

.hero-floor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  transform: rotateX(64deg);
  transform-origin: 50% 0%;
  background-color: #191919;
  background-image:
    /* the lamp hitting the mats */
    radial-gradient(ellipse 62% 40% at 50% 66%, rgba(255, 178, 96, 0.24) 0%, transparent 72%),
    /* the far end falls away into shadow */
    linear-gradient(to bottom, rgba(6, 6, 6, 0.92) 0%, rgba(6, 6, 6, 0.28) 36%, transparent 58%),
    /* seams between the mats */
    repeating-linear-gradient(90deg, rgba(211, 30, 37, 0.38) 0 3px, transparent 3px 96px),
    repeating-linear-gradient(0deg, rgba(211, 30, 37, 0.38) 0 3px, transparent 3px 96px),
    /* alternating mat tones; a square tile keeps the checkerboard square */
    repeating-conic-gradient(#232323 0% 25%, #191919 0% 50%);
  background-size: 100% 100%, 100% 100%, 96px 96px, 96px 96px, 192px 192px;
  /* The far end dissolves into the horizon and the near end into the page below. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 90%, transparent 100%);
}

/* Light on the far wall above the mats. */
.hero-floor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 52% 100% at 50% 0%, rgba(211, 30, 37, 0.20) 0%, transparent 68%);
  filter: blur(26px);
}

/* Layered color overlay animation to add cinematic light flicker */
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 55% at 20% 30%,
      rgba(229, 62, 62, 0.09) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 60% at 85% 80%,
      rgba(251, 191, 36, 0.05) 0%,
      transparent 65%
    );
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: heroLightShift 9s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes heroLightShift {
  0%   { opacity: 0.60; transform: translate3d(0, 0, 0) scale(1); }
  40%  { opacity: 0.95; transform: translate3d(1.2%, -0.6%, 0) scale(1.02); }
  100% { opacity: 0.75; transform: translate3d(-0.8%, 0.4%, 0) scale(1); }
}

/* --- Parallax & Scroll Effects --- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

[data-parallax] {
  transition: transform 0.1s ease-out;
}

/* --- Weekly Schedule Grid --- */
.schedule-section {
  background: var(--color-bg-alt);
}

.schedule-grid-container {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.schedule-table th, .schedule-table td {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.schedule-table th {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.schedule-slot {
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.schedule-slot:hover {
  background: var(--color-brand-red-light);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.slot-time {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.slot-class {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-brand-red);
}

.slot-age {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

/* Voice Recognition Styles */
.chat-voice-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-voice-btn:hover {
  color: var(--color-brand-red);
  background: rgba(255, 255, 255, 0.05);
}

.chat-voice-btn.recording {
  color: var(--color-brand-red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 30, 37, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(211, 30, 37, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 30, 37, 0); }
}

/* ─── HEADER BASE ─────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header-scrolled {
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(211, 30, 37, 0.35);
}

/* ─── HEADER CONTAINER ────────────────────────────────────────────────────── */
/* Wider than the .container default (1280px): the wordmark plus the full desktop
   nav needs ~1342px, and anything past this gets clipped by body overflow-x. */
.header-container {
  max-width: 1520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height var(--transition-smooth);
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .header-container {
    height: 5.5rem;
    padding: 0 2rem;
  }
}
@media (min-width: 1280px) {
  .header-container {
    padding: 0 3rem;
  }
}

.header-scrolled .header-container {
  height: 4rem;
}
@media (min-width: 768px) {
  .header-scrolled .header-container {
    height: 4.5rem;
  }
}

/* ─── BRAND LOGO ─────────────────────────────────────────────────────────── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-image-wrapper {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Subtle ring that glows on hover */
.brand-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(211, 30, 37, 0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.brand-logo:hover .brand-image-wrapper::before {
  border-color: rgba(211, 30, 37, 0.5);
  box-shadow: 0 0 14px rgba(211, 30, 37, 0.25);
}
.brand-logo:hover .brand-image-wrapper {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  transition: filter 0.3s ease;
}
.brand-logo:hover .brand-logo-img {
  filter: drop-shadow(0 0 10px rgba(211, 30, 37, 0.55));
}

/* Scrolled — shrink logo */
.header-scrolled .brand-image-wrapper {
  width: 3rem;
  height: 3rem;
}

/* ─── BRAND TEXT ─────────────────────────────────────────────────────────── */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .brand-title {
    font-size: 1.45rem;
  }
}
@media (min-width: 1024px) {
  .brand-title {
    font-size: 1.6rem;
  }
}
/* 1280-1535px: the wordmark has to give up width or the nav tail gets clipped by
   body overflow-x, so the brand shrinks before the links do. */
@media (min-width: 1280px) and (max-width: 1535.98px) {
  .brand-logo {
    gap: 0.7rem;
  }
  .brand-image-wrapper {
    width: 2.9rem;
    height: 2.9rem;
  }
  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }
  .brand-subtitle {
    font-size: 8px;
  }
}
.header-scrolled .brand-title {
  font-size: 1.15rem;
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-brand-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  opacity: 0.9;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .brand-subtitle {
    font-size: 10px;
  }
}

/* Phones: the wordmark and subtitle are nowrap, and body has overflow-x:hidden, so
   anything wider than the container simply disappears instead of scrolling. Everything
   here is fluid (vw-based) so 320px, 360px, 390px and 430px screens all fit by
   construction. Placed after the .header-scrolled rules so it also wins while scrolled. */
@media (max-width: 639.98px) {
  .header-container {
    padding: 0 0.9rem;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-image-wrapper,
  .header-scrolled .brand-image-wrapper {
    width: clamp(2.55rem, 13.5vw, 3.1rem);
    height: clamp(2.55rem, 13.5vw, 3.1rem);
  }
  .brand-title,
  .header-scrolled .brand-title {
    font-size: clamp(0.76rem, 4.3vw, 1.02rem);
    letter-spacing: 0.035em;
  }
  .brand-subtitle {
    font-size: clamp(6px, 1.85vw, 7.5px);
    letter-spacing: 0.08em;
  }
}

/* ─── DESKTOP NAV ─────────────────────────────────────────────────────────── */
/* Below 1280px the wordmark plus eight links cannot fit, and body overflow-x
   silently clips the tail of the nav — so smaller screens get the drawer. */
.nav-desktop {
  display: none;
}
@media (min-width: 1280px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Separator before JOIN NOW button */
.nav-desktop .nav-cta-separator {
  width: 1px;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* ─── NAV LINKS ──────────────────────────────────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  padding: 0.5rem 0.75rem;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.92);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
@media (min-width: 1536px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1.05rem;
  }
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 2px;
  color: #ffffff;
}

/* Current page reads as a filled tab, not just a hover state */
.nav-link.active {
  color: #ffffff;
  background-color: rgba(211, 30, 37, 0.1);
}

/* Red underline indicator — wipes in from the left */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-brand-red);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
@media (min-width: 1536px) {
  .nav-link::after { left: 1.05rem; right: 1.05rem; }
}
.nav-link:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(211, 30, 37, 0.55);
}

/* Admin is a utility entrance, so it stays out of the page-link hierarchy */
.nav-link.nav-admin {
  gap: 0.3rem;
  margin-left: 0.3rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(161, 161, 170, 0.8);
}
@media (min-width: 1536px) {
  .nav-link.nav-admin {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }
}
.nav-link.nav-admin::after { display: none; }
.nav-link.nav-admin:hover {
  border-color: rgba(211, 30, 37, 0.55);
  background-color: rgba(211, 30, 37, 0.12);
  color: #ffffff;
}

/* ─── JOIN NOW BUTTON (in navbar) ────────────────────────────────────────── */
.nav-desktop .btn-primary {
  padding: 0.5rem 1rem !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.08em;
  border-radius: 8px;
  white-space: nowrap;
}
@media (min-width: 1536px) {
  .nav-desktop .btn-primary {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.8rem !important;
  }
}

/* ─── BURGER BUTTON ──────────────────────────────────────────────────────── */
.burger-menu-btn {
  display: block;
  color: var(--color-text-secondary);
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}
.burger-menu-btn:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.07);
}
@media (min-width: 1280px) {
  .burger-menu-btn {
    display: none;
  }
}

/* ─── ACCENT LINE ────────────────────────────────────────────────────────── */
.header-accent-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--color-brand-red) 30%, var(--color-brand-red) 70%, transparent 100%);
}

/* ─── LATEST NOTICE STRIP ─────────────────────────────────────────────────── */
/* One static notice (pinned/newest), aligned to the page container. Deliberately
   not animated: a marquee cannot be read or clicked reliably, and reads as a
   cheap banner. Height tracks the old 38px closely so .section-padding's
   scroll-margin offsets keep matching the fixed header's total height. */
.notice-strip {
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 40px;
  display: flex;
  align-items: center;
}

.notice-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  width: 100%;
  /* Mirrors .header-container exactly so the notice starts under the logo and the
     pill ends under JOIN NOW, instead of drifting onto the 1280px content grid. */
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .notice-strip-inner {
    padding: 0 2rem;
  }
}
@media (min-width: 1280px) {
  .notice-strip-inner {
    padding: 0 3rem;
  }
}
@media (max-width: 639.98px) {
  .notice-strip-inner {
    padding: 0 0.9rem;
  }
}

.notice-strip-label {
  flex-shrink: 0;
  padding-left: 0.6rem;
  border-left: 2px solid var(--color-brand-red);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.notice-strip-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
}

/* Ellipsis beats the old body overflow-x:hidden clip: the notice always keeps a
   legible beginning and can never push the layout wider than the viewport. */
.notice-strip-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.notice-strip-link:hover .notice-strip-title {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(211, 30, 37, 0.7);
  text-underline-offset: 3px;
}

.notice-strip-link:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 3px;
  border-radius: 3px;
}

.notice-strip-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.36);
}
/* Local-JSON fallback announcements carry no createdAt, so the date is empty. */
.notice-strip-date:empty {
  display: none;
}

.notice-strip-tag {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.notice-strip-tag.tag-enrollment {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.34);
}

.notice-strip-tag.tag-event {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.34);
}

.notice-strip-tag.tag-notice {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.notice-strip-tag.tag-results {
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.34);
}

.notice-strip-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 4px 11px;
  border: 1px solid rgba(211, 30, 37, 0.3);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.notice-strip-more:hover {
  background-color: rgba(211, 30, 37, 0.14);
  border-color: rgba(211, 30, 37, 0.6);
  color: #ffffff;
}

/* The strip sheds decoration before it truncates the notice itself. */
@media (max-width: 860px) {
  .notice-strip-date {
    display: none;
  }
}
@media (max-width: 620px) {
  .notice-strip-label {
    display: none;
  }
  .notice-strip-inner {
    gap: 0.6rem;
  }
  .notice-strip-more {
    padding: 3px 9px;
    font-size: 0.62rem;
  }
  .notice-strip-title {
    font-size: 0.8rem;
  }
}
/* Phones: drop the category chip so the sentence gets the whole line; the grid
   below still shows every category. */
@media (max-width: 560px) {
  .notice-strip-tag {
    display: none;
  }
  .notice-strip-title {
    flex: 1 1 auto;
  }
}



/* --- 5b. SECONDARY ICON NAVIGATION (below navbar) --- */
.mobile-icon-nav {
  position: fixed;
  top: calc(var(--subnav-offset, 0px));
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mobile-icon-link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: var(--border-radius);
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}
.mobile-icon-link:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.mobile-icon-link.active {
  color: var(--color-brand-red);
}
.mobile-icon-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 40%;
  right: 40%;
  height: 2px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-brand-red);
}
.mobile-icon-link i {
  width: 26px;
  height: 26px;
}

@media (min-width: 1024px) {
  .mobile-icon-nav {
    display: none;
  }
}

/* --- 6. MOBILE MENU DRAWER --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer.active {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-pane {
  width: 100%;
  max-width: 280px;
  background-color: #0b0b0b;
  height: 100%;
  border-left: 1px solid var(--color-card-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.active .mobile-drawer-pane {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-b: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.mobile-drawer-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.125em;
  font-size: 1.125rem;
  font-weight: 700;
}

.mobile-drawer-close {
  color: var(--color-text-secondary);
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}
.mobile-drawer-close:hover {
  color: var(--color-text-primary);
  background-color: #1c1c1c;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: #161616;
  color: var(--color-text-primary);
  transform: translateX(4px);
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-t: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer-tagline {
  text-align: center;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- 7. HERO SECTION --- */
.hero {
  position: relative;
  min-height: auto;
  background-color: var(--color-bg);
  padding-top: 7rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 9rem;
  }
}
/* Ensure hero clears the fixed header + secondary icon nav */
@media (max-width: 1023px) {
  .hero {
    padding-top: 9.5rem;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero {
    padding-top: 11rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding-top: 10rem;
    padding-bottom: 1.5rem;
  }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, #050505 0%, #090909 45%, #0e0c0a 100%);
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.35);
  transition: all 0.3s ease-out;
}

@media (min-width: 1024px) {
  .hero-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right 5% center;
    filter: brightness(0.5);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(10, 10, 10, 0.34) 66%, rgba(10, 10, 10, 0.96) 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    aspect-ratio: auto;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.80) 26%, rgba(10, 10, 10, 0.28) 55%, rgba(10, 10, 10, 0.52) 78%, rgba(10, 10, 10, 0.90) 100%),
                linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.28) 28%, transparent 58%, rgba(10, 10, 10, 0.62) 100%);
  }
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Glass affiliation badge — replaces the old flat tagline row */
.hero-badge-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--border-radius-round);
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  .hero-badge-pill {
    align-self: flex-start;
    padding: 0.5rem 1.1rem;
  }
}

.hero-badge-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-red);
  box-shadow: 0 0 0 0 rgba(211, 30, 37, 0.55);
  animation: heroBadgePulse 2.4s ease-out infinite;
}
@keyframes heroBadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(211, 30, 37, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(211, 30, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 30, 37, 0); }
}

.hero-badge-text {
  min-width: 0;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}
.hero-badge-text strong {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.14em;
}
@media (min-width: 480px) {
  .hero-badge-text { font-size: 0.66rem; }
}
@media (min-width: 768px) {
  .hero-badge-text {
    font-size: 0.72rem;
    text-align: left;
  }
}

.hero-main-block {
  max-width: 56rem;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-main-block {
    text-align: left;
    align-items: flex-start;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title-main {
  display: block;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-title-accent {
  display: block;
  margin-top: 0.5rem;
  line-height: 1;
  background: linear-gradient(96deg, #ff4a52 0%, var(--color-brand-red) 55%, #8f1017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-brand-red);
  filter: drop-shadow(0 4px 16px rgba(211, 30, 37, 0.35));
}

.hero-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  max-width: 42rem;
  margin-top: 1.5rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

/* Crimson marker highlight behind the three promise phrases */
.hero-highlight {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 2px;
  background: linear-gradient(to top, rgba(211, 30, 37, 0.45) 0%, rgba(211, 30, 37, 0.45) 34%, transparent 34%);
}

/* Warrior pillar chips */
.hero-pillars-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .hero-pillars-row {
    justify-content: flex-start;
  }
}

.hero-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--border-radius-round);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition-smooth);
}
.hero-pillar-chip i,
.hero-pillar-chip svg {
  color: var(--color-brand-red);
  flex-shrink: 0;
}
.hero-pillar-chip:hover {
  color: #ffffff;
  border-color: rgba(211, 30, 37, 0.55);
  background: rgba(211, 30, 37, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
/* Phones: full-size chips force a lonely three-row stack; this lets two share a line */
@media (max-width: 420px) {
  .hero-pillars-row { gap: 0.5rem; }
  .hero-pillar-chip {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.75rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    width: auto;
  }
}

/* Mobile form layout adjustments */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.hero-stats-row {
  width: 100%;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }
  .form-input,
  .form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  background-color: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@media (min-width: 640px) {
  .stat-card {
    padding: 1.5rem;
  }
}
@media (min-width: 768px) {
  .stat-card {
    padding: 2rem;
    align-items: flex-start;
    text-align: left;
  }
}
.stat-card:hover {
  border-color: rgba(211, 30, 37, 0.2);
  background-color: rgba(17, 17, 17, 0.6);
  transform: translateY(-4px);
}

.stat-number-wrapper {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .stat-number-wrapper {
    font-size: 2.5rem;
  }
}
@media (min-width: 768px) {
  .stat-number-wrapper {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .stat-number-wrapper {
    font-size: 3.75rem;
  }
}

.stat-suffix {
  color: var(--color-brand-red);
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 8px;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.3;
}
@media (min-width: 320px) {
  .stat-label {
    font-size: 10px;
  }
}
@media (min-width: 640px) {
  .stat-label {
    font-size: 0.75rem;
  }
}
@media (min-width: 768px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

/* --- 9. BENTO GRID / PROGRAMS --- */
.programs-section {
  background-color: var(--color-bg);
}

.section-header-block {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.15);
  border-radius: var(--border-radius-round);
  padding: 0.25rem 0.75rem;
}

.badge-tag-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .section-subtitle {
    font-size: 1rem;
  }
}


/* --- 8.5 THE ESSENCE OF GOJU-RYU (CIRCULAR SYMMETRIC) --- */
.goju-essence-section {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.essence-outer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.5rem 0;
}

.essence-wrapper {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.essence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-items: center;
}

/* Position wrappers within the 3x3 grid */
.essence-card-wrapper.kihon {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.essence-card-wrapper.kumite {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.essence-logo-wrapper {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.essence-card-wrapper.kata {
  grid-row: 2;
  grid-column: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.essence-card-wrapper.self-defence {
  grid-row: 3;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* Symmetrical and elegant circular glass cards */
.essence-card {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.essence-icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand-red);
  stroke-width: 2px;
  margin-bottom: 0.35rem;
  transition: var(--transition-smooth);
}

.essence-card:hover .essence-icon {
  color: #ffffff;
  transform: scale(1.15);
}

.essence-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: 0.15rem;
}

.essence-desc {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.25;
  max-width: 110px;
  margin: 0;
}

.essence-logo-inner {
  width: 90px;
  height: 90px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 15px rgba(211, 30, 37, 0.75)) drop-shadow(0 0 3px rgba(211, 30, 37, 0.4));
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.essence-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.essence-logo-glow {
  display: none;
}

/* Subtle decorative dashed ring background */
.essence-ring-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(211, 30, 37, 0.15);
  pointer-events: none;
  z-index: 1;
  transition: opacity 1s ease;
  opacity: 0;
}

.goju-essence-section.animated .essence-ring-bg {
  opacity: 1;
}

/* Essence animations handled in Modern Animation System section */

/* Fully Responsive Mobile Adaptability */
@media (max-width: 640px) {
  .essence-wrapper {
    min-height: 280px;
  }
  .essence-grid {
    gap: 0.75rem;
    max-width: 340px;
  }
  .essence-card {
    width: 95px;
    height: 95px;
    padding: 0.5rem 0.25rem;
  }
  .essence-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 0.15rem;
  }
  .essence-title {
    font-size: 0.7rem;
    margin-bottom: 0.05rem;
  }
  .essence-desc {
    font-size: 0.55rem;
    max-width: 80px;
    line-height: 1.15;
  }
  .essence-logo-inner {
    width: 65px;
    height: 65px;
  }
  .essence-ring-bg {
    width: 200px;
    height: 200px;
  }
}

/* --- 8.5 ABOUT US SECTION --- */
.about-section {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-card.highlight-card {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
  }
  
  .about-card.highlight-card .about-card-icon-wrapper {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    margin: 0;
  }
}

.about-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(211, 30, 37, 0.08), transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(211, 30, 37, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(211, 30, 37, 0.1);
}

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

.about-card-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-brand-red-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 1px solid rgba(211, 30, 37, 0.2);
  transition: var(--transition-smooth);
}

.about-card:hover .about-card-icon-wrapper {
  background-color: var(--color-brand-red);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(211, 30, 37, 0.4);
}

.about-card-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-brand-red);
  transition: var(--transition-smooth);
}

.about-card:hover .about-card-icon {
  color: var(--color-text-primary);
}

.about-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.about-card-text {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .about-card.highlight-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
  }
  .about-card.highlight-card .about-card-icon-wrapper {
    flex-shrink: 0;
    margin: 0;
  }
}

/* --- 9. WHY CHOOSE US (GLASS EFFECT & BLUR) --- */

.why-choose-us-section {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Glassmorphism Grid Container */
.glass-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .glass-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .glass-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glassmorphic Cards with blur effect */
.glass-card {
  position: relative;
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

/* Blur backdrop gradient glow behind each card on hover */
.glass-card-blur-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(211, 30, 37, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(211, 30, 37, 0.45);
  box-shadow: 0 12px 40px 0 rgba(211, 30, 37, 0.15);
  background: rgba(18, 18, 18, 0.65);
}

.glass-card:hover .glass-card-blur-glow {
  opacity: 1;
}

.glass-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* Icon / Emoji circle style */
.glass-card-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 0 12px rgba(211, 30, 37, 0.1);
}

.glass-card:hover .glass-card-icon-wrapper {
  background: rgba(211, 30, 37, 0.15);
  border-color: var(--color-brand-red);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(211, 30, 37, 0.35);
}

.glass-card-emoji {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card-icon {
  width: 28px;
  height: 28px;
  color: var(--color-brand-red);
  stroke-width: 2px;
  transition: var(--transition-smooth);
}

.glass-card:hover .glass-card-icon {
  color: #ffffff;
  transform: scale(1.1);
}

.glass-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.35;
}

.glass-card:hover .glass-card-title {
  color: var(--color-brand-red);
}

.glass-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Mobile: default hover states for touch devices */
@media (max-width: 640px) {
  /* Why Choose Us — glass cards */
  .glass-card {
    transform: translateY(-8px);
    border-color: rgba(211, 30, 37, 0.45);
    box-shadow: 0 12px 40px 0 rgba(211, 30, 37, 0.15);
    background: rgba(18, 18, 18, 0.65);
  }
  .glass-card .glass-card-blur-glow {
    opacity: 1;
  }
  .glass-card .glass-card-icon-wrapper {
    background: rgba(211, 30, 37, 0.15);
    border-color: var(--color-brand-red);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(211, 30, 37, 0.35);
  }
  .glass-card .glass-card-icon {
    color: #ffffff;
    transform: scale(1.1);
  }
  .glass-card .glass-card-title {
    color: var(--color-brand-red);
  }

  /* About Us — cards */
  .about-card {
    transform: translateY(-5px);
    border-color: rgba(211, 30, 37, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(211, 30, 37, 0.1);
  }
  .about-card::before {
    opacity: 1;
  }
  .about-card .about-card-icon-wrapper {
    background-color: var(--color-brand-red);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(211, 30, 37, 0.4);
  }
  .about-card .about-card-icon {
    color: var(--color-text-primary);
  }
}

/* --- 10. CERTIFIED INSTRUCTORS --- */
.instructors-section {
  position: relative;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Ambient glow nodes */
.ambient-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background-color: var(--color-brand-red-glow);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.ambient-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 350px;
  height: 350px;
  background-color: rgba(211, 30, 37, 0.03);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.instructors-accent-line {
  width: 4rem;
  height: 3px;
  background-color: var(--color-brand-red);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}

.instructors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .instructors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.instructor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(17, 17, 17, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}
.instructor-card:hover {
  border-color: rgba(211, 30, 37, 0.2);
  transform: translateY(-6px);
}

.instructor-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.instructor-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a0a0a 0%, transparent 50%);
  z-index: 10;
  opacity: 0.7;
  transition: var(--transition-smooth);
}
.instructor-card:hover .instructor-img-overlay {
  opacity: 0.5;
}

.instructor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.instructor-card:hover .instructor-img {
  transform: scale(1.05);
}

.instructor-rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background-color: var(--color-brand-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(211, 30, 37, 0.3);
}

.instructor-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  text-align: left;
}
@media (min-width: 640px) {
  .instructor-content {
    padding: 1.35rem;
  }
}

.instructor-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instructor-role {
  color: var(--color-brand-red);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.instructor-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: var(--transition-fast);
}
@media (min-width: 640px) {
  .instructor-name {
    font-size: 1.5rem;
  }
}
.instructor-card:hover .instructor-name {
  color: var(--color-brand-red);
}

.instructor-spec {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 640px) {
  .instructor-spec {
    font-size: 0.875rem;
  }
}

.instructor-spec-label {
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.instructor-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
}

.instructor-credentials-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.instructor-credentials-label {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.instructor-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.instructor-credential-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.instructor-credential-icon {
  color: var(--color-brand-red);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.instructor-footer {
  padding-top: 0.5rem;
}

.instructor-footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 8px;
}

.instructor-footer-icon {
  color: var(--color-brand-red);
  flex-shrink: 0;
}

.instructor-footer-text {
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* --- 11. LEGACY PHOTO GALLERY --- */
.gallery-section {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.gallery-ambient-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background-color: rgba(211, 30, 37, 0.02);
  filter: blur(150px);
  pointer-events: none;
}

.gallery-top-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .gallery-top-wrapper {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.gallery-title-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-accent-line {
  height: 4px;
  width: 3rem;
  background-color: var(--color-brand-red);
}

.gallery-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .gallery-filters-row {
    justify-content: flex-end;
  }
}

.gallery-filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background-color: transparent;
  border: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.gallery-filter-btn:hover {
  color: #ffffff;
  background-color: rgba(30, 30, 30, 0.4);
}
.gallery-filter-btn.active {
  background-color: var(--color-brand-red);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(211, 30, 37, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Force 2 columns and smaller images for the Home Page visual legacy glimpse */
#gallery-preview-grid-block {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem;
}
#gallery-preview-grid-block .gallery-card {
  height: 13rem;
}
@media (max-width: 640px) {
  #gallery-preview-grid-block {
    gap: 0.75rem;
  }
  #gallery-preview-grid-block .gallery-card {
    height: 10rem;
  }
}

.gallery-card {
  position: relative;
  height: 18rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #161616;
  border: 1px solid var(--color-border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.9), 0 20px 30px rgba(0, 0, 0, 0.7);
  user-select: none;
  transition: var(--transition-smooth);
}
.gallery-card:hover {
  border-color: rgba(211, 30, 37, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.95), 0 32px 40px rgba(211, 30, 37, 0.45);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.7s ease, filter 0.3s ease;
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 0.9;
}

.gallery-card-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  z-index: 10;
}

.gallery-card-content {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  z-index: 10;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.gallery-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-desc {
  opacity: 1;
}

.gallery-card-enlarge {
  color: var(--color-brand-red);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transition: all 0.3s ease;
}
.gallery-card:hover .gallery-card-enlarge {
  opacity: 1;
}

/* --- 12. IMMERSIVE BLUR LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  pointer-events: auto;
  opacity: 1;
}

.lightbox-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
@media (min-width: 640px) {
  .lightbox-toolbar {
    padding: 1.5rem;
  }
}

.lightbox-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-align: left;
}
@media (min-width: 640px) {
  .lightbox-brand-text {
    font-size: 0.875rem;
  }
}

.lightbox-close-btn {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #222222;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .lightbox-close-btn {
    padding: 0.625rem;
  }
}
.lightbox-close-btn:hover {
  background-color: var(--color-brand-red);
  border-color: transparent;
}

.lightbox-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #111111;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .lightbox-nav-btn {
    padding: 0.75rem;
  }
}
.lightbox-nav-btn:hover {
  background-color: var(--color-brand-red);
  border-color: transparent;
}

.lightbox-prev-btn { left: 1rem; }
.lightbox-next-btn { right: 1rem; }

.lightbox-img-container {
  max-width: 56rem;
  max-height: 60vh;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .lightbox-img-container {
    max-height: 70vh;
  }
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lightbox-info-pane {
  width: 100%;
  background-color: #050505;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lightbox-info-tag {
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  background-color: rgba(211, 30, 37, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  align-self: flex-start;
}

.lightbox-info-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.lightbox-info-desc {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  max-width: 48rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .lightbox-info-desc {
    font-size: 0.875rem;
  }
}

/* --- 13. CONTACT & HEADQUARTERS --- */
.contact-section {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.contact-title-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 4rem;
  max-width: 36rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .contact-info-col {
    grid-column: span 5;
  }
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(17, 17, 17, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-align: left;
  transition: all 0.25s ease-out;
}

.contact-info-card[href]:hover {
  background-color: rgba(211, 30, 37, 0.05);
  border-color: var(--color-brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 30, 37, 0.1);
}

.contact-info-card[href]:hover .view-map-link,
.contact-info-card[href]:active .view-map-link {
  opacity: 0.75;
}

.contact-info-card[href]:hover .contact-info-icon-box,
.contact-info-card[href]:active .contact-info-icon-box {
  background-color: rgba(211, 30, 37, 0.16);
  border-color: rgba(211, 30, 37, 0.4);
}

.contact-info-card[href]:active {
  background-color: rgba(211, 30, 37, 0.1);
  border-color: var(--color-brand-red);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(211, 30, 37, 0.15);
  -webkit-tap-highlight-color: rgba(211, 30, 37, 0.15);
}

.contact-info-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 4px;
  background-color: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red);
  flex-shrink: 0;
}

.contact-info-text-box {
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .contact-info-title {
    font-size: 1rem;
  }
}

.contact-info-detail {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .contact-info-detail {
    font-size: 0.875rem;
  }
}

.timings-box {
  padding: 1.5rem;
  background-color: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.timings-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.timings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.timings-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.625rem;
}
.timings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timings-day {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.timings-time {
  color: #ffffff;
  font-weight: 600;
}

.timings-time-invitation {
  color: var(--color-brand-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .contact-form-col {
    grid-column: span 7;
  }
}

.contact-form-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .contact-form-card {
    padding: 2rem;
  }
}

.contact-form-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-brand-red);
}

/* Receipt self-service entry card — sits directly above the inquiry form */
.receipt-access-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(211, 30, 37, 0.16) 0%, rgba(17, 17, 17, 0.85) 60%);
  border: 1px solid rgba(211, 30, 37, 0.32);
  border-left: 4px solid var(--color-brand-red);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-smooth);
}
.receipt-access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 30, 37, 0.55);
  box-shadow: var(--shadow-glow);
}

.receipt-access-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(211, 30, 37, 0.18);
  color: var(--color-brand-red);
}

.receipt-access-text {
  min-width: 0;
}

.receipt-access-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-red);
}

.receipt-access-title {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.receipt-access-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.receipt-access-cta {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-round);
  background-color: var(--color-brand-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.receipt-access-cta svg { transition: var(--transition-fast); }
.receipt-access-card:hover .receipt-access-cta { background-color: var(--color-brand-red-hover); }
.receipt-access-card:hover .receipt-access-cta svg { transform: translateX(2px); }

@media (max-width: 560px) {
  .receipt-access-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .receipt-access-text {
    flex: 1 1 0;
  }
  .receipt-access-cta {
    flex-basis: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
}

.form-label {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-family: monospace;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-input-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.input-field {
  width: 100%;
  background-color: rgba(20, 20, 20, 0.4);
  border: 2px solid var(--color-card-border);
  border-radius: 4px;
  padding: 0.625rem 1rem;
  color: #ffffff;
  font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.input-field::placeholder {
  color: #4e4e4e;
}
.input-field:focus {
  outline: none;
  border-color: var(--color-brand-red);
  background-color: rgba(20, 20, 20, 0.8);
}

.textarea-field {
  resize: none;
}

/* ============================================================
   PREMIUM ADDRESS FIELD
   ============================================================ */

.address-group {
  margin-top: 4px;
}

.address-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.address-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  flex-shrink: 0;
  margin-right: 4px;
}

.address-video-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  /* Invert solid white background to black, blend mode 'screen' turns black into transparent, filter recolors to brand red */
  filter: invert(1) sepia(1) saturate(10000%) hue-rotate(335deg) brightness(1.1) drop-shadow(0 0 4px rgba(211, 30, 37, 0.7));
  mix-blend-mode: screen;
}

.address-textarea-wrapper {
  position: relative;
  border-radius: 10px;
  /* subtle left red accent line */
  border-left: 3px solid rgba(211, 30, 37, 0.5);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.address-textarea-wrapper:focus-within {
  border-left-color: var(--color-brand-red, #d31e25);
  box-shadow: 0 0 0 2px rgba(211, 30, 37, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.address-textarea {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px 12px 16px;
  color: #e8e8e8;
  font-size: 0.9rem;
  font-family: var(--font-sans, sans-serif);
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
  display: block;
}

.address-textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
  font-style: italic;
  font-size: 0.87rem;
}

.address-textarea:focus {
  border-color: rgba(211, 30, 37, 0.3);
  background: rgba(211, 30, 37, 0.03);
}

/* Success Banner */
.success-banner {
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon-box {
  width: 4rem;
  height: 4rem;
  background-color: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.15);
  color: var(--color-brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.success-desc {
  color: var(--color-text-secondary);
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.success-reset-btn {
  padding: 0.5rem 1rem;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: var(--color-text-secondary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: var(--transition-fast);
}
.success-reset-btn:hover {
  background-color: #242424;
  color: #ffffff;
}

/* --- 14. FOOTER --- */
.footer {
  background-color: #000000;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: var(--color-brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  background-color: #050505;
}

.footer-badge-icon {
  color: var(--color-brand-red);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-socials {
    justify-content: flex-end;
  }
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #050505;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.footer-social-link:hover {
  color: #ffffff;
  border-color: var(--color-brand-red);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  font-size: 0.75rem;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom-row {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  transition: var(--transition-fast);
}
.footer-link:hover {
  color: var(--color-text-secondary);
}

/* --- 15. BOOKING TRIAL MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: var(--transition-smooth);
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background-color: #111111;
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    overflow-y: auto !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
  }

  .modal-card {
    border-radius: 24px 24px 0 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0) !important;
  }

  .modal-header {
    padding: 1.25rem 1rem !important;
  }

  .modal-body {
    padding: 1.25rem 1rem !important;
    /* push content above the fixed 62px bottom tab bar */
    padding-bottom: calc(1.25rem + 62px + env(safe-area-inset-bottom)) !important;
  }
}

.modal-stripe {
  height: 6px;
  width: 100%;
  background-color: var(--color-brand-red);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.125em;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.modal-title-icon {
  color: var(--color-brand-red);
}

.modal-close-btn {
  color: var(--color-text-secondary);
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  color: #ffffff;
  background-color: #1c1c1c;
}

.modal-body {
  padding: 1.5rem;
}

/* Booking wizard: keep header, progress bar and helpline pinned while the step scrolls */
.modal-card.wizard-modal {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.modal-card.wizard-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.wizard-helpline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(211, 30, 37, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--color-brand-red, #d31e25);
  border-radius: 10px;
}

.wizard-helpline-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-helpline-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-brand-red, #d31e25);
}

.wizard-helpline-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(211, 30, 37, 0.92);
  border: 1px solid rgba(211, 30, 37, 0.92);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wizard-helpline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(211, 30, 37, 0.35);
}

@media (max-width: 640px) {
  .modal-card.wizard-modal {
    overflow: hidden !important;
  }
  .wizard-helpline-more {
    display: none;
  }
}

.modal-intro {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 1.25rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-icon-input-wrapper {
  position: relative;
}

.form-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #555555;
  pointer-events: none;
}

.input-with-icon {
  padding-left: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-select {
  width: 100%;
  background-color: rgba(15, 15, 15, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.72rem 2.6rem 0.72rem 1rem;
  color: #e8e8e8;
  font-size: 0.92rem;
  font-family: var(--font-sans, sans-serif);
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* custom red-tinted chevron arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d31e25' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-select:hover {
  border-color: rgba(211, 30, 37, 0.45);
  background-color: rgba(20, 20, 20, 0.95);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-brand-red, #d31e25);
  background-color: rgba(20, 20, 20, 0.98);
  box-shadow: 0 0 0 3px rgba(211, 30, 37, 0.18), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Style the native options dropdown background */
.form-select option {
  background-color: #1a1a1a;
  color: #e8e8e8;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.form-select option:checked,
.form-select option:hover {
  background-color: rgba(211, 30, 37, 0.25);
  color: #ffffff;
}

.form-select-with-icon {
  padding-left: 2.6rem;
}

.form-err-msg {
  color: var(--color-brand-red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
  text-align: left;
}

/* ============================================================
   3-STEP REGISTRATION WIZARD STYLES
   ============================================================ */

.reg-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 0.5rem 1.5rem;
  background: rgba(12, 12, 12, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reg-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.reg-step-item.active {
  color: #ffffff;
}

.reg-step-item.active .step-circle {
  background: var(--color-brand-red, #d31e25);
  border-color: var(--color-brand-red, #d31e25);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(211, 30, 37, 0.55);
}

.reg-step-item.completed {
  color: rgba(255, 255, 255, 0.8);
}

.reg-step-item.completed .step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  animation: tickPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reg-step-item.completed .step-circle svg {
  display: block;
  animation: tickDraw 0.3s ease 0.1s both;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

@keyframes tickPop {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes tickDraw {
  to { stroke-dashoffset: 0; }
}


.reg-step-line {
  flex: 1;
  max-width: 45px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 10px;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.reg-step-line.active {
  background: var(--color-brand-red, #d31e25);
  box-shadow: 0 0 8px rgba(211, 30, 37, 0.4);
}

.wizard-step-pane {
  animation: fadeInStep 0.3s ease forwards;
}

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

/* ============================================================
   STEP 2: PAYMENT STYLES
   ============================================================ */

.payment-summary-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-brand-red, #d31e25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
}

.payment-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-summary-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.payment-fee-tag {
  background: rgba(211, 30, 37, 0.18);
  border: 1px solid rgba(211, 30, 37, 0.35);
  color: var(--color-brand-red, #d31e25);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.82rem;
}

.summary-label {
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}

.summary-value {
  color: #ffffff;
}

.payment-methods-wrapper {
  margin-bottom: 1.25rem;
}

.payment-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans, sans-serif);
}

.pay-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pay-tab-btn.active {
  background: rgba(211, 30, 37, 0.12);
  border-color: var(--color-brand-red, #d31e25);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(211, 30, 37, 0.25);
}

.upi-pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 14px;
}

.upi-pay-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.upi-pay-amount {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.upi-pay-tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.upi-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upi-details {
  width: 100%;
  text-align: center;
}

@media (min-width: 560px) {
  .upi-pay-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 20px;
    row-gap: 0;
    padding: 18px 20px;
  }
  .upi-pay-head {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .upi-details {
    text-align: left;
  }
}

.upi-qr-canvas {
  width: 156px;
  height: 156px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}

.upi-qr-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.upi-qr-caption {
  margin: 10px 0 16px;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.upi-id-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
}

.upi-id-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.upi-id-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.upi-id-value {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  user-select: all;
}

.upi-copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.upi-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.upi-open-btn {
  width: 100%;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(211, 30, 37, 0.92);
  border: 1px solid rgba(211, 30, 37, 0.92);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(211, 30, 37, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upi-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(211, 30, 37, 0.35);
}

.upi-open-note {
  margin: 8px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.upi-steps {
  list-style: none;
  counter-reset: upi-step;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.upi-steps li {
  counter-increment: upi-step;
  position: relative;
  padding-left: 30px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.upi-steps li strong {
  color: #ffffff;
}

.upi-steps li::before {
  content: counter(upi-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(211, 30, 37, 0.14);
  border: 1px solid rgba(211, 30, 37, 0.4);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
}

.dojo-pay-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(211, 30, 37, 0.06);
  border: 1px solid rgba(211, 30, 37, 0.2);
  border-radius: 10px;
  padding: 14px;
}

/* Manual-verification reassurance notice (UPI pane) */
.verify-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 4px solid #fbbf24;
  border-radius: 10px;
  padding: 12px 14px;
}

.verify-notice-icon {
  width: 22px;
  height: 22px;
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
}

.verify-notice strong {
  display: block;
  color: #fde68a;
  font-size: 0.9rem;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.verify-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
}

.verify-notice b {
  color: #ffffff;
}

.verify-notice .verify-notice-sub {
  margin-top: 6px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Highlighted verification banner inside the receipt */
.receipt-verify-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px dashed rgba(251, 191, 36, 0.5);
}

.receipt-verify-box svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 1px;
}

.receipt-verify-box.is-verified {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
}

.receipt-verify-box.is-verified svg {
  color: #10b981;
}

#receipt-verify-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

#receipt-verify-text b {
  color: #fde68a;
}

.receipt-verify-box.is-verified #receipt-verify-text b {
  color: #6ee7b7;
}

.wizard-nav-buttons {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 1.25rem;
}

.wizard-nav-buttons .btn {
  padding: 0.8rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: 10px;
}

.wizard-btn-back {
  flex: 0 0 auto;
  min-width: 92px;
}

.wizard-btn-primary {
  flex: 1 1 auto;
  min-width: 0;
}

.wizard-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.wizard-receipt-actions .btn {
  padding: 0.75rem 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: 10px;
}

#btn-goto-payment {
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* ============================================================
   STEP 3: OFFICIAL PRINTABLE RECEIPT
   ============================================================ */

.official-receipt-card {
  background: #0f0f12;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.official-receipt-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(211, 30, 37, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(211, 30, 37, 0.4);
  margin-bottom: 12px;
}

.receipt-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.receipt-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.receipt-dojo-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.receipt-affiliation {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 2px 0 0 0;
}

.receipt-badge-status span {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.receipt-meta-bar {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-label {
  color: rgba(255, 255, 255, 0.45);
  margin-right: 4px;
}

.meta-val {
  color: #ffffff;
}

.meta-val.highlight-red {
  color: var(--color-brand-red, #d31e25);
  font-family: monospace;
  font-weight: 800;
}

.receipt-table-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.receipt-key {
  color: rgba(255, 255, 255, 0.45);
}

.receipt-val {
  color: #ffffff;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.receipt-payment-box {
  background: rgba(211, 30, 37, 0.05);
  border: 1px solid rgba(211, 30, 37, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.receipt-pay-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.receipt-pay-line.total-line {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 6px;
  font-weight: 700;
  color: #ffffff;
}

.receipt-grand-total {
  color: var(--color-brand-red, #d31e25);
  font-size: 1.05rem;
  font-weight: 800;
}

.receipt-pay-status-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.receipt-mode-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.receipt-txn-pill {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.receipt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-notes p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  margin: 0 0 3px 0;
}

.dojo-seal-circle {
  width: 50px;
  height: 50px;
  border: 2px dashed var(--color-brand-red, #d31e25);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red, #d31e25);
  font-weight: 900;
  font-size: 0.8rem;
  transform: rotate(-12deg);
  background: rgba(211, 30, 37, 0.05);
}

.dojo-seal-circle small {
  font-size: 0.5rem;
  letter-spacing: 0.5px;
}

.wizard-receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

/* ============================================================
   PRINT STYLES FOR OFFICIAL RECEIPT
   ============================================================ */

@media print {
  body * {
    visibility: hidden;
  }
  #printable-receipt, #printable-receipt * {
    visibility: visible;
  }
  #printable-receipt {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 24px;
    background: #ffffff !important;
    color: #111111 !important;
    border: 2px solid #111111 !important;
    box-shadow: none !important;
  }
  #printable-receipt .receipt-dojo-title {
    color: #111111 !important;
  }
  #printable-receipt .receipt-val,
  #printable-receipt .meta-val {
    color: #111111 !important;
  }
  #printable-receipt .receipt-key,
  #printable-receipt .meta-label {
    color: #666666 !important;
  }
  #printable-receipt .receipt-payment-box {
    background: #f8f8f8 !important;
    border-color: #dddddd !important;
  }
  /* Keep the verification messaging legible on the forced-white print */
  #printable-receipt .receipt-verify-box {
    background: #fff8e1 !important;
    border: 1px dashed #b45309 !important;
  }
  #printable-receipt .receipt-verify-box.is-verified {
    background: #e9f9f1 !important;
    border: 1px solid #047857 !important;
  }
  #printable-receipt #receipt-verify-text,
  #printable-receipt #receipt-verify-text b {
    color: #111111 !important;
  }
  #printable-receipt .receipt-verify-box svg {
    color: #b45309 !important;
  }
  #printable-receipt .receipt-mode-pill {
    color: #111111 !important;
    background: #eeeeee !important;
    border-color: #999999 !important;
  }
  #printable-receipt .receipt-txn-pill {
    color: #333333 !important;
  }
}


.booking-success-icon-box {
  width: 4rem;
  height: 4rem;
  background-color: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.15);
  color: var(--color-brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: italic;
  color: #ffffff;
}

.booking-success-desc {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 24rem;
}

.booking-success-badge-container {
  padding: 1rem;
  background-color: #050505;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  max-width: 24rem;
  text-align: left;
  display: flex;
  gap: 0.5rem;
}

.booking-success-badge-icon {
  color: var(--color-brand-red);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.booking-success-badge-text {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- 16. CHATBOT FLOATING MODULE --- */
.chatbot-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-brand-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(211, 30, 37, 0.4), var(--shadow-glow);
  transition: var(--transition-smooth);
}
.chatbot-launcher:hover {
  transform: scale(1.1) rotate(6deg);
  background-color: var(--color-brand-red-hover);
}
.chatbot-launcher:active {
  transform: scale(0.95);
}

.chatbot-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 40;
  width: calc(100% - 3rem);
  max-width: 380px;
  height: 500px;
  background-color: #0f0f0f;
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.chatbot-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  background-color: #141414;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.chatbot-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background-color: rgba(211, 30, 37, 0.08);
  border: 1px solid rgba(211, 30, 37, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red);
}

.chatbot-meta-box {
  display: flex;
  flex-direction: column;
}

.chatbot-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 9px;
  font-family: monospace;
  color: var(--color-brand-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.chatbot-status::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--color-brand-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.chatbot-close {
  color: var(--color-text-muted);
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}
.chatbot-close:hover {
  color: #ffffff;
  background-color: #1c1c1c;
}

.chatbot-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
}

/* Message entrance animations */
.chat-bubble.anim-slide-right {
  animation: bubbleSlideRight 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.chat-bubble.anim-slide-left {
  animation: bubbleSlideLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bubbleSlideRight {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes bubbleSlideLeft {
  from { opacity: 0; transform: translateX(-20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.bubble-bot {
  background-color: #1a1a1a;
  color: #e4e4e7;
  border-top-left-radius: 0;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.bubble-user {
  background-color: var(--color-brand-red);
  color: #ffffff;
  border-top-right-radius: 0;
  align-self: flex-end;
}

/* Typing Indicator bubble */
.bubble-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.7rem 1.1rem;
  opacity: 1;
  animation: bubbleSlideLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-red);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Typewriter cursor for bot text generation */
.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background-color: var(--color-brand-red);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Typewriter text reveal — clip mask per character */
.typewriter-text {
  display: inline;
}

/* In-chat Register Now button */
.chatbot-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.5rem 1.1rem;
  background-color: var(--color-brand-red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(211, 30, 37, 0.35);
  width: fit-content;
}
.chatbot-register-btn:hover {
  background-color: var(--color-brand-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(211, 30, 37, 0.5);
}
.chatbot-register-btn:active {
  transform: scale(0.97);
}

/* In-chat Contact & Location link */
.chatbot-contact-link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 0;
  color: var(--color-brand-red);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1.5px solid rgba(211, 30, 37, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chatbot-contact-link:hover {
  color: #ff5a6a;
  border-color: var(--color-brand-red);
}

/* In-chat instructor cards grid */
.chatbot-instructors-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
  width: 100%;
}

.chatbot-instructor-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.chatbot-instructor-card:hover {
  background: rgba(211, 30, 37, 0.06);
  border-color: rgba(211, 30, 37, 0.25);
}

.chatbot-instructor-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(211, 30, 37, 0.3);
  flex-shrink: 0;
}

.chatbot-instructor-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chatbot-instructor-rank {
  font-size: 9px;
  font-family: monospace;
  color: var(--color-brand-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.chatbot-instructor-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-instructor-role {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.chatbot-view-all-link {
  display: inline-block;
  text-align: center;
  padding: 0.4rem 0;
  color: var(--color-brand-red);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1.5px solid rgba(211, 30, 37, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
  width: fit-content;
  align-self: center;
}
.chatbot-view-all-link:hover {
  color: #ff5a6a;
  border-color: var(--color-brand-red);
}

/* Quick suggestions list */
.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.5rem 1rem 0.75rem;
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.suggestion-chip {
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  color: var(--color-text-secondary);
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-round);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
}

.chatbot-panel.active .suggestion-chip {
  animation: chipFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.chatbot-panel.active .suggestion-chip:nth-child(1) { animation-delay: 0.1s; }
.chatbot-panel.active .suggestion-chip:nth-child(2) { animation-delay: 0.2s; }
.chatbot-panel.active .suggestion-chip:nth-child(3) { animation-delay: 0.3s; }

@keyframes chipFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.suggestion-chip:hover {
  background-color: var(--color-brand-red-light);
  color: #ffffff;
  border-color: rgba(211, 30, 37, 0.2);
}

.chatbot-input-bar {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  background-color: #141414;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input {
  flex-grow: 1;
  background-color: #0c0c0c;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  padding: 0.625rem 1rem;
  color: #ffffff;
  font-size: 0.8125rem;
  min-height: 38px;
  transition: border-color 0.2s ease;
}
.chat-input:focus {
  outline: none;
  border-color: var(--color-brand-red);
}

.chat-send-btn {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 6px;
  background-color: var(--color-brand-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.chat-send-btn:hover {
  background-color: var(--color-brand-red-hover);
}
.chat-send-btn:active {
  transform: scale(0.95);
}

/* Compact Roster Student Tiles (Fully Responsive) */
.student-tile-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.student-tile-compact:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-brand-red);
  transform: translateY(-2px);
}

.student-tile-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.student-tile-info-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.student-tile-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-tile-role {
  margin: 2px 0 0 0;
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.student-tile-badge {
  padding: 4px 10px;
  border-radius: var(--border-radius-round);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* On larger devices, make it slightly larger for better desktop presence */
@media (min-width: 480px) {
  .student-tile-compact {
    gap: 16px;
    padding: 14px 20px;
  }
  .student-tile-avatar-wrapper {
    width: 54px;
    height: 54px;
  }
  .student-tile-name {
    font-size: 1.1rem;
  }
  .student-tile-role {
    margin-top: 3px;
    font-size: 0.72rem;
  }
  .student-tile-badge {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   MODERN ANIMATIONS SYSTEM
   ============================================================ */

/* --- 1. KEYFRAME DEFINITIONS --- */
@keyframes animFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes animFadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes animScaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes animRotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes animSlideInBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animBlurIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes animGlowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(211, 30, 37, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(211, 30, 37, 0.35);
  }
}

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

@keyframes animFloatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(1deg);
  }
  66% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

@keyframes animShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes animBorderGlow {
  0%, 100% {
    border-color: rgba(211, 30, 37, 0.15);
  }
  50% {
    border-color: rgba(211, 30, 37, 0.45);
  }
}

@keyframes animTextReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes animCounterPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes animLineExpand {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes animParticleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, -60px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(15px, -90px) scale(1.05);
    opacity: 0.6;
  }
  100% {
    transform: translate(0, -120px) scale(1);
    opacity: 0;
  }
}

/* --- 2. SCROLL REVEAL BASE CLASSES --- */
.anim-reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-reveal.anim-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) !important;
  filter: blur(0) !important;
}

/* Direction-specific initial states */
.anim-up    { transform: translateY(50px); }
.anim-down  { transform: translateY(-40px); }
.anim-left  { transform: translateX(-50px); }
.anim-right { transform: translateX(50px); }
.anim-scale { transform: scale(0.8); }
.anim-blur  { filter: blur(6px); transform: translateY(20px); }

/* Stagger delay variables */
.anim-delay-1 { transition-delay: 0.05s; }
.anim-delay-2 { transition-delay: 0.1s; }
.anim-delay-3 { transition-delay: 0.15s; }
.anim-delay-4 { transition-delay: 0.2s; }
.anim-delay-5 { transition-delay: 0.25s; }
.anim-delay-6 { transition-delay: 0.3s; }
.anim-delay-7 { transition-delay: 0.35s; }
.anim-delay-8 { transition-delay: 0.4s; }
.anim-delay-9 { transition-delay: 0.45s; }
.anim-delay-10 { transition-delay: 0.5s; }

/* --- 3. HERO ENTRANCE ANIMATIONS --- */
.hero .hero-badge-pill {
  opacity: 0;
}
.hero.hero-animated .hero-badge-pill {
  animation: animFadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero .hero-title {
  opacity: 0;
}
.hero.hero-animated .hero-title {
  animation: animFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero .hero-description {
  opacity: 0;
}
.hero.hero-animated .hero-description {
  animation: animFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero .hero-pillars-row {
  opacity: 0;
}
.hero.hero-animated .hero-pillars-row {
  animation: animFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero .hero-cta-group {
  opacity: 0;
}
.hero.hero-animated .hero-cta-group {
  animation: animFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero .hero-stats-row {
  opacity: 0;
}
.hero.hero-animated .hero-stats-row {
  animation: animFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* Hero accent line in header — appears with animation on load */
.header-accent-line {
  transform: scaleX(0);
  transform-origin: left;
}

.header-accent-line.animate-line {
  animation: animLineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* --- 4. SECTION HEADER ANIMATIONS --- */
.section-header-block .badge-tag {
  opacity: 0;
}
.section-header-block.anim-visible .badge-tag {
  animation: animScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.section-header-block .section-title {
  opacity: 0;
}
.section-header-block.anim-visible .section-title {
  animation: animFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.section-header-block .section-subtitle {
  opacity: 0;
}
.section-header-block.anim-visible .section-subtitle {
  animation: animFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.section-header-block .instructors-accent-line,
.section-header-block .gallery-accent-line {
  transform: scaleX(0);
  transform-origin: left;
}
.section-header-block.anim-visible .instructors-accent-line,
.section-header-block.anim-visible .gallery-accent-line {
  animation: animLineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- 5. FLOATING AMBIENT EFFECTS --- */
.ambient-glow-1 {
  animation: animFloatSlow 8s ease-in-out infinite;
}

.ambient-glow-2 {
  animation: animFloatSlow 10s ease-in-out infinite reverse;
}

.gallery-ambient-glow {
  animation: animFloatSlow 12s ease-in-out infinite;
}

/* --- 6. STAT CARD COUNTER ANIMATION --- */
.stat-card.anim-visible .stat-number-wrapper {
  animation: animCounterPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 7. ESSENCE GOJU-RYU ANIMATIONS --- */

/* Logo energy burst + gentle float synced with cards */
.goju-essence-section.animated .essence-logo-inner {
  animation: essenceLogoBurst 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             essenceLogoFloat 5s cubic-bezier(0.37, 0, 0.63, 1) 1.2s infinite;
}

@keyframes essenceLogoBurst {
  0% {
    opacity: 0;
    transform: scale(0.3);
    filter: drop-shadow(0 0 0px rgba(211, 30, 37, 0)) drop-shadow(0 0 0px rgba(211, 30, 37, 0));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(211, 30, 37, 0.8)) drop-shadow(0 0 8px rgba(211, 30, 37, 0.5));
  }
  75% {
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(211, 30, 37, 0.75)) drop-shadow(0 0 3px rgba(211, 30, 37, 0.4));
  }
}

/* Dashed ring appears with logo */
.essence-ring-bg {
  opacity: 0;
}
.goju-essence-section.animated .essence-ring-bg {
  animation: essenceRingAppear 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
             spinSlow 30s linear 1.25s infinite;
}

@keyframes essenceRingAppear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Card orbit entrance — each flies in from its direction */
.goju-essence-section .reveal-on-scroll {
  opacity: 0;
  transition: none;
}

/* Staggered card entrance using --order custom property */
.goju-essence-section.animated .essence-card-wrapper.kihon .essence-card {
  animation: orbitFromTop 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             essenceFloatBob 4s cubic-bezier(0.37, 0, 0.63, 1) calc(0.8s + 0.1s * var(--order)) infinite;
}

.goju-essence-section.animated .essence-card-wrapper.kumite .essence-card {
  animation: orbitFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             essenceFloatBob 4.5s cubic-bezier(0.37, 0, 0.63, 1) calc(0.8s + 0.1s * var(--order)) infinite;
}

.goju-essence-section.animated .essence-card-wrapper.kata .essence-card {
  animation: orbitFromRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             essenceFloatBob 5s cubic-bezier(0.37, 0, 0.63, 1) calc(0.8s + 0.1s * var(--order)) infinite;
}

.goju-essence-section.animated .essence-card-wrapper.self-defence .essence-card {
  animation: orbitFromBottom 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             essenceFloatBob 4.2s cubic-bezier(0.37, 0, 0.63, 1) calc(0.8s + 0.1s * var(--order)) infinite;
}

@keyframes orbitFromTop {
  from { opacity: 0; transform: translateY(-50px) scale(0.6); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orbitFromLeft {
  from { opacity: 0; transform: translateX(-50px) scale(0.6); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes orbitFromRight {
  from { opacity: 0; transform: translateX(50px) scale(0.6); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes orbitFromBottom {
  from { opacity: 0; transform: translateY(50px) scale(0.6); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Smooth floating bob — symmetric ease for seamless loop */
@keyframes essenceFloatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes essenceLogoFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1) translateY(-3px); }
}

/* GPU compositing hints */
.goju-essence-section.animated .essence-card,
.goju-essence-section.animated .essence-logo-inner {
  will-change: transform, opacity;
}

/* Card text/icon staggered fade-in */
.goju-essence-section.animated .essence-card .essence-icon,
.goju-essence-section.animated .essence-card .essence-title,
.goju-essence-section.animated .essence-card .essence-desc {
  opacity: 0;
  animation: essenceTextFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.goju-essence-section.animated .essence-card .essence-title {
  animation-delay: calc(0.5s + 0.12s * var(--order));
}
.goju-essence-section.animated .essence-card .essence-icon {
  animation-delay: calc(0.4s + 0.12s * var(--order));
}
.goju-essence-section.animated .essence-card .essence-desc {
  animation-delay: calc(0.65s + 0.12s * var(--order));
}

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

/* Premium Hover Transitions */
.goju-essence-section.animated .essence-card {
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.goju-essence-section.animated .essence-card:hover {
  border-color: var(--color-brand-red);
  background: rgba(211, 30, 37, 0.08);
  box-shadow: 0 0 25px rgba(211, 30, 37, 0.25);
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.05);
}

.goju-essence-section.animated .essence-logo-inner:hover {
  filter: drop-shadow(0 0 18px rgba(211, 30, 37, 0.65));
  animation-play-state: paused;
  transform: scale(1.08);
}

/* --- 8. GLASS CARD HOVER MICRO-INTERACTIONS --- */
.glass-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.glass-card:active {
  transform: translateY(-4px) scale(0.99);
}

/* --- 9. ABOUT CARD STAGGER --- */
.about-card.anim-visible {
  animation: animFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 10. INSTRUCTOR CARD TILT ON HOVER --- */
.instructor-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.instructor-card:hover {
  transform: translateY(-6px) rotateX(2deg);
}

.instructor-card.anim-visible {
  animation: animFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 11. GALLERY CARD REVEAL --- */
.gallery-card.anim-visible {
  animation: animScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* --- 12. CONTACT SECTION REVEALS --- */
.contact-info-card.anim-visible {
  animation: animFadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form-card.anim-visible {
  animation: animFadeInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timings-box.anim-visible {
  animation: animBlurIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 13. FOOTER REVEAL --- */
.footer.anim-visible .footer-brand {
  animation: animFadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.footer.anim-visible .footer-badges {
  animation: animFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.footer.anim-visible .footer-socials {
  animation: animFadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.footer .footer-brand,
.footer .footer-badges,
.footer .footer-socials {
  opacity: 0;
}

/* --- 14. CHATBOT LAUNCHER PULSE --- */
.chatbot-launcher::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-red);
  opacity: 0;
  animation: chatbotPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes chatbotPing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* --- 15. BUTTON RIPPLE / PRESS EFFECT --- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* --- 16. SMOOTH PAGE LOAD OVERLAY --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 9999;
  pointer-events: none;
  animation: pageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes pageReveal {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* --- 17. SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-red), #ff4d4d, var(--color-brand-red));
  background-size: 200% 100%;
  animation: animShimmer 2s linear infinite;
  z-index: 200;
  width: 0%;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(211, 30, 37, 0.5);
}

/* --- 18. REDUCED MOTION PREFERENCE --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero .hero-badge-pill,
  .hero .hero-title,
  .hero .hero-description,
  .hero .hero-pillars-row,
  .hero .hero-cta-group,
  .hero .hero-stats-row {
    opacity: 1;
    transform: none;
  }
  .footer .footer-brand,
  .footer .footer-badges,
  .footer .footer-socials {
    opacity: 1;
  }
}

/* --- COLLAPSIBLE SECTION TOGGLE --- */
.collapsible-wrapper {
  --collapsible-collapsed-height: 280px;
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .collapsible-wrapper {
    --collapsible-collapsed-height: 360px;
  }
}

@media (min-width: 1024px) {
  .collapsible-wrapper {
    --collapsible-collapsed-height: 420px;
  }
}

.collapsible-wrapper.collapsed .collapsible-content {
  max-height: var(--collapsible-collapsed-height);
  overflow: hidden;
}

.collapsible-content {
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-fade {
  display: none;
}

.collapsible-wrapper.collapsed .collapsible-fade {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.5) 40%, rgba(10, 10, 10, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.why-choose-us-section .collapsible-wrapper.collapsed .collapsible-fade {
  background: linear-gradient(to bottom, rgba(15, 15, 20, 0) 0%, rgba(15, 15, 20, 0.5) 40%, rgba(15, 15, 20, 1) 100%);
}

.section-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0 auto;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.section-toggle-btn:hover {
  background: rgba(211, 30, 37, 0.08);
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
}

.section-toggle-btn.expanded i {
  transform: rotate(180deg);
}

.section-toggle-btn i {
  transition: transform 0.3s ease;
}

/* ============================================================
   EVENTS & ACHIEVEMENTS GLIMPSE SECTION (Homepage)
   ============================================================ */

.events-glimpse-section {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.events-glimpse-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(211, 30, 37, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   FILE DROP ZONE (used in event/achievement modals)
   ============================================================ */

.file-drop-zone {
  border: 2px dashed var(--color-card-border);
  border-radius: var(--border-radius);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.file-drop-zone:hover {
  border-color: var(--color-brand-red);
  background: rgba(211, 30, 37, 0.05);
}

.file-drop-zone.dragover {
  border-color: var(--color-brand-red);
  background: rgba(211, 30, 37, 0.08);
}

/* ============================================================
   FIXED BOTTOM TAB BAR (Mobile navigation)
   Dark theme · animated icons · Lottie overlay · safe-area aware
   ============================================================ */

/* Hidden on desktop by default */
.bottom-tab-bar {
  display: none;
}

/* One-shot tap micro-animation — CSS fallback when no Lottie src */
@keyframes tab-icon-pop {
  0%   { transform: scale(0.7) translateY(8px); opacity: 0.4; }
  45%  { transform: scale(1.22) translateY(-3px); opacity: 1; }
  70%  { transform: scale(0.94) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
  /* Bar shell — sleek dark rail with top border */
  .bottom-tab-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #0f0f0f;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #2a2a2a;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
  }

  /* Each tab — icon stacked over a tiny label, 44px+ touch target */
  .tab-item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: #888888;
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    margin: 4px 2px;
    opacity: 0.85;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.25s ease, background 0.25s ease,
                opacity 0.25s ease, transform 0.15s ease;
  }

  .tab-item:active {
    transform: scale(0.96);
  }

  /* Icon stage — houses the animated SVG fallback + Lottie overlay */
  .tab-icon-wrap {
    position: relative;
    width: 30px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  .tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Lottie layer — shown only once a valid Flaticon src is configured */
  .tab-icon-lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .tab-icon-wrap.lottie-on .tab-icon-lottie {
    opacity: 1;
  }
  .tab-icon-wrap.lottie-on .tab-icon {
    opacity: 0;
  }

  /* Label */
  .tab-label {
    max-width: 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-sans, sans-serif);
    transition: color 0.25s ease;
  }

  /* Active state — crimson accent, red capsule, faint red glow */
  .tab-item.active {
    color: #FF2E2E;
    opacity: 1;
    background: rgba(255, 46, 46, 0.15);
    filter: drop-shadow(0 0 8px rgba(255, 46, 46, 0.5));
  }

  .tab-item.active .tab-icon {
    color: #FF2E2E;
    filter: drop-shadow(0 0 6px rgba(255, 46, 46, 0.55));
  }

  .tab-item.active .tab-label {
    color: #ff5252;
  }

  /* One-shot micro bounce played on tap (CSS fallback) */
  .tab-icon-wrap.animating .tab-icon {
    animation: tab-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  /* Push overlays & content above the 64px rail */
  .scroll-progress-bar {
    bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .chatbot-launcher {
    bottom: calc(64px + env(safe-area-inset-bottom) + 1rem);
  }
  .chatbot-panel {
    bottom: calc(64px + env(safe-area-inset-bottom) + 4.5rem);
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENTS & NOTICES SECTION STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.announcements-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(211, 30, 37, 0.08) 0%, transparent 60%), #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.announcement-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.ann-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ann-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.ann-filter-btn.active {
  color: #ffffff;
  background: var(--color-brand-red);
  border-color: var(--color-brand-red);
  box-shadow: 0 0 16px rgba(211, 30, 37, 0.45);
}

.announcements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .announcements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .announcements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.announcements-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4rem 1rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Announcement Card */
.announcement-card {
  position: relative;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-brand-red);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(211, 30, 37, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.announcement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 30, 37, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(211, 30, 37, 0.15);
}

.announcement-card.is-pinned {
  border-left-color: #f59e0b;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(245, 158, 11, 0.03);
}

.ann-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ann-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ann-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ann-category-badge.cat-enrollment {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.ann-category-badge.cat-event {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.ann-category-badge.cat-notice {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ann-category-badge.cat-results {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.ann-category-badge.cat-general {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ann-pinned-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ann-card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ann-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.ann-card-body {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  /* So a results sheet pasted one student per line stays on separate lines. */
  white-space: pre-line;
}

.ann-line-pass {
  color: #34d399;
  font-weight: 600;
}

.ann-line-fail {
  color: #f87171;
  font-weight: 600;
}

.ann-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
  margin-top: auto;
}

.ann-card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-brand-red);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ann-card-link-btn:hover {
  color: #ffffff;
  gap: 9px;
}

