/* ===================================
   QLD Stamp Duty Calculator - Styles
   Aesthetic: Clean Government-Utility
   with modern editorial polish
   =================================== */

:root {
  --primary: #1a3c5e;
  --primary-light: #2563a8;
  --primary-dark: #0f2540;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

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

.logo-icon { font-size: 22px; }

.logo-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}

.logo-text strong {
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e5fa8 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.hero-sub strong { color: var(--accent); }

/* ---- CALCULATOR SECTION ---- */
.calculator-section {
  padding: 60px 0 80px;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.calc-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.calc-title {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.calc-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.tooltip-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-prefix:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.15);
}

.input-prefix span {
  background: var(--bg);
  padding: 0 16px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-right: 2px solid var(--border);
}

.input-prefix input {
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--text);
  flex: 1;
  background: var(--bg-white);
  font-weight: 500;
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,168,0.15); }

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
  font-weight: 500;
}

.radio-label:has(input:checked) {
  border-color: var(--primary-light);
  background: rgba(37,99,168,0.06);
  color: var(--primary-light);
}

.radio-label input { display: none; }

.calc-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(37,99,168,0.35);
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,168,0.45);
}

.calc-btn:active { transform: translateY(0); }

/* ---- RESULTS ---- */
.result-box {
  margin-top: 32px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius);
  padding: 28px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.result-icon { font-size: 24px; }

.result-header h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--primary-dark);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.result-item {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item.highlight {
  background: var(--primary-dark);
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item.highlight .result-label { color: rgba(255,255,255,0.7); }

.result-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.result-value.big {
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--accent);
}

.result-breakdown {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: monospace;
}

.result-note {
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 14px;
  line-height: 1.6;
}

.result-note a { color: var(--primary-light); }

.reset-btn {
  margin-top: 16px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.reset-btn:hover { background: var(--primary); color: white; }

.error-box {
  margin-top: 20px;
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

/* ---- SIDE INFO ---- */
.side-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
}

.info-card.green { border-color: var(--green); }
.info-card.blue { border-color: var(--primary-light); }
.info-card.amber { border-color: var(--accent); }
.info-card.purple { border-color: #7c3aed; }

.info-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.info-card p, .info-card ul {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.info-card a {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover { text-decoration: underline; }

/* ---- RATES TABLE ---- */
.rates-section {
  background: var(--bg-white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rates-section h2,
.examples-section h2,
.faq-section h2,
.blog-teaser-section h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 680px;
}

.section-sub a { color: var(--primary-light); }

.tables-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.rate-table-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.rate-table thead {
  background: var(--primary-dark);
  color: white;
}

.rate-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.rate-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.rate-table tbody tr:last-child td { border-bottom: none; }

.rate-table tbody tr:nth-child(even) { background: var(--bg); }

.rate-table .highlight-row td {
  background: var(--green-light);
  color: #065f46;
  font-weight: 600;
}

.rate-table .center { text-align: center; }

.rate-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  color: #92400e;
}

/* ---- EXAMPLES ---- */
.examples-section {
  padding: 72px 0;
  background: var(--bg);
}

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

.example-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.example-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.example-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.example-badge.ev { background: #d1fae5; color: #065f46; }
.example-badge.hybrid { background: #dcfce7; color: #166534; }
.example-badge.four { background: #dbeafe; color: #1e40af; }
.example-badge.six { background: #ede9fe; color: #5b21b6; }
.example-badge.eight { background: #fee2e2; color: #991b1b; }
.example-badge.luxury { background: #fef3c7; color: #92400e; }

.example-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.example-calc { display: flex; flex-direction: column; gap: 8px; }

.ex-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.ex-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.ex-row.total {
  border-top: 2px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.ex-row.total span {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 15px;
}

.ex-row.total span:last-child { color: var(--green); font-size: 17px; }

/* ---- FAQ ---- */
.faq-section {
  padding: 72px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.faq-q:hover { color: var(--primary-light); }

.faq-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-a.visible { display: block; animation: fadeIn 0.3s ease; }

.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { padding-left: 20px; margin-bottom: 12px; }
.faq-a li { margin-bottom: 6px; }
.faq-a strong { color: var(--text); }
.faq-a a { color: var(--primary-light); }

/* ---- BLOG TEASER ---- */
.blog-teaser-section {
  padding: 72px 0;
  background: var(--bg);
}

.blog-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.view-all-link {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: gap 0.2s;
}

.view-all-link:hover { text-decoration: underline; }

.blog-teaser-grid { display: grid; }

.blog-teaser-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  max-width: 680px;
}

.blog-teaser-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.blog-teaser-img {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.blog-teaser-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-teaser-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
}

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

.footer-col > p:not(.footer-disclaimer) {
  font-size: 14px;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-col h5 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: white; }

.footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer a { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

/* ---- BLOG PAGE STYLES ---- */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 24px 64px;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.blog-hero .breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }

.blog-hero .blog-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  align-items: start;
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--primary-dark);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}

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

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.article-body a { color: var(--primary-light); }

.article-body .callout {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.article-body .callout strong { color: var(--primary-dark); }

.article-body .placeholder-block {
  background: #f8fafc;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
  text-align: center;
}

.article-body .placeholder-block p {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.sidebar-card ul { list-style: none; }

.sidebar-card ul li {
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

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

.sidebar-card ul li a { color: var(--primary-light); text-decoration: none; font-weight: 500; }

.cta-sidebar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: white;
}

.cta-sidebar h4 { color: white; margin-bottom: 10px; }

.cta-sidebar p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }

.cta-sidebar a {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.cta-sidebar a:hover { background: var(--accent-dark); }

/* Blog Index Styles */
.blog-index-section {
  padding: 60px 0;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-index-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-index-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.blog-card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.blog-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
}

.blog-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }

.blog-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-footer span { font-size: 12px; color: var(--text-light); }

.blog-card-footer .read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .side-info { display: grid; grid-template-columns: 1fr 1fr; }
  .tables-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }
  .examples-grid { grid-template-columns: 1fr; }
  .side-info { grid-template-columns: 1fr; }
  .blog-teaser-card { grid-template-columns: 1fr; }
  .blog-teaser-img { width: 100%; height: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-item.highlight { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 24px 56px; }
  .calc-card { padding: 24px; }
  .radio-group { flex-direction: column; }
  .blog-teaser-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
