/*
Theme Name: Free Gyan
Theme URI: https://freegyan.com
Author: Your Name
Author URI: https://yourblog.com
Description: Free Gyan — Premium AdSense-optimized WordPress theme. Responsive, fast, SEO-friendly with multiple ad zones, content protection, and full customizer control. Perfect for Hindi and English blogs.
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: freegyan
Tags: blog, news, magazine, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, wide-blocks
*/

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

:root {
  --primary:    #1a73e8;
  --primary-dk: #1557b0;
  --accent:     #e8341a;
  --text:       #1a1a1a;
  --text-md:    #444444;
  --text-lt:    #777777;
  --text-xlt:   #aaaaaa;
  --bg:         #f5f5f5;
  --white:      #ffffff;
  --border:     #e0e0e0;
  --border-lt:  #eeeeee;
  --topbar-bg:  #1c2b3a;
  --nav-bg:     #2c3e50;
  --nav-hover:  #1a73e8;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --card-hover:  0 6px 20px rgba(0,0,0,0.14);
  --radius:     4px;
  --radius-md:  8px;
  --font-head:  'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:  'Source Sans Pro', 'Segoe UI', Tahoma, sans-serif;
  --max-w:      1200px;
  --sidebar-w:  300px;
  --gap:        24px;
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dk); }

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

ul, ol { padding-left: 1.4em; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

p { margin-bottom: 1em; }

/* =========================================================
   TOP BAR
   ========================================================= */
#topbar {
  background: var(--topbar-bg);
  color: #aab8c2;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#topbar .topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
#topbar .topbar-left { display: flex; align-items: center; gap: 16px; }
#topbar .topbar-date { text-transform: uppercase; letter-spacing: 0.05em; }
#topbar .breaking {
  display: flex;
  align-items: center;
  gap: 8px;
}
#topbar .breaking-label {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
#topbar .topbar-right a {
  color: #aab8c2;
  margin-left: 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
#topbar .topbar-right a:hover { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
#masthead {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo img { max-height: 60px; width: auto; }
.site-title-wrap .site-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--primary); }
.site-tagline {
  font-size: 12px;
  color: var(--text-lt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header Ad (728x90 / 970x90) */
.header-ad-wrap {
  flex: 1;
  text-align: right;
}
.header-ad-wrap .ad-label {
  font-size: 9px;
  color: var(--text-xlt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: center;
}
.header-ad-wrap .ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  min-width: 300px;
  max-width: 728px;
  width: 100%;
  height: 90px;
  font-size: 11px;
  color: #bbb;
  border-radius: var(--radius);
  overflow: hidden;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#site-navigation {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Primary Menu */
.primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
}
.primary-menu > li {
  position: relative;
}
.primary-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 46px;
  color: #cdd6dd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li:hover > a {
  background: var(--nav-hover);
  color: #fff;
}

/* Dropdown */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 100;
}
.primary-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-md);
  border-bottom: 1px solid var(--border-lt);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: #f0f7ff; color: var(--primary); padding-left: 22px; }

/* Nav Search & Hamburger */
.nav-extras { display: flex; align-items: center; gap: 4px; }
.nav-search-btn {
  background: none;
  border: none;
  color: #aab8c2;
  cursor: pointer;
  padding: 0 14px;
  height: 46px;
  font-size: 16px;
  transition: color 0.2s;
}
.nav-search-btn:hover { color: #fff; }
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: #cdd6dd;
  cursor: pointer;
  padding: 0 14px;
  height: 46px;
  font-size: 20px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: #22333f;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 8px 0; margin: 0; }
.mobile-nav ul li a {
  display: block;
  padding: 11px 20px;
  color: #cdd6dd;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav ul li a:hover { background: var(--primary); color: #fff; }

/* =========================================================
   LAYOUT WRAPPER
   ========================================================= */
.site-content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px;
}

/* After-nav Ad (full width) */
.ad-below-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
}
.ad-below-nav .ad-slot { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }

/* Two-column layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  font-size: 12px;
  color: var(--text-lt);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; color: var(--text-xlt); }

/* =========================================================
   FEATURED / HERO POSTS
   ========================================================= */
.featured-area { margin-bottom: 28px; }

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

