/* ==============================================================================
   ChemcoolChess - Apple Style Theme & Modern Design System
   WCAG AAA/AA Compliant | Mobile Responsive | Lighthouse 90%+ Optimized
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Color Palette - Dark Obsidian & Royal Chess Theme */
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-card: rgba(18, 26, 44, 0.72);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.35);
  --border-focus: #38bdf8;
  
  /* Text Colors - High Contrast for WCAG AAA */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;

  /* Accents */
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #38bdf8;
  --accent-blue-glow: rgba(56, 189, 248, 0.25);
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;

  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.78);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --card-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.75), 0 0 25px -4px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);

  /* Fonts */
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links & Typography */
a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 0.85rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 0.75rem; }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
p { margin-bottom: 1rem; color: var(--text-secondary); }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================================
   NAVIGATION (Header, Dropdowns & Mobile Hamburger)
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
}

.brand-text .brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop Navigation Menu (Clean Headings without Pill Widgets) */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent !important;
  border: none;
  border-radius: 0;
  position: relative;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.015em;
  text-decoration: none;
}

/* Elegant sleek gold underline on hover and active */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Highlight navigation heading on mouse hover */
.nav-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 0 2px #fff;
}

.nav-link:hover::after {
  width: 100%;
}

/* Highlight current active page */
.nav-item.active .nav-link {
  color: var(--accent-gold-light) !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.nav-item.active .nav-link::after {
  width: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

.dropdown-chevron {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  margin-left: 2px;
}

.nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold-light);
}

.external-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 0.65rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1050;
}

.nav-item:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.dropdown-item a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-light);
  padding-left: 1.35rem;
}

/* Header Action CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #000;
}

/* 3-Bar Hamburger Button */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1100;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  z-index: 1090;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-accordion-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 0.5rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==============================================================================
   HERO SECTION (Apple Cinematic Background Video)
   ============================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 0 7rem 0;
  overflow: hidden;
  background-color: #07090e;
}

.hero-video-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.88;
  filter: contrast(1.22) brightness(1.02) saturate(1.12);
  transition: opacity 0.5s ease;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(7, 9, 14, 0.18) 0%, rgba(7, 9, 14, 0.5) 60%, rgba(7, 9, 14, 0.85) 100%),
              linear-gradient(180deg, rgba(7, 9, 14, 0.35) 0%, transparent 25%, rgba(7, 9, 14, 0.7) 75%, #07090e 100%);
  pointer-events: none;
}

.hero-content-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent-gold-light);
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 30%, #fef3c7 70%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.98)) drop-shadow(0 2px 6px rgba(0, 0, 0, 1));
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: #ffffff;
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 740px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 1), 0 1px 5px rgba(0, 0, 0, 1);
}

.hero-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--accent-gold-light);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 2.25rem;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}



.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-secondary {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  color: #fff;
}

/* ==============================================================================
   APPLE-STYLE CARDS & HOVER EFFECTS
   ============================================================================== */
.apple-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.apple-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.apple-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

/* 4-Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
}

.pillar-img-wrap {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.pillar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-img-wrap img {
  transform: scale(1.06);
}

.pillar-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Electronic Computers Showcase */
.computers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

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

.computer-img-wrap {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #000;
}

.computer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.computer-card:hover .computer-img-wrap img {
  transform: scale(1.05);
}

.computer-name {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Coach Feature Section */
.coach-section-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.coach-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coach-image-card img {
  width: 100%;
  height: auto;
}

.crown-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.crown-badge img {
  width: 36px;
  height: 36px;
}

/* Interactive Tools Showcase Grid */
.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
}

.tool-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--accent-gold-light);
}

.tool-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==============================================================================
   STATE-OF-THE-ART AUDIO PLAYER
   ============================================================================== */
.audio-player-card {
  background: linear-gradient(145deg, rgba(22, 32, 54, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  margin-bottom: 1.5rem;
}

.audio-player-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.15);
}

.audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.audio-track-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-track-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.audio-track-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.audio-track-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audio-progress-wrap {
  width: 100%;
  margin-bottom: 1rem;
}

.audio-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.audio-main-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.08);
}

.audio-btn.play-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.audio-btn.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.audio-btn.loop-btn.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.audio-secondary-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.speed-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}

/* Floating Bottom Mini-Player */
.floating-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1080;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-mini-player.visible {
  transform: translateY(0);
}

