:root {
  --navy: #0a1628;
  --navy-light: #0f1f3d;
  --navy-medium: #132847;
  --royal: #1a56db;
  --royal-light: #2563eb;
  --royal-dark: #1e40af;
  --gold: #d4a843;
  --gold-light: #e8c56a;
  --gold-dark: #b8922e;
  --white: #ffffff;
  --silver: #f1f5f9;
  --silver-dark: #e2e8f0;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gradient-primary: linear-gradient(135deg, #0a1628 0%, #1a56db 100%);
  --gradient-gold: linear-gradient(135deg, #d4a843 0%, #e8c56a 50%, #b8922e 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.97) 0%, rgba(26,86,219,0.88) 100%);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 32px 80px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 16px rgba(212,168,67,0.25), 0 8px 32px rgba(212,168,67,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
::selection { background: var(--gold); color: var(--navy); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  opacity: 0.5;
}
.section:first-child::before { display: none; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); }
.section-light { background: var(--silver); }
.section-gradient { background: var(--gradient-primary); color: var(--white); position: relative; overflow: hidden; }
.section-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26,86,219,0.15) 0%, transparent 70%);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 580px;
  line-height: 1.65;
}
.section-dark .section-subtitle { color: var(--gray-400); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 1px 40px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-wrapper > a i.fa-chevron-down { font-size: 0.65rem; margin-left: 4px; transition: transform 0.3s ease; }
.nav-dropdown-wrapper:hover > a i.fa-chevron-down { transform: rotate(180deg); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-icon i { font-size: 1.3rem; color: var(--navy); }
.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
  line-height: 1;
}
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 70%; }
.nav-links a:hover { color: var(--gold-light); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 240px;
  background: rgba(15,31,61,0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  padding-left: 20px;
}
.nav-dropdown a::after { display: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-search-btn:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-actions .btn-primary { padding: 8px 20px; font-size: 0.85rem; white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  line-height: 1;
}
@media (max-width: 1024px) {
  .nav-inner { height: 64px; gap: 12px; padding: 0 16px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    z-index: 999;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    justify-content: flex-start;
    flex: none;
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { right: 0; }
  .nav-links > a {
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links > div { width: 100%; }
  .nav-links > div > a {
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-actions { position: relative; z-index: 1002; gap: 8px; }
  .nav-actions .btn-primary { padding: 8px 14px; font-size: 0.78rem; }
  .nav-logo-icon { width: 38px; height: 38px; min-width: 38px; }
  .nav-logo-text { font-size: 1.15rem; }
  .nav-dropdown {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: none;
  }
  .nav-dropdown.open {
    max-height: 280px;
    padding: 4px 0 8px 16px;
    transform: none;
  }
  .nav-dropdown a {
    font-size: 0.92rem;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links a::after { left: 0; transform: none; }
  .nav-links a:hover::after, .nav-links a.active::after { width: 40px; }
}
@media (max-width: 480px) {
  .nav-inner { height: 60px; gap: 8px; padding: 0 12px; }
  .nav-links { width: 280px; padding: 72px 20px 32px; }
  .nav-logo-icon { width: 34px; height: 34px; min-width: 34px; }
  .nav-logo-text { font-size: 1rem; }
  .nav-logo { gap: 8px; }
  .nav-actions .btn-primary { padding: 6px 12px; font-size: 0.72rem; }
  .nav-actions { gap: 4px; }
  .nav-search-btn { padding: 6px; font-size: 1rem; }
  .nav-toggle { padding: 6px; font-size: 1.3rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(212,168,67,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.btn-secondary:active { transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--royal);
  border-color: var(--royal);
}
.btn-outline:hover {
  background: var(--royal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.3);
}
.btn-outline:active { transform: translateY(-1px); }
.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.3);
}
.btn-gold-outline:active { transform: translateY(-1px); }
.btn-sm { padding: 9px 22px; font-size: 0.82rem; gap: 6px; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img, .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay { display: none; }
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation-name: var(--p-anim);
  animation-duration: var(--p-dur, 20s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--p-del, 0s);
  animation-iteration-count: infinite;
  opacity: var(--p-o, 0.25);
  background: var(--p-color, var(--gold));
  width: var(--p-size, 4px);
  height: var(--p-size, 4px);
}

/* --- Hero Particle Keyframes (seamless loop — 0% matches 100%) --- */

@keyframes particleFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  25%  { transform: translate(15px, -25vh) rotate(90deg) scale(1.15); }
  50%  { transform: translate(-10px, -50vh) rotate(180deg) scale(0.85); }
  75%  { transform: translate(20px, -75vh) rotate(270deg) scale(1.05); }
  100% { transform: translate(0, -100vh) rotate(360deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  20%  { transform: translate(8vw, -15vh) rotate(72deg) scale(1.1); }
  40%  { transform: translate(-5vw, -35vh) rotate(144deg) scale(0.9); }
  60%  { transform: translate(12vw, -55vh) rotate(216deg) scale(1.05); }
  80%  { transform: translate(-8vw, -80vh) rotate(288deg) scale(0.95); }
  100% { transform: translate(0, -100vh) rotate(360deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleOrbit {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  25%  { transform: translate(40px, -20px) rotate(90deg) scale(1.2); }
  50%  { transform: translate(0, -50px) rotate(180deg) scale(0.8); }
  75%  { transform: translate(-40px, -20px) rotate(270deg) scale(1.1); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleSwirl {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  25%  { transform: translate(20px, -30px) rotate(180deg) scale(1.2); }
  50%  { transform: translate(-15px, -80px) rotate(360deg) scale(0.7); }
  75%  { transform: translate(25px, -140px) rotate(540deg) scale(1.15); }
  100% { transform: translate(0, -200px) rotate(720deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleWave {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  25%  { transform: translate(5vw, -20px) rotate(10deg) scale(1.1); }
  50%  { transform: translate(-3vw, -40px) rotate(0deg) scale(0.9); }
  75%  { transform: translate(6vw, -60px) rotate(-10deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleRise {
  0%   { transform: translate(0, 100%) rotate(0deg) scale(0.6); opacity: 0; }
  10%  { opacity: var(--p-o, 0.25); }
  25%  { transform: translate(10px, 60%) rotate(90deg) scale(1); }
  50%  { transform: translate(-8px, 30%) rotate(180deg) scale(1.2); }
  75%  { transform: translate(15px, 10%) rotate(270deg) scale(0.9); }
  90%  { opacity: var(--p-o, 0.25); }
  100% { transform: translate(0, -10%) rotate(360deg) scale(0.6); opacity: 0; }
}

@keyframes particleGlide {
  0%   { transform: translate(-10vw, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  25%  { transform: translate(-3vw, -15px) rotate(90deg) scale(1.1); }
  50%  { transform: translate(4vw, 5px) rotate(180deg) scale(0.9); }
  75%  { transform: translate(8vw, -10px) rotate(270deg) scale(1.05); }
  100% { transform: translate(-10vw, 0) rotate(360deg) scale(1); opacity: var(--p-o, 0.25); }
}

@keyframes particleDance {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.25); }
  15%  { transform: translate(20px, -30px) rotate(45deg) scale(1.2); }
  30%  { transform: translate(-15px, -10px) rotate(120deg) scale(0.8); }
  45%  { transform: translate(25px, -50px) rotate(200deg) scale(1.3); }
  60%  { transform: translate(-20px, -25px) rotate(280deg) scale(0.9); }
  75%  { transform: translate(10px, -60px) rotate(330deg) scale(1.1); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: var(--p-o, 0.25); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  margin-top: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  position: relative;
  padding-top: 20px;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.hero-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.hero-scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  position: relative;
}
.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 9px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(18px); opacity: 0; }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/2;
  min-height: 300px;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,86,219,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.about-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 4rem;
}
.about-image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.about-image-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
}
.about-image-badge-text h4 { font-size: 0.95rem; color: var(--navy); }
.about-image-badge-text p { font-size: 0.78rem; color: var(--gray-500); }
.about-content h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); color: var(--navy); margin-bottom: 14px; }
.about-content p { color: var(--gray-600); line-height: 1.7; margin-bottom: 12px; font-size: 0.95rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--silver);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
}
.about-feature:hover { background: var(--silver-dark); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.about-feature i { color: var(--gold); font-size: 0.9rem; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-features { grid-template-columns: 1fr; }
}

/* Organization Structure */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.structure-level {
  grid-column: 1 / -1;
  text-align: center;
  margin: 20px 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
.structure-level::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 8px auto 0;
  border-radius: 2px;
}
.structure-card {
  padding: 22px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}
.structure-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.structure-card .value-icon {
  margin: 0 auto 16px;
}
.structure-card h3 {
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 4px;
}
.structure-card .structure-subtitle {
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.structure-card p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.structure-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.04));
}
.structure-card.featured h3 { color: var(--gold); }
.structure-connector {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 4px 0;
  color: var(--gray-500);
  font-size: 0.75rem;
}
.structure-connector i { color: var(--gold); font-size: 0.7rem; }
@media (max-width: 768px) {
  .structure-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .structure-card { padding: 22px 16px; }
  .structure-card h3 { font-size: 0.92rem; }
}
@media (max-width: 480px) {
  .structure-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Values */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.value-card { width: calc((100% - 40px) / 3); max-width: 350px; min-width: 260px; }
.value-card {
  padding: 30px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.value-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.value-card:hover::before { opacity: 1; }
.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(212,168,67,0.2), rgba(212,168,67,0.05));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
}
.value-card:hover .value-icon {
  background: linear-gradient(135deg, rgba(212,168,67,0.3), rgba(212,168,67,0.1));
  transform: scale(1.05);
}
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { color: var(--gray-400); font-size: 0.85rem; line-height: 1.6; }

/* News Cards */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--gray-100);
  width: calc((100% - 40px) / 3);
  max-width: 420px;
  min-width: 280px;
}
.news-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.news-card:hover::after { opacity: 1; }
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.news-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-card-image img { transform: scale(1.08); }
.news-card-body { padding: 16px 18px 18px; text-align: center; }
.news-card-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.news-card:hover .news-card-title { color: var(--gold-dark); }
.news-card-excerpt {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.news-card-meta i { color: var(--gold); margin-right: 4px; }

/* Events */
.event-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.event-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.event-card:hover::before { opacity: 1; }
.event-card-image {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.event-card:hover .event-card-image img { transform: scale(1.08); }
.event-card-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.5rem;
}
.event-date-box {
  min-width: 70px;
  text-align: center;
  padding: 10px;
  background: var(--navy);
  border-radius: var(--radius-md);
  color: var(--white);
  align-self: flex-start;
}
.event-date-box .day { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-date-box .month { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.event-info { flex: 1; }
.event-info h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.event-info p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.55; }
.event-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.event-meta i { color: var(--gold); margin-right: 6px; }

/* Events Page Categories */
.events-category {
  margin-bottom: 48px;
}
.events-category:last-child {
  margin-bottom: 0;
}
.events-category-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.events-category-title i {
  color: var(--gold);
}

/* Cards Grid for Championships, Seminars, Certifications */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.item-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-100);
  position: relative;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.item-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.item-card:hover::after { opacity: 1; }
.item-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-card:hover .item-card-image img { transform: scale(1.08); }
.item-card-body { padding: 16px 18px 18px; }
.item-card-body h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.item-card:hover .item-card-body h3 { color: var(--gold-dark); }
.item-card-body p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.item-card-meta span {
  font-size: 0.72rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.item-card-meta i { color: var(--gold); font-size: 0.7rem; }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) and (min-width: 769px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* Event-list layout for courses & documents-by-category */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Member Countries */
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.country-item {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-100);
  text-align: center;
  display: flex;
  flex-direction: column;
  width: calc((100% - 90px) / 10);
  max-width: 130px;
  min-width: 95px;
}
.country-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.country-flag {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}
.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.country-item:hover .country-flag img { transform: scale(1.1); }
.country-name {
  padding: 6px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  transition: color 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}
.country-item:hover .country-name { color: var(--gold-dark); }

@media (max-width: 1200px) { .country-item { width: calc((100% - 70px) / 8); } }
@media (max-width: 992px) { .country-item { width: calc((100% - 50px) / 6); } }
@media (max-width: 768px) { .country-item { width: calc((100% - 30px) / 4); } }
@media (max-width: 480px) { .country-item { width: calc((100% - 16px) / 3); } }
@media (max-width: 360px) { .country-item { width: calc((100% - 6px) / 2); } }

@media (max-width: 768px) {
  .countries-grid {
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    padding: 4px 0;
  }
  .carousel-track {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .country-item {
    flex: 0 0 auto;
    width: calc(50% - 5px);
    max-width: none;
    min-width: 0;
  }
  .country-item:hover {
    transform: none;
  }
  .country-item:hover .country-flag img {
    transform: none;
  }
}

@media (max-width: 480px) {
  .country-item {
    width: calc(75% - 7.5px);
  }
}

/* Hall of Fame */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hof-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  cursor: pointer;
}
.hof-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.hof-card:hover::after { opacity: 1; }
.hof-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  padding: 3px;
  transition: var(--transition);
}
.hof-card:hover .hof-avatar { border-color: var(--gold-light); transform: scale(1.05); }
.hof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hof-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.hof-card .title { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.hof-card .year { font-size: 0.75rem; color: var(--gray-400); }
@media (max-width: 768px) { .hof-grid { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 20px; line-height: 1.7; font-size: 0.92rem; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.contact-detail:hover { transform: translateX(4px); }
.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--silver);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  transition: var(--transition);
}
.contact-detail:hover .contact-detail-icon { background: var(--gold); color: var(--navy); }
.contact-detail h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.contact-detail p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-800);
}
.form-group input:hover, .form-group textarea:hover { border-color: var(--gray-300); background: var(--white); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .nav-logo-text { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--gray-400); font-size: 0.85rem; line-height: 1.6; max-width: 300px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 1rem;
}
.footer-social a:hover {
  background: var(--gradient-gold);
  color: var(--navy);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 16px rgba(212,168,67,0.35);
}
.footer h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.footer-links a {
  display: block;
  color: var(--gray-400);
  font-size: 0.82rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); padding-left: 8px; }
.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--gray-500); transition: var(--transition); position: relative; }
.footer-bottom-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.footer-bottom-links a:hover { color: var(--gold); }
.footer-bottom-links a:hover::after { width: 100%; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Page Header */
.page-header {
  padding: 100px 0 32px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,0.3), transparent);
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,86,219,0.12), transparent 60%);
  pointer-events: none;
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.page-header p {
  color: var(--gray-400);
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-overlay.active { display: flex; }
.modal-content {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--silver);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); transform: rotate(90deg) scale(1.05); }

/* Search Modal */
.search-modal { align-items: flex-start; padding-top: 120px; }
.search-input-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-input-wrap input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-size: 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: var(--transition);
}
.search-input-wrap input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(26,86,219,0.15); }
.search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.2rem;
}
.search-results { margin-top: 24px; max-width: 700px; margin-left: auto; margin-right: auto; max-height: 60vh; overflow-y: auto; }
.search-category { padding: 8px 4px 4px; }
.search-category-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--royal); }
.search-result-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.search-result-item:hover { background: var(--silver); transform: translateX(4px); }
.search-result-item.highlighted { background: var(--silver); border-color: var(--royal); box-shadow: 0 0 0 2px rgba(26,86,219,0.12); transform: translateX(4px); }
.search-result-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--silver); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; color: var(--royal); }
.search-result-item.highlighted .search-result-icon { background: var(--royal); color: white; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-body h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.search-result-body p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-meta { font-size: 0.72rem; color: var(--gray-400); margin-top: 4px; display: inline-block; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-scale.visible { opacity: 1; transform: scale(1); }
.stagger-fade > * { opacity: 0; transform: translateY(24px); }
.stagger-fade.visible > *:nth-child(1) { transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(2) { transition: opacity 0.5s ease 0.18s, transform 0.5s ease 0.18s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(3) { transition: opacity 0.5s ease 0.26s, transform 0.5s ease 0.26s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(4) { transition: opacity 0.5s ease 0.34s, transform 0.5s ease 0.34s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(5) { transition: opacity 0.5s ease 0.42s, transform 0.5s ease 0.42s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(6) { transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(n+7) { transition: opacity 0.5s ease 0.58s, transform 0.5s ease 0.58s; opacity: 1; transform: translateY(0); }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 360px;
  border-radius: var(--radius-lg);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 1001;
  width: 0;
  transition: width 0.1s linear;
}

/* SPA Pages */
.page { display: none; }
.page.active { display: block; }
#page-dynamic-container { transition: opacity 0.3s ease; }

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(212,168,67,0.3);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.floating-cta.visible { opacity: 1; transform: translateY(0); }
.floating-cta:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 32px rgba(212,168,67,0.4); }
.floating-cta:active { transform: translateY(-2px) scale(1.03); }

/* Filter Buttons */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gradient-gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 2px 8px rgba(212,168,67,0.3); }

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--navy);
  outline: none;
  transition: var(--transition);
}
.filter-search:focus {
  border-color: var(--gold);
}
.filter-select {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--navy);
  outline: none;
  cursor: pointer;
  min-width: 160px;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.filter-select:focus {
  border-color: var(--gold);
}
.filter-select option {
  color: var(--navy);
  background: var(--white);
}

/* 5-column grid for people pages */
@media (min-width: 1025px) {
  .people-grid-5 .news-card {
    width: calc((100% - 80px) / 5);
    max-width: none;
    min-width: 0;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state i {
  font-size: 3.5rem;
  color: var(--gray-300);
  margin-bottom: 16px;
}
.empty-state h3 { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); }

/* Responsive Utilities */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; color: white; }
.toast.error { background: #ef4444; color: white; }
.toast.info { background: var(--royal); color: white; }

/* Accordion */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.accordion-header {
  padding: 16px 20px;
  background: var(--gray-50);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}
.accordion-header:hover { background: var(--gray-100); }
.accordion-header i { transition: var(--transition); color: var(--gold); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-item.active .accordion-body {
  max-height: 500px;
  padding: 20px;
}
.accordion-body p { color: var(--gray-600); line-height: 1.7; }

/* Detail Page */
.detail-hero { padding: 80px 0 16px; background: var(--navy); position: relative; overflow: hidden; }
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,0.2), transparent);
  pointer-events: none;
}
.detail-hero .container { text-align: left; position: relative; z-index: 1; }
.detail-content { padding: 100px 0 48px; position: relative; }
.detail-content .content-body { max-width: 800px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); margin-top: -36px; position: relative; z-index: 2; }
.detail-content .content-body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 12px; }
.detail-content .content-body .meta { color: var(--gray-500); display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; justify-content: center; margin-bottom: 20px; }
.detail-content .content-body .meta i { color: var(--gold); margin-right: 4px; }
.detail-content .content-body p { margin-bottom: 12px; line-height: 1.7; color: var(--gray-600); text-align: left; }
.detail-content .content-body h2, .detail-content .content-body h3 { color: var(--navy); margin-top: 24px; margin-bottom: 12px; }
.detail-content .content-body ul { margin: 12px 0; padding-left: 20px; list-style: disc; }
.detail-content .content-body ul li { margin-bottom: 6px; color: var(--gray-600); }
.detail-description {
  font-size: 1.05rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.7;
}
.detail-download {
  text-align: center;
  margin-top: 24px;
}
.detail-empty {
  color: var(--gray-400);
  text-align: center;
  padding: 40px 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 14px;
  transition: var(--transition);
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
}
.back-link:hover { gap: 10px; background: rgba(255,255,255,0.1); color: var(--gold); }

