/*
 * NotionGuide Stylesheet
 * Clean, content-forward, professional.
 */

/* ==========================================
   1. Reset & Base
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #1a1a1a; text-decoration: none; transition: color .15s; }
a:hover { color: #06c; }

ul, ol { padding-left: 1.5em; }

/* ==========================================
   2. Typography
   ========================================== */
h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.025em; margin-bottom: .75rem; }
h2 { font-size: 1.5rem; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; line-height: 1.7; }
strong { font-weight: 600; }

blockquote {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid #06c;
  background: #f8f9fa; border-radius: 0 8px 8px 0;
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
  font-size: .88em; background: #f1f3f4; padding: 2px 6px;
  border-radius: 4px; color: #d93025;
}

pre {
  background: #1e1e1e; color: #e8e8e8;
  padding: 1.25rem; border-radius: 10px; overflow-x: auto;
  margin: 1.5rem 0; font-size: .875rem; line-height: 1.65;
}
pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }

/* ==========================================
   3. Layout
   ========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

.article-layout {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}

.section { padding: 5rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(248,249,250,0.82) 0%, rgba(248,249,250,0.92) 100%),
    url('../images/banner/toc-guides.webp') center/cover no-repeat;
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: .75rem;
}
.section-title { font-size: 1.5rem; font-weight: 700; }
.section-link { font-size: .9rem; color: #06c; font-weight: 500; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ==========================================
   4. Header
   ========================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 56px; gap: 1.5rem;
}

.site-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.1rem; color: #111;
  white-space: nowrap; flex-shrink: 0;
}
.site-logo:hover { color: #111; text-decoration: none; }
.logo-mark { flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.main-nav a {
  padding: .35rem .625rem; font-size: .875rem; font-weight: 500;
  color: #555; border-radius: 5px; transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav a.active { color: #111; background: #f1f3f4; text-decoration: none; }

.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: #555; padding: .5rem; border-radius: 6px;
  display: flex; align-items: center;
}
.nav-search-btn:hover { background: #f1f3f4; color: #111; }

.mobile-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; flex-direction: column; gap: 4px;
}
.mobile-nav-toggle span { display: block; width: 20px; height: 2px; background: #111; border-radius: 2px; }

/* ==========================================
   5. Intro Block & Topic Row
   ========================================== */
.intro-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.intro-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.intro-block {
  max-width: 720px;
}
.intro-block h1 {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.025em; margin-bottom: .75rem;
}
.intro-block p {
  font-size: 1.05rem; color: #444; line-height: 1.7;
  margin-bottom: 0;
}

