/* ==========================================================================
   SHOTOKAN SPORTS KARATE DO INTERNATIONAL (SSKI)
   Visual Identity: "Modern Dojo" — Calm, Premium, Japanese-Minimal
   Palette: Ink #0e0e0e, Paper #f6f2ea, Paper-2 #ece6d9, Vermilion #c8102e, Gold #b8975a
   Author: Zioee
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Color System */
  --ink: #0e0e0e;              /* Sumi Black */
  --ink-soft: #181818;
  --ink-card: #141414;
  --paper: #f6f2ea;            /* Washi Off-White */
  --paper-2: #ece6d9;          /* Subtle Sand Paper */
  --paper-card: #ffffff;
  --vermilion: #c8102e;        /* The Singular Accent */
  --vermilion-hover: #a50d25;
  --gold: #b8975a;             /* Subtle Hairlines & Rank Accents */
  --gold-hairline: rgba(184, 151, 90, 0.35);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-ja: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 76px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img, picture, video, iframe, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, p, li, blockquote {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

p a, li a, blockquote a {
  overflow-wrap: anywhere;
}

/* Prevent flex and grid children from overflowing */
.hero-grid > *,
.sensei-profile-grid > *,
.contact-layout-grid > *,
.programs-grid > *,
.schools-text-list > *,
.footer-top-grid > *,
.stats-row > *,
.our-students-layout > *,
.ceremony-banner-layout > *,
.black-belts-grid > *,
.lineage-grid > *,
.allied-grid > * {
  min-width: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 10000;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--vermilion);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
  outline: 2px solid var(--vermilion);
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-inline: 20px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: inherit;
}

p:last-child {
  margin-bottom: 0;
}

/* Japanese Typography */
.ja-text, [lang="ja"] {
  font-family: var(--font-ja);
}

/* Small Uppercase Label */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.section-tag-gold {
  color: var(--gold);
}

.section-title-wrap {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-subtitle {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-top: 0.85rem;
}

.section-subtitle-center {
  margin-left: auto;
  margin-right: auto;
}

/* Text alignment & colors */
.text-center { text-align: center; }
.text-vermilion { color: var(--vermilion); }
.text-gold { color: var(--gold); }
.text-muted { opacity: 0.75; }

/* --------------------------------------------------------------------------
   4. SECTION THEMES (ALTERNATING PAPER & INK)
   -------------------------------------------------------------------------- */
.section-padding {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.section-padding-sm {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

/* Paper Theme (Default) */
.theme-paper {
  background-color: var(--paper);
  color: var(--ink);
}

.theme-paper-2 {
  background-color: var(--paper-2);
  color: var(--ink);
}

/* Ink Theme */
.theme-ink {
  background-color: var(--ink);
  color: var(--paper);
}

.theme-ink p {
  color: var(--paper-2);
}

.theme-ink .section-subtitle {
  color: var(--paper-2);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Primary Vermilion Button */
.btn-vermilion {
  background-color: var(--vermilion);
  color: #ffffff;
  border-color: var(--vermilion);
}

.btn-vermilion:hover {
  background-color: var(--vermilion-hover);
  border-color: var(--vermilion-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Solid Ink Button */
.btn-ink {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ink:hover {
  background-color: var(--ink-soft);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Outlined Hairline Button */
.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: rgba(14, 14, 14, 0.3);
}

.theme-ink .btn-outline {
  color: var(--paper);
  border-color: rgba(246, 242, 234, 0.3);
}

.btn-outline:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
  transform: translateY(-2px);
}

/* Editorial Text Link */
.link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.theme-ink .link-editorial {
  color: var(--paper);
}

.link-editorial:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   6. ANNOUNCEMENT BAR (SLIM, 36PX, INK BG, GOLD TEXT, DISMISSIBLE)
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--ink);
  color: var(--gold);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.785rem;
  letter-spacing: 0.08em;
  position: relative;
  border-bottom: 1px solid rgba(184, 151, 90, 0.2);
  z-index: 1001;
  padding: 0 2.5rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-content strong {
  color: #ffffff;
  font-weight: 600;
}

.announcement-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.announcement-close:hover {
  opacity: 1;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. NAVBAR (TRANSPARENT OVER HERO, SOLID PAPER ON SCROLL)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), backdrop-filter var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: 1rem;
}

/* Navbar Brand: 44px round logo (object-fit: contain) + SSKI */
.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-logo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.nav-brand-subtitle {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 2px;
}

/* Hide long brand subtitle below 1240px to keep desktop navbar spacious and prevent collision */
@media (max-width: 1240px) {
  .nav-brand-subtitle {
    display: none !important;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.85rem);
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  font-size: clamp(0.72rem, 0.85vw, 0.785rem);
  font-weight: 500;
  letter-spacing: clamp(0.08em, 0.12vw, 0.16em);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.8;
  position: relative;
  padding: 4px 0;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--vermilion);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  white-space: nowrap !important;
  padding: clamp(0.5rem, 0.75vw, 0.75rem) clamp(0.85rem, 1.1vw, 1.4rem);
  font-size: clamp(0.75rem, 0.8vw, 0.825rem);
}

/* --------------------------------------------------------------------------
   7B. MOBILE NAVIGATION & HAMBURGER (<=900px)
   -------------------------------------------------------------------------- */
/* Hamburger Toggle Button (Hidden on desktop >900px, 44x44px minimum tap area) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(14, 14, 14, 0.18);
  border-radius: var(--radius-xs);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  z-index: 1010;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--vermilion);
  background-color: rgba(200, 16, 46, 0.05);
  outline: none;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

/* Open State: Three lines animate into an X */
.nav-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--vermilion);
}

.nav-toggle[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .line-3 {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--vermilion);
}

/* Full-Screen Overlay Slide-in Panel (#mobile-menu) */
.mobile-menu-panel {
  display: none !important;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--navbar-height));
  height: calc(100vh - var(--navbar-height));
  background-color: var(--ink);
  color: var(--paper);
  z-index: 1005;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.is-open {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(184, 151, 90, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--item-index, 0) * 0.04s);
}

.mobile-menu-panel.is-open .mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4.5vw, 1.65rem);
  line-height: 1.25;
  color: var(--paper);
  text-decoration: none;
  padding: 0.95rem 0;
  min-height: 48px;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: #ffffff;
  padding-left: 6px;
  outline: none;
}

