
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary: hsl(185, 80%, 25%);
  --primary-dark: hsl(185, 80%, 18%);
  --primary-light: hsl(185, 80%, 90%);
  --primary-faint: hsl(185, 80%, 97%);
  --foreground: hsl(222, 84%, 5%);
  --muted: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --bg: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --radius: 0.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── CONTAINER ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.625rem; font-weight: 800;
  font-size: 1.25rem; color: var(--foreground); letter-spacing: -0.02em;
}
.logo-icon {
  background: var(--primary); color: #fff;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 1.125rem; height: 1.125rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.875rem; font-weight: 600; color: var(--slate-500);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Raleway', sans-serif; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff; border-radius: 0.5rem;
  padding: 0.625rem 1.25rem; font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(13,98,115,0.25);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary-lg {
  background: var(--primary); color: #fff; border-radius: 3rem;
  padding: 0.875rem 2rem; font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(13,98,115,0.3);
}
.btn-primary-lg:hover { background: var(--primary-dark); }
.btn-outline-lg {
  background: #fff; color: var(--foreground); border: 1.5px solid var(--border);
  border-radius: 3rem; padding: 0.875rem 2rem; font-size: 1.05rem;
}
.btn-outline-lg:hover { background: var(--slate-50); }
.btn-secondary {
  background: #fff; color: var(--primary); border-radius: 0.5rem;
  padding: 0.625rem 1.5rem; font-size: 0.9rem; font-weight: 700;
}
.btn-secondary:hover { background: rgba(255,255,255,0.9); }

/* Mobile nav */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--foreground); padding: 0.25rem;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav a {
  font-size: 1rem; font-weight: 600; color: var(--foreground);
  padding: 0.625rem 0.75rem; border-radius: 0.5rem;
}
.mobile-nav a:hover { color: var(--primary); background: var(--primary-faint); }
.mobile-nav .btn-primary { margin-top: 0.5rem; width: 100%; padding: 0.875rem; border-radius: 0.5rem; font-size: 1rem; }

@media (max-width: 768px) {
  .site-nav, .header-cta { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--slate-950); color: #fff;
  padding: 0.75rem 0; font-size: 0.875rem;
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem 2rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
}
.trust-item svg { color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--slate-50); padding: 5rem 0 6rem;
  overflow: hidden; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.875rem; border-radius: 3rem;
  background: rgba(13,98,115,0.1); color: var(--primary);
  font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem;
}
.pulse {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary);
  display: inline-block; position: relative;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.1; color: var(--slate-900); margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.125rem; color: var(--slate-600); margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img {
  border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15); aspect-ratio: 4/3;
  position: relative;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,98,115,0.15) 0%, transparent 60%);
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 16/9; }
  .hero h1 { font-size: 2.25rem; }
}

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800;
  color: var(--slate-900); margin-bottom: 0.875rem; line-height: 1.2;
}
.section-header p { font-size: 1.1rem; color: var(--slate-600); }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: var(--slate-400); }

/* ── SECTION ────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: var(--slate-900); color: #fff; }
.section-light { background: var(--slate-50); }
.section-white { background: #fff; }
.section-primary { background: var(--primary); }

/* ── GUIDE CARDS ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.guide-card {
  background: #fff; border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column; text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: rgba(13,98,115,0.3);
  transform: translateY(-2px);
}
.guide-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.guide-card:hover .guide-card-img img { transform: scale(1.05); }
.guide-card-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  padding: 0.2rem 0.75rem; border-radius: 3rem;
  font-size: 0.75rem; font-weight: 700; color: var(--slate-800);
}
.guide-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.guide-card-meta {
  display: flex; align-items: center; gap: 0.375rem;
  color: var(--slate-500); font-size: 0.85rem; margin-bottom: 0.75rem;
}
.guide-card-meta svg { width: 0.875rem; height: 0.875rem; }
.guide-card-title {
  font-size: 1rem; font-weight: 700; color: var(--slate-900);
  margin-bottom: 0.5rem; line-height: 1.4;
  transition: color 0.2s;
}
.guide-card:hover .guide-card-title { color: var(--primary); }
.guide-card-desc { font-size: 0.875rem; color: var(--slate-500); flex: 1; margin-bottom: 1rem; }
.guide-card-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 700; color: var(--primary);
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--slate-100);
}
.guide-card-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.guide-card:hover .guide-card-link svg { transform: translateX(3px); }

/* Editorial / Featured Guide Cards */
.feature-card {
  border-radius: 1.25rem; overflow: hidden;
  background: var(--slate-50); border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s; cursor: pointer; display: block;
  text-decoration: none; color: inherit;
}
.feature-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.feature-card-img { aspect-ratio: 16/9; overflow: hidden; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.feature-card:hover .feature-card-img img { transform: scale(1.05); }
.feature-card-body { padding: 2rem; }
.feature-card-body h3 {
  font-size: 1.375rem; font-weight: 800; color: var(--slate-900);
  margin-bottom: 0.75rem; transition: color 0.2s;
}
.feature-card:hover h3 { color: var(--primary); }
.feature-card-body p { color: var(--slate-600); margin-bottom: 1.25rem; line-height: 1.6; }
.read-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-weight: 700; color: var(--primary); font-size: 0.95rem;
}
.read-link svg { width: 1rem; height: 1rem; }

