/*
Theme Name: Arshiyan Finance
Theme URI: https://finance.arshiyan.blog
Author: Arshiyan
Author URI: https://finance.arshiyan.blog
Description: A lightweight, fast, and Google AdSense friendly WordPress theme built for personal finance blogs. Optimized for budgeting, saving money, debt-free living, and financial guide content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arshiyan-finance
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --deep: #0B1D33;
  --navy: #14304D;
  --teal: #1A8A7D;
  --teal-light: #22B8A6;
  --gold: #D4A843;
  --gold-light: #F0CC6B;
  --cream: #FAF7F2;
  --warm-white: #FDFCFA;
  --g100: #F4F3F0;
  --g200: #E8E6E1;
  --g400: #A09D96;
  --g600: #6B6860;
  --g800: #3A3832;
  --green: #2D8F5E;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11,29,51,0.06);
  --shadow-md: 0 4px 16px rgba(11,29,51,0.08);
  --shadow-lg: 0 8px 32px rgba(11,29,51,0.10);
  --max-w: 1180px;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--g800);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
}


/* ================================================
   HEADER
   ================================================ */

.site-header {
  background: var(--deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--teal);
}

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

.site-logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  font-family: var(--sans);
}

.site-logo .highlight { color: var(--gold); }

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

.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.main-nav .nav-cta {
  background: var(--teal);
  color: #fff;
  margin-left: 4px;
}

.main-nav .nav-cta:hover { background: var(--teal-light); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu {
  display: none;
  background: var(--deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu a:hover { color: #fff; }


/* ================================================
   AD SLOTS
   ================================================ */

.ad-slot {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
  min-height: 50px;
}

.ad-slot-below-header { padding-top: 16px; padding-bottom: 16px; }

.ad-slot-in-content {
  margin: 32px auto;
  padding: 20px 0;
}

.ad-slot-sidebar {
  margin-bottom: 24px;
  padding: 0;
  text-align: center;
}


/* ================================================
   HERO (Front Page Only)
   ================================================ */

.hero {
  background: linear-gradient(165deg, var(--deep) 0%, var(--navy) 55%, #1B4A5E 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,138,125,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,138,125,0.15);
  border: 1px solid rgba(26,138,125,0.3);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,138,125,0.3);
}

.btn-primary:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.hero-stats { display: flex; flex-direction: column; gap: 14px; }

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 2px;
}

.stat-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}


/* ================================================
   TRUST BAR
   ================================================ */

.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--g200);
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g600);
}

.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ti-green { background: #E7F5ED; }
.ti-gold { background: #FDF3DC; }
.ti-teal { background: #E3F4F2; }
.ti-navy { background: #E4EAF0; }


/* ================================================
   SECTION HEADINGS
   ================================================ */

.section { padding: 56px 0; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--deep);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--g600);
  max-width: 560px;
  margin-bottom: 36px;
}

.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }


/* ================================================
   HUB CARDS (Category Cards on Front Page)
   ================================================ */

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

.hub-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  border-top: 3px solid var(--g200);
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.hub-card.hc-teal { border-top-color: var(--teal); }
.hub-card.hc-green { border-top-color: var(--green); }
.hub-card.hc-gold { border-top-color: var(--gold); }
.hub-card.hc-navy { border-top-color: var(--navy); }

.hub-card:hover.hc-teal { border-top-color: var(--teal); }
.hub-card:hover.hc-green { border-top-color: var(--green); }
.hub-card:hover.hc-gold { border-top-color: var(--gold); }
.hub-card:hover.hc-navy { border-top-color: var(--navy); }

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.hi-teal { background: #E3F4F2; }
.hi-green { background: #E7F5ED; }
.hi-gold { background: #FDF3DC; }
.hi-navy { background: #E4EAF0; }

.hub-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--deep);
}

.hub-card p {
  font-size: 0.83rem;
  color: var(--g600);
  line-height: 1.65;
  margin-bottom: 14px;
}

.hub-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
}


/* ================================================
   FEATURED CARDS
   ================================================ */

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.featured-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

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

.ftag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.ftag-teal { background: #E3F4F2; color: var(--teal); }
.ftag-green { background: #E7F5ED; color: var(--green); }
.ftag-gold { background: #FDF3DC; color: #9A7A1E; }
.ftag-navy { background: #E4EAF0; color: var(--navy); }

.featured-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.35;
}

.featured-card p {
  font-size: 0.85rem;
  color: var(--g600);
  line-height: 1.7;
  margin-bottom: 14px;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
}


/* ================================================
   CALCULATOR SHOWCASE
   ================================================ */

.calc-section {
  background: var(--cream);
  padding: 56px 0;
  border-top: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
}

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

.calc-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

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

.calc-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 14px;
}

.calc-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}

.calc-card p {
  font-size: 0.8rem;
  color: var(--g600);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.calc-btn {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(26,138,125,0.08);
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}


/* ================================================
   STEPS
   ================================================ */

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

.step-card { padding: 28px 24px; }

.step-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--g200);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--g600);
  line-height: 1.7;
}


/* ================================================
   INFO SECTION
   ================================================ */

.info-section {
  background: #fff;
  border-top: 1px solid var(--g200);
  padding: 56px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-content h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--deep);
  margin-bottom: 16px;
  line-height: 1.3;
}

.info-content p {
  font-size: 0.9rem;
  color: var(--g600);
  line-height: 1.8;
  margin-bottom: 14px;
}

.info-content p strong { color: var(--g800); }

.info-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.info-list li {
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--g600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--g100);
}

.info-list li:last-child { border-bottom: none; }

.info-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: #E7F5ED;
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}

.tips-box {
  background: var(--cream);
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  padding: 28px;
}

