/* ========================================
   K.F.F. Mettenheim WordPress Theme
   Based on Prototype v3 - Style Guide Compliant
   ======================================== */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */

:root {
  /* Primary: Deep Catalonian Blue */
  --kff-primary: #00468E;
  --kff-primary-light: #5585D7;
  --kff-primary-lighter: #B3C7E7;
  --kff-primary-dark: #002d5c;

  /* Secondary: Warm Mediterranean Orange */
  --kff-secondary: #E77919;
  --kff-secondary-light: #FFBC3E;
  --kff-secondary-lighter: #FDD475;
  --kff-secondary-dark: #c45e05;

  /* Accent: Sunflower Yellow */
  --kff-accent: #F2EC00;
  --kff-accent-soft: #fffde6;

  /* Success/Teal */
  --kff-teal: #007770;
  --kff-teal-light: #00B1AC;

  /* Neutrals - CI Document Compliant */
  --kff-white: #ffffff;
  --kff-gray-50: #F8F8F8;
  --kff-gray-100: #F0F0F0;
  --kff-gray-200: #E0E0E0;
  --kff-gray-300: #BFBFBF;
  --kff-gray-500: #8C8C8C;
  --kff-gray-700: #4D4D4D;
  --kff-gray-900: #1a1a1a;

  /* Typography - Nunito (self-hosted via theme.json) */
  --font-primary: 'Nunito', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(0, 70, 142, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 70, 142, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 70, 142, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 70, 142, 0.16);
  --shadow-glow: 0 0 40px rgba(231, 121, 25, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.6s;

  /* Theme-aware colors (light mode defaults) */
  --bg-body: var(--kff-gray-50);
  --bg-card: var(--kff-white);
  --bg-section-alt: var(--kff-white);
  --bg-section-warm: var(--kff-gray-50);
  --bg-input: var(--kff-white);
  --text-primary: var(--kff-gray-900);
  --text-secondary: var(--kff-gray-700);
  --text-muted: var(--kff-gray-500);
  --border-color: var(--kff-gray-200);
  --border-subtle: var(--kff-gray-100);
  --shadow-color: rgba(0, 70, 142, 0.08);
}

/* ========================================
   Dark Mode Support
   ======================================== */

/* Dark mode via data attribute (for manual toggle) */
[data-theme="dark"] {
  --bg-body: #0f1419;
  --bg-card: #1a2332;
  --bg-card-elevated: #232d3f;
  --bg-section-alt: #151c28;
  --bg-section-warm: #0f1419;
  --bg-input: #232d3f;

  --text-primary: #f0f2f4;
  --text-secondary: #c8d0d8;
  --text-muted: #8c99a8;

  --border-color: #2d3a4d;
  --border-subtle: #232d3f;
  --border-card: #3a4a5f;

  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

  --kff-gray-50: #0f1419;
  --kff-gray-100: #1a2332;
  --kff-gray-200: #2d3a4d;
  --kff-gray-300: #4a5a70;
  --kff-gray-500: #8c99a8;
  --kff-gray-700: #c8d0d8;
  --kff-gray-900: #f0f2f4;
}

/* Auto dark mode via OS preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-body: #0f1419;
    --bg-card: #1a2332;
    --bg-card-elevated: #232d3f;
    --bg-section-alt: #151c28;
    --bg-section-warm: #0f1419;
    --bg-input: #232d3f;

    --text-primary: #f0f2f4;
    --text-secondary: #c8d0d8;
    --text-muted: #8c99a8;

    --border-color: #2d3a4d;
    --border-subtle: #232d3f;
    --border-card: #3a4a5f;

    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    --kff-gray-50: #0f1419;
    --kff-gray-100: #1a2332;
    --kff-gray-200: #2d3a4d;
    --kff-gray-300: #4a5a70;
    --kff-gray-500: #8c99a8;
    --kff-gray-700: #c8d0d8;
    --kff-gray-900: #f0f2f4;
  }
}

/* Smooth theme transition */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ========================================
   Dark Mode Component Overrides
   ======================================== */

[data-theme="dark"] .card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .trainer-card,
[data-theme="dark"] .comm-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .team-card,
  :root:not([data-theme="light"]) .info-card,
  :root:not([data-theme="light"]) .trainer-card,
  :root:not([data-theme="light"]) .comm-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
  }
}

[data-theme="dark"] .group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
  }
}

[data-theme="dark"] .group-card-subtitle {
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group-card-subtitle {
    color: var(--text-muted);
  }
}

