/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --green-900: #071a09;
  --green-800: #0d3b12;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #388e3c;
  --green-400: #43a047;
  --green-200: #c8e6c9;
  --green-50: #f1f8f1;
  --green-100: #e8f5e9;
  --white: #ffffff;
  --text-dark: #1a2e1a;
  --text-muted: #4a5e4a;
  --border: #c8e6c9;
  --shadow: 0 2px 12px rgba(27,94,32,.12);
  --shadow-lg: 0 8px 32px rgba(27,94,32,.18);
  --radius: 10px;
  --radius-lg: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); text-decoration: underline; }
ul { list-style: none; }

/* ─── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
header { position: sticky; top: 0; z-index: 100; }
.navbar {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.navbar-brand:hover { color: var(--green-200); text-decoration: none; }
.brand-icon { font-size: 1.5rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu li a {
  color: rgba(255,255,255,.85);
  padding: 7px 11px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb-nav {
  background: var(--green-100);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '›'; color: var(--green-400); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--green-700); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── HERO (Homepage) ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -.3px;
}
.hero h1 em {
  font-style: normal;
  color: #a5d6a7;
}
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-700);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .25s;
  box-shadow: var(--shadow-lg);
}
.hero-btn:hover {
  background: var(--green-100);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ─── SECTION TITLES ─────────────────────────────────────────── */
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green-600);
  display: inline-block;
}

/* ─── CATEGORY CARDS (homepage) ──────────────────────────────── */
.categories-section {
  padding: 60px 0;
  background: var(--white);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px 18px 24px;
  transition: all .25s;
  display: block;
}
.cat-card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}
.cat-card-icon { font-size: 2.2rem; margin-bottom: 10px; }
.cat-card h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--green-800);
}

/* ─── FEATURED ARTICLES GRID ─────────────────────────────────── */
.featured-section {
  padding: 60px 0;
  background: var(--green-100);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ─── ARTICLE CARD ───────────────────────────────────────────── */
.art-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
}
.art-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
  transform: translateY(-2px);
}
.art-card-link { display: block; color: inherit; text-decoration: none; }
.art-card-link:hover { text-decoration: none; }
.art-card-body { padding: 22px; }
.art-kw {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.art-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 8px;
  line-height: 1.35;
}
.art-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.art-read-more {
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-600);
}

/* ─── CATEGORY PAGE HERO ─────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.cat-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.cat-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.cat-hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 580px;
  margin: 0 auto;
}
.article-grid-section { padding: 60px 0; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* Category quick-links on category page */
.other-categories {
  background: var(--green-100);
  padding: 48px 0;
}
.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.cat-pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--green-700);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: .88rem;
  transition: all .2s;
}
.cat-pill:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  text-decoration: none;
}

/* ─── ARTICLE LAYOUT ─────────────────────────────────────────── */
.article-layout { padding: 40px 0 60px; }
.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 32px; }
.art-category-badge { margin-bottom: 14px; }
.art-category-badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.art-category-badge a:hover {
  background: var(--green-700);
  color: var(--white);
  text-decoration: none;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-intro {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 4px solid var(--green-600);
  padding-left: 18px;
}

/* Content sections */
.article-content { margin-bottom: 40px; }
.content-section { margin-bottom: 32px; }
.content-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-200);
}
.content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* FAQ */
.faq-section {
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 20px;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-800);
  padding: 14px 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--green-600);
  flex-shrink: 0;
  margin-left: 10px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p { font-size: .93rem; color: var(--text-muted); line-height: 1.7; }