/* Active Page Highlight in Vermilion with small dot */
.mobile-nav-link.active {
  color: var(--vermilion);
  font-weight: 600;
}

.mobile-nav-link.active::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--vermilion);
  margin-left: 0.75rem;
}

.mobile-menu-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.mobile-cta-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  min-height: 48px;
}

.mobile-menu-ja-name {
  font-family: var(--font-serif-ja);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--paper-2);
  opacity: 0.45;
  text-align: center;
}

/* Body scroll lock when menu is active */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Hide floating WhatsApp button when mobile menu is open */
body.menu-open .floating-whatsapp {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.7) !important;
}

/* --------------------------------------------------------------------------
   8. HERO SECTION ("MODERN DOJO" 2-COLUMN)
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  background-color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 5rem;
}

/* Japanese Watermark in Hero Corner ONLY (Never Behind Text) */
.hero-watermark {
  position: absolute;
  bottom: 0.5rem;
  right: 1.5rem;
  font-family: var(--font-ja);
  font-size: clamp(6.5rem, 14vw, 13rem);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.25rem 0 1.5rem;
}

.hero-subtext {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* Hero Right: Arch-Shaped Portrait Frame with Subtle Hinomaru */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Subtle Hinomaru (Red Sun Disc Behind Arch) */
.hero-hinomaru {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 32vw, 420px);
  height: clamp(280px, 32vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, rgba(200, 16, 46, 0.03) 65%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Arch-Shaped Frame (border-radius: 999px 999px 0 0) */
.hero-arch-wrap {
  position: relative;
  z-index: 2;
}

/* Thin Gold Offset Outline Behind */
.hero-arch-wrap::before {
  content: "";
  position: absolute;
  inset: -10px -10px 0 -10px;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--gold-hairline);
  pointer-events: none;
}

.hero-arch-frame {
  width: clamp(260px, 28vw, 360px);
  height: clamp(380px, 38vw, 490px);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background-color: var(--paper-2);
  box-shadow: 0 16px 40px rgba(14, 14, 14, 0.08);
}

.hero-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.hero-arch-wrap:hover .hero-arch-frame img {
  transform: scale(1.03);
}

/* Small Floating Card Under Photo */
.hero-caption-card {
  margin-top: 1.25rem;
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: var(--radius-xs);
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--ink);
  text-align: center;
  max-width: 100%;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.5rem;
  position: relative;
  z-index: 3;
}

.hero-caption-card strong {
  font-weight: 600;
  color: var(--ink);
}

.hero-caption-card .caption-sep {
  color: var(--gold);
  margin: 0 6px;
}

/* --------------------------------------------------------------------------
   9. STATS STRIP (INK BG, GOLD HAIRLINE DIVIDERS)
   -------------------------------------------------------------------------- */
.stats-strip {
  background-color: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(184, 151, 90, 0.2);
  border-bottom: 1px solid rgba(184, 151, 90, 0.2);
  padding: 3rem 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--gold-hairline);
}

.stat-num-val {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-num-val .stat-plus {
  color: var(--gold);
  font-size: 0.75em;
}

.stat-desc {
  font-size: 0.785rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   10. ABOUT PREVIEW (TWO COLUMNS, PULL-QUOTE & SHORT BIO)
   -------------------------------------------------------------------------- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--vermilion);
}

.about-preview-bio p {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   11. EMBLEM SECTION (DARK INK, 260PX LOGO, JAPANESE NAME & MEANING)
   -------------------------------------------------------------------------- */
.logo-emblem-section {
  background-color: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid rgba(184, 151, 90, 0.25);
  border-bottom: 1px solid rgba(184, 151, 90, 0.25);
}

.emblem-circle-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 8px;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(200, 16, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-circle-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.emblem-ja-title {
  font-family: var(--font-ja);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.emblem-meaning-line {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   12. PROGRAMS (3-COLUMN CARDS, THIN BORDERS, NO HEAVY SHADOWS)
   -------------------------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.1);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

/* Growing Vermilion Underline on Hover */
.program-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vermilion);
  transition: width var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 14, 14, 0.25);
}

.program-card:hover::after {
  width: 100%;
}