[data-theme="dark"] .group-card-title {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group-card-title {
    color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .btn-secondary-dark {
  border-color: var(--kff-primary-light);
  color: var(--kff-primary-light);
}

[data-theme="dark"] .btn-secondary-dark:hover {
  background: var(--kff-primary-light);
  color: var(--bg-body);
  border-color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-secondary-dark {
    border-color: var(--kff-primary-light);
    color: var(--kff-primary-light);
  }
  :root:not([data-theme="light"]) .btn-secondary-dark:hover {
    background: var(--kff-primary-light);
    color: var(--bg-body);
    border-color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .stats {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stats {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
  }
}

[data-theme="dark"] .stat-item::after {
  background: var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-item::after {
    background: var(--border-color);
  }
}

[data-theme="dark"] .stat-icon {
  background: linear-gradient(135deg, rgba(255, 157, 61, 0.2) 0%, rgba(255, 157, 61, 0.05) 100%);
  border: 1px solid rgba(255, 157, 61, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-icon {
    background: linear-gradient(135deg, rgba(255, 157, 61, 0.2) 0%, rgba(255, 157, 61, 0.05) 100%);
    border: 1px solid rgba(255, 157, 61, 0.3);
  }
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .news-card-title,
[data-theme="dark"] .team-card-title,
[data-theme="dark"] .info-card-title,
[data-theme="dark"] .post-title,
[data-theme="dark"] .trainer-name,
[data-theme="dark"] .philosophy-quote,
[data-theme="dark"] .stat-number {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-title,
  :root:not([data-theme="light"]) .card-title,
  :root:not([data-theme="light"]) .news-card-title,
  :root:not([data-theme="light"]) .team-card-title,
  :root:not([data-theme="light"]) .info-card-title,
  :root:not([data-theme="light"]) .post-title,
  :root:not([data-theme="light"]) .trainer-name,
  :root:not([data-theme="light"]) .philosophy-quote,
  :root:not([data-theme="light"]) .stat-number {
    color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .team-card-text,
[data-theme="dark"] .info-card-text,
[data-theme="dark"] .trainer-bio,
[data-theme="dark"] .philosophy-text,
[data-theme="dark"] .about-content p,
[data-theme="dark"] .trial-text,
[data-theme="dark"] .groups-intro,
[data-theme="dark"] .comm-intro {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-text,
  :root:not([data-theme="light"]) .team-card-text,
  :root:not([data-theme="light"]) .info-card-text,
  :root:not([data-theme="light"]) .trainer-bio,
  :root:not([data-theme="light"]) .philosophy-text,
  :root:not([data-theme="light"]) .about-content p,
  :root:not([data-theme="light"]) .trial-text,
  :root:not([data-theme="light"]) .groups-intro,
  :root:not([data-theme="light"]) .comm-intro {
    color: var(--text-secondary);
  }
}

[data-theme="dark"] .philosophy-text strong {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .philosophy-text strong {
    color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-subtitle {
    color: var(--text-muted);
  }
}

[data-theme="dark"] .card-footer {
  border-top-color: var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-footer {
    border-top-color: var(--border-color);
  }
}

[data-theme="dark"] .team-list li {
  border-bottom-color: var(--border-color);
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .team-list li {
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
  }
}

[data-theme="dark"] .comm-list li {
  background: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .comm-list li:hover {
  background: rgba(85, 133, 215, 0.1);
  border-color: var(--kff-primary);
}

[data-theme="dark"] .comm-content strong {
  color: var(--kff-primary-light);
}

[data-theme="dark"] .comm-content span {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .comm-list li {
    background: var(--bg-section-alt);
    border: 1px solid var(--border-subtle);
  }
  :root:not([data-theme="light"]) .comm-list li:hover {
    background: rgba(85, 133, 215, 0.1);
    border-color: var(--kff-primary);
  }
  :root:not([data-theme="light"]) .comm-content strong {
    color: var(--kff-primary-light);
  }
  :root:not([data-theme="light"]) .comm-content span {
    color: var(--text-secondary);
  }
}

[data-theme="dark"] .card-link {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-link {
    color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .btn-outline {
  border-color: var(--kff-primary-light);
  color: var(--kff-primary-light);
  background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--kff-primary-light);
  color: var(--bg-body);
  border-color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline {
    border-color: var(--kff-primary-light);
    color: var(--kff-primary-light);
    background: transparent;
  }
  :root:not([data-theme="light"]) .btn-outline:hover {
    background: var(--kff-primary-light);
    color: var(--bg-body);
    border-color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
  }
  :root:not([data-theme="light"]) .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
  }
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2035 100%);
}

[data-theme="dark"] .cta-title {
  color: #ffffff;
}

[data-theme="dark"] .cta-text {
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2035 100%);
  }
  :root:not([data-theme="light"]) .cta-title {
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .cta-text {
    color: rgba(255, 255, 255, 0.85);
  }
}

[data-theme="dark"] .philosophy-section {
  background: var(--bg-section-alt);
}

[data-theme="dark"] .philosophy-section::before {
  background: rgba(85, 133, 215, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .philosophy-section {
    background: var(--bg-section-alt);
  }
  :root:not([data-theme="light"]) .philosophy-section::before {
    background: rgba(85, 133, 215, 0.1);
  }
}

[data-theme="dark"] .location-box {
  background: linear-gradient(135deg, rgba(85, 133, 215, 0.15) 0%, var(--bg-card) 100%);
  border-left-color: var(--kff-secondary);
}

[data-theme="dark"] .location-box h4 {
  color: var(--kff-primary-light);
}

[data-theme="dark"] .location-box p {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .location-box {
    background: linear-gradient(135deg, rgba(85, 133, 215, 0.15) 0%, var(--bg-card) 100%);
    border-left-color: var(--kff-secondary);
  }
  :root:not([data-theme="light"]) .location-box h4 {
    color: var(--kff-primary-light);
  }
  :root:not([data-theme="light"]) .location-box p {
    color: var(--text-secondary);
  }
}

[data-theme="dark"] .schedule-table {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .schedule-table th {
  background: var(--kff-primary);
}

[data-theme="dark"] .schedule-table td {
  border-bottom-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .schedule-table td strong {
  color: var(--kff-primary-light);
}

[data-theme="dark"] .schedule-table tr:hover td {
  background: rgba(85, 133, 215, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schedule-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
  }
  :root:not([data-theme="light"]) .schedule-table th {
    background: var(--kff-primary);
  }
  :root:not([data-theme="light"]) .schedule-table td {
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
  }
  :root:not([data-theme="light"]) .schedule-table td strong {
    color: var(--kff-primary-light);
  }
  :root:not([data-theme="light"]) .schedule-table tr:hover td {
    background: rgba(85, 133, 215, 0.1);
  }
}

[data-theme="dark"] .breadcrumbs {
  color: var(--text-muted);
}

[data-theme="dark"] .breadcrumbs a {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .breadcrumbs {
    color: var(--text-muted);
  }
  :root:not([data-theme="light"]) .breadcrumbs a {
    color: var(--kff-primary-light);
  }
}

[data-theme="dark"] .site-footer {
  background: #080c10;
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-widget h3 {
  color: #ffffff;
}

[data-theme="dark"] .footer-widget a {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-widget a:hover {
  color: var(--kff-secondary);
}

[data-theme="dark"] .footer-widget p {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-copyright {
  color: var(--text-muted);
}

[data-theme="dark"] .footer-links a {
  color: var(--text-muted);
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--kff-secondary);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer {
    background: #080c10;
    border-top: 1px solid var(--border-color);
  }
  :root:not([data-theme="light"]) .footer-widget h3 {
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .footer-widget a {
    color: var(--text-secondary);
  }
  :root:not([data-theme="light"]) .footer-widget a:hover {
    color: var(--kff-secondary);
  }
  :root:not([data-theme="light"]) .footer-widget p {
    color: var(--text-secondary);
  }
  :root:not([data-theme="light"]) .footer-copyright {
    color: var(--text-muted);
  }
  :root:not([data-theme="light"]) .footer-links a {
    color: var(--text-muted);
  }
  :root:not([data-theme="light"]) .footer-links a:hover {
    color: var(--kff-secondary);
  }
  :root:not([data-theme="light"]) .footer-bottom {
    border-top-color: var(--border-color);
  }
}

[data-theme="dark"] .gallery-item {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-section-alt) 100%);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .gallery-item:hover {
  background: linear-gradient(135deg, rgba(85, 133, 215, 0.2) 0%, var(--bg-card) 100%);
  color: var(--kff-primary-light);
  border-color: var(--kff-primary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gallery-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-section-alt) 100%);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
  }
  :root:not([data-theme="light"]) .gallery-item:hover {
    background: linear-gradient(135deg, rgba(85, 133, 215, 0.2) 0%, var(--bg-card) 100%);
    color: var(--kff-primary-light);
    border-color: var(--kff-primary);
  }
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--kff-white);
  font-size: 1.25rem;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.3s var(--ease-spring);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: translateY(20px) rotate(-90deg);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: translateY(-20px) rotate(90deg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    opacity: 0;
    transform: translateY(-20px) rotate(90deg);
  }
}

/* ========================================
   Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  overflow-x: hidden;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--kff-primary-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--kff-primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Selection style */
::selection {
  background: var(--kff-secondary);
  color: var(--kff-white);
}

/* ========================================
   Site Header
   ======================================== */

.site-header {
  background: var(--kff-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--duration-base) var(--ease-out);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kff-secondary) 0%, var(--kff-accent) 50%, var(--kff-secondary) 100%);
  z-index: -1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.site-logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform var(--duration-base) var(--ease-spring);
}

.site-logo:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.site-logo-text {
  color: var(--kff-white);
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: none;
}

@media (min-width: 1024px) {
  .site-logo-text {
    display: block;
  }
}

/* Desktop Navigation */
.main-nav {
  display: none;
  gap: var(--space-1);
  list-style: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--kff-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  transform: translateX(-50%);
}

.main-nav > li > a:hover {
  color: var(--kff-white);
}

.main-nav > li > a:hover::after {
  width: calc(100% - var(--space-6));
}

.main-nav > li > a .dropdown-arrow,
.main-nav > li > a .fa-chevron-down {
  font-size: 0.625rem;
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.7;
}

.main-nav > li:hover > a .dropdown-arrow,
.main-nav > li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Submenu */
.main-nav .sub-menu,
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--kff-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  list-style: none;
  padding: var(--space-3) 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid rgba(0, 70, 142, 0.08);
}

.main-nav .sub-menu::before,
.main-nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--kff-white);
}

.main-nav > li:hover > .sub-menu,
.main-nav > li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.main-nav .sub-menu li a,
.main-nav .dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--kff-gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.main-nav .sub-menu li a::before,
.main-nav .dropdown-menu li a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration-fast) var(--ease-spring);
}

.main-nav .sub-menu li a:hover,
.main-nav .dropdown-menu li a:hover {
  background: var(--kff-primary-lighter);
  color: var(--kff-primary);
}

.main-nav .sub-menu li a:hover::before,
.main-nav .dropdown-menu li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Dark Mode - Desktop Dropdown */
[data-theme="dark"] .main-nav .sub-menu,
[data-theme="dark"] .main-nav .dropdown-menu {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .main-nav .sub-menu::before,
[data-theme="dark"] .main-nav .dropdown-menu::before {
  border-bottom-color: var(--bg-card);
}

[data-theme="dark"] .main-nav .sub-menu li a,
[data-theme="dark"] .main-nav .dropdown-menu li a {
  color: var(--text-secondary);
}

[data-theme="dark"] .main-nav .sub-menu li a:hover,
[data-theme="dark"] .main-nav .dropdown-menu li a:hover {
  background: rgba(85, 133, 215, 0.15);
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .main-nav .sub-menu,
  :root:not([data-theme="light"]) .main-nav .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
  }
  :root:not([data-theme="light"]) .main-nav .sub-menu::before,
  :root:not([data-theme="light"]) .main-nav .dropdown-menu::before {
    border-bottom-color: var(--bg-card);
  }
  :root:not([data-theme="light"]) .main-nav .sub-menu li a,
  :root:not([data-theme="light"]) .main-nav .dropdown-menu li a {
    color: var(--text-secondary);
  }
  :root:not([data-theme="light"]) .main-nav .sub-menu li a:hover,
  :root:not([data-theme="light"]) .main-nav .dropdown-menu li a:hover {
    background: rgba(85, 133, 215, 0.15);
    color: var(--kff-primary-light);
  }
}

/* Header Actions (theme toggle + mobile menu) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.2);
}

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

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--kff-white);
  margin: 3px 0;
  transition: all var(--duration-base) var(--ease-out);
  border-radius: var(--radius-full);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 45, 92, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-out);
  z-index: 10000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  overflow-y: auto;
  transition: all var(--duration-base) var(--ease-out);
  z-index: 10001;
  padding-top: 80px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--kff-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.mobile-nav {
  list-style: none;
  padding: var(--space-4);
}

.mobile-nav > li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--kff-white);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: var(--space-4) var(--space-2);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav > li > a:hover {
  padding-left: var(--space-4);
}

.mobile-nav > li > a .dropdown-arrow,
.mobile-nav > li > a .fa-chevron-down {
  font-size: 0.75rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.mobile-nav > li.open > a .dropdown-arrow,
.mobile-nav > li.open > a .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-nav .mobile-sub-menu,
.mobile-nav .dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
  border-radius: var(--radius-md);
}

.mobile-nav > li.open > .mobile-sub-menu,
.mobile-nav > li.open > .dropdown-menu,
.mobile-nav .dropdown-menu.active {
  max-height: 500px;
}

.mobile-nav .mobile-sub-menu li a,
.mobile-nav .dropdown-menu li a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav .mobile-sub-menu li a:hover,
.mobile-nav .dropdown-menu li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--kff-white);
  padding-left: var(--space-8);
}

/* WordPress Menu Classes Compatibility */
.nav-item-with-dropdown {
  position: relative;
}

.view-all-item {
  display: none;
}

@media (max-width: 1023px) {
  .view-all-item {
    display: list-item;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .view-all-item a {
    font-weight: 600;
    color: var(--kff-white) !important;
    background: rgba(255,255,255,0.1);
  }

  .view-all-item a:hover {
    background: rgba(255,255,255,0.2) !important;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  overflow: hidden;
  padding: var(--space-10) 0;
}

/* Animated geometric pattern background */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px);
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 180px;
  height: 180px;
  background: var(--kff-secondary);
  top: -60px;
  right: -30px;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 120px;
  height: 120px;
  background: var(--kff-accent);
  bottom: 10%;
  left: -30px;
  transform: rotate(15deg);
  animation-delay: -5s;
}

.hero-shape-3 {
  width: 90px;
  height: 90px;
  background: var(--kff-teal);
  top: 30%;
  right: 8%;
  transform: rotate(-20deg);
  animation-delay: -10s;
}

.hero-shape-4 {
  width: 60px;
  height: 60px;
  background: var(--kff-white);
  bottom: 15%;
  right: 15%;
  border-radius: var(--radius-full);
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-5deg);
  }
}

/* Soccer field line decoration */
.hero-field-lines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.hero-field-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  border: 2px solid var(--kff-white);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
}

