/*
Theme Name: Yojanta
Theme URI: https://yojanta.in
Author: Yojanta.in
Description: Yojanta.in ke liye custom Hindi blog theme - sarkari yojanaon ki jankari
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: yojanta
*/

:root {
  --saffron: #FF6B00;
  --deep-saffron: #E85D00;
  --green: #1B7A2E;
  --light-green: #2EA043;
  --gold: #F5A623;
  --cream: #FFF8F0;
  --dark: #1A1A1A;
  --mid: #444;
  --light-gray: #F5F5F5;
  --white: #ffffff;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Mukta', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--green);
  color: white;
  font-size: 13px;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-date { opacity: 0.85; }

/* ── HEADER ── */
.site-header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo img { height: 65px; width: auto; }
.site-logo .text-logo {
  font-family: 'Baloo 2', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
}
.site-logo .text-logo span { color: var(--saffron); }
.site-logo .tagline {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--dark);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: 'Baloo 2', sans-serif;
}
.site-nav a:hover, .site-nav a.current-menu-item { color: var(--saffron); background: #FFF3E8; }
.nav-search-btn {
  background: var(--saffron) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
}
.nav-search-btn:hover { background: var(--deep-saffron) !important; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

/* ── FOOTER ── */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 50px 20px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.7; margin-top: 12px; }
.footer-logo {
  font-family: 'Baloo 2', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: white;
}
.footer-logo span { color: var(--gold); }
.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Baloo 2', sans-serif;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron);
  display: inline-block;
}
.footer-col a {
  display: block;
  color: #aaa;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom a { color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--saffron);
  color: var(--saffron);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 30px;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--saffron); color: white; }

/* ── SECTION TITLE ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
.section-title .line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--saffron), transparent);
  border-radius: 2px;
}
.section-title .badge {
  background: var(--saffron);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── BLOG CARD ── */
.blog-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.blog-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--saffron);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-body { padding: 18px; }
.blog-card-body h3 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 8px;
}
.blog-card-body p { font-size: 13.5px; color: #666; line-height: 1.6; }
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #999;
}
.blog-card-meta .read-more { color: var(--saffron); font-weight: 700; }

/* ── SIDEBAR ── */
.sidebar-widget {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--card-shadow);
  margin-bottom: 28px;
}
.widget-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--saffron);
}

/* ── SINGLE POST ── */
.single-post-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}
.post-content h1 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-content .post-meta {
  display: flex;
  gap: 20px;
  color: #888;
  font-size: 13px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-content .post-thumbnail {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 28px;
  max-height: 400px;
  object-fit: cover;
}
.post-content .entry-content { font-size: 16px; line-height: 1.9; color: var(--mid); }
.post-content .entry-content h2 { font-family: 'Baloo 2', sans-serif; font-size: 24px; font-weight: 800; color: var(--dark); margin: 32px 0 14px; }
.post-content .entry-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.post-content .entry-content p { margin-bottom: 18px; }
.post-content .entry-content ul, .post-content .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content .entry-content li { margin-bottom: 8px; }
.post-content .entry-content blockquote {
  border-left: 4px solid var(--saffron);
  padding: 16px 20px;
  background: #FFF3E8;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .single-post-wrap { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .post-content h1 { font-size: 24px; }
}