.program-number {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.program-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.program-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.program-features {
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(14, 14, 14, 0.06);
}

.program-features li {
  font-size: 0.875rem;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.program-features li::before {
  content: "—";
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   13. ACHIEVEMENTS & TIMELINE (CLEAN VERTICAL TIMELINE, GOLD DOTS)
   -------------------------------------------------------------------------- */
.timeline-clean {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-clean::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: var(--gold-hairline);
}

.timeline-node {
  position: relative;
  margin-bottom: 2.75rem;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-dot-gold {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 2px solid var(--paper);
}

.theme-ink .timeline-dot-gold {
  border-color: var(--ink);
}

.timeline-date-label {
  font-size: 0.785rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vermilion);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-node h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.timeline-node p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   14. SCHOOLS LIST (QUIET MULTI-COLUMN TEXT LIST, NOT BOXES)
   -------------------------------------------------------------------------- */
.schools-text-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
}

.school-entry {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
}

.school-entry-num {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.school-entry-title {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}

.school-entry-loc {
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   15. CONTACT & INTERACTIVE FORM
   -------------------------------------------------------------------------- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.85;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background-color: var(--paper-2);
  border: 1px solid rgba(14, 14, 14, 0.15);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-ink .form-input,
.theme-ink .form-select,
.theme-ink .form-textarea {
  background-color: #1a1a1a;
  border-color: rgba(246, 242, 234, 0.15);
  color: var(--paper);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--vermilion);
  background-color: #ffffff;
}

.theme-ink .form-input:focus,
.theme-ink .form-select:focus,
.theme-ink .form-textarea:focus {
  background-color: #222222;
  border-color: var(--vermilion);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  display: none;
  font-size: 0.85rem;
}

.form-feedback.is-visible { display: block; }
.form-feedback.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.form-feedback.error {
  background: rgba(200, 16, 46, 0.1);
  color: var(--vermilion);
  border: 1px solid rgba(200, 16, 46, 0.3);
}

/* --------------------------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON (56PX INK CIRCLE, VERMILION PULSE, NO TEXT)
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 151, 90, 0.35);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  background-color: var(--ink-soft);
}

.floating-whatsapp .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--vermilion);
  animation: vermilion-pulse 2.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes vermilion-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   17. SITE FOOTER (INK THEME, LOGO, ENGLISH & JAPANESE NAMES)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--ink);
  color: var(--paper);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(184, 151, 90, 0.25);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.footer-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-logo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.2;
}

.footer-brand-ja {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 2px;
  display: block;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--paper-2);
  opacity: 0.75;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-link-list li {
  margin-bottom: 0.65rem;
}

.footer-link-list a {
  font-size: 0.9rem;
  color: var(--paper-2);
  opacity: 0.8;
}

.footer-link-list a:hover {
  opacity: 1;
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.825rem;
  color: var(--paper-2);
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-credit a {
  color: var(--gold);
  font-weight: 500;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. GALLERY & LIGHTBOX ("MODERN DOJO" MASONRY & FILTER)
   -------------------------------------------------------------------------- */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.gallery-filter-tab {
  background: transparent;
  border: 1px solid rgba(14, 14, 14, 0.18);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.785rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-ink .gallery-filter-tab {
  border-color: rgba(246, 242, 234, 0.25);
  color: var(--paper-2);
}

.gallery-filter-tab:hover,
.gallery-filter-tab.is-active {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.theme-ink .gallery-filter-tab:hover,
.theme-ink .gallery-filter-tab.is-active {
  background-color: var(--vermilion);
  border-color: var(--vermilion);
  color: #ffffff;
}

.gallery-filter-tab.is-hidden {
  display: none !important;
}

/* 12px responsive masonry-style grid (3 cols >=1200px, 2 cols 768-1199px, 1 col <768px) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Wide landscape items may span 2 columns */
.gallery-card.span-2 {
  grid-column: span 2;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  background-color: var(--paper-2);
  cursor: pointer;
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 90, 0.25);
  outline: none;
}

.gallery-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--vermilion), 0 0 0 3px rgba(200, 16, 46, 0.3);
}

.gallery-card picture,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-card img {
  object-fit: cover;
  width: 100%;
  height: 280px;
  filter: contrast(1.03) saturate(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card.card-portrait img {
  object-position: top center;
}

@media (max-width: 768px) {
  .gallery-card img {
    height: 240px;
  }
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 14, 14, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-category {
  font-size: 0.725rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.gallery-card-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Modal */
.modal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-lightbox.is-open {
  display: flex;
}

.modal-lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  border: 1px solid rgba(184, 151, 90, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.modal-media-wrap {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050505;
  overflow: hidden;
  position: relative;
}

.modal-media-wrap picture,
.modal-media-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  filter: contrast(1.03) saturate(1.05);
}

.modal-footer-bar {
  padding: 1rem 1.5rem;
  background-color: var(--ink);
  border-top: 1px solid rgba(184, 151, 90, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-caption-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--paper);
  line-height: 1.4;
}

.modal-counter {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

/* Modal Nav & Close Buttons */
.modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-btn:hover,
.modal-btn:focus-visible {
  background: var(--vermilion);
  border-color: var(--vermilion);
  outline: none;
}

.modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  z-index: 10;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 5;
}

.modal-prev {
  left: 14px;
}

.modal-next {
  right: 14px;
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-card.span-2 {
    grid-column: span 1;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .modal-nav-btn {
    width: 40px;
    height: 40px;
  }
  .modal-prev { left: 8px; }
  .modal-next { right: 8px; }
  .modal-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   19. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(14, 14, 14, 0.12);
}

.theme-ink .faq-item {
  border-bottom-color: rgba(246, 242, 234, 0.12);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  cursor: pointer;
  color: inherit;
}

.faq-icon {
  font-size: 1.15rem;
  color: var(--gold);
  transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--vermilion);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   20. TIMINGS TABLE (MINIMAL DOJO STYLE)
   -------------------------------------------------------------------------- */
.timings-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(14, 14, 14, 0.12);
  background-color: #ffffff;
}

.timings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.timings-table th {
  background-color: var(--paper-2);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(14, 14, 14, 0.12);
}

.timings-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(14, 14, 14, 0.06);
  font-size: 0.925rem;
}

.timings-table tr:last-child td { border-bottom: none; }
.timings-table tr:hover td { background-color: rgba(14, 14, 14, 0.02); }

/* --------------------------------------------------------------------------
   21. MOTION & SUBTLE REVEALS
   -------------------------------------------------------------------------- */
.fade-in-up {
  opacity: 1;
  transform: none;
}

.js-loaded .fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-loaded .fade-in-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-loaded .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* --------------------------------------------------------------------------
   21B. SUBPAGES & DOJO COMPONENTS
   -------------------------------------------------------------------------- */
.subpage-hero {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background-color: var(--paper);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  position: relative;
  overflow: hidden;
}

.subpage-hero.theme-ink {
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(184, 151, 90, 0.25);
}

.subpage-hero-watermark {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  font-family: var(--font-ja);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.theme-ink .subpage-hero-watermark {
  color: var(--paper);
  opacity: 0.04;
}

/* About Page: Sensei Bio & Visual */
.sensei-profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.sensei-details-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}

.personal-particulars-box {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  border-left: 2px solid var(--gold);
}

.particulars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
  font-size: 0.925rem;
}

.particular-item {
  display: flex;
  flex-direction: column;
}

.particular-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.particular-val {
  font-weight: 500;
  color: var(--ink);
}

/* Lineage Cards (8 Masters) */
.lineage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.lineage-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 1.6rem 1.75rem;
  border-left: 2px solid var(--gold);
  transition: transform var(--transition-fast), border-left-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lineage-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--vermilion);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.lineage-master-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.lineage-master-role {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
}

/* Dojo Kun Grid */
.dojo-kun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.dojo-kun-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 1.85rem 1.5rem;
  position: relative;
}

.dojo-kun-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.dojo-kun-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.dojo-kun-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Allied Disciplines Grid */
.allied-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.allied-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 2.25rem 1.75rem;
  border-top: 2px solid var(--gold);
  transition: transform var(--transition-fast), border-top-color var(--transition-fast);
}

.allied-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--vermilion);
}

.allied-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.allied-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.8;
}

/* Belt Progression Strip */
.belt-progression-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  text-align: center;
  margin-top: 2rem;
}

.belt-step {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 1rem 0.5rem;
  border-bottom: 3px solid transparent;
}