/* Detail sections for people types */
.detail-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  text-align: left;
}
.detail-section:first-of-type {
  margin-top: 0;
  border-top: none;
}
.detail-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-title i {
  color: var(--gold);
  font-size: 0.9rem;
}
.detail-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  text-align: left;
}
.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-600);
  width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}
.detail-info-row:last-child {
  border-bottom: none;
}
.detail-info-row.full-width {
  flex-direction: column;
  gap: 4px;
}
.detail-info-row i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.detail-info-row > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.detail-info-row strong {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.detail-info-row span,
.detail-info-row a {
  font-size: 0.88rem;
  color: var(--gray-700);
  word-break: break-word;
  line-height: 1.45;
}
.detail-info-row a { color: var(--royal); transition: var(--transition); }
.detail-info-row a:hover { color: var(--royal-dark); text-decoration: underline; }

/* Document inline viewer */
.document-viewer-wrapper {
  margin-top: 28px;
  text-align: left;
}
.document-viewer {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

/* Detail figure */
.detail-figure {
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
}
.detail-figure .detail-image,
.detail-figure img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.detail-figure i {
  font-size: 4rem;
  color: var(--gray-400);
  padding: 40px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

/* Related items */
.detail-related { padding: 0 0 40px; }
.detail-related h2 { text-align: center; margin-bottom: 24px; color: var(--navy); font-size: 1.3rem; }
.related-items-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.related-items-row::-webkit-scrollbar { height: 6px; }
.related-items-row::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
.related-items-row::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.related-items-row::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
.related-item-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.related-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.related-item-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-item-card-image i { font-size: 2rem; color: var(--gold); }
.related-item-card-body { padding: 12px 14px; }
.related-item-card-body h4 {
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item-card-body .related-item-date { font-size: 0.75rem; color: var(--gray-400); }
.related-item-card-body .related-item-date i { margin-right: 4px; }
.related-item-card:hover { border-color: var(--gray-300); }

/* Responsive table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
table th { background: var(--gray-50); font-weight: 600; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
table tr:hover td { background: var(--gray-50); }
table tr:last-child td { border-bottom: none; }

/* Image styles */
img { max-width: 100%; height: auto; display: block; }

.news-grid:has(:only-child),
.countries-grid:has(:only-child),
.hof-grid:has(:only-child),

.card-grid:has(:only-child),
.flag-grid:has(:only-child),
.masters-grid:has(:only-child),
.instructors-grid:has(:only-child),
.blackbelts-grid:has(:only-child) {
  justify-content: center;
}
.news-grid:has(:only-child) > :only-child { max-width: 400px; width: 100%; }
.countries-grid:has(:only-child) > :only-child { max-width: 400px; width: 100%; }
.hof-grid:has(:only-child) > :only-child { max-width: 300px; width: 100%; }
.card-grid:has(:only-child) > :only-child { max-width: 450px; width: 100%; }
.flag-grid:has(:only-child) > :only-child { max-width: 140px; width: 100%; }
.masters-grid:has(:only-child) > :only-child { max-width: 280px; width: 100%; }
.instructors-grid:has(:only-child) > :only-child { max-width: 350px; width: 100%; }
.blackbelts-grid:has(:only-child) > :only-child { max-width: 500px; width: 100%; }

.img-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.img-card img[src=""], .img-card img:not([src]) { opacity: 0; }
.img-card img::before { display: none; }
.img-card img:-moz-broken { opacity: 0; }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
  color: var(--gold);
  font-size: 2rem;
}
.img-placeholder i { font-size: inherit; }

.news-card-image, .item-card-image, .about-image, .hof-avatar {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hof-avatar { width: 100px; height: 100px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--gold); padding: 3px; }
.hof-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.modal-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.content-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; box-shadow: var(--shadow-md); }

.news-card-image:hover img, .item-card-image:hover img, .about-image:hover img {
  transform: scale(1.1);
}

img[loading="lazy"] { opacity: 0; transition: opacity 0.5s ease; }
img[loading="lazy"]:not([src=""]):not(:not([src])) { opacity: 1; }

img.error, img.broken {
  position: relative;
  min-height: 100px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
img.error::after, img.broken::after {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 16px;
}

/* ============ NATIONAL ASSOCIATIONS (Enhanced) ============ */
.assoc-continent-section { margin-bottom: 36px; }
.assoc-continent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.assoc-continent-header i { color: var(--gold); font-size: 1rem; }
.assoc-continent-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-left: auto;
}
/* Flag grid (state 1) */
.flag-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.flag-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.flag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.flag-card-img {
  width: 56px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gray-400);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.flag-card-img img { width: 100%; height: 100%; object-fit: cover; }
.flag-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

/* Association back bar */
.na-back-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.na-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--royal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.na-back-btn:hover { background: var(--gray-50); color: var(--royal-dark); }
.na-back-btn i { font-size: 0.8rem; }
.na-country-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.na-country-title i { color: var(--gold); margin-right: 8px; }

/* Association card grid (state 2) — matches masters card style */
.assoc-grid { grid-template-columns: repeat(4, 1fr); }
.assoc-card { cursor: pointer; }
.master-avatar.assoc-card-logo img {
  object-fit: contain;
  padding: 20px;
  background: var(--white);
}
.assoc-card .master-info { padding: 20px 16px 24px; }
.assoc-card .master-info .assoc-status {
  display: inline-flex;
  margin-top: 8px;
}

/* Association status badges (shared) */
.assoc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.assoc-status-active { background: #dcfce7; color: #166534; }
.assoc-status-provisional { background: #fef9c3; color: #854d0e; }
.assoc-status-suspended { background: #fee2e2; color: #991b1b; }
.assoc-status-inactive { background: var(--gray-100); color: var(--gray-500); }

.na-profile-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
}
.na-profile-detail i {
  width: 18px;
  text-align: center;
  color: var(--gold);
  margin-top: 3px;
  font-size: 0.85rem;
}
.na-profile-detail > div { flex: 1; min-width: 0; }
.na-profile-detail strong {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.na-profile-detail span,
.na-profile-detail a {
  font-size: 0.9rem;
  color: var(--gray-700);
  word-break: break-word;
}
.na-profile-detail a { color: var(--royal); transition: var(--transition); }
.na-profile-detail a:hover { color: var(--royal-dark); }

/* Social links inside detail-info-row (NA / member detail) */
.detail-social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-decoration: none;
}
.detail-social-links a:hover {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212,168,67,0.25);
}

/* Affiliated groups section */
.affiliated-groups-section { margin-top: 36px; }
.affiliated-groups-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.affiliated-groups-section h3 i { color: var(--gold); font-size: 1rem; }
.affiliated-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.affiliated-group-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.affiliated-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.affiliated-group-card-logo {
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gray-400);
  overflow: hidden;
}
.affiliated-group-card-logo img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.affiliated-group-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.affiliated-group-card .group-card-instructor { font-size: 0.75rem; color: var(--gray-500); }
.affiliated-group-card .group-card-city { font-size: 0.72rem; color: var(--gray-400); margin-top: 3px; }

/* Group profile (state 4) — same display as .meta */
.group-profile-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}
.group-profile-body .na-profile-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--gray-500);
  margin: 0;
}
.group-profile-body .na-profile-detail i {
  color: var(--gold);
  margin-right: 0;
  width: auto;
  margin-top: 0;
  font-size: 0.92rem;
}
.group-profile-body .na-profile-detail > div {
  display: inline;
  flex: none;
}
.group-profile-body .na-profile-detail strong {
  display: inline;
  font-size: 0.92rem;
  color: var(--gray-500);
  text-transform: none;
  letter-spacing: normal;
  margin-right: 4px;
  font-weight: 600;
}
.group-profile-body .na-profile-detail span,
.group-profile-body .na-profile-detail a {
  font-size: 0.92rem;
  color: var(--gray-500);
  word-break: break-word;
}
.group-profile-body .na-profile-detail a { color: var(--royal); transition: var(--transition); }
.group-profile-body .na-profile-detail a:hover { color: var(--royal-dark); }
.group-profile-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.group-profile-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-decoration: none;
}
.group-profile-social a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.group-profile-desc {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-600);
  text-align: left;
}

