/* =====================================================
   CampusBees — SEO Pages Stylesheet
   Reviews · FAQs · Blog
   Extends global.css — does NOT override it
===================================================== */

/* ── TOC (Table of Contents) ── */
.toc {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc__title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc__list { list-style: none; }
.toc__item { margin-bottom: 4px; }
.toc__link {
  font-size: .84rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 5px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all .18s;
  line-height: 1.4;
}
.toc__link:hover, .toc__link.active {
  color: var(--blue);
  background: var(--blue-light);
  border-left-color: var(--gold);
}
.toc__sub { padding-left: 14px; }
.toc__sub .toc__link { font-size: .78rem; }

/* ── Two-column layout ── */
.seo-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.seo-content { min-width: 0; }

/* ── Article sections ── */
.article-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}
.article-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 20px 0 10px;
}
.article-section p {
  font-size: .93rem;
  line-height: 1.82;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-section ul, .article-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.article-section li {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ── Quick facts grid ── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.fact-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.fact-box__icon { font-size: 1.4rem; margin-bottom: 6px; }
.fact-box__val { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 3px; }
.fact-box__key { font-size: .72rem; color: var(--text-muted); font-weight: 500; }

/* ── Pros / Cons ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros-box, .cons-box {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid;
}
.pros-box { background: #f0fdf4; border-color: #86efac; }
.cons-box { background: #fff5f5; border-color: #fca5a5; }
.pros-box h4 { color: #16a34a; font-size: .88rem; font-weight: 800; margin-bottom: 12px; }
.cons-box h4 { color: #dc2626; font-size: .88rem; font-weight: 800; margin-bottom: 12px; }
.pros-box li::marker { color: #16a34a; }
.cons-box li::marker { color: #dc2626; }
.pros-box li, .cons-box li { font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; }

/* ── Verdict card ── */
.verdict-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: 16px;
  padding: 28px;
  color: white;
  margin: 20px 0;
}
.verdict-card__label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 8px; }
.verdict-card__title { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 12px; }
.verdict-card__text { font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.78); }
.verdict-card__score { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: rgba(255,255,255,.1); padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 700; color: var(--gold); }

/* ── FAQ accordion ── */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-dark);
  gap: 12px;
  user-select: none;
}
.faq-q:hover { background: var(--off-white); }
.faq-arrow { font-size: .9rem; transition: transform .25s; flex-shrink: 0; color: var(--gold); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: .87rem;
  line-height: 1.75;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }

/* ── Sticky CTA sidebar ── */
.sticky-cta {
  position: sticky;
  top: 84px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.sticky-cta__title { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.sticky-cta__sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.sticky-cta__btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all .2s;
}
.sticky-cta__btn.gold { background: var(--gold); color: var(--blue-dark); }
.sticky-cta__btn.gold:hover { background: #e09210; transform: translateY(-1px); }
.sticky-cta__btn.whatsapp { background: #25D366; color: white; }
.sticky-cta__btn.whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.sticky-cta__btn.outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.sticky-cta__btn.outline:hover { background: var(--blue); color: white; }
.sticky-cta__free { text-align: center; font-size: .72rem; color: var(--text-muted); margin-top: 10px; }

/* ── Rating bar ── */
.rating-bars { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.rating-bar { display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.rating-bar__label { width: 110px; color: var(--text-muted); flex-shrink: 0; }
.rating-bar__track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar__fill { height: 100%; border-radius: 4px; background: var(--gold); transition: width .6s ease; }
.rating-bar__score { width: 32px; text-align: right; font-weight: 700; color: var(--blue-dark); font-size: .82rem; }

/* ── Related cards ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all .25s;
  display: block;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.related-card__img { width: 100%; height: 90px; object-fit: cover; }
.related-card__body { padding: 12px; }
.related-card__title { font-size: .85rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.related-card__meta { font-size: .72rem; color: var(--text-muted); }

/* ── Blog card ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: all .28s;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.blog-card__img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.blog-card__body { padding: 20px; }
.blog-card__tag { display: inline-block; background: var(--gold-pale); color: var(--gold); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.blog-card__title { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card__excerpt { font-size: .83rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 14px; }
.blog-card__meta { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--text-muted); }
.blog-card__read-more { font-size: .82rem; font-weight: 700; color: var(--gold); }

/* ── Question page ── */
.question-hero { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 40px 0 32px; }
.question-hero h1 { font-size: clamp(1.3rem, 2.5vw, 2rem); color: var(--blue-dark); margin-bottom: 12px; }
.question-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); }
.question-tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.question-tag { background: var(--blue-light); color: var(--blue); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.answer-box { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.answer-box__expert { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.answer-box__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-dark); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.answer-box__name { font-size: .9rem; font-weight: 700; color: var(--blue-dark); }
.answer-box__role { font-size: .75rem; color: var(--text-muted); }
.answer-body { font-size: .93rem; line-height: 1.82; color: var(--text-muted); }
.answer-body strong { color: var(--blue-dark); }
.related-questions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.related-q-link {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--blue-dark);
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s;
}
.related-q-link:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--blue-dark); }

/* ── Search bar ── */
.search-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); padding: 56px 0; text-align: center; }
.search-hero h1 { color: white; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.search-hero p { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.search-bar-wrap { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.search-bar-input {
  flex: 1; padding: 14px 20px; border-radius: 12px; border: none;
  font-family: inherit; font-size: .95rem; outline: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.search-bar-btn {
  padding: 14px 24px; background: var(--gold); color: var(--blue-dark);
  border: none; border-radius: 12px; font-weight: 800; font-size: .9rem;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.search-bar-btn:hover { background: #e09210; }

/* ── Filter tabs ── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.filter-tab {
  padding: 8px 18px; border-radius: 30px; border: 2px solid var(--border);
  background: white; color: var(--text-muted); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.filter-tab.active { background: var(--gold); border-color: var(--gold); color: var(--blue-dark); }

/* ── Breadcrumb (override for light pages) ── */
.breadcrumb-light { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 20px; }
.breadcrumb-light a { color: var(--text-muted); text-decoration: none; transition: color .18s; }
.breadcrumb-light a:hover { color: var(--gold); }
.breadcrumb-light span { color: var(--blue-dark); font-weight: 600; }

/* ── Reading time / meta strip ── */
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); margin-bottom: 28px; }
.article-meta__item { display: flex; align-items: center; gap: 5px; }

/* ── Responsive ── */
@media(max-width: 960px) {
  .seo-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar-wrap { flex-direction: column; }
  .sticky-cta { position: static; }
}
