/* ============================================
   COMPONENTS.CSS — Kártyák, FAQ, hero, sidebar stb.
   fajdalommentesfogaszat.hu
   ============================================ */

/* PAGE HERO */
.page-hero { background: var(--hero-bg); padding: 64px 5% 56px; }
.page-hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
}
.page-hero-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--green-dark); background: var(--green-light);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px; letter-spacing: 0.04em; text-transform: uppercase;
}
.page-hero h1 { color: var(--ink); margin-bottom: 20px; }
.page-hero h1 span { color: var(--green); }
.page-hero-lead { font-size: 18px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 32px; }
.page-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--green); display: block; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--ink-soft); }
.page-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--cream-dark); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* TOC */
.toc-section { background: var(--white); padding: 40px 5%; border-bottom: 1px solid var(--cream-dark); }
.toc-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toc-title { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.toc-link { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--green); padding: 6px 0; transition: color 0.2s; }
.toc-link:hover { color: var(--green-dark); }
.toc-num { font-size: 11px; font-weight: 600; color: var(--ink-soft); min-width: 20px; }

/* CONTENT LAYOUT */
.content-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 5%;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 64px; align-items: start;
}
.content-main { padding: 64px 0; }
.content-sidebar { padding: 64px 0; position: sticky; top: 84px; }

.article-section { margin-bottom: 64px; }
.section-anchor { display: block; height: 80px; margin-top: -80px; }
.article-section h2 { color: var(--ink); margin-bottom: 20px; }
.article-section h3 { color: var(--ink); margin: 32px 0 12px; }

/* TREATMENT CARDS */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.treatment-card {
  background: var(--hero-bg); border-radius: var(--radius-md);
  padding: 28px 24px; transition: transform 0.2s; display: block;
}
.treatment-card:hover { transform: translateY(-3px); }
.treatment-icon {
  width: 44px; height: 44px; background: var(--green-light);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.treatment-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.treatment-card h3 { color: var(--ink); margin: 0 0 8px; font-size: 18px; }
.treatment-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; margin: 0; }
.treatment-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--green); }

/* TRUST BAR */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--cream-dark); padding: 28px 5%; }
.trust-bar-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { text-align: center; padding: 8px 0; }
.trust-num { font-size: 20px; font-weight: 600; color: var(--green); display: block; }
.trust-label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* FEAR SECTION */
.fear-section { background: var(--cream); }
.fear-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.fear-quote { font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; color: var(--green-dark); line-height: 1.4; margin-bottom: 24px; }
.fear-links { display: flex; flex-direction: column; gap: 12px; }
.fear-link {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: 10px; padding: 14px 18px;
  font-size: 15px; color: var(--ink); transition: background 0.2s;
}
.fear-link:hover { background: var(--green-light); }
.fear-link-arrow { color: var(--green); font-size: 18px; }
.fear-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--cream-dark); }
.fear-image img { width: 100%; height: 100%; object-fit: cover; }

/* BLOG CARDS */
.blog-section { background: var(--white); }
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.blog-all { font-size: 14px; color: var(--green); font-weight: 500; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: var(--hero-bg); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.2s; display: block; }
.blog-card:hover { transform: translateY(-2px); }
.blog-card-img { height: 200px; background: var(--cream-dark); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px 24px; }
.blog-cat {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--green-dark); background: var(--green-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card h3 { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq-section { background: var(--cream); padding: 64px 5%; }
.faq-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 80px; }
.faq-intro-title { font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.faq-intro-sub { font-size: 15px; color: var(--ink-mid); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--cream-dark); }
.faq-item:last-child { border-bottom: 1px solid var(--cream-dark); }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; padding: 18px 0; }
.faq-q-text { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--green);
  transition: background 0.2s, transform 0.2s;
}
.faq-item.open .faq-toggle { background: var(--green); color: var(--white); transform: rotate(45deg); }
.faq-answer { display: none; font-size: 15px; color: var(--ink-mid); line-height: 1.75; padding-bottom: 18px; }
.faq-item.open .faq-answer { display: block; }

/* SIDEBAR */
.sidebar-card { background: var(--cream); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 16px; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-mid); padding: 6px 8px; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.sidebar-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.sidebar-nav a.active { background: var(--green-light); color: var(--green); font-weight: 600; }
.sidebar-cta { background: var(--green-dark); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; text-align: center; }
.sidebar-cta h3 { font-size: 16px; font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: rgba(242,239,230,0.7); margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta a { display: block; background: var(--nav-accent); color: var(--nav); font-size: 14px; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); transition: background 0.2s; }
.sidebar-cta a:hover { background: var(--green-mid); }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.related-item a { display: flex; gap: 12px; align-items: flex-start; }
.related-item-cat { font-size: 10px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.related-item-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* LINK CARDS */
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.link-card { background: var(--hero-bg); border-radius: var(--radius-md); padding: 18px 20px; transition: transform 0.2s; display: block; }
.link-card:hover { transform: translateY(-2px); }
.link-card-cat { font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.link-card h4 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 4px; }
.link-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* COMPARE TABLE */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.compare-table th { background: var(--green-dark); color: var(--cream); padding: 12px 16px; text-align: left; font-weight: 600; }
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 8px 0 0; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--cream-dark); color: var(--ink-mid); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--cream); }
.compare-table .col-label { font-weight: 600; color: var(--ink); }