.hero-field-lines::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid var(--kff-white);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--kff-accent);
  color: #1a1a1a;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  animation: slideDown 0.8s var(--ease-out) both;
  box-shadow: 0 4px 20px rgba(242, 236, 0, 0.4);
}

.hero-badge i {
  font-size: 0.75rem;
}

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

.hero-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  animation: slideUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title span {
  display: block;
  color: var(--kff-secondary);
}

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

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-6);
  animation: slideUp 0.8s var(--ease-out) 0.2s both;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease-out) 0.3s both;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kff-secondary) 0%, var(--kff-secondary-dark) 100%);
  color: var(--kff-white);
  box-shadow: 0 4px 16px rgba(231, 121, 25, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(231, 121, 25, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--kff-white);
  color: var(--kff-white);
}

.btn-secondary:hover {
  background: var(--kff-white);
  color: var(--kff-primary);
  transform: translateY(-3px);
}

.btn-secondary-dark {
  background: transparent;
  border: 2px solid var(--kff-primary);
  color: var(--kff-primary);
}

.btn-secondary-dark:hover {
  background: var(--kff-primary);
  color: var(--kff-white);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border-color: var(--kff-primary);
  color: var(--kff-primary);
}

.btn-outline:hover {
  background: var(--kff-primary);
  color: var(--kff-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
  background: var(--bg-card);
  padding: var(--space-12) 0;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: 0 -20px 60px var(--shadow-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

.stat-item {
  padding: var(--space-4);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: var(--kff-gray-200);
}

.stat-item:last-child::after,
.stat-item:nth-child(2)::after {
  display: none;
}

@media (min-width: 769px) {
  .stat-item:nth-child(2)::after {
    display: block;
  }
  .stat-item:last-child::after {
    display: none;
  }
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--kff-secondary-lighter) 0%, var(--kff-gray-50) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--kff-secondary);
  transition: all var(--duration-base) var(--ease-spring);
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--kff-secondary) 0%, var(--kff-secondary-dark) 100%);
  color: var(--kff-white);
}

