/* ========================================
   Parvellyn - Global Styles
   Design: Warm, trustworthy parenting platform
   ======================================== */

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

:root {
  /* Color Palette */
  --primary: #4A7C59;
  --primary-light: #6B9E7A;
  --primary-dark: #2E5C3F;
  --primary-bg: #F0F7F2;
  --accent: #E8845A;
  --accent-light: #F5A984;
  --accent-bg: #FEF3EC;

  --text-primary: #1A2B22;
  --text-secondary: #4A5E52;
  --text-muted: #7A9080;
  --text-light: #A8BDB2;

  --bg-white: #FFFFFF;
  --bg-soft: #FAFDF9;
  --bg-gray: #F4F7F5;
  --border: #D8E8DC;
  --border-light: #EAF2EC;

  --shadow-sm: 0 1px 3px rgba(74,124,89,0.08), 0 1px 2px rgba(74,124,89,0.06);
  --shadow-md: 0 4px 12px rgba(74,124,89,0.10), 0 2px 6px rgba(74,124,89,0.07);
  --shadow-lg: 0 10px 30px rgba(74,124,89,0.12), 0 4px 12px rgba(74,124,89,0.08);

  /* Typography */
  --font-display: 'Nanum Myeongjo', serif;
  --font-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --section-gap: 80px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(74,124,89,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================
   HERO
   ===================== */
.hero {
  background: linear-gradient(160deg, var(--primary-bg) 0%, #E8F4EC 40%, #FEF8F3 100%);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74,124,89,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(232,132,90,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(74,124,89,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,124,89,0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 48px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================
   SECTIONS
   ===================== */
.section { padding: var(--section-gap) 20px; }
.section-alt { background: var(--bg-soft); }
.section-green { background: var(--primary-bg); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* =====================
   CARD GRIDS
   ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Article Card */
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-bg), var(--bg-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.04));
}

.article-card-body {
  padding: 20px 22px 22px;
}

.article-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.article-tag.tag-sleep { background: #EEF2FF; color: #4F5DC4; }
.article-tag.tag-feed { background: #FFF4E6; color: #C46B0E; }
.article-tag.tag-wean { background: #FFF0F0; color: #C44040; }
.article-tag.tag-vac { background: #F0F8FF; color: #2C7BB6; }
.article-tag.tag-prod { background: #F5F0FF; color: #7B40C4; }
.article-tag.tag-season { background: #F0FFF4; color: #22763A; }
.article-tag.tag-newborn { background: #FFF9E6; color: #B8860B; }

.article-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Tool Card */
.tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px 24px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.tool-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
}

/* =====================
   CALCULATOR LAYOUT
   ===================== */
.calculator-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.calc-hero {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #E5F3EB 100%);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

.calc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.calc-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calc-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.calc-form-group {
  margin-bottom: 22px;
}

.calc-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.calc-form-group input,
.calc-form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition);
  appearance: none;
}

.calc-form-group input:focus,
.calc-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}

.calc-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.calc-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,124,89,0.3);
}

.calc-result {
  background: linear-gradient(135deg, var(--primary-bg), #E0F0E6);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  display: none;
}

.calc-result.visible { display: block; }

.calc-result h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.result-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.result-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.result-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 14px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
}

/* =====================
   BLOG / ARTICLE PAGE
   ===================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Article Content */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 18px; }

.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-content li { margin-bottom: 8px; }

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  background: var(--primary-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: normal;
  color: var(--text-primary);
}

.article-content .highlight-box {
  background: var(--accent-bg);
  border: 1px solid rgba(232,132,90,0.25);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

.article-content .info-box {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

/* Sidebar */
.sidebar { position: sticky; top: 88px; }

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}

.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links { list-style: none; }

.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sidebar-links a:hover { color: var(--primary); }

/* Ad placeholders */
.ad-slot {
  background: var(--bg-gray);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.78rem;
  text-align: center;
  min-height: 90px;
  margin: 24px 0;
}

.ad-slot-banner { min-height: 90px; }
.ad-slot-square { min-height: 250px; }

/* =====================
   FAQ ACCORDION
   ===================== */
.faq-list { list-style: none; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-soft); }

.faq-question.active { background: var(--primary-bg); color: var(--primary-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}

.faq-question.active .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--primary-bg);
}

.faq-answer.open { display: block; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #1A2B22;
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: white; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-light); }

/* =====================
   BREADCRUMB BAR
   ===================== */
.page-breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.page-hero {
  background: linear-gradient(160deg, var(--primary-bg) 0%, #F5FCF7 100%);
  padding: 56px 20px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =====================
   BLOG LIST PAGE
   ===================== */
.blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cat-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cat-btn:hover, .cat-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================
   CONTACT / FORM
   ===================== */
.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* =====================
   TABLES
   ===================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 20px 0;
}

.data-table th {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.data-table tr:hover td { background: var(--bg-soft); }

/* =====================
   TAGS / BADGES
   ===================== */
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-gray);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* =====================
   PAGINATION
   ===================== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 48px;
}

.page-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.page-link:hover, .page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================
   RELATED POSTS
   ===================== */
.related-posts {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 40px;
}

.related-posts h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-gap: 56px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a { width: 100%; padding: 12px 16px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .grid-2 { grid-template-columns: 1fr; }

  .blog-layout { grid-template-columns: 1fr; }

  .sidebar { position: static; }

  .hero-stats { gap: 0; }
  .stat-item { padding: 16px 20px; border-right: none; border-bottom: 1px solid var(--border-light); width: 50%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .calc-box { padding: 22px 18px; }
  .calc-hero { padding: 26px 20px; }

  .contact-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 16px 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================
   UTILITIES
   ===================== */
.text-center { text-align: center; }
.text-green { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