.belt-step.white { border-bottom-color: #d1d5db; }
.belt-step.yellow { border-bottom-color: #eab308; }
.belt-step.orange { border-bottom-color: #f97316; }
.belt-step.green { border-bottom-color: #16a34a; }
.belt-step.blue { border-bottom-color: #2563eb; }
.belt-step.purple { border-bottom-color: #7c3aed; }
.belt-step.brown { border-bottom-color: #78350f; }
.belt-step.black { border-bottom-color: #0e0e0e; }

.belt-rank {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.belt-level {
  font-size: 0.725rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Subpage About Emblem Callout */
.about-emblem-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--paper-2);
  border: 1px solid rgba(14, 14, 14, 0.08);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
}

.about-emblem-callout .callout-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-emblem-callout .callout-text strong {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}

.about-emblem-callout .callout-text span {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}


/* --------------------------------------------------------------------------
   21C. RECENT BLACK BELTS & OUR STUDENTS
   -------------------------------------------------------------------------- */
.ceremony-banner-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.ceremony-banner-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  min-height: 360px;
  background-color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 90, 0.25);
}

.ceremony-banner-main picture,
.ceremony-banner-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ceremony-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.05) 0%, rgba(14, 14, 14, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  color: var(--paper);
}

.ceremony-badge-line {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ceremony-overlay-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.ceremony-overlay-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--paper-2);
  opacity: 0.9;
  max-width: 580px;
}

.ceremony-banner-side {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  min-height: 360px;
  background-color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 90, 0.25);
}

.ceremony-banner-side picture,
.ceremony-banner-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ceremony-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 14, 14, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  color: var(--paper);
}

/* Black Belts Grid & Card Design */
.black-belts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.black-belt-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-top: 2px solid var(--vermilion);
  padding: 1.5rem;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-ink .black-belt-card {
  background-color: #141414;
  border-color: rgba(246, 242, 234, 0.12);
  border-top-color: var(--vermilion);
}

.black-belt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.black-belt-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.black-belt-photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--paper-2);
}

.black-belt-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.black-belt-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.black-belt-rank {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.black-belt-meta {
  font-size: 0.825rem;
  opacity: 0.7;
}

/* Our Students Section */
.our-students-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.our-students-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(184, 151, 90, 0.25);
}

.our-students-img-wrap picture,
.our-students-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.05);
}

.our-students-caption-badge {
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-left: 2px solid var(--vermilion);
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: 0.75rem;
}

/* Achievements Featured Image Card */
.achievement-featured-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-left: 2px solid var(--gold);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.achievement-featured-img {
  width: 100%;
  height: 360px;
  overflow: hidden;
  background-color: var(--paper-2);
}

.achievement-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.03) saturate(1.05);
}

@media (max-width: 900px) {
  .ceremony-banner-layout {
    grid-template-columns: 1fr;
  }
  .ceremony-banner-side {
    min-height: 260px;
  }
  .our-students-layout {
    grid-template-columns: 1fr;
  }
  .achievement-featured-card {
    grid-template-columns: 1fr;
  }
  .achievement-featured-img {
    height: 380px;
  }
}