.stat-number {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--kff-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--kff-gray-500);
  font-weight: 500;
}

/* ========================================
   Section Styles
   ======================================== */

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-warm {
  background: var(--bg-section-warm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kff-secondary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--kff-primary);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--kff-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Container */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

/* Top Accent Bar */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kff-primary) 0%, var(--kff-secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Image Link Wrapper */
.card-image-link {
  display: block;
}

/* Image Wrapper */
.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card-image {
  transform: scale(1.08);
}

/* Gradient Overlay */
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 70, 142, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.card:hover .card-image-overlay {
  opacity: 1;
}

/* Card Body */
.card-body {
  padding: var(--space-6);
}

/* Orange Category Label */
.card-meta {
  font-size: 0.8125rem;
  color: var(--kff-secondary);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Title */
.card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--kff-secondary);
}

/* Text */
.card-text {
  color: var(--kff-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Footer Row */
.card-footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--kff-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-date {
  font-size: 0.875rem;
  color: var(--kff-gray-500);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--kff-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.card-link:hover {
  color: var(--kff-secondary);
  gap: var(--space-3);
}

/* Card Image Fallback (for posts without featured images) */
.card-image-fallback {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-fallback i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover .card-image-fallback i {
  color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

/* ========================================
   Philosophy Section
   ======================================== */

.philosophy-section {
  background: var(--bg-section-alt);
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--kff-primary-lighter);
  border-radius: var(--radius-full);
  opacity: 0.5;
}

.philosophy-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-quote {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--kff-primary);
  line-height: 1.4;
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
}

.philosophy-quote::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  color: var(--kff-secondary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.philosophy-text {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--kff-gray-700);
  text-align: center;
  margin-bottom: var(--space-6);
}

.philosophy-text strong {
  color: var(--kff-primary);
  font-weight: 700;
}

.philosophy-goal {
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  border-radius: var(--radius-xl);
  margin: var(--space-10) 0;
}

.philosophy-goal-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kff-secondary);
  margin-bottom: var(--space-2);
}

.philosophy-goal-text {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--kff-white);
}

/* ========================================
   Teams Overview
   ======================================== */

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.team-card:hover .team-card-image img {
  transform: scale(1.1);
}

.team-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--kff-primary) 0%, transparent 60%);
}

.team-card-icon {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-5);
  width: 56px;
  height: 56px;
  background: var(--kff-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--kff-white);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(231, 121, 25, 0.4);
}

.team-card-body {
  padding: var(--space-6);
}

.team-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-3);
}

.team-card-text {
  color: var(--kff-gray-700);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.team-list {
  list-style: none;
  margin-bottom: var(--space-6);
}

.team-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--kff-gray-100);
  font-weight: 500;
  color: var(--kff-gray-700);
}

.team-list li:last-child {
  border-bottom: none;
}

.team-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ========================================
   Groups Showcase
   ======================================== */

.groups-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
  color: var(--kff-gray-700);
  font-size: 1.125rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
}

.group-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--duration-base) var(--ease-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.group-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.group-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

.group-card-content {
  position: relative;
  z-index: 1;
}

.group-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--duration-base);
}

.group-card:hover img {
  filter: brightness(1.1) contrast(1.05);
  transform: scale(1.05);
}

.group-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-1);
  transition: color var(--duration-base);
}

.group-card:hover .group-card-title {
  color: var(--kff-white);
}

.group-card-subtitle {
  font-size: 0.875rem;
  color: var(--kff-gray-500);
  transition: color var(--duration-base);
}

.group-card:hover .group-card-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  color: var(--kff-white);
  text-align: center;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-4);
  color: inherit;
}

.cta-text {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--kff-gray-900);
  color: var(--kff-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-widget h3 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: var(--space-5);
  color: var(--kff-white);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: var(--space-3);
}

.footer-widget a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-widget a:hover {
  color: var(--kff-secondary);
  padding-left: var(--space-2);
}

.footer-widget p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.sponsor-grid a,
.sponsor-grid .sponsor-item {
  display: block;
  transition: all var(--duration-fast) var(--ease-out);
}

.sponsor-grid a:hover {
  transform: scale(1.1);
}

.sponsor-logo {
  height: 50px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  background: var(--kff-white);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.sponsor-logo:hover {
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--kff-secondary);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  color: var(--kff-white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  opacity: 0.1;
}

.page-header h1 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3);
  position: relative;
}

.page-header-meta {
  font-size: 1.125rem;
  opacity: 0.85;
  position: relative;
}

/* News Archive Header - matches homepage section pattern */
.news-archive-header {
  background: var(--bg-section-warm);
  padding: var(--space-16) 0 var(--space-8);
}

.news-archive-header .section-header {
  text-align: center;
  margin-bottom: 0;
}

.news-archive-header .section-title {
  margin-bottom: var(--space-3);
}

.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: 0.875rem;
  color: var(--kff-gray-500);
}

.breadcrumbs a {
  color: var(--kff-primary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumbs a:hover {
  color: var(--kff-secondary);
}

.breadcrumb-sep {
  margin: 0 var(--space-2);
  color: var(--kff-gray-300);
}

/* ========================================
   Info Cards
   ======================================== */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
  border: 2px solid transparent;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--kff-secondary);
}

.info-card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  filter: grayscale(0);
}

.info-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-3);
}

.info-card-text {
  color: var(--kff-gray-700);
  line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--kff-gray-700);
  margin-bottom: var(--space-6);
}

/* ========================================
   Schedule Table
   ======================================== */

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.schedule-table th {
  background: var(--kff-primary);
  color: var(--kff-white);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.schedule-table td {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--kff-gray-100);
  color: var(--kff-gray-700);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: var(--kff-primary-lighter);
}

.schedule-table td strong {
  color: var(--kff-primary);
}

/* ========================================
   Location Box
   ======================================== */

.location-box {
  background: linear-gradient(135deg, var(--kff-primary-lighter) 0%, var(--kff-gray-50) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-8);
  border-left: 4px solid var(--kff-secondary);
}

.location-box h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--kff-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.location-box h4 i {
  color: var(--kff-secondary);
}

.location-box p {
  color: var(--kff-gray-700);
  line-height: 1.8;
}

/* ========================================
   Trainer Cards
   ======================================== */

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.trainer-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.trainer-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 70, 142, 0.3);
}

.trainer-name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-2);
}

.trainer-role {
  color: var(--kff-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.trainer-bio {
  color: var(--kff-gray-700);
  line-height: 1.7;
}

/* ========================================
   Communication Section
   ======================================== */

.comm-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}

.comm-intro {
  margin-bottom: var(--space-6);
  color: var(--kff-gray-700);
}

.comm-list {
  list-style: none;
}

.comm-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--kff-gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  transition: all var(--duration-fast);
}

