/*
Theme Name: DhanMaitri
Theme URI: https://dhanmaitri.in
Author: DhanMaitri
Author URI: https://dhanmaitri.in
Description: A bilingual Hindi-English personal finance blog theme for DhanMaitri. Features language toggle, clean typography, and mobile-first design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dhanmaitri
Tags: blog, finance, hindi, bilingual, responsive
*/

/* ============================================================
   GOOGLE FONTS
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;700&family=Noto+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --green-dark:   #1B5E20;
  --green-mid:    #2E7D32;
  --green-light:  #E8F5E9;
  --green-border: #A5D6A7;
  --blue-dark:    #0D47A1;
  --blue-mid:     #1565C0;
  --blue-light:   #E3F2FD;
  --amber:        #F57F17;
  --amber-light:  #FFF8E1;
  --teal:         #00695C;
  --teal-light:   #E0F2F1;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted:   #9E9E9E;
  --bg-white:     #FFFFFF;
  --bg-surface:   #F9F9F7;
  --bg-card:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.14);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --font-display: 'Baloo 2', cursive;
  --font-body:    'Noto Sans', sans-serif;
  --max-width:    1100px;
  --content-width: 720px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(24px, 4vw, 36px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(17px, 2.5vw, 22px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--green-dark);
  padding: 1rem 1.25rem;
  background: var(--green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--green-mid);
}

code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.9em;
}

pre {
  background: #1B2638;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}
table th {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  border-bottom: 2px solid var(--green-border);
}
table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
table tr:hover td { background: var(--bg-surface); }

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

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

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ============================================================
   LANGUAGE TOGGLE
============================================================ */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
}
.lang-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-btn.active { background: var(--green-dark); color: #fff; border-radius: 20px; }
.lang-btn:hover:not(.active) { background: var(--green-light); color: var(--green-dark); }

/* ============================================================
   HEADER / NAVIGATION
============================================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: var(--blue-dark); }
.site-logo:hover { color: var(--green-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.current-menu-item {
  background: var(--green-light);
  color: var(--green-dark);
}

.header-right { display: flex; align-items: center; gap: 12px; }

.search-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: all 0.2s;
}
.search-btn:hover { background: var(--green-light); color: var(--green-dark); border-color: var(--green-border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--blue-light) 100%);
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  color: var(--green-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green-dark);
  color: #fff;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  padding: 10px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--blue-dark);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--blue-light); color: var(--blue-dark); }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   HOMEPAGE LAYOUT
============================================================ */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
  align-items: start;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading span { color: var(--green-dark); }
.section-heading::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--green-dark);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   TOPICS GRID
============================================================ */
.topics-section { padding: 40px 20px; background: var(--bg-white); border-bottom: 1px solid var(--border); }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.topic-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.topic-card:hover {
  border-color: var(--green-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.topic-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.topic-icon.green { background: var(--green-light); color: var(--green-dark); }
.topic-icon.blue  { background: var(--blue-light);  color: var(--blue-dark);  }
.topic-icon.amber { background: var(--amber-light); color: var(--amber);      }
.topic-icon.teal  { background: var(--teal-light);  color: var(--teal);       }
.topic-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--text-primary); }
.topic-card p  { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   POST CARDS
============================================================ */
.posts-grid { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  gap: 0;
}
.post-card:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.post-card-thumb {
  width: 160px;
  min-height: 120px;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--green-dark);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.post-tag {
  font-size: 11px;
  font-weight: 500;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 4px;
}
.post-tag.blue { background: var(--blue-light); color: var(--blue-dark); }
.post-tag.amber { background: var(--amber-light); color: var(--amber); }
.post-date { font-size: 12px; color: var(--text-muted); }
.post-card-body h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--text-primary);
}
.post-card-body h2 a { color: inherit; text-decoration: none; }
.post-card-body h2 a:hover { color: var(--green-dark); }
.post-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; }
.read-time { font-size: 12px; color: var(--text-muted); }
.read-more {
  font-size: 13px; font-weight: 500; color: var(--green-dark);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.read-more:hover { color: var(--blue-dark); }

/* ============================================================
   FEATURED POST
============================================================ */
.featured-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.featured-post-img {
  height: 220px;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.3);
  position: relative;
}
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--green-dark); color: #fff;
  font-size: 11px; font-weight: 500;
  padding: 4px 12px; border-radius: 20px;
}
.featured-post-body { padding: 20px; }
.featured-post-body h2 { font-size: 20px; margin-bottom: 10px; }
.featured-post-body h2 a { color: var(--text-primary); text-decoration: none; }
.featured-post-body h2 a:hover { color: var(--green-dark); }

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
  display: flex; align-items: center; gap: 6px;
}
.widget-title span { color: var(--green-dark); }