/* Related articles */
.related-internal {
  border-top: 2px solid var(--border);
  padding-top: 28px;
  margin-top: 36px;
}
.related-internal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 16px;
}
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-list li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--green-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}
.related-list li a:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  text-decoration: none;
}
.related-list li a strong { color: var(--green-800); font-size: .95rem; }
.related-list li a:hover strong { color: var(--white); }
.related-list li a span { font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.related-list li a:hover span { color: rgba(255,255,255,.85); }

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-widget h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-200);
}
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-links li a {
  display: block;
  color: var(--green-700);
  font-size: .88rem;
  padding: 6px 8px;
  border-radius: 5px;
  transition: all .2s;
}
.sidebar-links li a:hover {
  background: var(--green-100);
  text-decoration: none;
}
.sidebar-links li.see-all a {
  font-weight: 700;
  color: var(--green-600);
  margin-top: 4px;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--white);
}
.sidebar-cta span { font-size: 2.5rem; }
.sidebar-cta h3 { font-size: 1.05rem; font-weight: 700; margin: 10px 0 8px; }
.sidebar-cta p { font-size: .86rem; opacity: .9; margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-700);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .86rem;
  transition: all .2s;
}
.sidebar-cta-btn:hover { background: var(--green-100); text-decoration: none; }

/* ─── TIPS GRID ──────────────────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.tip-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.tip-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 6px;
}
.tip-item p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-brand { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.footer-categories a {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  transition: all .2s;
}
.footer-categories a:hover { color: var(--white); border-color: rgba(255,255,255,.5); text-decoration: none; }
.footer-policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
}
.footer-policy a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  transition: color .2s;
}
.footer-policy a:hover { color: var(--white); text-decoration: none; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.45); }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-wrapper { grid-template-columns: 1fr 260px; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 12px 16px; font-size: .97rem; }
  .hero h1 { font-size: 2rem; }
  .article-wrapper { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .cat-hero h1 { font-size: 1.7rem; }
  .article-header h1 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.65rem; }
  .section-title { font-size: 1.35rem; }
  .article-grid, .featured-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── STATIC POLICY PAGES ─────────────────────────────────────── */
.static-page-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 52px 0 44px;
  text-align: center;
}
.static-page-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.static-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}
.static-page-subtitle {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.static-page-date { font-size: .82rem; opacity: .6; }

.static-page-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

/* ─── Static Content ──────────────────────────────────────────── */
.static-page-content {}

.static-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.static-section:last-child { border-bottom: none; }

.static-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--green-600);
}
.static-section p {
  font-size: .97rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 14px;
}
.static-section p:last-child { margin-bottom: 0; }

.static-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.static-list li {
  padding: 10px 14px 10px 38px;
  position: relative;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.static-list li:last-child { border-bottom: none; }
.static-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--green-600);
  font-weight: 700;
  font-size: .9rem;
}

/* ─── Static Sidebar ──────────────────────────────────────────── */
.static-page-sidebar { position: sticky; top: 80px; }

.static-toc {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.static-toc h3 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.static-toc ul { list-style: none; padding: 0; margin: 0; }
.static-toc li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .875rem;
}
.static-toc li:last-child { border-bottom: none; }
.static-toc a {
  color: var(--green-700);
  font-weight: 500;
  transition: color .2s;
}
.static-toc a:hover { color: var(--green-800); }

/* ─── Contact Form ────────────────────────────────────────────── */
.contact-section { border-top: 2px solid var(--green-200); padding-top: 28px !important; }

.contact-form { margin-top: 20px; }
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(27,94,32,.08);
}
.cf-field textarea { resize: vertical; min-height: 140px; }
.cf-btn {
  background: var(--green-700);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.cf-btn:hover { background: var(--green-800); transform: translateY(-1px); }
.cf-success {
  margin-top: 18px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
}

/* ─── Static Page Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .static-page-wrap { grid-template-columns: 1fr; gap: 28px; }
  .static-page-sidebar { position: static; }
  .static-page-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 600px) {
  .static-page-hero { padding: 36px 0 30px; }
  .static-page-hero h1 { font-size: 1.4rem; }
  .cf-row { grid-template-columns: 1fr; }
  .static-section h2 { font-size: 1.1rem; }
}