.comm-list li:last-child {
  margin-bottom: 0;
}

.comm-list li:hover {
  background: var(--kff-primary-lighter);
  transform: translateX(4px);
}

.comm-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.comm-content strong {
  display: block;
  color: var(--kff-primary);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-1);
}

.comm-content span {
  color: var(--kff-gray-700);
  font-size: 0.9375rem;
}

/* ========================================
   Gallery Grid
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--kff-gray-100) 0%, var(--kff-gray-200) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kff-gray-500);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all var(--duration-base);
  cursor: pointer;
}

.gallery-item:hover {
  background: linear-gradient(135deg, var(--kff-primary-lighter) 0%, var(--kff-gray-200) 100%);
  color: var(--kff-primary);
  transform: scale(1.02);
}

/* ========================================
   Trial CTA
   ======================================== */

.trial-section {
  text-align: center;
}

.trial-section .section-title {
  margin-bottom: var(--space-4);
}

.trial-text {
  max-width: 600px;
  margin: 0 auto var(--space-8);
  color: var(--kff-gray-700);
  font-size: 1.125rem;
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   Utility Classes
   ======================================== */

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

.mb-xl {
  margin-bottom: var(--space-8);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
  .stats {
    margin-top: -30px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .hero {
    min-height: auto;
    padding: var(--space-10) 0 var(--space-12);
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }

  .hero-shape-1 {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -20px;
  }

  .hero-shape-2 {
    width: 70px;
    height: 70px;
    left: -20px;
  }

  .hero-shape-3 {
    width: 50px;
    height: 50px;
  }

  .hero-shape-4 {
    width: 35px;
    height: 35px;
  }

  .hero-field-lines::before {
    width: 180px;
    height: 180px;
  }

  .hero-field-lines::after {
    width: 50px;
    height: 50px;
  }

  .stat-item::after {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   WordPress Content Styles
   ======================================== */

.content-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.entry-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--kff-gray-200);
}

.entry-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--kff-primary);
  margin: 0;
  line-height: 1.2;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--kff-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.entry-content p {
  margin-bottom: var(--space-6);
}

.entry-content .btn,
.entry-content .wp-block-button__link {
  margin-top: var(--space-6);
}

/* Add spacing for paragraphs containing button-styled links */
.entry-content p:has(.btn),
.entry-content p:has(.btn-primary),
.post-content p:has(.btn),
.post-content p:has(.wp-block-button__link) {
  margin-top: var(--space-4);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.entry-content li {
  margin-bottom: var(--space-2);
}

.entry-content a {
  color: var(--kff-primary);
  text-decoration: underline;
  transition: color var(--duration-fast);
}

.entry-content a:hover {
  color: var(--kff-secondary);
}

/* Preserve button colors in entry-content */
.entry-content .btn,
.entry-content .btn-primary,
.entry-content .btn-secondary {
  text-decoration: none;
}

.entry-content .btn-primary {
  color: var(--kff-white);
}

.entry-content .btn-secondary {
  color: var(--kff-white);
}

.entry-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  border-left: 4px solid var(--kff-secondary);
  background: var(--bg-section-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ========================================
   WordPress Block Styles
   ======================================== */

.wp-block-button__link,
.wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: linear-gradient(135deg, var(--kff-secondary) 0%, var(--kff-secondary-dark) 100%);
  color: var(--kff-white);
  box-shadow: 0 4px 16px rgba(231, 121, 25, 0.4);
  border: none;
}

.wp-block-button__link:hover,
.wp-block-file__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(231, 121, 25, 0.5);
  color: var(--kff-white);
}

/* ========================================
   News Grid (Blog Archive)
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image .news-icon {
  font-size: 4rem;
  color: rgba(255,255,255,0.3);
}

.news-card-body {
  padding: var(--space-6);
}

.news-card-meta {
  font-size: 0.8125rem;
  color: var(--kff-secondary);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.news-card-excerpt {
  color: var(--kff-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.news-card-date {
  font-size: 0.875rem;
  color: var(--kff-gray-500);
}

/* News Card Icon (for posts without thumbnails) */
.news-card-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.news-card-icon i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
}

/* News Card Content */
.news-card-content {
  padding: var(--space-6);
}

/* News Card Category */
.news-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-2);
}

/* News Archive Grid - 2 columns for archive pages */
.news-archive-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin-top: var(--space-12);
  margin-bottom: var(--space-8);
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-4);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--kff-primary);
  background: var(--bg-card);
  border: 2px solid var(--kff-gray-200);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination .page-numbers:hover:not(.current) {
  border-color: var(--kff-primary);
  background: var(--kff-primary);
  color: var(--kff-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination .page-numbers.current {
  background: var(--kff-primary);
  border-color: var(--kff-primary);
  color: var(--kff-white);
  cursor: default;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  gap: var(--space-2);
  padding: 0 var(--space-6);
  background: transparent;
  border-color: var(--kff-primary);
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
  background: var(--kff-primary);
  color: var(--kff-white);
}

/* Dark mode */
[data-theme="dark"] .pagination .page-numbers {
  background: var(--bg-card);
  border-color: var(--kff-gray-700);
  color: var(--kff-primary-light);
}

[data-theme="dark"] .pagination .page-numbers:hover:not(.current) {
  border-color: var(--kff-primary-light);
  background: var(--kff-primary-light);
  color: var(--kff-gray-900);
}

[data-theme="dark"] .pagination .page-numbers.current {
  background: var(--kff-primary-light);
  border-color: var(--kff-primary-light);
  color: var(--kff-gray-900);
}

/* Mobile: smaller touch targets */
@media (max-width: 480px) {
  .pagination .nav-links {
    gap: var(--space-1);
  }

  .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    font-size: 0.875rem;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    padding: 0 var(--space-4);
  }
}

/* ========================================
   Single Post Styles
   ======================================== */

.single-post {
  padding-bottom: var(--space-16);
}

.post-header {
  padding: var(--space-12) 0 var(--space-8);
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-date-enhanced {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.post-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--kff-primary);
  line-height: 1.2;
  margin: 0;
}

/* Featured Image */
.post-featured-image {
  margin-bottom: var(--space-8);
}

.post-featured-image .featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* Content Area */
.post-content {
  padding: var(--space-4) 0 var(--space-8);
}

.post-content .container {
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}

/* Tags Section */
.post-tags {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
}

.post-tags .container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}

.post-tags > .container > i {
  color: var(--text-muted);
}

.post-tags .tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.post-tags .tag:hover {
  background: var(--kff-primary);
  border-color: var(--kff-primary);
  color: white;
}

/* Post Footer */
.post-footer {
  padding: var(--space-4) 0;
}

.post-footer .container {
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .post-header {
    padding: var(--space-8) 0 var(--space-6);
  }

  .post-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ========================================
   Admin Bar Compatibility
   ======================================== */

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ========================================
   CONDENSED TEAM PAGE STYLES
   High information density layout
   ======================================== */

/* Compact Page Header - Minimal height */
.compact-page-header {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  padding: var(--space-8) 0;
  color: var(--kff-white);
  position: relative;
  overflow: hidden;
}

.compact-page-header::before {
  content: '';
  position: absolute;
  top: -100%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  opacity: 0.08;
}

.compact-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
}