@media (max-width: 992px) { .flag-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .flag-grid { grid-template-columns: repeat(3, 1fr); }
  .assoc-continent-header { font-size: 1.1rem; }
  .affiliated-groups-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flag-grid { grid-template-columns: repeat(2, 1fr); }
  .flag-card-img { width: 48px; height: 34px; font-size: 1.3rem; }
  .flag-card-name { font-size: 0.75rem; }
  .affiliated-groups-grid { grid-template-columns: 1fr; }
}

/* ============ PEOPLE GRIDS (Masters, Instructors, Black Belts) ============ */
.people-grid {
  display: grid;
  gap: 20px;
}
.masters-grid,
.assoc-grid { grid-template-columns: repeat(4, 1fr); }
.instructors-grid { grid-template-columns: repeat(3, 1fr); }
.blackbelts-grid { grid-template-columns: repeat(3, 1fr); }

/* Master / Grandmaster Card */
.master-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  position: relative;
}
.master-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.master-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.master-card:hover::after { opacity: 1; }
.master-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #1a3a7a);
  position: relative;
}
.master-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.master-card:hover .master-avatar img { transform: scale(1.08); }
.people-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
}
.master-info { padding: 16px 14px 18px; }
.master-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.master-rank,
.master-country,
.master-position {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 3px;
}
.master-rank i { color: var(--gold); }
.master-country i { color: var(--royal); }
.master-position i { color: var(--gold-dark); }
.master-position { color: var(--gray-700); font-weight: 500; }

