/* ==========================================================================
   MOZGÁS ÉS ÍZÜLETEK - Modern Anatomical Editorial CSS
   Warm off-white, Light stone, Sage green, Muted terracotta, Deep charcoal
   ========================================================================== */

:root {
  --bg-primary: #FAF8F5;          /* Warm off-white */
  --bg-secondary: #F0ECE4;        /* Light stone */
  --bg-card: #FFFFFF;
  --bg-accent-soft: #EEF4F0;      /* Soft sage tint */
  --bg-terracotta-soft: #FAF0EC;  /* Soft terracotta tint */
  
  --text-main: #242724;           /* Deep charcoal */
  --text-muted: #5E6760;          /* Muted charcoal */
  --text-light: #879289;
  
  --sage: #4E705B;                /* Sage green */
  --sage-dark: #3B5746;
  --sage-light: #739681;
  --sage-border: #D1DDD5;
  
  --terracotta: #C46D50;          /* Muted terracotta */
  --terracotta-dark: #A8573C;
  --terracotta-light: #D98970;
  
  --stone-border: #E2DDD5;
  --stone-dark: #D4CDC2;
  
  --font-serif: "Newsreader", "Playfair Display", "Georgia", "Baskerville", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(36, 39, 36, 0.04);
  --shadow-md: 0 6px 20px rgba(36, 39, 36, 0.07);
  --shadow-lg: 0 12px 36px rgba(36, 39, 36, 0.10);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --max-w-content: 1240px;
  --max-w-article: 840px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.68;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }

p {
  margin-bottom: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.article-container {
  width: 100%;
  max-width: var(--max-w-article);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--sage);
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--sage);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-cta {
  background-color: var(--sage);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-header-cta:hover {
  background-color: var(--sage-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--stone-border);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stone-border);
  color: var(--text-main);
}

.mobile-nav-panel a:hover {
  color: var(--sage);
}

/* ==========================================================================
   Editorial Badges & Subtitles
   ========================================================================== */
.editorial-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.editorial-kicker.terracotta {
  color: var(--terracotta);
}

.lead-text {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(240, 236, 228, 0.4) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--stone-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.3rem;
}

.hero-content .lead-text {
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--sage);
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: var(--sage-border);
  color: var(--text-main);
  background: #fff;
}

.btn-outline:hover {
  background-color: var(--bg-accent-soft);
  border-color: var(--sage);
  color: var(--sage);
}

.btn-terracotta {
  background-color: var(--terracotta);
  color: #fff !important;
}

.btn-terracotta:hover {
  background-color: var(--terracotta-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Anatomical Display
   ========================================================================== */
.hero-visual-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-border);
}

.hero-visual-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-figure-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

/* ==========================================================================
   Interactive Atlas Section
   ========================================================================== */
.section-atlas {
  padding: 5rem 0;
  border-bottom: 1px solid var(--stone-border);
}