.compact-header-text h1 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-1);
  line-height: 1.2;
  color: var(--kff-white) !important;
}

.compact-header-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.compact-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.compact-header-meta span:not(:last-child)::after {
  content: '|';
  margin-left: var(--space-2);
  opacity: 0.5;
}

/* Hero Card - Combines mascot + key info */
.team-hero-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6) !important;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6) !important;
  border: 1px solid var(--border-color);
}

.team-hero-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.team-hero-mascot img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--kff-gray-50) 0%, var(--kff-gray-100) 100%);
  padding: var(--space-3);
  border: 2px solid var(--border-subtle);
}

.mascot-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mascot-name {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--kff-secondary);
  font-size: 1.125rem;
}

.team-hero-info {
  display: flex;
  flex-direction: column;
}

.team-hero-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
}

.team-hero-description p:not(:last-child) {
  margin-bottom: var(--space-3);
}

/* Quick Facts Grid */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: auto;
}

.quick-fact {
  background: var(--bg-section-alt);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--kff-secondary);
}

.quick-fact-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.quick-fact-value {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--kff-primary);
  font-size: 0.9375rem;
}

[data-theme="dark"] .quick-fact-value {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quick-fact-value {
    color: var(--kff-primary-light);
  }
}

/* Two Column Layout */
.compact-two-col,
.compact-two-col.is-layout-flow,
.compact-two-col.wp-block-group {
  display: grid !important;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
  padding: 0 !important;
  margin: 0 !important;
}

/* Main Content Column */
.compact-main,
.compact-main.is-layout-flow,
.compact-main.wp-block-group {
  display: flex !important;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0 !important;
  margin: 0 !important;
}

/* Sidebar Column */
.compact-sidebar,
.compact-sidebar.is-layout-flow,
.compact-sidebar.wp-block-group {
  display: flex !important;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0 !important;
  margin: 0 !important;
}

/* Compact Section Box */
.compact-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5) !important;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.compact-box-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--kff-primary);
}

.compact-box-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kff-white);
  font-size: 1rem;
}

.compact-box-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1rem;
  color: var(--kff-primary);
  margin: 0;
}

[data-theme="dark"] .compact-box-title {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .compact-box-title {
    color: var(--kff-primary-light);
  }
}

/* Compact Schedule */
.compact-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  align-items: center;
}

.schedule-season {
  font-weight: 700;
  color: var(--kff-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .schedule-season {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schedule-season {
    color: var(--kff-primary-light);
  }
}

.schedule-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.schedule-details span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.schedule-details .time {
  font-weight: 700;
  color: var(--kff-secondary);
}

/* Compact Contact List */
.compact-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-item:hover {
  background: rgba(0, 70, 142, 0.08);
  transform: translateX(4px);
}

[data-theme="dark"] .contact-item:hover {
  background: rgba(85, 133, 215, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-item:hover {
    background: rgba(85, 133, 215, 0.15);
  }
}

.contact-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--kff-secondary) 0%, var(--kff-secondary-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kff-white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.contact-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Location Mini Card */
.location-mini {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--kff-primary-lighter) 0%, var(--bg-section-alt) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--kff-secondary);
}

[data-theme="dark"] .location-mini {
  background: linear-gradient(135deg, rgba(85, 133, 215, 0.15) 0%, var(--bg-section-alt) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .location-mini {
    background: linear-gradient(135deg, rgba(85, 133, 215, 0.15) 0%, var(--bg-section-alt) 100%);
  }
}

.location-mini-icon {
  color: var(--kff-secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.location-mini-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.location-mini-text strong {
  display: block;
  color: var(--kff-primary);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

[data-theme="dark"] .location-mini-text strong {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .location-mini-text strong {
    color: var(--kff-primary-light);
  }
}

/* Communication Tools */
.comm-tools {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.comm-tool {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comm-tool-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.comm-tool-name {
  font-weight: 700;
  color: var(--text-primary);
}

/* Compact CTA */
.compact-cta {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5) !important;
  color: var(--kff-white);
  text-align: center;
}

.compact-cta-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.compact-cta-text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: var(--space-4);
}

.compact-cta .btn {
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
}

/* Gallery Mini */
.gallery-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.gallery-mini-item {
  aspect-ratio: 1;
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid var(--border-subtle);
}

.gallery-mini-item:hover {
  background: var(--kff-primary);
  color: var(--kff-white);
  transform: scale(1.05);
}

/* Goals List */
.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.goals-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.goals-list li i {
  color: var(--kff-secondary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.goals-list li strong {
  color: var(--text-primary);
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-2);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.equipment-item i {
  color: var(--kff-secondary);
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Schedule Note */
.schedule-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 119, 112, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.schedule-note i {
  color: var(--kff-teal);
}

[data-theme="dark"] .schedule-note {
  background: rgba(0, 177, 172, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schedule-note {
    background: rgba(0, 177, 172, 0.1);
  }
}

/* Communication Intro */
.comm-intro {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

/* Compact CTA - allow strong text */
.compact-cta-text strong {
  color: var(--kff-accent);
}

/* Compact Section Spacing */
.compact-section {
  padding: var(--space-8) 0;
}

.compact-section-alt {
  background: var(--bg-section-alt);
}

/* Responsive Adjustments for Compact Layout */
@media (max-width: 968px) {
  .compact-two-col,
  .compact-two-col.is-layout-flow,
  .compact-two-col.wp-block-group {
    grid-template-columns: 1fr !important;
  }

  .compact-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .team-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-hero-mascot {
    order: -1;
  }

  .team-hero-mascot img {
    width: 120px;
    height: 120px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .compact-sidebar {
    grid-template-columns: 1fr;
  }

  .compact-header-meta span:not(:last-child)::after {
    display: none;
  }

  .compact-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

@media (max-width: 480px) {
  .gallery-mini {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ========================================
   Hero Photo Gallery - Action Showcase
   ======================================== */

.hero-gallery {
  position: relative;
  margin-bottom: var(--space-6) !important;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--kff-gray-900);
}

/* Main Carousel Container */
.hero-gallery-carousel {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-gallery-carousel {
    aspect-ratio: 16/10;
  }
}

/* Radio buttons for carousel control (hidden) */
.hero-gallery > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Slides container */
.hero-gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide - FADE transition (not slide) */
.hero-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}

.hero-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.4s var(--ease-out);
  cursor: pointer;
}

/* Active slide styles - applied via dynamic CSS :checked selectors in render.php */
/* No default active state here - first radio is checked by default which triggers dynamic CSS */

/* Gradient overlay for text readability */
.hero-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Gallery info bar */
.hero-gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 3;
}

.hero-gallery-caption {
  color: var(--kff-white);
}

.hero-gallery-caption-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kff-secondary-light);
  margin-bottom: var(--space-2);
}

.hero-gallery-caption-label i {
  font-size: 0.875rem;
}

.hero-gallery-caption-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .hero-gallery-caption-title {
    font-size: 1.125rem;
  }

  .hero-gallery-info {
    padding: var(--space-4);
  }
}

/* Thumbnail navigation strip */
.hero-gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1);
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-gallery-thumb {
  position: relative;
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s var(--ease-out);
  border: 2px solid transparent;
}

.hero-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gallery-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Caption text transitions - use opacity for CSS :checked transitions */
/* Caption text - hidden by default, shown via dynamic CSS with animation */
.hero-gallery-caption-text {
  display: none;
}

.hero-gallery-caption-texts {
  position: relative;
}

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

/* Navigation arrows - positioned absolutely on the carousel */
.hero-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--kff-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-size: 1rem;
}

.hero-gallery-nav-btn.hero-gallery-nav-prev {
  left: var(--space-4);
}

.hero-gallery-nav-btn.hero-gallery-nav-next {
  right: var(--space-4);
}

.hero-gallery-nav-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .hero-gallery-thumbs {
    display: none;
  }

  .hero-gallery-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .hero-gallery-nav-btn.hero-gallery-nav-prev {
    left: var(--space-2);
  }

  .hero-gallery-nav-btn.hero-gallery-nav-next {
    right: var(--space-2);
  }
}

/* Dot indicators for mobile */
.hero-gallery-dots {
  display: none;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-3) 0;
  background: var(--bg-card);
}

.hero-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--kff-gray-300);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

@media (max-width: 768px) {
  .hero-gallery-dots {
    display: flex;
  }
}

/* Counter badge */
.hero-gallery-counter {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--kff-white);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-gallery-counter i {
  color: var(--kff-secondary-light);
}

/* Dark mode adjustments */
[data-theme="dark"] .hero-gallery {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-gallery-dots {
  background: var(--bg-card);
}

[data-theme="dark"] .hero-gallery-dot {
  background: var(--kff-gray-700);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-gallery {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  :root:not([data-theme="light"]) .hero-gallery-dots {
    background: var(--bg-card);
  }

  :root:not([data-theme="light"]) .hero-gallery-dot {
    background: var(--kff-gray-700);
  }
}

/* Fullscreen button */
.hero-gallery-fullscreen {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: none;
  color: var(--kff-white);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.3s var(--ease-out);
}

.hero-gallery-fullscreen:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .hero-gallery-fullscreen span {
    display: none;
  }
}

/* ========================================
   Gallery Lightbox
   ======================================== */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(90vh - 80px);
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.gallery-lightbox.active .gallery-lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.gallery-lightbox-caption {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--kff-white);
  font-size: 1.125rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out) 0.1s, transform 0.3s var(--ease-out) 0.1s;
}

.gallery-lightbox.active .gallery-lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox-counter {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--kff-gray-400);
}