/* Dark guide card */
.guide-card-dark {
  background: var(--slate-800); border: 1px solid var(--slate-700);
  border-radius: 1rem; overflow: hidden;
  transition: border-color 0.2s; display: block;
  text-decoration: none; color: #fff;
}
.guide-card-dark:hover { border-color: var(--primary); }
.guide-card-dark .guide-card-img img { opacity: 0.9; transition: opacity 0.3s, transform 0.5s; }
.guide-card-dark:hover .guide-card-img img { opacity: 1; transform: scale(1.05); }
.guide-card-dark .guide-card-meta { color: var(--primary); }
.guide-card-dark .guide-card-title { color: #fff; }
.guide-card-dark:hover .guide-card-title { color: var(--primary); }
.guide-card-dark .guide-card-link { color: var(--slate-300); border-top-color: rgba(255,255,255,0.1); }
.guide-card-dark:hover .guide-card-link { color: #fff; }

/* ── CATEGORY GRID ──────────────────────────────────────── */
.category-pill {
  background: #fff; border: 1px solid var(--border);
  border-radius: 0.875rem; padding: 1.5rem 1rem;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: inherit;
}
.category-pill:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}
.category-pill-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--slate-50); display: flex; align-items: center;
  justify-content: center; transition: background 0.2s;
}
.category-pill-icon svg { width: 1.75rem; height: 1.75rem; color: var(--slate-600); transition: color 0.2s; }
.category-pill:hover .category-pill-icon { background: rgba(13,98,115,0.1); }
.category-pill:hover .category-pill-icon svg { color: var(--primary); }
.category-pill span { font-weight: 600; font-size: 0.9rem; color: var(--slate-800); }
.category-pill:hover span { color: var(--primary); }