.topic-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; background: #f8f9fa; border: 1px solid #eee;
  border-radius: 20px; font-size: .85rem; font-weight: 500; color: #444;
  transition: all .15s;
}
.topic-pill:hover { background: #111; color: #fff; border-color: #111; text-decoration: none; }
.topic-pill-icon { font-size: 1rem; }

/* ==========================================
   5a. Download Bar
   ========================================== */
.download-bar {
  text-align: center; padding: 2.5rem 2rem;
  /* background:
    linear-gradient(180deg, rgba(248,249,250,0.7) 0%, rgba(248,249,250,0.88) 100%),
    url('../images/banner/download.webp') center/cover no-repeat; */
  border: 1px solid #eee; border-radius: 14px;
}
.download-bar h3 { font-size: 1.35rem; margin: 0 0 .35rem; }
.download-bar > p { color: #666; font-size: .95rem; margin-bottom: 1.5rem; }

.download-links {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; background: #fff; border: 1px solid #ddd;
  border-radius: 8px; font-size: .9rem; font-weight: 600; color: #111;
  transition: all .15s;
}
.dl-btn:hover { background: #111; color: #fff; border-color: #111; text-decoration: none; }
.dl-btn:hover svg { stroke: #fff; }

.download-note {
  margin-top: 1rem; font-size: .8rem; color: #999;
}

/* ==========================================
   5b. Trust Bar
   ========================================== */
.section-trust {
  /* background:
    linear-gradient(180deg, rgba(248,249,250,0.75) 0%, rgba(248,249,250,0.88) 100%),
    url('../images/banner/trust.webp') center/cover no-repeat; */
}
.section-featured {
  /* background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.88) 100%),
    url('../images/banner/featured.webp') center/cover no-repeat; */
}
.section-all-guides {
  background:
    linear-gradient(180deg, rgba(248,249,250,0.8) 0%, rgba(248,249,250,0.9) 100%),
    url('../images/banner/all-guides.webp') center/cover no-repeat;
}

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; align-items: center;
}
.trust-item { text-align: center; }
.trust-num { display: block; font-size: 1.5rem; font-weight: 800; color: #111; }
.trust-label { display: block; font-size: .8rem; color: #777; margin-top: .15rem; }
.trust-divider { width: 1px; height: 40px; background: #ddd; }

@media (max-width: 767px) {
  .trust-bar { flex-direction: column; gap: 1rem; }
  .trust-divider { width: 60px; height: 1px; }
}

/* ==========================================
   5c. Getting Started Steps
   ========================================== */
.getting-started-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.gs-step {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  transition: box-shadow .15s;
}
.gs-step:hover { box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.gs-step-num {
  width: 36px; height: 36px; background: #111; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; flex-shrink: 0;
}
.gs-step h3 { font-size: 1rem; margin: 0 0 .25rem; }
.gs-step p { font-size: .9rem; color: #555; margin: 0; line-height: 1.6; }

/* ==========================================
   5d. Expandable TOC
   ========================================== */
.toc-expand { border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.toc-group { border-bottom: 1px solid #eee; }
.toc-group:last-child { border-bottom: none; }
.toc-group-header {
  width: 100%; display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; background: #fff; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; font-family: inherit; color: #111;
  text-align: left; transition: background .15s;
}
.toc-group-header:hover { background: #fafafa; }
.toc-group-icon { font-size: 1.25rem; flex-shrink: 0; }
.toc-group-arrow { margin-left: auto; font-size: .85rem; color: #aaa; transition: transform .2s; }
.toc-group-header[aria-expanded="true"] .toc-group-arrow { transform: rotate(90deg); }
.toc-group-count { font-size: .78rem; color: #999; font-weight: 400; }
.toc-group-body { padding: 0 1.25rem 1rem 3.5rem; }
.toc-group-body[hidden] { display: none; }
.toc-group-body a { display: block; padding: .4rem 0; font-size: .9rem; color: #555; border-bottom: 1px solid #f5f5f5; }
.toc-group-body a:last-child { border-bottom: none; }
.toc-group-body a:hover { color: #06c; text-decoration: none; }

/* ==========================================
   6. Video Block
   ========================================== */
.video-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(248,249,250,0.78) 0%, rgba(248,249,250,0.9) 100%),
    url('../images/banner/video-section.webp') center/cover no-repeat;
  border-radius: 14px;
  padding: 2.5rem;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-info h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.video-info p { font-size: .95rem; color: #555; margin-bottom: 1.25rem; line-height: 1.6; }

/* Card image styling */
.card-image img {
  width: 100%; height: auto; display: block;
  object-fit: cover; aspect-ratio: 16/9;
}
.featured-card-image img {
  width: 100%; height: auto; display: block;
  object-fit: cover; aspect-ratio: 16/9;
}

/* ==========================================
   7. Hero (keep fallback, now unused on homepage)
   ========================================== */
.hero {
  padding: 5rem 1.5rem; text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.7) 100%),
    url('../images/banner/hero.webp') center/cover no-repeat;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.hero p { font-size: 1.125rem; color: #555; max-width: 560px; margin: 0 auto 2rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   7. Buttons
   ========================================== */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .625rem 1.25rem; font-size: .9rem; font-weight: 600;
  font-family: inherit; border-radius: 8px; cursor: pointer;
  transition: all .15s; border: 1px solid transparent;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: #111; color: #fff; border-color: #111;
}
.btn-primary:hover { background: #000; color: #fff; }

.btn-outline {
  background: #fff; color: #111; border-color: #ddd;
}
.btn-outline:hover { background: #f5f5f5; }

.btn-ghost {
  background: transparent; color: #555; border-color: transparent;
}
.btn-ghost:hover { color: #111; background: #f1f3f4; }

.btn-sm { padding: .45rem 1rem; font-size: .85rem; border-radius: 6px; }

/* ==========================================
   7. Article & Featured Cards
   ========================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.card-image { display: block; }
.card-image svg { transition: transform .3s; }
.card:hover .card-image svg { transform: scale(1.02); }

.card-content { padding: 1.25rem; }

.card-category {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: #06c; margin-bottom: .35rem; display: block;
}

.card-content h3 { font-size: 1.05rem; margin: 0 0 .5rem; line-height: 1.4; }
.card-content h3 a { color: #111; }
.card-content h3 a:hover { color: #06c; text-decoration: none; }

.card-excerpt {
  font-size: .875rem; color: #666; line-height: 1.6; margin-bottom: .75rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta { font-size: .78rem; color: #999; display: flex; gap: .35rem; }

/* Featured card (larger, horizontal on desktop) */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.featured-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.featured-card-image { display: block; }
.featured-card-image svg { transition: transform .3s; }
.featured-card:hover .featured-card-image svg { transform: scale(1.02); }

.featured-card-content { padding: 1.75rem; }
.featured-card-content h3 { font-size: 1.2rem; margin: .5rem 0; line-height: 1.35; }
.featured-card-content h3 a { color: #111; }
.featured-card-content h3 a:hover { color: #06c; }
.featured-card-content .card-excerpt { font-size: .925rem; }
.featured-card-content .card-meta { margin-bottom: 1rem; }

.featured-card-link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .875rem; font-weight: 600; color: #06c;
}
.featured-card-link:hover { color: #0052a3; }

/* ==========================================
   8. Topic Grid
   ========================================== */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.topic-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: box-shadow .15s, transform .15s;
}
.topic-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transform: translateY(-1px);
  color: inherit;
}
.topic-card-icon { font-size: 1.75rem; }
.topic-card-text h3 { font-size: 1rem; margin: 0; }
.topic-card-text p { font-size: .825rem; color: #777; margin: .15rem 0 0; }
.topic-card-arrow { margin-left: auto; color: #ccc; font-size: 1rem; transition: transform .15s, color .15s; }
.topic-card:hover .topic-card-arrow { color: #111; transform: translateX(3px); }

/* ==========================================
   9. Newsletter Inline
   ========================================== */
.newsletter-inline {
  margin-top: 4rem;
  padding: 2.5rem;
  background:
    linear-gradient(135deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.92) 100%),
    url('../images/banner/newsletter-bg.webp') center/cover no-repeat;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.newsletter-inline-content h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.25rem; }
.newsletter-inline-content p { color: #999; margin: 0; font-size: .9rem; }

.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input[type="email"] {
  flex: 1; padding: .625rem 1rem;
  background: #222; border: 1px solid #444; border-radius: 8px;
  color: #fff; font-size: .9rem; font-family: inherit; outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: #06c; }
.newsletter-form input[type="email"]::placeholder { color: #777; }

.newsletter-inline .btn-primary { background: #fff; color: #111; border-color: #fff; }
.newsletter-inline .btn-primary:hover { background: #ddd; }

.newsletter-message { font-size: .85rem; color: #4caf50; margin-top: .5rem; }

/* ==========================================
   10. Article Body
   ========================================== */
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2; margin-bottom: .75rem;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .875rem; color: #777; margin-bottom: 1.75rem;
}
.article-meta a { color: #06c; }

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; padding-bottom: .4rem; border-bottom: 1px solid #eee; }
.article-body h3 { font-size: 1.2rem; margin-top: 2rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .45rem; }
.article-body img { border-radius: 10px; margin: 1.5rem auto; }

/* Callouts */
.callout {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem;
  border-radius: 8px; border-left: 3px solid;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-tip  { background: #e8f5e9; border-color: #2e7d32; }
.callout-info { background: #e3f2fd; border-color: #1565c0; }
.callout-warning { background: #fff8e1; border-color: #f9a825; }
.callout-pro { background: #f3e5f5; border-color: #7b1fa2; }

/* Step lists */
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative;
  padding-left: 3rem; margin-bottom: 1.25rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; background: #111; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}

/* Comparison table */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem;
}
.comparison-table th { background: #f8f9fa; padding: .7rem 1rem; text-align: left; font-weight: 600; }
.comparison-table td { padding: .7rem 1rem; border-bottom: 1px solid #eee; }

/* ==========================================
   11. Share, TOC, FAQ, Breadcrumbs
   ========================================== */
.share-section { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid #eee; }
.share-section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #999; margin-bottom: .75rem; }
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .9rem; border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #555; font-size: .825rem; font-family: inherit;
  cursor: pointer; transition: all .15s;
}
.share-btn:hover { background: #f5f5f5; border-color: #ccc; color: #111; text-decoration: none; }

.toc-widget {
  background: #f8f9fa; border-radius: 10px; padding: 1.25rem;
  position: sticky; top: 5rem;
}
.toc-widget h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin: 0 0 .75rem; }
.toc-widget ul { list-style: none; padding: 0; }
.toc-widget li { margin-bottom: .25rem; }
.toc-widget a {
  font-size: .85rem; color: #666; display: block;
  padding: .25rem .5rem; border-radius: 4px; border-left: 2px solid transparent;
}
.toc-widget a:hover,
.toc-widget a.active { color: #06c; background: #fff; border-left-color: #06c; text-decoration: none; }

.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: #fff; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; font-family: inherit; color: #111;
  text-align: left; gap: 1rem;
}
.faq-question:hover { background: #fafafa; }
.faq-icon { font-size: 1.25rem; color: #999; transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1rem; }
.faq-answer p { font-size: .925rem; color: #555; margin: 0; }
.faq-answer[hidden] { display: none; }

.breadcrumbs {
  max-width: 1200px; margin: 0 auto 1.25rem; padding: 0 1.5rem;
  font-size: .825rem; color: #999;
}
.breadcrumbs a { color: #777; }
.breadcrumbs a:hover { color: #06c; }
.breadcrumb-sep { margin: 0 .4rem; color: #ddd; }

.related-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid #eee; }
.related-section h2 { margin-bottom: 1.5rem; }

/* ==========================================
   12. Footer
   ========================================== */
.site-footer {
  background-color: #f8f9fa;
  background-image:
    linear-gradient(180deg, rgba(248,249,250,0.88) 0%, rgba(248,249,250,0.95) 100%),
    url('../images/banner/footer-bg.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid #eee; padding: 4rem 0 1.5rem;
}

.footer-inner,
.footer-grid {
  max-width: 1200px; margin: 0 auto 2.5rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}

.footer-col h3,
.footer-col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .875rem; color: #666; }
.footer-col a:hover { color: #06c; }
.footer-col p { font-size: .85rem; color: #777; line-height: 1.6; }

.footer-brand p { font-size: .85rem; color: #777; margin-top: .5rem; max-width: 320px; line-height: 1.6; }

.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.footer-links h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .75rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .875rem; color: #666; }
.footer-links a:hover { color: #06c; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #e5e5e5; font-size: .78rem; color: #999;
}

/* ==========================================
   13. Search Overlay
   ========================================== */
.search-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.4); z-index: 200; padding: 2rem;
}
.search-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }

.search-overlay-inner {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 72vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.search-overlay-header {
  display: flex; align-items: center; padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee; gap: .75rem;
}
.search-overlay-header svg { flex-shrink: 0; color: #999; }
.search-overlay-header input {
  flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit;
}
.search-overlay-header input::placeholder { color: #bbb; }
.search-overlay-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; padding: .25rem; }
.search-results { padding: 1rem 1.5rem; }
.search-result-item { padding: .75rem 0; border-bottom: 1px solid #f0f0f0; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item a { font-weight: 600; display: block; margin-bottom: .15rem; }
.search-result-item p { font-size: .825rem; color: #777; margin: 0; }
.search-no-results { text-align: center; padding: 2rem; color: #999; }

/* ==========================================
   14. About, Sitemap, Templates, 404
   ========================================== */
.section-getting-started {
  /* background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.88) 100%),
    url('../images/banner/getting-started.webp') center/cover no-repeat; */
}
.about-hero {
  text-align: center; padding: 4rem 1.5rem 2rem;
  background:
    linear-gradient(180deg, rgba(248,249,250,0.8) 0%, rgba(248,249,250,0.9) 100%),
    url('../images/banner/about.webp') center/cover no-repeat;
}
.about-hero h1 { font-size: 2.25rem; }
.about-content { max-width: 700px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.about-content h2 { margin-top: 2.5rem; }

.sitemap-list { list-style: none; padding: 0; }
.sitemap-list > li { margin-bottom: 1rem; }
.sitemap-list > li > a { font-size: 1rem; font-weight: 600; }
.sitemap-list ul { list-style: none; padding-left: 1.5rem; margin: .35rem 0 1rem; }
.sitemap-list ul a { font-size: .9rem; color: #666; font-weight: 400; }
.sitemap-list ul a:hover { color: #06c; }

.templates-hero { text-align: center; padding: 4rem 1.5rem 2rem; background: #f8f9fa; }

.templates-filter {
  display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem 1rem; border: 1px solid #ddd; border-radius: 20px;
  background: #fff; color: #666; font-size: .8rem; font-family: inherit; cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active { background: #111; color: #fff; border-color: #111; }

.not-found { text-align: center; padding: 6rem 1.5rem; }
.not-found h2 { font-size: 3rem; margin-bottom: .75rem; }
.not-found p { color: #777; font-size: 1.1rem; margin-bottom: 2rem; }

/* ==========================================
   15. Responsive
   ========================================== */
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .getting-started-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .intro-wrapper { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr 1fr; }
  .featured-card:nth-child(even) { direction: rtl; }
  .featured-card:nth-child(even) .featured-card-content { direction: ltr; }
  .video-block { grid-template-columns: 1fr 1fr; }
  .footer-inner,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inline { grid-template-columns: 1fr auto; }
  .getting-started-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr 260px; gap: 3rem; }
  .sidebar { display: block; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1023px) {
  .hero { padding: 4rem 1.5rem 3rem; }
}

@media (max-width: 767px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #eee;
    flex-direction: column; padding: .5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { width: 100%; padding: .7rem .75rem; }
  .mobile-nav-toggle { display: flex; }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .article-header h1 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .toc-widget { position: static; margin-bottom: 1.5rem; }
  .newsletter-inline { padding: 1.75rem 1.25rem; }
  .newsletter-form { flex-direction: column; }
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }
}

@media (max-width: 539px) {
  .card-grid, .topic-grid { grid-template-columns: 1fr; }
  .featured-card-content { padding: 1.25rem; }
  .newsletter-inline-content h3 { font-size: 1.1rem; }
}

@media print {
  .site-header, .site-footer, .sidebar, .share-section,
  .newsletter-inline, .related-section, .search-overlay { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