/* Close button */
.gallery-lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--kff-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 10;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.gallery-lightbox-close:focus {
  outline: 2px solid var(--kff-secondary);
  outline-offset: 2px;
}

/* Navigation arrows */
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--kff-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 10;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-nav:focus {
  outline: 2px solid var(--kff-secondary);
  outline-offset: 2px;
}

.gallery-lightbox-prev {
  left: var(--space-4);
}

.gallery-lightbox-next {
  right: var(--space-4);
}

/* Thumbnail strip at bottom */
.gallery-lightbox-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-2);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s var(--ease-out);
  border: 2px solid transparent;
}

.gallery-lightbox-thumb:hover {
  opacity: 0.8;
}

.gallery-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--kff-secondary);
  box-shadow: 0 0 12px rgba(231, 121, 25, 0.5);
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gallery-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .gallery-lightbox-prev {
    left: var(--space-2);
  }

  .gallery-lightbox-next {
    right: var(--space-2);
  }

  .gallery-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    top: var(--space-2);
    right: var(--space-2);
  }

  .gallery-lightbox-caption {
    font-size: 1rem;
    padding: 0 var(--space-4);
  }

  .gallery-lightbox-thumbs {
    display: none;
  }

  .gallery-lightbox-image {
    max-height: calc(85vh - 100px);
  }
}

/* Touch-friendly tap areas on mobile */
@media (max-width: 480px) {
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* Swipe hint for mobile */
.gallery-lightbox-swipe-hint {
  display: none;
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--kff-gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .gallery-lightbox-swipe-hint {
    display: block;
  }
}

/* ========================================
   Lightbox - Alternative Class Names
   (matches footer.php HTML structure)
   ======================================== */

/* Lightbox container */
.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

/* Main image container */
.lightbox-main-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(90vh - 120px);
}

.lightbox-main-image img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--kff-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 10001;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-close:focus {
  outline: 2px solid var(--kff-secondary);
  outline-offset: 2px;
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--kff-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 10001;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid var(--kff-secondary);
  outline-offset: 2px;
}

.lightbox-prev {
  left: var(--space-6);
}

.lightbox-next {
  right: var(--space-6);
}

/* Footer with counter and thumbnails */
.lightbox-footer {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 10001;
}

.lightbox-counter {
  font-size: 1rem;
  font-weight: 600;
  color: var(--kff-white);
  background: rgba(0, 0, 0, 0.6);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-thumbs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 90vw;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s var(--ease-out);
  border: 2px solid transparent;
  flex-shrink: 0;
}

.lightbox-thumb:hover {
  opacity: 0.9;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--kff-secondary);
  box-shadow: 0 0 12px rgba(231, 121, 25, 0.5);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox-close {
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: var(--space-3);
  }

  .lightbox-next {
    right: var(--space-3);
  }

  .lightbox-main-image {
    max-height: calc(85vh - 140px);
  }

  .lightbox-main-image img {
    max-height: calc(85vh - 140px);
  }

  .lightbox-thumb {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }

  .lightbox-thumbs {
    display: none;
  }
}

/* ========================================
   Team Page Layout Fixes
   ======================================== */

/* Team page wrapper - no double container, full width for team pages */
.team-page-wrapper {
  padding: 0;
  max-width: 1280px !important;
}

.team-page-wrapper > .wp-block-group,
.team-page-wrapper > .wp-block-kff-team-page-header {
  margin: 0;
}

/* Ensure compact-section spans full width for edge-to-edge header */
.team-page-wrapper .compact-page-header {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* Content container max-width */
.team-page-wrapper .container,
.compact-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Reset WordPress block wrapper margins only - padding handled by inner elements */
/* Note: hero-gallery and team-hero-card need their margin-bottom, so excluded here */
.wp-block-kff-compact-box,
.wp-block-kff-goals-list,
.wp-block-kff-training-schedule,
.wp-block-kff-trainers-contacts,
.wp-block-kff-equipment-grid,
.wp-block-kff-comm-tools,
.wp-block-kff-compact-cta,
.wp-block-kff-quick-links {
  margin: 0 !important;
}

/* Ensure group blocks in sidebar/main don't add extra spacing */
.compact-main > .wp-block-group,
.compact-sidebar > .wp-block-group,
.compact-main > .wp-block-kff-compact-box,
.compact-sidebar > .wp-block-kff-compact-box,
.compact-sidebar > .wp-block-kff-compact-cta {
  margin: 0 !important;
}

/* Fix heights - align-items: start ensures natural content height */
.compact-two-col,
.compact-two-col.is-layout-flow,
.compact-two-col.wp-block-group {
  align-items: start !important;
}

/* Override WordPress default margins on compact-box inner content */
.compact-box-content > *:last-child {
  margin-bottom: 0 !important;
}

/* Ensure compact-main and compact-sidebar have proper display when nested in wp-block-group */
.wp-block-group.compact-main,
.wp-block-group.compact-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-5) !important;
}