/* PRICE TABLE */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.price-table th { background: var(--green-dark); color: var(--cream); padding: 12px 16px; text-align: left; font-weight: 600; }
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child  { border-radius: 0 8px 0 0; }
.price-table td { padding: 12px 16px; border-bottom: 1px solid var(--cream-dark); color: var(--ink-mid); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--cream); }
.price-table .col-label { font-weight: 600; color: var(--ink); }

/* FEAR LEVELS */
.fear-levels { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.fear-level { border-radius: var(--radius-md); padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.fear-level-1 { background: #F0F9F5; }
.fear-level-2 { background: #FFF8EC; }
.fear-level-3 { background: #FFF2F2; }
.fear-level-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.badge-1 { background: #C8EDD9; color: #1A6B3E; }
.badge-2 { background: #FFE4A0; color: #7A4A00; }
.badge-3 { background: #FFCFCF; color: #8B1A1A; }
.fear-level-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.fear-level-desc { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
.fear-level-solution { font-size: 13px; color: var(--green); font-weight: 500; margin-top: 6px; }

/* SYMPTOMS GRID */
.symptoms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.symptom-card { background: var(--hero-bg); border-radius: 10px; padding: 16px 18px; }
.symptom-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.symptom-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.5; }

/* COMPARE GRID */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.compare-card { border-radius: var(--radius-md); padding: 24px; }
.compare-card-a { background: var(--hero-bg); }
.compare-card-b { background: var(--green-light); }
.compare-card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--cream-dark); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.compare-list li { font-size: 14px; color: var(--ink-mid); line-height: 1.5; display: flex; gap: 8px; }

/* BUDAPEST CTA */
.budapest-cta { background: var(--green-dark); padding: 48px 5%; }
.budapest-cta-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.budapest-cta h2 { color: var(--cream); margin-bottom: 8px; }
.budapest-cta p { font-size: 15px; color: rgba(242,239,230,0.65); margin: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-img { display: none; }
  .page-hero-lead { font-size: 16px; }
  .toc-inner { grid-template-columns: 1fr; }
  .link-cards, .compare-grid, .symptoms-grid { grid-template-columns: 1fr; }
  .treatments-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 16px; }
  .fear-inner { grid-template-columns: 1fr; gap: 40px; }
  .fear-image { aspect-ratio: 16/9; }
  .budapest-cta-inner { flex-direction: column; text-align: center; }
  .compare-table { font-size: 13px; overflow-x: auto; display: block; }
  .price-table { font-size: 13px; overflow-x: auto; display: block; }

  /* Cikkek grid mobilon 1 oszlop */
  #blog-grid { grid-template-columns: 1fr !important; }
  .blog-card-item { max-width: 100% !important; }

  /* Táblázat scroll */
  table { display: block; overflow-x: auto; }

  /* Cikk oldal: aside elrejtése, tartalom teljes szélességre */
  aside { display: none !important; }
  .article-body { max-width: 100% !important; }

  /* Inline grid-ek cikk oldalakon */
  div[style*="grid-template-columns: 1fr 260px"],
  div[style*="grid-template-columns: 1fr 240px"] {
    display: block !important;
  }
}
@media (max-width: 600px) {
  .treatments-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .page-hero-stats { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
  section { padding: 40px 4% !important; }
  .faq-section { padding: 40px 4%; }

  /* Hero szöveg mobilon ne törjön szavanként */
  .page-hero-lead {
    font-size: 15px !important;
    line-height: 1.6 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/* Cikk oldalak mobilos layout */
@media (max-width: 1024px) {
  .article-grid-wrap {
    grid-template-columns: 1fr !important;
  }
  .article-aside {
    display: none !important;
  }
}

/* MOBIL - inline style felülírása */
@media (max-width: 768px) {
  /* Cikk oldal 2 oszlopos grid -> 1 oszlop */
  section > div[style*="grid-template-columns: 1fr 260px"],
  section > div > div[style*="grid-template-columns: 1fr 260px"] {
    display: block !important;
  }

  /* Aside elrejtése mobilon */
  section aside,
  div > aside {
    display: none !important;
  }

  /* H1 mobilon kisebb */
  h1[style*="font-size"] {
    font-size: clamp(22px, 5vw, 32px) !important;
    line-height: 1.25 !important;
  }

  /* Lead szöveg ne törjön szavanként */
  p[style*="font-size: 19px"] {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* Főoldal hero padding csökkentése */
  .page-hero {
    padding: 36px 5% 32px !important;
  }
}

button.faq-q { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }
html:not(.js-ready) .faq-answer { display: block; }
.link-card .related-heading { font-size: 15px; font-weight: 600; }
.fogaszat-grid > *, .content-wrap > * { min-width: 0; }
@media (max-width: 768px) { .fogaszat-grid { grid-template-columns: 1fr !important; } }

/* Editorial guides: uses the existing site palette and typography. */
.guide-width{width:min(860px,90%);margin-inline:auto}.guide-content{padding-block:32px 56px}.guide-reading{font-size:13px;color:var(--ink-mid)}.guide-toc,.guide-next{background:var(--cream);padding:24px;border-radius:var(--radius-lg);margin-bottom:28px}.guide-toc ol{padding-left:22px}.guide-toc li{margin:8px 0}.guide-article .article-body section{padding:0;margin:0 0 32px}.guide-article .article-body h2{scroll-margin-top:100px}.guide-article p,.guide-article li{overflow-wrap:anywhere}.guide-sources{border-top:1px solid var(--cream-dark);padding-top:24px!important;font-size:14px}.guide-next h2{font-size:20px}.guide-article .page-hero h1{font-size:clamp(27px,4vw,44px)}