/* ── TRUST SECTION ──────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.trust-item-card {
  text-align: center; padding: 1.5rem; border-radius: 1.25rem;
  background: var(--slate-50); border: 1px solid var(--slate-100);
}
.trust-icon {
  width: 3rem; height: 3rem; background: var(--primary); color: #fff;
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; box-shadow: 0 6px 20px rgba(13,98,115,0.25);
}
.trust-icon svg { width: 1.375rem; height: 1.375rem; }
.trust-item-card h3 { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.625rem; }
.trust-item-card p { font-size: 0.9rem; color: var(--slate-600); line-height: 1.6; }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── NEWSLETTER ─────────────────────────────────────────── */
.newsletter-section {
  background: var(--primary); padding: 6rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute;
  top: -50%; left: -10%; width: 70%; height: 200%;
  background: rgba(255,255,255,0.05); transform: rotate(12deg);
}
.newsletter-section::after {
  content: ''; position: absolute;
  top: 20%; right: -10%; width: 50%; height: 150%;
  background: rgba(0,0,0,0.04); transform: rotate(-12deg);
}
.newsletter-inner { position: relative; z-index: 1; }
.newsletter-section h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 0.875rem; }
.newsletter-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2rem; }
.newsletter-form {
  display: flex; gap: 0.75rem; max-width: 30rem; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 0 1.25rem; height: 3rem; border: none;
  border-radius: 0.5rem; background: rgba(255,255,255,0.12);
  color: #fff; font-family: 'Raleway', sans-serif; font-size: 0.95rem;
  outline: none; border: 1.5px solid rgba(255,255,255,0.2);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-form button {
  height: 3rem; padding: 0 2rem; background: #fff; color: var(--primary);
  border: none; border-radius: 0.5rem; font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: rgba(255,255,255,0.92); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.footer-logo-icon {
  background: var(--primary); width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 1.125rem; height: 1.125rem; color: #fff; }
.footer-logo span { font-size: 1.25rem; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9rem; color: var(--slate-400); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; text-align: center; font-size: 0.85rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero { background: var(--slate-900); color: #fff; padding: 4rem 0 5rem; }
.page-hero.light { background: var(--slate-50); color: var(--slate-900); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.1; }
.page-hero p { font-size: 1.1rem; color: var(--slate-300); max-width: 650px; margin: 0 auto; }
.page-hero.light p { color: var(--slate-600); }
.page-hero-badges { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 3rem; font-size: 0.8rem; font-weight: 700;
}
.badge-primary { background: rgba(13,98,115,0.2); color: hsl(185,80%,65%); }
.badge-muted { color: var(--slate-400); }
.badge svg { width: 0.875rem; height: 0.875rem; }

/* ── GUIDE DETAIL ───────────────────────────────────────── */
.guide-detail-grid { display: grid; grid-template-columns: 1fr 20rem; gap: 3rem; align-items: start; }
.guide-hero-img { border-radius: 1.25rem; overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16/9; }
.guide-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-intro {
  font-size: 1.05rem; color: var(--slate-700); line-height: 1.75;
  border-left: 4px solid var(--primary); padding: 1rem 1.25rem;
  background: rgba(13,98,115,0.04); border-radius: 0 0.75rem 0.75rem 0;
  margin-bottom: 3rem;
}
.steps-heading { font-size: 1.75rem; font-weight: 800; color: var(--slate-900); margin-bottom: 2rem; }
.steps-list { display: flex; flex-direction: column; gap: 2rem; }
.step-item { display: flex; gap: 1.25rem; }
.step-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 900;
  font-size: 1.1rem; box-shadow: 0 4px 12px rgba(13,98,115,0.3);
  margin-top: 0.2rem;
}
.step-content h3 { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.step-content p { color: var(--slate-600); line-height: 1.7; font-size: 0.975rem; }
.tips-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 1.25rem;
  padding: 2rem; margin-top: 3.5rem;
}
.tips-box-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.5rem; }
.tips-icon {
  width: 2.5rem; height: 2.5rem; background: #fbbf24; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.tips-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.tips-box h2 { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); }
.tips-list { display: flex; flex-direction: column; gap: 0.875rem; }
.tip-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.tip-check { color: #d97706; flex-shrink: 0; margin-top: 0.2rem; }
.tip-check svg { width: 1.1rem; height: 1.1rem; }
.tip-item span { color: var(--slate-700); font-size: 0.95rem; }
.guide-sidebar { position: sticky; top: 6rem; }
.sidebar-card {
  background: var(--slate-50); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 1.5rem; margin-bottom: 1.25rem;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1.25rem; }
.sidebar-related-link {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem; border-radius: 0.75rem; margin-bottom: 0.5rem;
  transition: background 0.2s; text-decoration: none; color: inherit;
}
.sidebar-related-link:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sidebar-link-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: rgba(13,98,115,0.1); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.sidebar-link-icon svg { width: 1rem; height: 1rem; color: var(--primary); }
.sidebar-link-title { font-size: 0.875rem; font-weight: 600; color: var(--slate-900); line-height: 1.3; }
.sidebar-link-meta { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.25rem; }
.sidebar-cta {
  background: var(--primary); border-radius: 1.25rem; padding: 1.5rem; color: #fff;
}
.sidebar-cta h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; line-height: 1.5; }
.sidebar-cta .btn-secondary { display: block; text-align: center; border-radius: 0.5rem; padding: 0.75rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--slate-400); font-size: 0.875rem; font-weight: 600;
  margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: #fff; }
.back-link svg { width: 1rem; height: 1rem; }
.related-bottom { background: var(--slate-50); border-top: 1px solid var(--border); padding: 4rem 0; }
.related-bottom h2 { font-size: 1.5rem; font-weight: 800; color: var(--slate-900); margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-card {
  border-radius: 1rem; overflow: hidden; border: 1px solid var(--border);
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s; display: block;
  text-decoration: none; color: inherit;
}
.related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 1.25rem; }
.related-card-meta { display: flex; align-items: center; gap: 0.375rem; color: var(--slate-500); font-size: 0.8rem; margin-bottom: 0.5rem; }
.related-card-meta svg { width: 0.875rem; height: 0.875rem; }
.related-card-body h3 { font-size: 0.9rem; font-weight: 700; color: var(--slate-900); line-height: 1.35; transition: color 0.2s; }
.related-card:hover h3 { color: var(--primary); }
@media (max-width: 1024px) {
  .guide-detail-grid { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ── ABOUT ──────────────────────────────────────────────── */
.about-values-card {
  background: var(--slate-800); padding: 2rem; border-radius: 1.25rem;
  border: 1px solid var(--slate-700);
}
.value-icon {
  width: 3.5rem; height: 3.5rem; background: rgba(13,98,115,0.2); color: hsl(185,80%,60%);
  border-radius: 0.875rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.value-icon svg { width: 1.75rem; height: 1.75rem; }
.about-values-card h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 0.875rem; }
.about-values-card p { color: var(--slate-400); line-height: 1.6; font-size: 0.95rem; }

/* ── PRINTER HUB ────────────────────────────────────────── */
.printer-cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 2rem; transition: box-shadow 0.3s; display: flex;
  flex-direction: column; height: 100%;
}
.printer-cat-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.printer-cat-icon {
  width: 3.5rem; height: 3.5rem; background: var(--slate-100); border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: background 0.2s;
}
.printer-cat-card:hover .printer-cat-icon { background: rgba(13,98,115,0.1); }
.printer-cat-icon svg { width: 1.75rem; height: 1.75rem; color: var(--slate-700); transition: color 0.2s; }
.printer-cat-card:hover .printer-cat-icon svg { color: var(--primary); }
.printer-cat-card h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 0.75rem; }
.printer-cat-card > p { color: var(--slate-600); margin-bottom: 1.5rem; flex: 1; line-height: 1.6; }
.printer-topics h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--slate-900); margin-bottom: 0.75rem;
}
.printer-topics ul { display: flex; flex-direction: column; gap: 0.5rem; }
.printer-topics li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-600); }
.printer-topics li svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.1rem; flex-shrink: 0; }
.printer-cat-card .view-guides-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.875rem; border-radius: 0.5rem;
  background: var(--slate-50); color: var(--slate-700); font-weight: 700;
  font-size: 0.9rem; margin-top: 1.5rem; transition: all 0.2s;
  text-decoration: none;
}
.printer-cat-card .view-guides-btn:hover { background: var(--primary); color: #fff; }
.printer-cat-card .view-guides-btn svg { width: 1rem; height: 1rem; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-form-card {
  background: #fff; border-radius: 1.25rem; box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--slate-100); padding: 2.5rem; max-width: 42rem; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.9rem; font-weight: 700; color: var(--slate-700); }
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
  color: var(--slate-400); pointer-events: none;
}
.input-icon svg { width: 1.125rem; height: 1.125rem; }
.form-input {
  width: 100%; height: 3rem; padding: 0 1rem 0 2.75rem;
  border: 1.5px solid var(--border); border-radius: 0.5rem;
  font-family: 'Raleway', sans-serif; font-size: 0.95rem; color: var(--foreground);
  background: var(--slate-50); outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); background: #fff; }
.form-textarea {
  width: 100%; min-height: 10rem; padding: 0.875rem 1rem;
  border: 1.5px solid var(--border); border-radius: 0.5rem;
  font-family: 'Raleway', sans-serif; font-size: 0.95rem; color: var(--foreground);
  background: var(--slate-50); outline: none; resize: vertical; transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--primary); background: #fff; }
.form-submit {
  width: 100%; height: 3.5rem; background: var(--primary); color: #fff;
  border: none; border-radius: 0.5rem; font-family: 'Raleway', sans-serif;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
}
.form-submit:hover { background: var(--primary-dark); }
.form-submit svg { width: 1.125rem; height: 1.125rem; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--slate-500); margin-top: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.contact-success-msg {
  display: none; text-align: center; padding: 1.25rem;
  background: rgba(13,98,115,0.08); border-radius: 0.75rem;
  color: var(--primary); font-weight: 700; font-size: 1rem; margin-top: 1rem;
}

/* ── LEGAL PAGES ────────────────────────────────────────── */
.legal-content { max-width: 700px; }
.legal-content h2 { font-size: 1.375rem; font-weight: 800; color: var(--slate-900); margin: 2rem 0 0.875rem; }
.legal-content p { color: var(--slate-600); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content li { color: var(--slate-600); line-height: 1.75; margin-bottom: 0.375rem; list-style: disc; }
.legal-date { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── SEARCH/FILTER BAR ──────────────────────────────────── */
.search-wrap { position: relative; max-width: 40rem; margin: 0 auto; }
.search-wrap .search-icon {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  color: var(--slate-400); pointer-events: none;
}
.search-wrap .search-icon svg { width: 1.5rem; height: 1.5rem; }
.search-input {
  width: 100%; padding: 0 1.5rem 0 3.75rem; height: 3.5rem;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 3rem; color: #fff; font-family: 'Raleway', sans-serif;
  font-size: 1rem; outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { border-color: rgba(255,255,255,0.5); }
.filter-bar { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 2.5rem; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 3rem; font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; border: 1.5px solid var(--border);
  background: #fff; color: var(--slate-700);
}
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(13,98,115,0.25); }
.filter-btn:hover:not(.active) { background: var(--slate-100); }

/* ── REPAIR GUIDES GRID ─────────────────────────────────── */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guides-grid { grid-template-columns: 1fr; } }

/* ── MISC ────────────────────────────────────────────────── */
.text-primary { color: var(--primary); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.guides-section-header { max-width: 600px; }
.guides-section-header h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.guides-section-header p { color: var(--slate-400); font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

svg { display: inline-block; vertical-align: middle; }