.featured-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--white);
}
.featured-main .post-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #dde4ec;
}
.featured-main .post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.featured-main:hover .post-thumb img { transform: scale(1.03); }
.featured-main .post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  padding: 40px 20px 20px;
}
.featured-main .post-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.featured-main .post-title {
  font-size: 20px;
  color: #fff;
  font-family: var(--font-head);
  margin-bottom: 6px;
  line-height: 1.3;
}
.featured-main .post-title a { color: #fff; }
.featured-main .post-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-side { display: flex; flex-direction: column; gap: 12px; }

.featured-side-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 0;
  transition: box-shadow 0.2s;
}
.featured-side-item:hover { box-shadow: var(--card-hover); }
.featured-side-item .side-thumb {
  width: 110px;
  min-width: 110px;
  overflow: hidden;
  background: #dde4ec;
}
.featured-side-item .side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.featured-side-item:hover .side-thumb img { transform: scale(1.05); }
.featured-side-item .side-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.side-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.side-title {
  font-family: var(--font-head);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.side-title a { color: var(--text); }
.side-title a:hover { color: var(--primary); }
.side-meta { font-size: 11px; color: var(--text-xlt); }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
.section-title-bar {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.section-title-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.section-view-all {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.section-view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================================
   POST CARDS
   ========================================================= */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.post-card-grid.col-1 { grid-template-columns: 1fr; }

/* ── Col-1: Horizontal card layout ─────────────────── */
.post-card-grid.col-1 .post-card {
  flex-direction: row !important;
  min-height: 160px;
  overflow: hidden;
  align-items: stretch;
}
.post-card-grid.col-1 .post-card .card-thumb {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  padding-top: 0 !important;
  height: auto !important;
  min-height: 160px;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}
.post-card-grid.col-1 .post-card .card-thumb a {
  position: absolute;
  inset: 0;
  display: block;
}
.post-card-grid.col-1 .post-card .card-thumb img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.post-card-grid.col-1 .post-card .card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 20px !important;
  min-width: 0;
}
.post-card-grid.col-1 .post-card .card-title {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-card-grid.col-1 .post-card .card-excerpt {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  display: block !important;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.post-card-grid.col-1 .post-card .fg-read-more-btn {
  align-self: flex-end;
}
.post-card-grid.col-1 .post-card .card-meta {
  margin-top: 10px;
}

.post-card-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.post-card-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.post-card-grid.col-4 { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-lt);
}
.post-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-2px);
}

.post-card .card-thumb {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background: #dde4ec;
}
.post-card .card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .card-thumb img { transform: scale(1.05); }

.post-card .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.post-card .card-body .card-excerpt  { order: 1; }
.post-card .card-body .fg-read-more-btn { order: 2; }
.post-card .card-body .card-meta     { order: 3; margin-top: auto; }

.card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 6px;
  margin-bottom: 7px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.38;
  margin-bottom: 8px;
  flex: 1;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
  font-size: 13px;
  color: var(--text-lt);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--text-xlt);
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-lt);
  padding-top: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}