/* --------------------------------------------------------------------------
   22. RESPONSIVENESS (375PX, 768PX, 1440PX)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  /* On Mobile/Tablet: Photo First, Smaller */
  .hero-visual {
    order: -1;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-arch-frame {
    width: 220px;
    height: 300px;
  }

  .hero-watermark {
    display: none;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .schools-text-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop rules (above 900px) */
@media (min-width: 901px) {
  .nav-toggle,
  .mobile-menu-panel {
    display: none !important;
  }
  .desktop-nav,
  .nav-cta {
    display: flex !important;
  }
}

/* Mobile & Tablet rules (900px and below) */
@media (max-width: 900px) {
  :root {
    --navbar-height: 64px;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .announcement-bar {
    height: 36px;
    max-height: 36px;
    font-size: 0.72rem;
    padding: 0 2rem 0 0.75rem;
    box-sizing: border-box;
  }

  .announcement-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    max-width: calc(100% - 3.5rem);
    text-align: center;
  }

  .announcement-close {
    right: 0.35rem;
    width: 36px;
    height: 36px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--paper) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 14, 14, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .navbar {
    height: 64px;
    padding: 0 1rem;
  }

  /* In Navbar Bar: show logo & SSKI, hide subtitle, hide desktop links & CTA, show hamburger */
  .desktop-nav,
  .nav-cta,
  .nav-brand-subtitle {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  /* Hero Section Stack */
  .hero {
    min-height: auto;
    padding: 2.25rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    margin: 0 auto;
  }

  .hero-arch-frame {
    width: 190px;
    height: 250px;
  }

  .hero-hinomaru {
    width: 220px;
    height: 220px;
  }

  .hero-headline {
    font-size: clamp(2.15rem, 7.5vw, 3.25rem);
    line-height: 1.1;
    margin: 1rem 0 1.25rem;
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-text-editorial {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Floating WhatsApp with Safe-Area Inset */
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
  }

  /* Gallery Grid: 2 columns from 600 to 900px */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card.span-2 {
    grid-column: span 2;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .schools-text-list {
    grid-template-columns: 1fr;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .sensei-profile-grid {
    grid-template-columns: 1fr;
  }

  .particulars-grid {
    grid-template-columns: 1fr;
  }

  .lineage-grid {
    grid-template-columns: 1fr;
  }

  .allied-grid {
    grid-template-columns: 1fr;
  }

  .belt-progression-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .belt-progression-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  /* Gallery Grid: 1 column under 600px */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card.span-2 {
    grid-column: span 1;
  }
  .gallery-card img {
    height: 230px;
  }

  /* Lightbox Mobile Polish */
  .modal-lightbox {
    padding: 0.5rem;
  }
  .modal-lightbox-inner {
    max-height: 92vh;
    width: 100%;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.75rem;
    background: rgba(14, 14, 14, 0.7);
  }
  .modal-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(14, 14, 14, 0.6);
  }
  .modal-prev { left: 4px; }
  .modal-next { right: 4px; }
  .modal-media-wrap {
    max-height: 58vh;
  }
  .modal-media-wrap img {
    max-height: 58vh;
    max-width: 100%;
  }

  .schools-text-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   23. COMPREHENSIVE MOBILE LAYOUT & TYPOGRAPHY SYSTEM (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Section Padding: 56px to 72px */
  .section-padding {
    padding: clamp(3.5rem, 8vw, 4.5rem) 0 !important;
  }
  .section-padding-sm {
    padding: 3rem 0 !important;
  }

  /* Headings: Responsive clamp() with no clipping */
  h1, .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  h2, .serif-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  body, p, li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    text-align: left;
  }

  p {
    max-width: 60ch;
  }

  /* Pull-quotes (blockquote) */
  blockquote, .pull-quote {
    padding-left: 16px !important;
    padding-right: 0 !important;
    margin: 1.5rem 0 !important;
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    font-size: 1.25rem !important;
    border-left: 3px solid var(--vermilion) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Buttons & Action Bar */
  .btn {
    min-height: 52px;
    height: auto;
    min-width: 44px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px !important;
  }

  .hero-actions .btn,
  .hero-actions .btn-link-editorial {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    justify-content: center !important;
  }

  /* Hero Layout: Photo centered at max 85% width, max height 60vh */
  .hero-visual {
    order: -1;
    margin: 0 auto 1.5rem;
    width: 100%;
    max-width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-arch-wrap {
    position: relative;
    max-width: 100%;
  }

  .hero-arch-wrap::before {
    inset: -6px -6px 0 -6px !important;
    max-width: calc(100% + 12px);
  }

  .hero-arch-frame {
    width: 190px !important;
    max-width: 85vw !important;
    height: auto !important;
    max-height: 60vh !important;
  }

  .hero-arch-frame img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  /* Hide large background watermarks on mobile */
  .hero-watermark,
  .subpage-hero-watermark {
    display: none !important;
  }

  /* Stats Strip: 2x2 grid, big numbers 2rem */
  .stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .stat-item {
    padding: 1rem 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(184, 151, 90, 0.2);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  /* About Page Profile Grid */
  .sensei-profile-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .about-emblem-callout {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    padding: 1rem 1.25rem !important;
  }

  .personal-particulars-box {
    padding: 1.25rem 1rem !important;
    margin: 1.5rem 0 !important;
  }

  .particulars-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Timeline: Single Left-aligned Line with 20px padding */
  .timeline-clean {
    padding-left: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .timeline-clean::before {
    left: 5px !important;
  }

  .timeline-dot-gold {
    left: -20px !important;
    top: 6px !important;
  }

  /* Achievements Cards */
  .achievement-featured-card {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 1.25rem 1rem !important;
    margin: 1.25rem 0 !important;
  }

  .achievement-featured-img {
    height: 240px !important;
    width: 100% !important;
  }

  /* 2-Column Grids Become 1 Column with 24px Gaps */
  .our-students-layout,
  .ceremony-banner-layout,
  .contact-layout-grid,
  .programs-grid,
  .lineage-grid,
  .allied-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Contact Inputs: Full Width, 48px high, 16px text (prevents iOS auto-zoom) */
  .form-input,
  .form-select,
  .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  .map-wrap iframe {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
  }

  /* Convert .timings-table to stacked mobile cards to prevent table overflow */
  .timings-wrapper {
    overflow-x: visible !important;
    border: none !important;
    background: transparent !important;
  }

  .timings-table,
  .timings-table thead,
  .timings-table tbody,
  .timings-table th,
  .timings-table td,
  .timings-table tr {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .timings-table thead {
    display: none !important;
  }

  .timings-table tr {
    margin-bottom: 1.25rem !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(14, 14, 14, 0.1) !important;
    border-left: 3px solid var(--vermilion) !important;
    padding: 1rem 1.25rem !important;
  }

  .timings-table td {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(14, 14, 14, 0.06) !important;
    font-size: 0.95rem !important;
  }

  .timings-table td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .timings-table td:nth-child(1)::before {
    content: "SCHEDULE DAY";
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--vermilion);
    font-weight: 600;
    margin-bottom: 2px;
  }

  .timings-table td:nth-child(2)::before {
    content: "MORNING BATCH";
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2px;
  }

  .timings-table td:nth-child(3)::before {
    content: "EVENING BATCH";
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2px;
  }

  .timings-table td:nth-child(4)::before {
    content: "TRAINING CATEGORY";
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 2px;
  }

  /* Footer: Single Column, 80px space for Floating WhatsApp Button */
  .site-footer {
    padding-bottom: 96px !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .footer-brand-wrap {
    justify-content: center !important;
  }

  .footer-link-list li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }

  /* Floating WhatsApp Button */
  .floating-whatsapp {
    width: 52px !important;
    height: 52px !important;
    position: fixed !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 990 !important;
  }
}

/* Lightbox fits screen */
@media (max-width: 600px) {
  .modal-lightbox {
    padding: 0.5rem !important;
  }

  .modal-lightbox-inner {
    max-width: 100% !important;
    max-height: 85dvh !important;
    width: 100% !important;
  }

  .modal-close {
    top: 6px !important;
    right: 6px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 1.75rem !important;
  }

  .modal-nav-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }

  .modal-prev { left: 4px !important; }
  .modal-next { right: 4px !important; }

  .modal-media-wrap {
    max-height: 55vh !important;
  }

  .modal-media-wrap img {
    max-height: 55vh !important;
    max-width: 100% !important;
  }
}


/* ==========================================================================
   OFFICIAL AFFILIATIONS, RECOGNITIONS, CERTIFICATIONS & LEADERSHIP ADDITIONS
   ========================================================================== */

/* 1. Official Affiliations & Recognitions Strip */
.affiliations-strip {
  background-color: var(--paper-2);
  border-top: 1px solid rgba(184, 151, 90, 0.28);
  border-bottom: 1px solid rgba(184, 151, 90, 0.28);
  padding: 2.25rem 0;
  position: relative;
}

.theme-ink .affiliations-strip {
  background-color: #121212;
  border-color: rgba(184, 151, 90, 0.22);
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .affiliations-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.affiliation-card {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-top: 3px solid var(--vermilion);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 100%;
}

.theme-ink .affiliation-card {
  background: #181818;
  border-color: rgba(246, 242, 234, 0.1);
  border-top-color: var(--vermilion);
}

.affiliation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.affiliation-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.08);
  color: var(--vermilion);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-ink .affiliation-icon {
  background: rgba(200, 16, 46, 0.2);
}

.affiliation-content {
  min-width: 0;
  flex: 1;
}

.affiliation-type {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 0.25rem;
}

.affiliation-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.theme-ink .affiliation-title {
  color: var(--paper);
}

.affiliation-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  line-height: 1.45;
}

/* 2. Awards & Professional Certifications Grid */
.awards-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .awards-cert-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.award-cert-card {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-top: 3px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 100%;
}

.theme-paper-2 .award-cert-card {
  background: #ffffff;
}

.theme-ink .award-cert-card {
  background: #161616;
  border-color: rgba(246, 242, 234, 0.12);
  border-top-color: var(--gold);
}

.award-cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cert-visual-wrap {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(184, 151, 90, 0.3);
  background: #0e0e0e;
  cursor: pointer;
}

.cert-visual-wrap picture,
.cert-visual-wrap img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform var(--transition-fast);
}

.cert-visual-wrap:hover img {
  transform: scale(1.02);
}

.cert-badge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cert-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(184, 151, 90, 0.15);
  color: var(--ink);
  border: 1px solid rgba(184, 151, 90, 0.35);
}

.theme-ink .cert-pill {
  color: var(--paper);
}

.cert-pill-vermilion {
  background: rgba(200, 16, 46, 0.1);
  color: var(--vermilion);
  border-color: rgba(200, 16, 46, 0.3);
}

.cert-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.theme-ink .cert-card-title {
  color: var(--paper);
}

.cert-recipient-line {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cert-specs-table {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  font-size: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.theme-ink .cert-specs-table {
  border-top-color: rgba(246, 242, 234, 0.1);
}

.cert-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cert-spec-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  opacity: 0.7;
}

.cert-spec-val {
  text-align: right;
  font-weight: 500;
}

/* 3. Supreme Leadership & Executive Roster */
.leadership-supreme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 850px) {
  .leadership-supreme-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.supreme-leader-card {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-top: 4px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 100%;
}

.theme-ink .supreme-leader-card {
  background: #141414;
  border-color: rgba(246, 242, 234, 0.12);
  border-top-color: var(--gold);
}

.supreme-leader-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 540px) {
  .supreme-leader-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.supreme-leader-photo {
  aspect-ratio: 1 / 1.25;
  overflow: hidden;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(184, 151, 90, 0.4);
  background: var(--paper-2);
  width: 100%;
}

.supreme-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.supreme-leader-info {
  min-width: 0;
}

.supreme-leader-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 0.35rem;
}

.supreme-leader-name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.supreme-leader-rank {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.supreme-leader-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* Executive Committee (Grid with 6 Members) */
.exec-committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) and (min-width: 581px) {
  .exec-committee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .exec-committee-grid {
    grid-template-columns: 1fr;
  }
}

.exec-card {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.09);
  border-top: 3px solid var(--vermilion);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 100%;
}

.theme-ink .exec-card {
  background: #151515;
  border-color: rgba(246, 242, 234, 0.12);
  border-top-color: var(--vermilion);
}

.exec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.exec-photo-wrap {
  width: 96px;
  height: 115px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(184, 151, 90, 0.35);
  background: var(--paper-2);
}

.exec-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.exec-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.exec-rank {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.exec-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--vermilion);
  margin-bottom: 0.5rem;
}

.theme-ink .exec-role-badge {
  background: rgba(200, 16, 46, 0.2);
}

.exec-jurisdiction {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Roster Filter Tabs */
.roster-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.roster-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 14, 14, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-ink .roster-filter-btn {
  color: var(--paper);
  border-color: rgba(246, 242, 234, 0.2);
}

.roster-filter-btn:hover,
.roster-filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.theme-ink .roster-filter-btn:hover,
.theme-ink .roster-filter-btn.is-active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Official Poster Showcase Banner */
.roster-poster-showcase {
  background: #ffffff;
  border: 1px solid rgba(184, 151, 90, 0.3);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 850px) {
  .roster-poster-showcase {
    grid-template-columns: 1fr;
  }
}

.theme-ink .roster-poster-showcase {
  background: #141414;
  border-color: rgba(184, 151, 90, 0.25);
}

.roster-poster-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(14, 14, 14, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.roster-poster-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-medium);
}

.roster-poster-media:hover img {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   BLACK BELT HOLDERS DIRECTORY & DIPLOMA LIGHTBOX
   -------------------------------------------------------------------------- */
.holders-section {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 6rem;
}

.holders-header-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.holders-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184, 151, 90, 0.12);
  border: 1px solid rgba(184, 151, 90, 0.35);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.holders-counter-badge .counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--vermilion);
  box-shadow: 0 0 8px var(--vermilion);
}

/* Filter & Search Bar */
.holders-controls-bar {
  background: #181818;
  border: 1px solid rgba(184, 151, 90, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.holders-search-box {
  flex: 1 1 280px;
  position: relative;
  min-width: 220px;
}

.holders-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--paper-2);
  opacity: 0.6;
  pointer-events: none;
}

.holders-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xs);
  color: var(--paper);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.holders-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.18);
}

