:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --success: #198754;
  --success-dark: #157347;
  --bg: #f4f6f9;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 15px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Top banner */
.top-banner {
  background: linear-gradient(90deg, #0d6efd, #0b5ed7);
  color: var(--white);
  text-align: center;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
}
.top-banner a {
  color: #fff;
  font-weight: 700;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.top-banner a:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.logo a { color: inherit; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
nav a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.92rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
nav a[aria-current="page"] { font-weight: 700; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Main */
main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-hidden] { color: #adb5bd; }

/* Hero */
.hero {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 22px;
}

/* Sections */
.section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 22px;
}
.section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text);
}
.section h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
  color: var(--text);
}
.section p { color: var(--muted); margin-bottom: 14px; }
.section ul, .section ol {
  margin: 0 0 16px 1.25rem;
  color: var(--muted);
}
.section li { margin-bottom: 6px; }

/* CTAs */
.cta-primary {
  display: inline-block;
  background: var(--success);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none !important;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--success-dark);
  transform: translateY(-1px);
  outline: none;
}
.cta-primary:focus-visible {
  outline: 3px solid #86b7fe;
  outline-offset: 2px;
}
.cta-secondary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.2s ease;
  text-decoration: none !important;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary-dark);
  outline: none;
}
.cta-secondary:focus-visible {
  outline: 3px solid #86b7fe;
  outline-offset: 2px;
}

/* Boxes */
.info-box {
  background: #e7f1ff;
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.success-box {
  background: #d1e7dd;
  border-left: 4px solid var(--success);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p { margin-bottom: 0; color: var(--muted); }

/* Blog cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.card h2, .card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 12px;
}
.card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Article meta */
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.article-content h2 { margin-top: 28px; }
.article-content h3 { margin-top: 20px; }

/* Related links */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li {
  margin-bottom: 8px;
  padding-left: 0;
}
.related-list a { font-weight: 500; }

/* Footer */
footer {
  background: #1a1d21;
  color: #adb5bd;
  padding: 32px 20px 24px;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-inner h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer-inner a {
  color: #adb5bd;
  display: block;
  margin-bottom: 6px;
}
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid #343a40;
  padding-top: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-bottom a { color: #adb5bd; }
.footer-bottom a:hover { color: #fff; }

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
  }
  nav.is-open { display: flex; }
  .hero { padding: 26px 18px; }
  .section { padding: 20px 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}