.card-meta .author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.card-meta .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-read-time {
  margin-left: auto;
  background: #f0f7ff;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

/* =========================================================
   LIST-STYLE POSTS
   ========================================================= */
.post-list { list-style: none; padding: 0; margin: 0 0 24px; }
.post-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-lt);
  align-items: flex-start;
}
.post-list-item:first-child { padding-top: 0; }
.post-list-item:last-child { border-bottom: none; }
.post-list-thumb {
  width: 90px;
  min-width: 90px;
  height: 66px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dde4ec;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-list-item:hover .post-list-thumb img { transform: scale(1.06); }
.post-list-body { flex: 1; }
.post-list-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.post-list-title {
  font-family: var(--font-head);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 5px;
}
.post-list-title a { color: var(--text); }
.post-list-title a:hover { color: var(--primary); }
.post-list-meta { font-size: 11px; color: var(--text-xlt); }

/* =========================================================
   IN-CONTENT AD (between post sections)
   ========================================================= */
.ad-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin: 24px 0;
  text-align: center;
}
.ad-section .ad-label-sm {
  font-size: 9px;
  color: var(--text-xlt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ad-section .ad-slot { margin: 0 auto; }
.ad-slot-728 { width: 728px; max-width: 100%; height: 90px; }
.ad-slot-320 { width: 320px; max-width: 100%; height: 50px; }
.ad-slot-300x250 { width: 300px; max-width: 100%; height: 250px; }
.ad-slot-160x600 { width: 160px; height: 600px; }
.ad-slot-responsive { width: 100%; min-height: 90px; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-sticky-inner {
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-title {
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  font-family: var(--font-body);
}
.widget-body { padding: 14px; }

/* Sidebar Ad Widget */
.widget-ad { background: #fafafa; }
.widget-ad .widget-body { padding: 10px; text-align: center; }
.widget-ad .ad-label-sm {
  font-size: 9px;
  color: var(--text-xlt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Popular Posts */
.popular-post-list { list-style: none; padding: 0; margin: 0; }
.popular-post-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-lt);
  align-items: flex-start;
  counter-increment: pop-counter;
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 22px;
  font-family: var(--font-head);
}
.pop-thumb {
  width: 64px;
  min-width: 64px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dde4ec;
}
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-body .pop-title {
  font-family: var(--font-head);
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 3px;
}
.pop-body .pop-title a { color: var(--text); }
.pop-body .pop-title a:hover { color: var(--primary); }
.pop-body .pop-date { font-size: 10px; color: var(--text-xlt); }

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-md);
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Categories widget */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-lt);
  font-size: 13px;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { color: var(--text-md); }
.cat-list li a:hover { color: var(--primary); }
.cat-list li .cat-count {
  background: #f0f4f8;
  color: var(--text-lt);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
}

/* About Widget */
.about-widget-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
}
.about-widget-img img { width: 100%; height: 100%; object-fit: cover; }
.about-widget-text {
  font-size: 13px;
  color: var(--text-md);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 12px;
}
.about-social { display: flex; justify-content: center; gap: 8px; }
.about-social a {
  width: 32px;
  height: 32px;
  background: var(--nav-bg);
  color: #cdd6dd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}
.about-social a:hover { background: var(--primary); color: #fff; }

/* Newsletter Widget */
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-xlt); }
.newsletter-form button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--primary-dk); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-header { margin-bottom: 20px; }
.single-post-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.single-post-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-lt);
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.single-post-meta .author-info { display: flex; align-items: center; gap: 8px; }
.single-post-meta .author-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}
.single-post-meta .author-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.single-post-meta .author-name { font-weight: 600; color: var(--text); }