.atlas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.atlas-interactive-viewer {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.anatomy-svg-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.joint-hotspot {
  cursor: pointer;
  transition: all 0.2s ease;
}

.joint-hotspot circle.hotspot-dot {
  fill: var(--terracotta);
  stroke: #fff;
  stroke-width: 2.5;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.joint-hotspot circle.hotspot-pulse {
  fill: var(--terracotta);
  opacity: 0.25;
  transform-origin: center;
  animation: pulse-ring 2.5s infinite ease-out;
}

.joint-hotspot:hover circle.hotspot-dot,
.joint-hotspot.active circle.hotspot-dot {
  fill: var(--sage);
  transform: scale(1.35);
  transform-origin: center;
}

.joint-hotspot text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-main);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.atlas-info-card {
  background: #fff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.atlas-card-badge {
  display: inline-block;
  background: var(--bg-accent-soft);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.atlas-card-title {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.atlas-card-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.atlas-detail-box {
  background: var(--bg-primary);
  border-left: 3px solid var(--sage);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.atlas-detail-box h4 {
  color: var(--sage-dark);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.atlas-detail-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.atlas-joints-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.joint-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.joint-tab-btn:hover {
  border-color: var(--sage-border);
  background: #fff;
}

.joint-tab-btn.active {
  background: var(--sage);
  color: #fff;
}

/* ==========================================================================
   Category Grid (6 Core Categories)
   ========================================================================== */
.section-categories {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--stone-border);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.category-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-border);
}

.category-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--terracotta-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.category-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Article Grid & Cards
   ========================================================================== */
.section-articles {
  padding: 5rem 0;
  border-bottom: 1px solid var(--stone-border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.article-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.article-card-thumb {
  background: var(--bg-accent-soft);
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--stone-border);
  overflow: hidden;
}

.article-card-thumb svg {
  max-height: 140px;
}

.article-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.article-tag {
  color: var(--sage);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-card h3 a {
  color: var(--text-main);
}

.article-card h3 a:hover {
  color: var(--sage);
}

.article-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--stone-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* ==========================================================================
   Editorial Single Article Template Styles
   ========================================================================== */
.article-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--stone-border);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.article-header h1 {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone-border);
}

.article-body {
  padding: 3.5rem 0;
}

.article-lead {
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--text-main);
  font-serif: var(--font-serif);
  margin-bottom: 2rem;
  font-weight: 400;
}

.article-body h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--stone-border);
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.article-editorial-note {
  background: var(--bg-accent-soft);
  border-left: 4px solid var(--sage);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.25rem 0;
}

.article-editorial-note h4 {
  color: var(--sage-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.article-editorial-note p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.practical-box {
  background: var(--bg-terracotta-soft);
  border: 1px solid #ebd4cb;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.25rem 0;
}

.practical-box h4 {
  color: var(--terracotta-dark);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.article-summary-box {
  background: #fff;
  border: 2px solid var(--sage-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 3rem 0;
}

.article-summary-box h3 {
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--stone-border);
}

.comments-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-approved {
  background: #E8F5E9;
  color: #2E7D32;
}

.badge-demo {
  background: #F3E5F5;
  color: #6A1B9A;
}

.comment-form {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.comment-notice {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ==========================================================================
   Interactive Tools: Quiz / Habit Checker / Glossary
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

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

.interactive-box {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.quiz-opt-btn {
  background: var(--bg-primary);
  border: 1px solid var(--stone-border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt-btn:hover {
  background: #fff;
  border-color: var(--sage);
}

.quiz-opt-btn.selected {
  background: var(--bg-accent-soft);
  border-color: var(--sage);
  color: var(--sage-dark);
  font-weight: 600;
}

.tool-summary-result {
  background: var(--bg-accent-soft);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: none;
}

.tool-summary-result.active {
  display: block;
}

/* ==========================================================================
   Daily Timeline (Napi Mozgás)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: var(--stone-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--sage-border);
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Exercise Cards (Gyakorlatok)
   ========================================================================== */
.exercise-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--stone-border);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.filter-btn.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

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

.exercise-card {
  background: #fff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.exercise-visual {
  background: var(--bg-secondary);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--stone-border);
}

.exercise-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.exercise-badge {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

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

.exercise-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.85rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.spec-item span {
  display: block;
  color: var(--text-light);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.spec-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.exercise-safety {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--stone-border);
}

/* ==========================================================================
   Editorial Callout / Soft CTA
   ========================================================================== */
.section-soft-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #EEF4F0 0%, #FAF0EC 100%);
  border-top: 1px solid var(--stone-border);
  border-bottom: 1px solid var(--stone-border);
}

.soft-cta-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.soft-cta-card h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.soft-cta-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer & Legal Disclaimer
   ========================================================================== */
.site-footer {
  background: #202422;
  color: #D1DDD5;
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

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

.footer-brand h3 {
  font-family: var(--font-serif);
  color: #FAF8F5;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.footer-brand p {
  color: #A3B0A7;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FAF8F5;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #B5C2B9;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FAF8F5;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.footer-disclaimer-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #A3B0A7;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer-text strong {
  color: #FAF8F5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #79867D;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--stone-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.cookie-banner p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First verification)
   ========================================================================== */
@media (max-width: 1024px) {
  .categories-grid,
  .articles-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .btn-header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .atlas-layout {
    grid-template-columns: 1fr;
  }
  
  .categories-grid,
  .articles-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.35rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-dot {
    left: -1.45rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .atlas-info-card {
    padding: 1.5rem;
  }
  
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