.holders-search-input::placeholder {
  color: var(--paper-2);
  opacity: 0.55;
}

.holders-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.holders-select {
  background-color: #101010;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-size: 0.85rem;
  padding: 0.72rem 2.2rem 0.72rem 1rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.holders-select:focus {
  outline: none;
  border-color: var(--gold);
}

.holders-reset-btn {
  background: transparent;
  border: 1px solid rgba(184, 151, 90, 0.3);
  color: var(--gold);
  font-size: 0.825rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.holders-reset-btn:hover {
  background: rgba(184, 151, 90, 0.15);
  border-color: var(--gold);
  color: #ffffff;
}

/* Responsive Card Grid */
.holders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1200px) {
  .holders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .holders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 580px) {
  .holders-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Card Component */
.holder-card {
  background: #161616;
  border: 1px solid rgba(184, 151, 90, 0.22);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  cursor: pointer;
  position: relative;
  outline: none;
}


.holder-card.no-diploma {
  cursor: default;
}
.holder-card.no-diploma:hover {
  transform: translateY(-4px);
}

.holder-card:hover,
.holder-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(184, 151, 90, 0.2);
}

.holder-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0d0d0d;
  overflow: hidden;
}

.holder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
  filter: contrast(1.03) saturate(1.04);
}

.holder-card:hover .holder-photo {
  transform: scale(1.04);
}

/* Black Belt Ribbon Badge */
.holder-belt-ribbon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(184, 151, 90, 0.4);
  border-left: 4px solid var(--vermilion);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
}