.about-widget-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: #fff;
  margin: 0 auto 12px;
}
.about-widget p { font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.6; margin: 0; }

.recent-posts-list { display: flex; flex-direction: column; gap: 12px; }
.recent-post-item { display: flex; gap: 10px; align-items: flex-start; }
.recent-post-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark); font-size: 16px;
  flex-shrink: 0;
}
.recent-post-item a { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; text-decoration: none; }
.recent-post-item a:hover { color: var(--green-dark); }
.recent-post-item span { font-size: 11px; color: var(--text-muted); }

.categories-list { display: flex; flex-direction: column; gap: 8px; }
.category-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none; transition: all 0.2s;
}
.category-item:hover { background: var(--green-light); color: var(--green-dark); }
.category-count {
  background: var(--green-light); color: var(--green-dark);
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 10px;
}

/* Newsletter Widget */
.newsletter-widget { background: var(--green-dark) !important; border-color: transparent !important; }
.newsletter-widget .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.newsletter-widget .widget-title span { color: #A5D6A7; }
.newsletter-widget p { color: #C8E6C9; font-size: 13px; margin-bottom: 12px; }
.newsletter-widget input {
  width: 100%; padding: 9px 12px;
  border-radius: var(--radius-sm); border: none;
  font-size: 13px; font-family: var(--font-body);
  margin-bottom: 8px;
}
.newsletter-widget button {
  width: 100%; background: var(--blue-dark); color: #fff;
  padding: 9px; border-radius: var(--radius-sm);
  border: none; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body); transition: opacity 0.2s;
}
.newsletter-widget button:hover { opacity: 0.9; }

/* ============================================================
   SINGLE POST
============================================================ */
.single-post { padding: 40px 0; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-header .post-meta { justify-content: center; margin-bottom: 16px; }
.post-header h1 { font-size: clamp(22px, 4vw, 34px); margin-bottom: 16px; color: var(--green-dark); }
.post-header .post-excerpt { font-size: 16px; max-width: 600px; margin: 0 auto; }
.post-featured-img {
  width: 100%; height: 340px;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--green-dark);
}

.post-content { font-size: 16px; line-height: 1.8; }
.post-content h2 {
  font-size: 22px; color: var(--green-dark);
  margin: 2rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}
.post-content h3 { font-size: 18px; color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.post-content p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 6px; color: var(--text-secondary); }
.post-content strong { color: var(--text-primary); font-weight: 500; }
.post-content a { color: var(--green-dark); text-decoration: underline; }

.post-toc {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 2rem 0;
}
.post-toc h4 { font-size: 15px; color: var(--green-dark); margin-bottom: 12px; }
.post-toc ol { margin: 0; padding-left: 1.25rem; }
.post-toc li { margin-bottom: 6px; }
.post-toc a { color: var(--green-mid); font-size: 14px; text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }

.post-disclaimer {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 2rem 0;
  font-size: 13px;
  color: #795548;
}
.post-disclaimer strong { color: #5D4037; }

.affiliate-box {
  background: var(--blue-light);
  border: 1px solid #90CAF9;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 1.5rem 0;
  font-size: 13px;
  color: var(--blue-dark);
}

/* Post Tags */
.post-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags strong { font-size: 13px; color: var(--text-secondary); }
.post-tags a {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-tags a:hover { background: var(--green-light); border-color: var(--green-border); color: var(--green-dark); }

/* Post Author Box */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 2.5rem 0;
  display: flex;
  gap: 16px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.author-info h4 { font-size: 15px; margin-bottom: 4px; color: var(--green-dark); }
.author-info p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* Related Posts */
.related-posts { margin: 2.5rem 0; }
.related-posts h3 { font-size: 18px; margin-bottom: 16px; color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--green-border); transform: translateY(-2px); }
.related-card .post-tag { margin-bottom: 8px; display: inline-block; }
.related-card h4 { font-size: 14px; color: var(--text-primary); line-height: 1.4; }

/* ============================================================
   ABOUT PAGE
============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.about-avatar-large {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff;
  margin: 0 auto 16px;
  border: 4px solid #fff;
}
.about-hero h1 { color: var(--green-dark); margin-bottom: 10px; }
.about-hero p { max-width: 500px; margin: 0 auto; }

.about-content { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.about-section { margin-bottom: 36px; }
.about-section h2 { font-size: 20px; color: var(--green-dark); margin-bottom: 12px; }
.about-section p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px; text-align: center;
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 10px;
}
.value-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.value-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-page { max-width: 680px; margin: 0 auto; padding: 40px 20px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green-dark); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit { width: 100%; }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin: 32px 0; flex-wrap: wrap;
}
.page-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.page-link.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.page-link:hover:not(.active) { background: var(--green-light); color: var(--green-dark); border-color: var(--green-border); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #1A2332;
  color: #94A3B8;
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 36px;
}
.footer-brand .site-logo { color: #fff; }
.footer-brand .site-logo span { color: #90CAF9; }
.footer-brand p { font-size: 13px; color: #64748B; line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; color: #E2E8F0;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: #64748B; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #A5D6A7; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #64748B; font-size: 16px;
  text-decoration: none; transition: all 0.2s;
}
.social-link:hover { background: var(--green-dark); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  max-width: var(--max-width); margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: #475569; margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: #475569; text-decoration: none; }
.footer-bottom-links a:hover { color: #A5D6A7; }

/* ============================================================
   SEARCH
============================================================ */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  margin: 0 20px;
}
.search-box input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-md);
  font-size: 16px; font-family: var(--font-body);
}
.search-box input:focus { outline: none; }