/* Instructor Card */
.instructor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  position: relative;
}
.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.instructor-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.instructor-card:hover::after { opacity: 1; }
.instructor-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1f3d, #1a56db);
  position: relative;
}
.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.instructor-card:hover .instructor-avatar img { transform: scale(1.08); }
.instructor-info { padding: 16px 14px 18px; }
.instructor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.instructor-degree,
.instructor-country,
.instructor-club {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 3px;
}
.instructor-degree i { color: var(--gold); }
.instructor-country i { color: var(--royal); }
.instructor-club i { color: var(--gray-400); }
.instructor-cert-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-top: 10px;
}
.instructor-cert-certified {
  background: #dcfce7;
  color: #166534;
}
.instructor-cert-pending {
  background: #fef9c3;
  color: #854d0e;
}

/* Black Belt Card */
.blackbelt-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.blackbelt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.blackbelt-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blackbelt-card:hover::after { opacity: 1; }
.blackbelt-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}
.blackbelt-info { flex: 1; min-width: 0; }
.blackbelt-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.blackbelt-rank,
.blackbelt-country,
.blackbelt-instructor,
.blackbelt-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 3px;
}
.blackbelt-rank i { color: var(--gold); width: 16px; }
.blackbelt-country i { color: var(--royal); width: 16px; }
.blackbelt-instructor i { color: var(--gold-dark); width: 16px; }
.blackbelt-cert i { color: var(--gray-400); width: 16px; }

/* People Grid Responsive */
@media (max-width: 1024px) {
  .masters-grid,
  .assoc-grid { grid-template-columns: repeat(3, 1fr); }
  .instructors-grid { grid-template-columns: repeat(2, 1fr); }
  .blackbelts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .masters-grid,
  .assoc-grid { grid-template-columns: repeat(2, 1fr); }
  .instructors-grid { grid-template-columns: 1fr; }
  .blackbelts-grid { grid-template-columns: 1fr; }
  .master-info { padding: 16px 12px 20px; }
  .assoc-card .master-info { padding: 16px 12px 20px; }
  .instructor-info { padding: 16px 12px 20px; }
  .blackbelt-card { padding: 18px; gap: 16px; }
  .blackbelt-icon { width: 48px; height: 48px; min-width: 48px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .masters-grid,
  .assoc-grid { grid-template-columns: 1fr; }
  .master-name { font-size: 0.95rem; }
  .assoc-card .master-name { font-size: 0.95rem; }
  .instructor-name { font-size: 0.95rem; }
  .blackbelt-name { font-size: 0.95rem; }
}

/* ============ ANIMATED BACKGROUND EFFECTS ============ */

/* --- Hero Ambient --- */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(212,168,67,0.04) 0%, rgba(26,86,219,0.06) 40%, transparent 70%);
  animation: ambientShift 30s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 35s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}