.holder-belt-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.holder-belt-kanji {
  font-family: var(--font-serif-ja);
  font-size: 0.8rem;
  color: var(--gold);
}

/* Rank Badge cleanly positioned below photo near student name */
.holder-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(184, 151, 90, 0.12);
  border: 1px solid rgba(184, 151, 90, 0.35);
  border-left: 3px solid var(--vermilion);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.65rem;
  width: fit-content;
}

.holder-rank-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.holder-rank-kanji {
  font-family: var(--font-serif-ja);
  font-size: 0.8rem;
  color: var(--gold);
}

/* Ensure no badges overlay the portrait photos */
.holder-belt-ribbon,
.student-belt-ribbon {
  display: none !important;
}

.holder-photo,
.student-belt-photo {
  object-fit: cover !important;
  object-position: top !important;
}

.holder-info-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
}

.holder-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.holder-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--paper-2);
}

.holder-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3rem;
}

.holder-meta-label {
  opacity: 0.65;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.holder-meta-val {
  font-weight: 500;
  color: var(--gold);
}

.holder-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.holder-card:hover .holder-action-link {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #ffffff;
}

/* Lightbox Modal for Diploma */
.diploma-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

.diploma-modal.is-open {
  display: flex;
}

.diploma-modal-dialog {
  position: relative;
  background: #141414;
  border: 1px solid rgba(184, 151, 90, 0.4);
  border-radius: var(--radius-sm);
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(184, 151, 90, 0.2);
}

.diploma-modal-header {
  padding: 1rem 1.5rem;
  background: #181818;
  border-bottom: 1px solid rgba(184, 151, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.diploma-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.diploma-modal-badge {
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid var(--vermilion);
  color: var(--vermilion);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.diploma-modal-student-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--paper);
}

.diploma-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.diploma-modal-close-btn:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  transform: rotate(90deg);
}

.diploma-modal-body {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  overflow-y: auto;
  max-height: calc(92vh - 120px);
}

@media (max-width: 900px) {
  .diploma-modal-body {
    grid-template-columns: 1fr;
  }
}

.diploma-image-wrap {
  background: #080808;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.diploma-image-wrap img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-xs);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(184, 151, 90, 0.25);
}

.diploma-details-wrap {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #141414;
}

.diploma-details-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diploma-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.diploma-spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-2);
  opacity: 0.65;
}

.diploma-spec-val {
  font-size: 0.95rem;
  color: var(--paper);
  font-weight: 500;
}

.diploma-signatories-box {
  background: #1a1a1a;
  border: 1px solid rgba(184, 151, 90, 0.2);
  border-radius: var(--radius-xs);
  padding: 1rem;
  margin-top: 0.5rem;
}

.diploma-modal-footer {
  padding: 0.85rem 1.5rem;
  background: #181818;
  border-top: 1px solid rgba(184, 151, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diploma-nav-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.diploma-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.diploma-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.diploma-counter-text {
  font-size: 0.825rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}


/* ==========================================================================
   BLACK BELT STUDENTS SECTION (Crisp White Cards on Dark Ink Theme)
   ========================================================================== */
.black-belt-students-section {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.black-belt-students-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

@media (max-width: 1024px) {
  .black-belt-students-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .black-belt-students-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.student-belt-card {
  background: #ffffff;
  border: 1px solid rgba(184, 151, 90, 0.25);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-left-color 0.28s ease;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.student-belt-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--vermilion);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(184, 151, 90, 0.2);
}

.student-belt-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #141414;
  overflow: hidden;
}

.student-belt-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
  filter: contrast(1.02) saturate(1.03);
}

.student-belt-card:hover .student-belt-photo {
  transform: scale(1.04);
}

.student-belt-ribbon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(184, 151, 90, 0.4);
  border-left: 3px solid var(--vermilion);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.student-belt-ribbon-title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.student-belt-ribbon-kanji {
  font-family: var(--font-serif-ja);
  font-size: 0.8rem;
  color: var(--gold);
}

.student-belt-info {
  padding: 1.35rem 1.45rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  background: #ffffff;
}

.student-belt-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.student-belt-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  margin-bottom: 0.75rem;
}

.student-belt-meta {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  padding-top: 0.7rem;
  margin-bottom: 1.15rem;
}

.student-belt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-belt-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
}

.student-belt-meta-val {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-sans);
}

.student-belt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.student-belt-btn:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #ffffff;
}


/* ==========================================================================
   AWARD CERTIFICATES GALLERY & SHOWCASE
   ========================================================================== */
.award-certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

@media (max-width: 992px) {
  .award-certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .award-certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.award-cert-card {
  background: #ffffff;
  border: 1px solid rgba(184, 151, 90, 0.25);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-left-color 0.28s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.award-cert-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--vermilion);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16), 0 0 16px rgba(184, 151, 90, 0.15);
}

.award-cert-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0e0e0e;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-cert-img-wrap.portrait-aspect {
  aspect-ratio: 3 / 4;
}

.award-cert-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
  display: block;
  transition: transform 0.4s ease;
}

.award-cert-card:hover .award-cert-img {
  transform: scale(1.03);
}

.award-cert-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  background: #ffffff;
}

.award-cert-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.award-cert-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.award-cert-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444444;
  margin-bottom: 1.15rem;
}

.award-cert-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.award-cert-view-btn:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #ffffff;
}

/* ==========================================================================
   REMOVED SHOWCASE
   ========================================================================== */
/* removed */ .removed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
  /* removed */ .removed-grid {
    grid-template-columns: 1fr;
  }
}

/* removed */ .removed-card {
  background: #ffffff;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-top: 3px solid var(--vermilion);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* removed */ .removed-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--vermilion);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* removed */ .removed-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* removed */ .removed-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555555;
}

/* Ensure Black Belt, Instructor, Student Belt & Award cards are always visible immediately */
.black-belt-card,
.holder-card,
.student-belt-card,
.award-cert-card {
  opacity: 1 !important;
  transform: none !important;
}


/* ============================================================ */
/* UI/UX REFINEMENTS: MOBILE & DESKTOP                          */
/* ============================================================ */