/* ============================================================
   UTILITIES
============================================================ */
.text-green  { color: var(--green-dark); }
.text-blue   { color: var(--blue-dark);  }
.text-muted  { color: var(--text-muted); }
.bg-green    { background: var(--green-light); }
.bg-blue     { background: var(--blue-light);  }
.rounded     { border-radius: var(--radius-md); }
.shadow      { box-shadow: var(--shadow-md); }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.p-1   { padding: 8px; }
.p-2   { padding: 16px; }
.p-3   { padding: 24px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .post-card { flex-direction: column; }
  .post-card-thumb { width: 100%; height: 160px; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .stat-number { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 40px 16px 36px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .topics-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ============================================================
   BILINGUAL NAV DROPDOWN
============================================================ */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 50;
    overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; flex-direction: column; }
.nav-dropdown-menu a {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    transition: background 0.15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--green-light); color: var(--green-dark); }

/* ============================================================
   FOOTER DARK THEME ADJUSTMENTS
============================================================ */
.site-footer .lang-toggle { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.site-footer .lang-btn { color: #64748B; }
.site-footer .lang-btn.active { background: var(--green-dark); color: #fff; }

/* ============================================================
   MOBILE NAV TOPIC INDENT
============================================================ */
.mobile-topics-label { border-bottom: none !important; }