/* --- Nav Shimmer --- */
.nav-bg-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  will-change: background-position;
  transform: translateZ(0);
}
.nav.scrolled .nav-bg-shimmer {
  opacity: 0.35;
  animation: shimmerSweep 8s linear infinite;
}

/* --- Page Header --- */
.page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(212,168,67,0.03) 0%, transparent 60%);
  animation: pulseGlow 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.page-header-fist {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  color: var(--gold);
  line-height: 1;
  opacity: 0.03;
  animation: driftUp 40s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  user-select: none;
}

/* --- Plain Section (no dark/light/gradient modifier) --- */
.section-plain-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(26,86,219,0.02) 0%, rgba(212,168,67,0.015) 50%, transparent 70%);
  animation: ambientShift 35s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.section-plain-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: var(--royal);
  animation: floatOrb 30s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* --- Dark Section --- */
.section-dark-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 30% 60%, rgba(26,86,219,0.06) 0%, transparent 60%);
  animation: pulseGlow 25s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.section-dark-ember {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: -1;
  animation: emberRise 18s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* --- Light Section --- */
.section-light-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.section-light-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.015) 40px,
      rgba(0,0,0,0.015) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.01) 40px,
      rgba(0,0,0,0.01) 41px
    );
  animation: driftLine 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.section-light-shape {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  border: 1px solid var(--royal);
  animation: floatOrb 25s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}

/* --- Gradient Section --- */
.section-gradient::after {
  animation: pulseGlow 20s ease-in-out infinite alternate;
}

/* --- Footer --- */
.footer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,168,67,0.03) 0%, rgba(26,86,219,0.04) 50%, transparent 70%);
  animation: ambientShift 35s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
.footer-belt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg,
    transparent 40%,
    rgba(212,168,67,0.02) 45%,
    rgba(212,168,67,0.04) 50%,
    rgba(212,168,67,0.02) 55%,
    transparent 60%
  );
  animation: beltWave 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0) scaleY(1);
}
.footer-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  animation: emberRise 25s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* --- Detail Hero --- */
.detail-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(212,168,67,0.03) 0%, transparent 60%);
  animation: pulseGlow 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Raise section content above background elements */
.section > .container,
.section > .page-header-content,
.page-header > .container,
.footer > .container,
.detail-hero > .container,
.detail-content > .content-body {
  position: relative;
  z-index: 2;
}

.section-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation-name: var(--p-anim);
  animation-duration: var(--p-dur, 20s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--p-del, 0s);
  animation-iteration-count: infinite;
  opacity: var(--p-o, 0.12);
  background: var(--p-color, var(--gold));
  width: var(--p-size, 4px);
  height: var(--p-size, 4px);
}

/* --- Reusable Section Orb --- */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation-name: floatOrb;
  animation-duration: var(--p-dur, 30s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--p-del, 0s);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  opacity: var(--p-o, 0.35);
  background: var(--p-color);
  width: var(--p-size, 40px);
  height: var(--p-size, 40px);
}

/* --- Reusable Section Streak --- */
.section-streak {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation-name: streakDrift;
  animation-duration: var(--p-dur, 18s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--p-del, 0s);
  animation-iteration-count: infinite;
  opacity: var(--p-o, 0.2);
  background: var(--p-color);
  width: var(--p-size, 80px);
  height: 1px;
  border-radius: 1px;
}

/* --- Reusable Section Shape --- */
.section-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation-name: shapeFloat;
  animation-duration: var(--p-dur, 22s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--p-del, 0s);
  animation-iteration-count: infinite;
  opacity: var(--p-o, 0.04);
  border: 1px solid var(--p-color, var(--gold));
  width: var(--p-size, 30px);
  height: var(--p-size, 30px);
}

/* ============ KEYFRAMES ============ */
@keyframes ambientShift {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  33% { transform: scale(1.08) translate(2%, 1%); opacity: 0.7; }
  66% { transform: scale(0.95) translate(-1%, -2%); opacity: 0.5; }
  100% { transform: scale(1.05) translate(-2%, 1%); opacity: 0.6; }
}
@keyframes shimmerSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes driftUp {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.03; }
  90% { opacity: 0.03; }
  100% { transform: translateY(-100vh) rotate(15deg); opacity: 0; }
}
@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.12) translate(2%, 1%); opacity: 0.8; }
  100% { transform: scale(0.95) translate(-1%, -2%); opacity: 0.4; }
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); opacity: 0.02; }
  25% { transform: translate(30px, -20px) scale(1.1); opacity: 0.05; }
  50% { transform: translate(-20px, -40px) scale(0.9); opacity: 0.03; }
  75% { transform: translate(20px, -10px) scale(1.05); opacity: 0.06; }
  100% { transform: translate(-30px, -30px) scale(0.95); opacity: 0.02; }
}
@keyframes emberRise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.12; }
  50% { transform: translateY(-30vh) translateX(20px) scale(1.3); opacity: 0.1; }
  90% { opacity: 0.06; }
  100% { transform: translateY(-60vh) translateX(-10px) scale(0.5); opacity: 0; }
}
@keyframes beltWave {
  0% { transform: scaleY(1) translateY(0); opacity: 0.3; }
  50% { transform: scaleY(1.4) translateY(-2px); opacity: 0.6; }
  100% { transform: scaleY(1) translateY(0); opacity: 0.3; }
}
@keyframes driftLine {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20px) translateY(10px); }
}
@keyframes streakDrift {
  0%   { transform: translateX(-20vw) translateY(0) scaleX(0.6); opacity: 0; }
  10%  { opacity: var(--p-o, 0.2); }
  50%  { transform: translateX(10vw) translateY(-20px) scaleX(1); opacity: var(--p-o, 0.2); }
  90%  { opacity: var(--p-o, 0.2); }
  100% { transform: translateX(40vw) translateY(10px) scaleX(0.6); opacity: 0; }
}
@keyframes shapeFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: var(--p-o, 0.04); }
  25%  { transform: translate(20px, -30px) rotate(90deg) scale(1.15); }
  50%  { transform: translate(-15px, -10px) rotate(180deg) scale(0.85); }
  75%  { transform: translate(25px, -40px) rotate(270deg) scale(1.1); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: var(--p-o, 0.04); }
}
@keyframes orbPulse {
  0%   { transform: scale(0.9); opacity: var(--p-o, 0.35); }
  50%  { transform: scale(1.15); opacity: var(--p-o, 0.5); }
  100% { transform: scale(0.9); opacity: var(--p-o, 0.35); }
}