/* 1. Global Box-Sizing & Viewport Integrity */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* 3. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. Desktop Refinements (>= 1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 244, 240, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(14, 14, 14, 0.08);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  }

  /* Clear Active Page Indicator */
  .nav-link.active {
    color: var(--ink);
    font-weight: 600;
    opacity: 1;
  }
  .nav-link.active::after {
    width: 100% !important;
    height: 2px !important;
    background-color: var(--vermilion) !important;
  }

  /* Equal-Height Card Grids & Alignments */
  .curricula-grid,
  .program-cards-grid,
  .black-belt-students-grid,
  .holders-grid {
    display: grid;
    align-items: stretch;
  }

  .curriculum-card,
  .program-card,
  .student-belt-card,
  .holder-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }

  .student-belt-body,
  .holder-body,
  .program-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Subtle, Premium Hover Effects */
  .student-belt-card:hover,
  
.holder-card.no-diploma {
  cursor: default;
}
.holder-card.no-diploma:hover {
  transform: translateY(-4px);
}

.holder-card:hover,
  .program-card:hover,
  .curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  }
}

/* 5. Mobile Refinements (360px to 430px & <= 600px) */
@media (max-width: 600px) {
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden !important;
    width: 100%;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Body text readability (min 16px) */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Full-width tap targets for hamburger menu (min 44px) */
  .mobile-nav-link {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1.25rem !important;
  }

  /* Single-column grids on mobile for comfortable readability */
  .curricula-grid,
  .program-cards-grid,
  .achievements-grid,
  .affiliations-grid,
  .dojos-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Black belt cards: single-column layout (1 card per row, stacked vertically) */
  .black-belt-students-grid,
  .holders-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .student-belt-card,
  .holder-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .student-belt-card:active,
  .holder-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
    border-color: var(--vermilion) !important;
  }

  .student-belt-body,
  .holder-body {
    padding: 0.65rem !important;
  }

  .student-belt-name,
  .holder-name {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
  }

  .student-belt-rank-row,
  .student-belt-meta {
    font-size: 0.75rem !important;
  }

  .student-belt-btn,
  .holder-btn {
    min-height: 40px !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.6rem !important;
  }

  /* Sticky WhatsApp Button: accessible, safe, doesn't obscure content */
  .floating-whatsapp {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    position: fixed !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 990 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  }

  /* Ensure footer has clearance so sticky WhatsApp never covers text or links */
  footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Diploma modal: mobile fit, large touch targets */
  .diploma-modal-dialog {
    max-width: 95vw !important;
    max-height: 92vh !important;
    margin: 1rem auto !important;
    border-radius: var(--radius-md) !important;
  }

  .diploma-modal-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .diploma-nav-btn {
    min-height: 44px !important;
    min-width: 80px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .diploma-modal-body {
    padding: 0.85rem !important;
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
  }
}

/* Extra small mobile (below 350px) fallback */
@media (max-width: 350px) {
  .black-belt-students-grid,
  .holders-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide floating WhatsApp when any modal or mobile menu is active */
body.menu-open .floating-whatsapp,
body.modal-open .floating-whatsapp,
.diploma-modal.is-open ~ .floating-whatsapp {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ============================================================ */
/* UI/UX ENHANCEMENTS: MOBILE & DESKTOP REFINEMENTS            */
/* ============================================================ */

/* 1. Global Box-Sizing & Horizontal Scroll Prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Accessible Visible Focus States */
:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* 3. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. Desktop Refinements (>= 1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    width: 100% !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(246, 244, 240, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(14, 14, 14, 0.08) !important;
  }

  /* Clear Active Page Indicator */
  .nav-link.active {
    color: var(--ink) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }
  .nav-link.active::after {
    width: 100% !important;
    height: 2px !important;
    background-color: var(--vermilion) !important;
  }

  /* Equal-Height Card Grids & Alignments */
  .curricula-grid,
  .program-cards-grid,
  .black-belt-students-grid,
  .holders-grid {
    display: grid !important;
    align-items: stretch !important;
  }

  .curriculum-card,
  .program-card,
  .student-belt-card,
  .holder-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  }

  .student-belt-body,
  .holder-body,
  .program-card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* Subtle, Premium Hover Effects */
  .student-belt-card:hover,
  
.holder-card.no-diploma {
  cursor: default;
}
.holder-card.no-diploma:hover {
  transform: translateY(-4px);
}

.holder-card:hover,
  .program-card:hover,
  .curriculum-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14) !important;
  }
}

/* 5. Mobile Refinements (360px to 430px & <= 600px) */
@media (max-width: 600px) {
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* Body text readability (min 16px) */
  body {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Full-width tap targets for hamburger menu (min 44px) */
  .mobile-nav-link {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1.2rem !important;
  }

  /* Single-column grids on mobile for comfortable readability */
  .curricula-grid,
  .program-cards-grid,
  .achievements-grid,
  .affiliations-grid,
  .dojos-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Black belt cards: single-column layout (1 card per row, stacked vertically) */
  .black-belt-students-grid,
  .holders-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .student-belt-card,
  .holder-card {
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
  }

  .student-belt-card:active,
  .holder-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
    border-color: var(--vermilion) !important;
  }

  .student-belt-body,
  .holder-body {
    padding: 0.65rem !important;
  }

  .student-belt-name,
  .holder-name {
    font-size: 1.15rem !important;
    margin-bottom: 0.35rem !important;
    word-break: break-word !important;
  }

  .student-belt-rank-row,
  .student-belt-meta,
  .holder-meta-item {
    font-size: 0.85rem !important;
  }

  .student-belt-btn,
  .holder-btn {
    min-height: 38px !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.5rem !important;
  }

  /* Sticky WhatsApp Button: accessible, safe, doesn't obscure content */
  .floating-whatsapp {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    position: fixed !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 990 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  }

  /* Ensure footer has clearance so sticky WhatsApp never covers text or links */
  footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Diploma modal: mobile fit, large touch targets */
  .diploma-modal-dialog {
    max-width: 95vw !important;
    max-height: 92vh !important;
    margin: 1rem auto !important;
    border-radius: var(--radius-md) !important;
  }

  .diploma-modal-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .diploma-nav-btn {
    min-height: 44px !important;
    min-width: 80px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .diploma-modal-body {
    padding: 0.85rem !important;
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
  }
}

/* Extra small mobile (below 350px) fallback */
@media (max-width: 350px) {
  .black-belt-students-grid,
  .holders-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide floating WhatsApp when any modal or mobile menu is active */
body.menu-open .floating-whatsapp,
body.modal-open .floating-whatsapp,
.diploma-modal.is-open ~ .floating-whatsapp {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