.mini-player-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.mini-player-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.mini-player-center {
  flex-grow: 1;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ==============================================================================
   FAQ ACCORDION SECTION
   ============================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--bg-card-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.65rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.faq-icon {
  font-size: 1.35rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.65rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.65rem 1.45rem 1.65rem;
}

/* ==============================================================================
   GOOGLE ADSENSE CONTAINER
   ============================================================================== */
.ad-banner-container {
  width: 100%;
  max-width: 970px;
  margin: 2rem auto;
  padding: 0;
  background: transparent;
  border: none;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-label {
  display: none !important;
}

/* ==============================================================================
   INTERACTIVE GAME EVALUATION & CHESSBOARD STYLES
   ============================================================================== */
.chess-eval-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.chess-board-box {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #1e293b;
}

.eval-board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
}

.board-square {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  user-select: none;
  position: relative;
}

.board-square.light {
  background-color: #e2d6b5;
  color: #111;
}

.board-square.dark {
  background-color: #b88b4a;
  color: #111;
}

.board-square.highlight-focus {
  outline: 4px solid #ef4444 !important;
  outline-offset: -4px;
  background-color: rgba(239, 68, 68, 0.45) !important;
}

.eval-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn-eval-white {
  padding: 0.85rem 1.65rem;
  background: #ffffff;
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
}
.btn-eval-white:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.btn-eval-black {
  padding: 0.85rem 1.65rem;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}
.btn-eval-black:hover {
  transform: translateY(-2px);
  background: #1f2937;
}

.btn-eval-random {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-eval-random:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.eval-feedback-msg {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.eval-feedback-msg.correct {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.eval-feedback-msg.incorrect {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==============================================================================
   BLOG HUB & ARTICLE STYLES
   ============================================================================== */
.blog-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blog-search-box {
  position: relative;
  min-width: 280px;
}

.blog-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.blog-search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.blog-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-pills-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-pill:hover, .category-pill.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-thumb {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #111827;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.06);
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.blog-category-tag {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: #fff;
}

.blog-card:hover .blog-title {
  color: var(--accent-gold-light);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Single Article Layout */
.article-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ==============================================================================
   ARTICLE BODY & BLOG CONTENT STYLES (High-Contrast Apple Reading Experience)
   ============================================================================== */
.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #f1f5f9;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: #e2e8f0 !important;
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
}

.article-body span {
  color: inherit;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  margin-top: 2.25rem;
  margin-bottom: 0.95rem;
  line-height: 1.35;
}

.article-body h1,
.article-body h2 {
  color: var(--accent-gold-light) !important;
  font-size: 1.65rem !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  color: #fef08a !important;
  font-size: 1.35rem !important;
}

.article-body h4 {
  color: #ffffff !important;
  font-size: 1.15rem !important;
}

.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.75rem 1.75rem;
  color: #e2e8f0;
}

.article-body li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  color: #e2e8f0 !important;
}

.article-body strong,
.article-body b {
  color: #ffffff !important;
  font-weight: 700;
}

.article-body a {
  color: var(--accent-gold-light) !important;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.article-body a:hover {
  color: #ffffff !important;
}

/* Callout / Key Takeaway Boxes */
.article-body div[style*="background"],
.article-body div[style*="border-left"] {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-left: 4px solid var(--accent-gold) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.article-body div[style*="background"] p,
.article-body div[style*="background"] li {
  color: #f1f5f9 !important;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  margin: 1.5rem auto !important;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Table styling inside articles */
.article-body table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 2rem 0 !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.article-body th {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--accent-gold-light) !important;
  font-weight: 700 !important;
  padding: 0.85rem 1rem !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.article-body td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  font-size: 0.98rem !important;
}

.article-body tr:last-child td {
  border-bottom: none !important;
}

.article-body tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Emoji interactive counter widget */
.emoji-container {
  margin-top: 2.5rem;
  padding: 1.75rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emoji-container .heading {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.emojis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.emoji {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}
.emoji:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-2px);
}
.emoji span.count {
  color: var(--accent-gold-light) !important;
  font-weight: 600;
}

/* ==============================================================================
   CONTACT FORM & FOOTER
   ============================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.site-footer {
  margin-top: auto;
  background: #060910;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 1rem;
}

.footer-col-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  padding-left: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================================
   SCROLL TO TOP ARROW (Left-Hand Side Bottom)
   ============================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(245, 158, 11, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1070;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #000;
  border-color: var(--accent-gold);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.5);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES (Mobile First & Tablet)
   ============================================================================== */
@media (max-width: 992px) {
  .hero-section {
    padding: 4.5rem 0 5rem 0;
    min-height: 75vh;
    min-height: 75dvh;
  }
  .hero-content-container {
    padding: 1rem;
  }
  .hero-bg-controls {
    bottom: 1rem;
    right: 1rem;
  }
  .nav-menu, .btn-header-cta {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .coach-section-wrap, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-glass-card {
    padding: 2rem 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid, .tools-showcase-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .floating-mini-player {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .mini-player-title {
    max-width: 100%;
  }
}

/* Smooth keyframe */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