.tips-box h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--deep);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
}

.tip-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--g200);
}

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

.tip-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.tip-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 3px;
}

.tip-item p {
  font-size: 0.8rem;
  color: var(--g600);
  line-height: 1.6;
}


/* ================================================
   FAQ
   ================================================ */

.faq-section {
  padding: 56px 0;
  background: var(--cream);
  border-top: 1px solid var(--g200);
}

.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--deep);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--g100); }

.faq-toggle {
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 400;
  min-width: 20px;
  text-align: center;
  user-select: none;
}

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

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-a p {
  font-size: 0.86rem;
  color: var(--g600);
  line-height: 1.75;
}


/* ================================================
   BLOG POSTS GRID
   ================================================ */

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

.post-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

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

.post-thumb {
  height: 180px;
  background: var(--g100);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body { padding: 20px; }

.post-meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 6px;
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
  margin-bottom: 6px;
}

.post-card .excerpt {
  font-size: 0.8rem;
  color: var(--g600);
  line-height: 1.6;
}


/* ================================================
   MAIN CONTENT LAYOUT (Blog/Single/Page)
   ================================================ */

.site-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.site-content.full-width {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.main-content { min-width: 0; }


/* ================================================
   SINGLE POST / PAGE CONTENT
   ================================================ */

.entry-header { margin-bottom: 28px; }

.entry-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 8px;
  display: inline-block;
}

.entry-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--deep);
  line-height: 1.25;
  margin-bottom: 12px;
}

.entry-meta-info {
  font-size: 0.82rem;
  color: var(--g400);
}

.entry-meta-info a { color: var(--g600); }

.entry-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--g800);
}

.entry-content h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--deep);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep);
  margin: 28px 0 10px;
}

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

.entry-content ul,
.entry-content ol {
  margin: 0 0 18px 24px;
}

.entry-content li { margin-bottom: 6px; }

.entry-content blockquote {
  border-left: 3px solid var(--teal);
  background: var(--cream);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--g600);
}

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.entry-content a { color: var(--teal); font-weight: 600; }
.entry-content a:hover { color: var(--teal-light); text-decoration: underline; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--g200);
  text-align: left;
  font-size: 0.9rem;
}

.entry-content th {
  background: var(--cream);
  font-weight: 700;
  color: var(--deep);
}

.entry-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--g200);
}

.entry-tags a {
  display: inline-block;
  background: var(--g100);
  color: var(--g600);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin: 0 6px 6px 0;
}

.entry-tags a:hover { background: var(--g200); color: var(--deep); }


/* ================================================
   POST NAVIGATION
   ================================================ */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--g200);
}

.post-nav a {
  display: block;
  background: var(--cream);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g200);
  transition: all 0.2s;
}

.post-nav a:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.post-nav .nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 4px;
}

.post-nav .nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
}

.post-nav .next { text-align: right; }


/* ================================================
   ARCHIVE / BLOG LISTING
   ================================================ */

.archive-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--g200);
}

.archive-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--deep);
  margin-bottom: 6px;
}

.archive-desc {
  font-size: 0.9rem;
  color: var(--g600);
}

.blog-list { display: flex; flex-direction: column; gap: 22px; }

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

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

.blog-item-thumb {
  height: 100%;
  min-height: 180px;
  background: var(--g100);
  overflow: hidden;
}

.blog-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item-body {
  padding: 22px 22px 22px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-item .post-meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 6px;
}

.blog-item h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-item .excerpt {
  font-size: 0.84rem;
  color: var(--g600);
  line-height: 1.65;
  margin-bottom: 12px;
}

.blog-item .read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}


/* ================================================
   SIDEBAR
   ================================================ */

.sidebar .widget {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}

.sidebar .widget-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
}

.sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--g100);
  font-size: 0.88rem;
}

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

.sidebar .widget a {
  color: var(--g600);
  font-weight: 500;
}

.sidebar .widget a:hover { color: var(--teal); }


/* ================================================
   COMMENTS
   ================================================ */

.comments-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--g200);
}

.comments-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--deep);
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--g100);
}

.comment-author {
  font-weight: 700;
  color: var(--deep);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--g400);
  margin-bottom: 8px;
}

.comment-body p {
  font-size: 0.9rem;
  color: var(--g600);
  line-height: 1.7;
}

.comment-reply-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 6px;
  display: inline-block;
}

.comment-respond { margin-top: 28px; }

.comment-respond label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 4px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--g200);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-bottom: 14px;
  transition: border-color 0.2s;
  background: #fff;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.comment-respond .submit {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s;
}

.comment-respond .submit:hover { background: var(--teal-light); }


/* ================================================
   PAGINATION
   ================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  padding-top: 24px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--g200);
  transition: all 0.2s;
}

.pagination a {
  background: #fff;
  color: var(--g600);
}

.pagination a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination .current {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}


/* ================================================
   404 PAGE
   ================================================ */

.page-404 {
  text-align: center;
  padding: 80px 24px;
}

.page-404 h1 {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--g200);
  margin-bottom: 10px;
}

.page-404 h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--deep);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--g600);
  margin-bottom: 24px;
}


/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: var(--deep);
  padding: 48px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo { margin-bottom: 12px; font-size: 1.25rem; }

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover { color: var(--teal-light); }


/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .hero h1 { font-size: 2.3rem; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-content { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .blog-item { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .entry-title { font-size: 1.7rem; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item-thumb { min-height: 200px; }
  .blog-item-body { padding: 18px; }
  .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .trust-inner { flex-direction: column; gap: 10px; }
  .hero-btns { flex-direction: column; }
  .hero h1 { font-size: 1.65rem; }
  .header-inner { height: 56px; }
}