/* Override any WordPress flow layout margins in compact layouts */
.compact-main.is-layout-flow > *,
.compact-sidebar.is-layout-flow > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ========================================
   WordPress Editor Overrides
   Make all elements visible in Gutenberg editor
   (scroll animations don't run in editor context)
   ======================================== */

.editor-styles-wrapper .animate-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hero gallery slides - show first slide in editor */
.editor-styles-wrapper .hero-gallery-slide {
  opacity: 0;
  transform: scale(1.05);
}

.editor-styles-wrapper .hero-gallery-slide:first-of-type,
.editor-styles-wrapper .hero-gallery > input:checked + .hero-gallery-slides .hero-gallery-slide {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   Group Page Styles
   ======================================== */

/* Group Hero Card - Logo-focused layout */
.group-hero-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-6);
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
}

.group-hero-logo {
  position: relative;
  text-align: center;
}

.group-hero-logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--kff-white);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.group-logo-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}

.group-logo-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--kff-secondary);
}

.group-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.group-hero-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.group-hero-description p {
  margin: 0 0 var(--space-3);
}

.group-hero-description p:last-child {
  margin-bottom: 0;
}

/* Group Quick Facts Grid */
.group-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: auto;
}

.group-fact {
  background: var(--bg-secondary);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
}

.group-fact-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.group-fact-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Group Leader Card */
.group-leader-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.group-leader-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kff-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kff-white);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.group-leader-info {
  flex: 1;
}

.group-leader-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.group-leader-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.group-leader-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--kff-primary);
  font-weight: 500;
}

.group-leader-phone i {
  color: var(--kff-secondary);
}

/* Group Story Section */
.group-story {
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--kff-secondary);
}

.group-story-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.group-story-title i {
  color: var(--kff-secondary);
}

.group-story p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Group Story - No Border Variant (for long-form content) */
.group-story--no-border {
  border-left: none;
  padding: var(--space-5) var(--space-6);
}

.group-story--no-border .group-story-title {
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--kff-secondary);
  margin-bottom: var(--space-4);
}

.group-story--no-border p {
  margin: 0 0 var(--space-4) 0;
}

.group-story--no-border p:last-child {
  margin-bottom: 0;
}

.group-story--no-border ul,
.group-story--no-border ol {
  margin: var(--space-3) 0 var(--space-4) var(--space-5);
  color: var(--text-secondary);
}

.group-story--no-border li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.group-story--no-border li strong {
  color: var(--text-primary);
}

/* Group Equipment Note */
.group-equipment-note {
  background: var(--kff-accent);
  color: var(--kff-gray-900);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.group-equipment-note i {
  color: var(--kff-secondary);
  margin-top: 2px;
}

/* Dark mode for equipment note */
[data-theme="dark"] .group-equipment-note {
  background: var(--kff-gray-800);
  color: var(--text-primary);
  border: 1px solid var(--kff-gray-700);
}

[data-theme="dark"] .group-equipment-note i {
  color: var(--kff-secondary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group-equipment-note {
    background: var(--kff-gray-800);
    color: var(--text-primary);
    border: 1px solid var(--kff-gray-700);
  }

  :root:not([data-theme="light"]) .group-equipment-note i {
    color: var(--kff-secondary-light);
  }
}

/* Responsive Group Styles */
@media (max-width: 968px) {
  .group-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .group-hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .group-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .group-hero-logo img {
    width: 120px;
    height: 120px;
  }

  .group-facts-grid {
    grid-template-columns: 1fr;
  }

  .group-leader-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   Overview Page - Team/Group Listing
   ======================================== */

/* Hide page header when overview-hero is present */
.entry-content:has(.overview-hero) ~ .page-header,
body:has(.overview-hero) .page-header {
  display: none;
}

/* Make overview sections break out of parent container */
.entry-content > .container > .wp-block-kff-overview-hero,
.entry-content > .container > .section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Page Header for Overview Pages */
.overview-hero {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  padding: var(--space-12) 0 var(--space-16);
  color: var(--kff-white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.overview-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  opacity: 0.1;
}

.overview-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--kff-accent);
  border-radius: var(--radius-full);
  opacity: 0.08;
}

.overview-hero-content {
  position: relative;
  z-index: 1;
}

.overview-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--kff-white);
  backdrop-filter: blur(10px);
}

.overview-hero-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
  line-height: 1.2;
  color: var(--kff-secondary);
}

.overview-hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.overview-hero-count {
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--kff-white);
}

/* Overview Cards Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-8);
  align-items: stretch;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Overview Card */
.overview-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--kff-primary);
}

/* Card Header with Image/Mascot */
.overview-card-header {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--kff-primary-lighter) 0%, var(--kff-gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.overview-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 70, 142, 0.5) 0%, transparent 70%);
}

.overview-card-mascot {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform var(--duration-base) var(--ease-spring);
}

.overview-card:hover .overview-card-mascot {
  transform: scale(1.05);
}

/* Category Badge */
.overview-card-category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--kff-secondary);
  color: var(--kff-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  z-index: 2;
}

/* Card Body */
.overview-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.overview-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--kff-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

[data-theme="dark"] .overview-card-title {
  color: var(--kff-primary-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .overview-card-title {
    color: var(--kff-primary-light);
  }
}

/* Metadata Badges */
.overview-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.overview-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-section-alt);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.overview-card-badge i {
  color: var(--kff-secondary);
  font-size: 0.75rem;
}

/* Description */
.overview-card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* Card Footer with CTA */
.overview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  gap: var(--space-4);
  margin-top: auto;
}

/* Fixed mascot name with better wrapping */
.overview-card-mascot-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.overview-card-mascot-name i {
  color: var(--kff-secondary);
  flex-shrink: 0;
}

.overview-card-mascot-name strong {
  color: var(--kff-secondary);
  font-weight: 700;
}

.overview-card-link,
.entry-content .overview-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  color: var(--kff-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}

.overview-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 70, 142, 0.3);
}

.overview-card-link i {
  font-size: 0.75rem;
  transition: transform var(--duration-fast);
}

.overview-card-link:hover i {
  transform: translateX(3px);
}

/* Variant: Group Card (smaller logo, different header style) */
.overview-card--group .overview-card-header {
  height: 140px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.overview-card--group .overview-card-header::after {
  display: none;
}

.overview-card--group .overview-card-mascot {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: var(--kff-white);
  padding: var(--space-2);
}

/* Interest Section (CTA at bottom of overview page) */
.overview-interest {
  background: linear-gradient(135deg, var(--kff-primary) 0%, var(--kff-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  color: var(--kff-white);
  margin-top: var(--space-12);
  position: relative;
  overflow: hidden;
}

.overview-interest::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--kff-secondary);
  border-radius: var(--radius-full);
  opacity: 0.1;
}

.overview-interest-content {
  position: relative;
  z-index: 1;
}

.overview-interest-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  color: var(--kff-secondary);
}

.overview-interest-text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.overview-interest-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
