/* ============================================
   Indiana Paycheck Calculator - Main Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d2340;
  --blue: #1a4a7a;
  --gold: #c8972a;
  --gold-light: #f5d98a;
  --cream: #fdf8f0;
  --white: #ffffff;
  --gray-100: #f4f6f9;
  --gray-200: #e8edf3;
  --gray-400: #9aa5b4;
  --gray-600: #5a6a7e;
  --gray-800: #2d3a4a;
  --success: #1a7a4a;
  --shadow-sm: 0 2px 8px rgba(13,35,64,0.08);
  --shadow-md: 0 8px 32px rgba(13,35,64,0.12);
  --shadow-lg: 0 20px 60px rgba(13,35,64,0.18);
  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.65;
  font-size: 16px;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo-text span {
  color: var(--gold-light);
  display: block;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e5a96 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-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,151,42,0.2);
  border: 1px solid rgba(200,151,42,0.4);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

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

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 12px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.hero-meta-item svg { color: var(--gold); }

/* ---- MAIN LAYOUT ---- */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
}

/* ---- CALCULATOR CARD ---- */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.calc-tabs {
  display: flex;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.calc-tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.calc-tab.active {
  color: var(--navy);
  background: var(--white);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.calc-tab:hover:not(.active) {
  color: var(--blue);
  background: rgba(255,255,255,0.6);
}

.calc-body {
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group label .tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--gray-200);
  border-radius: 50%;
  font-size: 10px;
  color: var(--gray-600);
  cursor: help;
  margin-left: 6px;
  position: relative;
  font-weight: 700;
  font-style: normal;
}

.form-group label .tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  z-index: 10;
  pointer-events: none;
  min-width: 200px;
  white-space: normal;
  line-height: 1.4;
}

.input-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-weight: 600;
  pointer-events: none;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-100);
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrap input[type="number"] { padding-left: 28px; }

input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,74,122,0.1);
}

select {
  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 d='M1 1l5 5 5-5' stroke='%239aa5b4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.section-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.calc-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(13,35,64,0.3);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,35,64,0.4);
}

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

/* ---- RESULTS ---- */
.results-panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  display: none;
}

.results-panel.visible { display: block; animation: fadeUp 0.4s ease; }

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

.results-header {
  text-align: center;
  margin-bottom: 24px;
}

.results-header h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.results-header p { color: var(--gray-600); font-size: 0.88rem; }

.take-home-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.take-home-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.take-home-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.take-home-amount {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.take-home-per {
  color: var(--gold-light);
  font-size: 0.88rem;
  margin-top: 6px;
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.breakdown-item:hover { background: var(--gray-100); }

.breakdown-item .label { color: var(--gray-600); }
.breakdown-item .amount { font-weight: 600; color: var(--gray-800); }
.breakdown-item.gross .amount { color: var(--navy); }
.breakdown-item.deduction .amount { color: #b04040; }

.breakdown-separator {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--gray-100);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-top: 8px;
}

/* Pie chart */
.chart-container {
  margin-top: 24px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 12px;
}

.chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  margin-bottom: 16px;
  text-align: center;
}

#breakdownChart { max-height: 220px; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

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

.sidebar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card h3 .icon {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.tax-rates-table { width: 100%; border-collapse: collapse; }
.tax-rates-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.tax-rates-table td {
  padding: 9px 10px;
  font-size: 0.88rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.tax-rates-table tr:last-child td { border-bottom: none; }
.tax-rates-table td:last-child { text-align: right; font-weight: 600; color: var(--blue); }

.tips-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.tips-list li {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.tips-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.cta-card {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a82a 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.cta-card h3 { color: var(--navy); font-family: 'Playfair Display', serif; margin-bottom: 10px; }
.cta-card p { color: rgba(13,35,64,0.75); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.5; }

.cta-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-btn:hover { background: var(--blue); transform: translateY(-1px); }

/* ---- CONTENT SECTIONS ---- */
.content-section {
  padding: 64px 0;
  border-top: 1px solid var(--gray-200);
}

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

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

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  transition: background 0.2s;
  gap: 16px;
}

.faq-question:hover { background: var(--gray-100); }

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 12px;
  color: var(--navy);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* ---- BLOG SECTION ---- */
.blog-section { padding: 64px 0; background: var(--gray-100); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.blog-card-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e5a96 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.blog-card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(13,35,64,0.6));
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}

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

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card p { color: var(--gray-600); font-size: 0.88rem; line-height: 1.6; flex: 1; }

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

.blog-card-link:hover { color: var(--gold); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 56px 24px 32px;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--gold-light); text-decoration: none; }

.disclaimer-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---- BLOG POST PAGE ---- */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 60px 24px;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 56px 0;
  align-items: start;
}

.blog-post-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.post-category {
  background: var(--gold);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-meta-item {
  color: var(--gray-400);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.7rem;
  margin: 36px 0 16px;
  line-height: 1.3;
}

.post-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.post-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.post-content ul, .post-content ol {
  color: var(--gray-600);
  padding-left: 24px;
  margin-bottom: 18px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 0.97rem;
}

.post-content a { color: var(--blue); font-weight: 500; }
.post-content a:hover { color: var(--gold); }

.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  background: var(--gray-100);
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
}

.post-content .info-box {
  background: linear-gradient(135deg, rgba(26,74,122,0.06), rgba(13,35,64,0.06));
  border: 1px solid rgba(26,74,122,0.15);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}

.post-content .info-box h4 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.placeholder-block {
  background: repeating-linear-gradient(
    -45deg,
    var(--gray-100),
    var(--gray-100) 8px,
    var(--gray-200) 8px,
    var(--gray-200) 16px
  );
  border-radius: 10px;
  padding: 28px 24px;
  margin: 24px 0;
  border: 1.5px dashed var(--gray-400);
  text-align: center;
}

.placeholder-block p {
  color: var(--gray-400) !important;
  font-style: italic;
  font-size: 0.88rem !important;
  margin: 0 !important;
}

.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }

.toc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 88px;
}

.toc-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.toc-list a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--navy);
  background: var(--gray-100);
  border-left-color: var(--gold);
}

.related-posts-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.related-posts-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 16px;
}

.related-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.related-post-item:last-child { border-bottom: none; }

.related-post-item:hover .related-post-title { color: var(--blue); }

.related-post-thumb {
  width: 60px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.related-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  transition: color 0.2s;
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ---- BLOG INDEX ---- */
.blog-index-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); padding: 64px 24px; }

.blog-index-layout { padding: 56px 0; }

/* Responsive */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar .sidebar-card { flex: 1 1 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-post-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .calc-btn { grid-column: 1; }
  .header-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 48px 16px 56px; }
  .calc-body { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-post-content { padding: 28px 20px; }
}