/* ============ ANIMATED BACKGROUNDS RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-orb { display: none; }
  .page-header-fist { display: none; }
  .section-dark-ember:nth-child(n+5) { display: none; }
  .footer-particle:nth-child(n+4) { display: none; }
  .section-orb { display: none; }
  .section-streak { display: none; }
}
@media (max-width: 768px) {
  .section-dark-ember { display: none; }
  .section-light-shape { display: none; }
  .footer-belt { display: none; }
  .footer-particle { display: none; }
  .hero-particle:nth-child(n+41) { display: none; }
  .section-orb { display: none; }
  .section-streak { display: none; }
  .section-shape:nth-child(n+5) { display: none; }
  .section-particle:nth-child(n+10) { display: none; }
}
@media (max-width: 480px) {
  .hero-ambient { display: none; }
  .nav-bg-shimmer { display: none; }
  .page-header-bg { display: none; }
  .section-dark-bg { display: none; }
  .section-light-bg { display: none; }
  .footer-bg { display: none; }
  .detail-hero-bg { display: none; }
  .section-plain-bg { display: none; }
  .hero-particle:nth-child(n+16) { display: none; }
  .section-particle { display: none; }
  .section-shape { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Comprehensive responsive */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-content { max-width: 900px; }
  .nav-inner { max-width: 1320px; }
  .detail-content .content-body { max-width: 860px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid { gap: 32px; }
  .about-content h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
  .event-card-image { width: 110px; min-width: 110px; }
  .detail-hero { padding: 72px 0 0; }
  .detail-content .content-body { padding: 28px; margin-top: -28px; }
  .hero-title { font-size: clamp(2rem, 4vw, 2.8rem); }
  .value-card { padding: 24px 18px; }
  .news-grid { gap: 16px; }
  .news-card { min-width: 0; width: calc((100% - 16px) / 2); }
  .news-card-body { padding: 14px 16px 16px; }
  .card-grid { gap: 16px; }
  .hof-grid { gap: 16px; }
  .masters-grid { gap: 16px; }
  .instructors-grid { gap: 16px; }
  .blackbelts-grid { gap: 16px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .hero { min-height: 90vh; }
  .hero-content { margin-top: 72px; padding: 0 20px; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-description { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 0.9rem; }
  .hero-scroll { bottom: 24px; }
  .about-grid { gap: 28px; }
  .about-image { min-height: 240px; }
  .about-image-badge { padding: 10px 14px; bottom: 14px; left: 14px; gap: 12px; }
  .about-image-badge-icon { width: 36px; height: 36px; font-size: 1rem; }
  .about-image-badge-text h4 { font-size: 0.88rem; }
  .about-image-badge-text p { font-size: 0.75rem; }
  .value-card { padding: 22px 16px; width: calc((100% - 16px) / 2); }
  .value-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .value-card h3 { font-size: 0.95rem; }
  .news-card { min-width: 0; width: calc((100% - 16px) / 2); }
  .news-card-body { padding: 14px 16px 16px; }
  .news-card-title { font-size: 0.92rem; }
  .event-card { flex-direction: column; gap: 12px; padding: 16px; }
  .event-card-image { width: 100%; min-width: 100%; aspect-ratio: 16/9; }
  .event-date-box { align-self: flex-start; }
  .item-card-body { padding: 14px 16px 16px; }
  .item-card-body h3 { font-size: 0.92rem; }
  .contact-form { padding: 24px; }
  .contact-detail-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
  .page-header { padding: 52px 0 28px; }
  .page-header h1 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
  .detail-hero { padding: 64px 0 0; }
  .detail-content .content-body { padding: 24px; margin-top: -24px; }
  .detail-content .content-body h1 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 48px 0 0; }
  .modal-content { padding: 24px; }
  .search-modal { padding-top: 100px; }
  .hof-card { padding: 20px 14px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 16px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.88rem; }
  .hero { min-height: 85vh; }
  .hero-content { margin-top: 64px; padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .hero-description { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-actions .btn { padding: 10px 20px; font-size: 0.85rem; }
  .hero-scroll { bottom: 20px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 16px; }
  .about-grid { gap: 24px; }
  .about-image { min-height: 200px; }
  .about-image-badge { display: none; }
  .about-content h2 { font-size: 1.35rem; }
  .about-content p { font-size: 0.9rem; }
  .about-features { gap: 8px; margin-top: 16px; }
  .about-feature { padding: 10px 14px; font-size: 0.85rem; }
  .value-card { padding: 24px 16px; width: 100%; max-width: 100%; min-width: 0; }
  .value-icon { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 12px; }
  .value-card h3 { font-size: 0.95rem; }
  .value-card p { font-size: 0.85rem; }
  .news-card { min-width: 0; width: 100%; max-width: 100%; }
  .news-card-body { padding: 14px 16px 16px; }
  .news-card-title { font-size: 0.92rem; }
  .news-card-excerpt { font-size: 0.8rem; }
  .event-card { padding: 14px; gap: 10px; }
  .event-card-image { width: 100%; min-width: 100%; }
  .event-date-box { min-width: 56px; padding: 6px; }
  .event-date-box .day { font-size: 1.2rem; }
  .event-date-box .month { font-size: 0.7rem; }
  .event-info h3 { font-size: 0.92rem; }
  .event-info p { font-size: 0.82rem; }
  .event-meta { font-size: 0.75rem; gap: 10px; }
  .item-card-body { padding: 14px 16px 16px; }
  .item-card-body h3 { font-size: 0.92rem; }
  .item-card-body p { font-size: 0.8rem; }
  .contact-form { padding: 20px; }
  .contact-info h3 { font-size: 1.1rem; }
  .contact-detail-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
  .contact-detail h4 { font-size: 0.85rem; }
  .contact-detail p { font-size: 0.8rem; }
  .form-group label { font-size: 0.82rem; }
  .form-group input, .form-group textarea { padding: 10px 14px; font-size: 0.85rem; }
  .page-header { padding: 44px 0 22px; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.85rem; }
  .detail-hero { padding: 56px 0 0; }
  .detail-content { padding: 20px 0 32px; }
  .detail-content .content-body { padding: 18px; margin-top: -18px; box-shadow: var(--shadow-md); }
  .detail-content .content-body h1 { font-size: 1.2rem; }
  .detail-content .content-body p { font-size: 0.85rem; }
  .footer { padding: 40px 0 0; }
  .footer h4 { font-size: 0.85rem; }
  .footer-links a { font-size: 0.8rem; }
  .footer-bottom { font-size: 0.72rem; }
  .footer-bottom-links { gap: 12px; }
  .footer-bottom-links a { font-size: 0.72rem; }
  .modal-content { padding: 20px; }
  .search-modal { padding-top: 80px; }
  .search-input-wrap input { font-size: 1rem; padding: 14px 18px 14px 44px; }
  .hof-card { padding: 18px 12px; }
  .hof-avatar { width: 64px; height: 64px; }
  .hof-card h3 { font-size: 0.92rem; }
  .floating-cta { width: 44px; height: 44px; font-size: 1rem; bottom: 16px; right: 16px; }
  .toast { bottom: 16px; padding: 12px 20px; font-size: 0.85rem; }
  .filter-bar { gap: 4px; margin-bottom: 20px; }
  .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
  .empty-state { padding: 40px 16px; }
  .empty-state i { font-size: 2.2rem; }
  .empty-state h3 { font-size: 0.95rem; }
  .table-wrap { border-radius: var(--radius-sm); }
  table th, table td { padding: 8px 10px; font-size: 0.78rem; }
  table th { font-size: 0.72rem; }
  .btn { padding: 10px 22px; font-size: 0.85rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.92rem; }
  .btn-sm { padding: 6px 16px; font-size: 0.78rem; }
  .section-label { font-size: 0.65rem; letter-spacing: 2px; }
  .section-label::before { width: 18px; }
  .accordion-header { padding: 12px 14px; font-size: 0.85rem; }
  .accordion-item.active .accordion-body { padding: 12px 14px; }
  .accordion-body p { font-size: 0.82rem; }
  .back-link { font-size: 0.8rem; }
  .document-viewer { height: 60vh; min-height: 300px; }
}

/* Utility for small touch targets on mobile */
@media (max-width: 480px) {
  .country-item,
  .filter-btn,
  .nav-search-btn,
  .nav-toggle,
  .footer-social a,
  .floating-cta,
  .modal-close {
    min-height: 44px;
    min-width: 44px;
  }
  .btn { min-height: 44px; }
  .nav-links a, .nav-dropdown a { min-height: 44px; display: flex; align-items: center; }
}

/* ============ DARK MODE ============ */
/* Override variables for data-theme="dark" */
:root[data-theme="dark"] {
  --navy: #0a1628;
  --navy-light: #0f1f3d;
  --navy-medium: #132847;
  --royal: #d4af37;
  --royal-light: #e8c56a;
  --royal-dark: #b8922e;
  --gold: #d4af37;
  --gold-light: #e8c56a;
  --gold-dark: #b8922e;
  --white: #ffffff;
  --silver: #1a1a2e;
  --silver-dark: #16213e;
  --gray-50: #1a1a2e;
  --gray-100: #1e1e32;
  --gray-200: #2a2a40;
  --gray-300: #3d3d56;
  --gray-400: #7c7c96;
  --gray-500: #a0a0b8;
  --gray-600: #c0c0d0;
  --gray-700: #d8d8e4;
  --gray-800: #e8e8f0;
  --gray-900: #f0f0f8;
  --gradient-primary: linear-gradient(135deg, #0a1628 0%, #d4af37 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.97) 0%, rgba(212,175,55,0.88) 100%);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5), 0 16px 48px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6), 0 32px 80px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 16px rgba(212,175,55,0.3), 0 8px 32px rgba(212,175,55,0.2);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.dark-mode-toggle:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
@media (max-width: 480px) {
  .dark-mode-toggle { padding: 6px; font-size: 1rem; min-height: 44px; min-width: 44px; }
}

/* Smooth dark mode transitions */
html[data-theme] { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }

/* ============ DARK MODE SELECTOR OVERRIDES ============ */
:root[data-theme="dark"] body {
  background: #0d0d1a;
  color: var(--gray-800);
}
:root[data-theme="dark"] ::selection { background: var(--gold); color: var(--navy); }
:root[data-theme="dark"] ::-webkit-scrollbar-track { background: #1a1a2e; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3d3d56; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #5a5a72; }

/* Section backgrounds */
:root[data-theme="dark"] .section-light { background: var(--gray-50); }
:root[data-theme="dark"] .section::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); }
:root[data-theme="dark"] .section-light::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); }
:root[data-theme="dark"] .section-dark { background: var(--navy); }

:root[data-theme="dark"] .page-header { background: var(--navy); }
:root[data-theme="dark"] .page-header::before { background: linear-gradient(135deg, rgba(212,175,55,0.25), transparent); }
:root[data-theme="dark"] .page-header::after { background: radial-gradient(ellipse at 30% 50%, rgba(212,175,55,0.1), transparent 60%); }

/* Hero dark mode – cinematic black-and-gold aesthetic */
:root[data-theme="dark"] .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}
:root[data-theme="dark"] .hero-title {
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 4px 60px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] .hero-title span {
  text-shadow: 0 0 24px rgba(212,175,55,0.3);
}
:root[data-theme="dark"] .hero-description {
  color: #E5E7EB;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
:root[data-theme="dark"] .hero-particle {
  opacity: 0.35;
}
:root[data-theme="dark"] .hero-scroll {
  color: rgba(255,255,255,0.5);
}
:root[data-theme="dark"] .hero-scroll-icon {
  border-color: rgba(255,255,255,0.4);
}

/* Card backgrounds */
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .event-card,
:root[data-theme="dark"] .country-item,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .detail-content .content-body,
:root[data-theme="dark"] .hof-card,
:root[data-theme="dark"] .master-card,
:root[data-theme="dark"] .instructor-card,
:root[data-theme="dark"] .blackbelt-card,
:root[data-theme="dark"] .accordion-item,
:root[data-theme="dark"] .flag-card,
:root[data-theme="dark"] .affiliated-group-card,
:root[data-theme="dark"] .related-item-card,
:root[data-theme="dark"] .value-card {
  background: #1a1a2e;
  border-color: #2a2a40;
}
:root[data-theme="dark"] .news-card:hover,
:root[data-theme="dark"] .item-card:hover,
:root[data-theme="dark"] .event-card:hover,
:root[data-theme="dark"] .country-item:hover,
:root[data-theme="dark"] .hof-card:hover,
:root[data-theme="dark"] .master-card:hover,
:root[data-theme="dark"] .instructor-card:hover,
:root[data-theme="dark"] .blackbelt-card:hover,
:root[data-theme="dark"] .flag-card:hover,
:root[data-theme="dark"] .affiliated-group-card:hover,
:root[data-theme="dark"] .related-item-card:hover {
  border-color: #3d3d56;
}

/* Text colors inside cards/sections */
:root[data-theme="dark"] .about-content h2,
:root[data-theme="dark"] .contact-info h3,
:root[data-theme="dark"] .contact-detail h4,
:root[data-theme="dark"] .event-info h3,
:root[data-theme="dark"] .events-category-title,
:root[data-theme="dark"] .detail-content .content-body h1,
:root[data-theme="dark"] .detail-content .content-body h2,
:root[data-theme="dark"] .detail-content .content-body h3,
:root[data-theme="dark"] .item-card-body h3,
:root[data-theme="dark"] .news-card-title,
:root[data-theme="dark"] .hof-card h3,
:root[data-theme="dark"] .master-name,
:root[data-theme="dark"] .instructor-name,
:root[data-theme="dark"] .blackbelt-name,
:root[data-theme="dark"] .detail-related h2,
:root[data-theme="dark"] .related-item-card-body h4,
:root[data-theme="dark"] .assoc-continent-header,
:root[data-theme="dark"] .flag-card-name,
:root[data-theme="dark"] .affiliated-group-card h4,
:root[data-theme="dark"] .na-country-title,
:root[data-theme="dark"] .accordion-header {
  color: var(--gray-800);
}
:root[data-theme="dark"] .about-content p,
:root[data-theme="dark"] .contact-info > p,
:root[data-theme="dark"] .contact-detail p,
:root[data-theme="dark"] .event-info p,
:root[data-theme="dark"] .news-card-excerpt,
:root[data-theme="dark"] .item-card-body p,
:root[data-theme="dark"] .accordion-body p,
:root[data-theme="dark"] .detail-content .content-body p,
:root[data-theme="dark"] .detail-description,
:root[data-theme="dark"] .detail-content .content-body .meta,
:root[data-theme="dark"] .detail-content .content-body ul li,
:root[data-theme="dark"] .hotf-card .year,
:root[data-theme="dark"] .affiliated-group-card .group-card-instructor,
:root[data-theme="dark"] .affiliated-group-card .group-card-city,
:root[data-theme="dark"] .master-rank,
:root[data-theme="dark"] .master-country,
:root[data-theme="dark"] .instructor-degree,
:root[data-theme="dark"] .instructor-country,
:root[data-theme="dark"] .instructor-club,
:root[data-theme="dark"] .blackbelt-rank,
:root[data-theme="dark"] .blackbelt-country,
:root[data-theme="dark"] .blackbelt-instructor,
:root[data-theme="dark"] .blackbelt-cert,
:root[data-theme="dark"] .na-profile-detail span,
:root[data-theme="dark"] .na-profile-detail a,
:root[data-theme="dark"] .group-profile-body .na-profile-detail,
:root[data-theme="dark"] .group-profile-desc,
:root[data-theme="dark"] .detail-info-row span,
:root[data-theme="dark"] .detail-info-row a {
  color: var(--gray-500);
}

:root[data-theme="dark"] .news-card-meta { color: var(--gray-500); }
:root[data-theme="dark"] .news-card-meta span { color: var(--gray-500); }
:root[data-theme="dark"] .news-card-meta i { color: var(--gold); }

/* Form elements */
:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea,
:root[data-theme="dark"] .form-group select {
  background: #1a1a2e;
  border-color: #2a2a40;
  color: var(--gray-800);
}
:root[data-theme="dark"] .form-group input:hover,
:root[data-theme="dark"] .form-group textarea:hover,
:root[data-theme="dark"] .form-group select:hover {
  border-color: #3d3d56;
  background: #1e1e32;
}
:root[data-theme="dark"] .form-group input:focus,
:root[data-theme="dark"] .form-group textarea:focus,
:root[data-theme="dark"] .form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
  background: #1e1e32;
}
:root[data-theme="dark"] .form-group label { color: var(--gray-600); }
:root[data-theme="dark"] .contact-detail-icon { background: rgba(255,255,255,0.06); }
:root[data-theme="dark"] .contact-detail:hover .contact-detail-icon { background: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .about-feature { background: rgba(255,255,255,0.06); color: var(--gray-700); }
:root[data-theme="dark"] .about-feature:hover { background: rgba(255,255,255,0.1); }
:root[data-theme="dark"] .about-image-badge { background: rgba(0,0,0,0.85); }
:root[data-theme="dark"] .about-image-badge-text h4 { color: var(--white); }
:root[data-theme="dark"] .about-image-badge-text p { color: var(--gray-400); }

/* Accordion */
:root[data-theme="dark"] .accordion-header { background: #1e1e32; }
:root[data-theme="dark"] .accordion-header:hover { background: #252540; }

/* Tables */
:root[data-theme="dark"] .table-wrap { background: #1a1a2e; border-color: #2a2a40; }
:root[data-theme="dark"] table th { background: #1e1e32; color: var(--gray-700); }
:root[data-theme="dark"] table td { border-color: #2a2a40; }
:root[data-theme="dark"] table tr:hover td { background: #252540; }

/* Search */
:root[data-theme="dark"] .search-input-wrap input {
  background: #1a1a2e;
  border-color: #2a2a40;
  color: var(--gray-800);
}
:root[data-theme="dark"] .search-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}
:root[data-theme="dark"] .search-result-item { background: #1a1a2e; border-color: #2a2a40; }
:root[data-theme="dark"] .search-result-item:hover { background: #252540; }
:root[data-theme="dark"] .search-result-item.highlighted { background: #252540; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.15); }
:root[data-theme="dark"] .search-result-item h4 { color: var(--gray-800); }
:root[data-theme="dark"] .search-result-item p { color: var(--gray-500); }
:root[data-theme="dark"] .search-result-meta { color: var(--gray-500); }
:root[data-theme="dark"] .search-result-icon { background: #252540; color: var(--gold); }
:root[data-theme="dark"] .search-result-item.highlighted .search-result-icon { background: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .search-category-label { color: var(--gold); }

/* Filter buttons */
:root[data-theme="dark"] .filter-btn { border-color: #3d3d56; color: var(--gray-500); }
:root[data-theme="dark"] .filter-btn:hover { border-color: var(--gold); color: var(--gold); }
:root[data-theme="dark"] .filter-btn.active { background: var(--gradient-gold); border-color: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .filter-search { background: #1e1e32; border-color: #3d3d56; color: var(--gray-800); }
:root[data-theme="dark"] .filter-search:focus { border-color: var(--gold); }
:root[data-theme="dark"] .filter-search::placeholder { color: var(--gray-500); }
:root[data-theme="dark"] .filter-select { background-color: #1e1e32; border-color: #3d3d56; color: var(--gray-800); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
:root[data-theme="dark"] .filter-select:focus { border-color: var(--gold); }
:root[data-theme="dark"] .filter-select option { background: #1e1e32; color: var(--gray-800); }

:root[data-theme="dark"] .filter-bar { gap: 8px; }
:root[data-theme="dark"] .filter-bar .filter-search,
:root[data-theme="dark"] .filter-bar .filter-select { margin: 0; }

/* Empty state */
:root[data-theme="dark"] .empty-state i { color: #3d3d56; }
:root[data-theme="dark"] .empty-state h3 { color: var(--gray-500); }

/* Skeleton */
:root[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e1e32 25%, #2a2a40 50%, #1e1e32 75%);
  background-size: 200% 100%;
}

/* Detail page */
:root[data-theme="dark"] .detail-section { border-color: #2a2a40; }
:root[data-theme="dark"] .detail-section-title { color: var(--gray-700); }
:root[data-theme="dark"] .detail-info-row { border-color: #2a2a40; }
:root[data-theme="dark"] .detail-info-row strong { color: var(--gray-400); }
:root[data-theme="dark"] .detail-figure i { background: #1e1e32; border-color: #2a2a40; color: var(--gray-500); }
:root[data-theme="dark"] .detail-figure .detail-image,
:root[data-theme="dark"] .detail-figure img { border-color: #2a2a40; }

/* Related items */
:root[data-theme="dark"] .related-items-row::-webkit-scrollbar-track { background: #1a1a2e; }
:root[data-theme="dark"] .related-items-row::-webkit-scrollbar-thumb { background: #3d3d56; }
:root[data-theme="dark"] .related-items-row::-webkit-scrollbar-thumb:hover { background: #5a5a72; }

/* Social links / detail social */
:root[data-theme="dark"] .detail-social-links a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); color: var(--gray-400); }
:root[data-theme="dark"] .detail-social-links a:hover { background: var(--gradient-gold); border-color: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .group-profile-social a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .group-profile-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Badge statuses */
:root[data-theme="dark"] .assoc-status-active { background: rgba(22,101,52,0.3); color: #86efac; }
:root[data-theme="dark"] .assoc-status-provisional { background: rgba(133,77,14,0.3); color: #fde68a; }
:root[data-theme="dark"] .assoc-status-suspended { background: rgba(153,27,27,0.3); color: #fca5a5; }
:root[data-theme="dark"] .assoc-status-inactive { background: #2a2a40; color: var(--gray-400); }
:root[data-theme="dark"] .instructor-cert-certified { background: rgba(22,101,52,0.3); color: #86efac; }
:root[data-theme="dark"] .instructor-cert-pending { background: rgba(133,77,14,0.3); color: #fde68a; }

/* Assorted section backgrounds */
:root[data-theme="dark"] .assoc-continent-count { background: #2a2a40; color: var(--gray-400); }
:root[data-theme="dark"] .assoc-continent-header { border-color: #2a2a40; }
:root[data-theme="dark"] .events-category-title { border-color: #2a2a40; }
:root[data-theme="dark"] .na-back-btn:hover { background: rgba(255,255,255,0.06); }
:root[data-theme="dark"] .section-light-bg::before {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px), repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}
:root[data-theme="dark"] .modal-close { background: #2a2a40; color: var(--gray-400); }
:root[data-theme="dark"] .modal-close:hover { background: #3d3d56; color: var(--gray-200); }

/* Nav dropdown in dark mode */
:root[data-theme="dark"] .nav-dropdown { background: rgba(10,22,40,0.98); }

/* Master/Instructor card avatar backgrounds */
:root[data-theme="dark"] .master-avatar,
:root[data-theme="dark"] .instructor-avatar,
:root[data-theme="dark"] .event-card-image,
:root[data-theme="dark"] .country-flag,
:root[data-theme="dark"] .related-item-card-image,
:root[data-theme="dark"] .about-image {
  background: linear-gradient(135deg, #0a1628, #1a1a2e);
}

/* Back link */
:root[data-theme="dark"] .back-link { background: rgba(255,255,255,0.06); }

/* People placeholder */
:root[data-theme="dark"] .blackbelt-icon { background: linear-gradient(135deg, var(--navy), #1a1a2e); }

/* Affiliation group logo placeholder */
:root[data-theme="dark"] .affiliated-group-card-logo { background: rgba(255,255,255,0.06); }

/* Document viewer */
:root[data-theme="dark"] .document-viewer { background: #1a1a2e; border-color: #2a2a40; }

/* Scroll progress */
:root[data-theme="dark"] .scroll-progress { background: var(--gradient-gold); }

/* Value cards */
:root[data-theme="dark"] .value-card { background: rgba(255,255,255,0.04); border-color: rgba(212,175,55,0.15); }
:root[data-theme="dark"] .value-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(212,175,55,0.3); }
:root[data-theme="dark"] .value-card p { color: var(--gray-400); }
:root[data-theme="dark"] .value-card h3 { color: var(--white); }

/* Legal content pages (Privacy, Terms, Cookies) */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-section { margin-bottom: 40px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.legal-section h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 20px 0 8px;
}
.legal-section p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section ul {
  list-style: disc;
  margin: 0 0 16px 20px;
}
.legal-section ul li {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 4px;
}
.legal-section a {
  color: var(--royal);
  text-decoration: underline;
  transition: var(--transition);
}
.legal-section a:hover { color: var(--gold); }
.legal-date {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
:root[data-theme="dark"] .legal-section h2 { color: var(--white); }
:root[data-theme="dark"] .legal-section h3 { color: var(--gray-200); }
:root[data-theme="dark"] .legal-section p,
:root[data-theme="dark"] .legal-section ul li { color: var(--gray-400); }
:root[data-theme="dark"] .legal-section a { color: var(--gold-light); }
:root[data-theme="dark"] .legal-section a:hover { color: var(--gold); }