.single-featured-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  max-height: 480px;
  background: #dde4ec;
}
.single-featured-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Post content */
.post-content { font-size: 16px; line-height: 1.75; color: var(--text-md); }
.post-content h2 { font-size: 22px; margin: 1.6em 0 0.6em; color: var(--text); }
.post-content h3 { font-size: 18px; margin: 1.4em 0 0.5em; }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f0f7ff;
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-md);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content ul, .post-content ol { margin: 1em 0 1em 1.5em; }
.post-content li { margin-bottom: 0.4em; }
.post-content img { border-radius: var(--radius); margin: 1em 0; }
.post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--accent);
}
.post-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  margin: 1em 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.post-content th { background: #f4f7fb; font-weight: 700; }
.post-content tr:hover td { background: #fafbff; }

/* In-post Ad */
.in-post-ad {
  margin: 28px 0;
  text-align: center;
  background: #fafafa;
  border: 1px solid var(--border-lt);
  padding: 12px;
  border-radius: var(--radius);
}

/* Post Tags & Share */
.post-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap;
  gap: 14px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags .tag-label { font-size: 12px; font-weight: 600; color: var(--text-lt); margin-right: 4px; }
.post-tags a {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-md);
  transition: all 0.2s;
}
.post-tags a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.share-buttons { display: flex; gap: 8px; align-items: center; }
.share-label { font-size: 12px; font-weight: 600; color: var(--text-lt); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

/* Author Box */
.author-box {
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-box-avatar {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 3px;
}
.author-box-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.author-box-bio { font-size: 13px; color: var(--text-md); line-height: 1.6; }

/* Related Posts */
.related-posts { margin-top: 36px; }
.related-posts .section-header { margin-bottom: 16px; }

/* Comments */
.comments-area { margin-top: 36px; }
.comments-title {
  font-size: 18px;
  font-family: var(--font-head);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-lt);
}
.comment-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #dde4ec;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.comment-date { font-size: 11px; color: var(--text-xlt); margin-bottom: 8px; }
.comment-body { font-size: 14px; color: var(--text-md); }
.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.comment-form textarea:focus,
.comment-form input:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.comment-submit:hover { background: var(--primary-dk); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-md);
  transition: all 0.2s;
  font-weight: 500;
}
.pagination a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .dots { border: none; color: var(--text-xlt); }

/* =========================================================
   TICKER / BREAKING NEWS
   ========================================================= */
.news-ticker {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-text {
  font-size: 13px;
  color: var(--text-md);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticker-text a { color: var(--accent); font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
#colophon {
  background: var(--topbar-bg);
  color: #aab8c2;
  margin-top: 40px;
}

.footer-widgets {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.footer-widgets-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  font-family: var(--font-body);
}
.footer-about-text { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #aab8c2;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a {
  font-size: 13px;
  color: #aab8c2;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links-list a::before { content: '›'; color: var(--primary); font-size: 16px; }
.footer-links-list a:hover { color: #fff; }

.footer-recent-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}
.footer-recent-item:last-child { border-bottom: none; }
.footer-recent-thumb {
  width: 54px;
  min-width: 54px;
  height: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a3a4a;
}
.footer-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-title { font-size: 12px; color: #cdd6dd; line-height: 1.35; margin-bottom: 3px; }
.footer-recent-title a { color: #cdd6dd; }
.footer-recent-title a:hover { color: #fff; }
.footer-recent-date { font-size: 10px; color: #6b7f8e; }

/* Footer Ad Bar */
.footer-ad-bar {
  background: #15222e;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 14px 16px;
  text-align: center;
}
.footer-ad-bar .ad-slot { margin: 0 auto; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

/* Footer Bottom */
.footer-bottom {
  background: #111e28;
  padding: 14px 16px;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: #6b7f8e; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }
.footer-copyright { color: #6b7f8e; }

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 600px;
  margin: 0 16px;
}
.search-box h3 { margin-bottom: 14px; font-size: 18px; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  color: var(--text);
}
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,115,232,0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 500;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.clearfix::after { content: ''; display: table; clear: both; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  :root { --sidebar-w: 260px; }
  .header-ad-wrap { display: none; }
  .footer-widgets-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .post-card-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; }
  .featured-side-item { flex: 1; }
}

@media (max-width: 768px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hamburger-btn { display: flex; }
  .primary-menu { display: none; }
  .post-card-grid.col-1 { grid-template-columns: 1fr; }
  /* Col-1 horizontal → vertical on mobile */
  .post-card-grid.col-1 .post-card { flex-direction: column; min-height: unset; }
  .post-card-grid.col-1 .post-card .card-thumb { width: 100%; min-width: unset; padding-top: 56%; height: auto; }
  .post-card-grid.col-1 .post-card .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; overflow: hidden; }
  .post-card-grid.col-2 { grid-template-columns: 1fr; }
  .post-card-grid.col-3 { grid-template-columns: repeat(2, 1fr); }
  .post-card-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets-inner { grid-template-columns: 1fr; gap: 24px; }
  .featured-side { flex-direction: column; }
  .single-post-title { font-size: 22px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .ad-slot-728 { width: 100%; height: 50px; }
  .ad-slot-160x600 { display: none; }
  .topbar-right { display: none; }
}

@media (max-width: 480px) {
  .post-card-grid.col-2,
  .post-card-grid.col-3,
  .post-card-grid.col-4 { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .share-buttons .share-btn span { display: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .featured-main .post-title { font-size: 16px; }
  #topbar .breaking { display: none; }
}

/* Read More Button — excerpt ke neeche, meta ke upar */
.fg-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px 16px;
    background: var(--primary);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    width: fit-content;
}
.fg-read-more-btn:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff !important;
    gap: 10px;
}
.fg-read-more-btn i { font-size: 11px; }
/* bvp- alias for backward compatibility */
.bvp-read-more-btn { display:none; }

/* =========================================================
   WORDPRESS DEFAULT CLASSES
   ========================================================= */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 10px auto; }
.wp-caption { max-width: 100%; background: #f9f9f9; border: 1px solid var(--border); padding: 8px; border-radius: var(--radius); }
.wp-caption-text { font-size: 12px; color: var(--text-lt); text-align: center; margin: 6px 0 0; }
.sticky { border-left: 4px solid var(--primary); padding-left: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 1em 0; }
.gallery img { width: 100%; border-radius: var(--radius); }
