/* ═══════════════════════════════════════════════════════════════
   GrowWithGauri — Blog Page Styles  (gwg-shortcodes.css v2.0)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --gwg-bg:          #ecf1ed;
  --gwg-green-dark:  #1a4a28;
  --gwg-green-mid:   #2d5a2d;
  --gwg-green-btn:   #2f5535;
  --gwg-green-badge: #2a7a30;
  --gwg-green-light: #c8deca;
  --gwg-green-muted: #deeede;
  --gwg-border:      #c8deca;
  --gwg-text-dark:   #1a3a22;
  --gwg-text-mid:    #3a5a42;
  --gwg-text-body:   #4a6a52;
  --gwg-text-light:  #7a9a82;
  --gwg-bg-card:     #ddeade;
  --gwg-white:       #ffffff;
  --gwg-font-head:   'Playfair Display', Georgia, serif;
  --gwg-font-body:   'DM Sans', sans-serif;
}

/* ── Reset inside shortcode ── */
.gwg-blog-hero *, .gwg-filter-row *, .gwg-featured-wrap *,
.gwg-main-layout *, .gwg-cta-section * {
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.gwg-blog-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}
.gwg-hero-tag {
  display: inline-block;
  background: var(--gwg-green-muted);
  border: 1.5px solid var(--gwg-border);
  color: var(--gwg-green-mid);
  font-family: var(--gwg-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}
.gwg-blog-hero h1 {
  font-family: var(--gwg-font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--gwg-green-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.gwg-blog-hero p {
  font-family: var(--gwg-font-body);
  color: var(--gwg-text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   FILTER ROW
───────────────────────────────────────────────────────────── */
.gwg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2rem;
  padding: 0;
}
.gwg-search-box {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 300px;
}
.gwg-search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--gwg-text-light);
  pointer-events: none;
}
.gwg-search-box input {
  width: 100%;
  background: var(--gwg-white);
  border: 1.5px solid var(--gwg-border);
  border-radius: 50px;
  color: var(--gwg-text-dark);
  font-family: var(--gwg-font-body);
  font-size: 0.83rem;
  padding: 9px 16px 9px 36px;
  outline: none;
  transition: border-color .2s;
}
.gwg-search-box input:focus   { border-color: var(--gwg-green-btn); }
.gwg-search-box input::placeholder { color: var(--gwg-text-light); }

.gwg-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gwg-cat-pill {
  font-family: var(--gwg-font-body);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--gwg-border);
  background: var(--gwg-white);
  color: var(--gwg-text-body);
  cursor: pointer;
  transition: all .2s;
}
.gwg-cat-pill:hover  { border-color: var(--gwg-green-btn); color: var(--gwg-green-btn); }
.gwg-cat-pill.active { background: var(--gwg-green-btn); color: #fff; border-color: var(--gwg-green-btn); }

/* ─────────────────────────────────────────────────────────────
   FEATURED CARD
───────────────────────────────────────────────────────────── */
.gwg-featured-wrap  { margin-bottom: 2.5rem; }
.gwg-section-eyebrow {
  font-family: var(--gwg-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gwg-text-light);
  margin-bottom: 0.9rem;
}
.gwg-featured-card {
  background: var(--gwg-white);
  border: 1.5px solid var(--gwg-border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: box-shadow .25s, border-color .25s;
}
.gwg-featured-card:hover {
  border-color: var(--gwg-green-btn);
  box-shadow: 0 8px 32px rgba(45,90,45,.12);
}
.gwg-feat-img {
  background: linear-gradient(140deg,#2a5535 0%,#1a3a22 60%,#0f2517 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gwg-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gwg-feat-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.gwg-feat-icon-wrap svg { width: 36px; height: 36px; color: var(--gwg-green-light); }

.gwg-feat-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gwg-post-cat-badge {
  font-family: var(--gwg-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gwg-green-badge);
  margin-bottom: 0.7rem;
  display: block;
}
.gwg-feat-body h2 {
  font-family: var(--gwg-font-head);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gwg-green-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.gwg-feat-body h2 a { color: inherit; text-decoration: none; }
.gwg-feat-body h2 a:hover { color: var(--gwg-green-btn); }

.gwg-post-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--gwg-font-body);
  font-size: 0.73rem;
  color: var(--gwg-text-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.gwg-post-meta span { display: flex; align-items: center; gap: 4px; }
.gwg-post-meta svg  { width: 11px; height: 11px; }

.gwg-feat-body > p {
  font-family: var(--gwg-font-body);
  color: var(--gwg-text-body);
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.gwg-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gwg-green-btn);
  color: #fff;
  font-family: var(--gwg-font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  transition: opacity .2s;
}
.gwg-read-btn:hover { opacity: .85; color: #fff; }
.gwg-read-btn svg   { width: 12px; height: 12px; }

/* ─────────────────────────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────────────────────────── */
.gwg-main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* ─────────────────────────────────────────────────────────────
   ARTICLES HEADING
───────────────────────────────────────────────────────────── */
.gwg-articles-heading {
  font-family: var(--gwg-font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gwg-green-dark);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gwg-articles-heading a {
  font-family: var(--gwg-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gwg-green-badge);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gwg-articles-heading a svg { width: 12px; height: 12px; }
.gwg-articles-heading a:hover { color: var(--gwg-green-dark); }

/* ─────────────────────────────────────────────────────────────
   BLOG GRID
───────────────────────────────────────────────────────────── */
.gwg-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.gwg-blog-card {
  background: var(--gwg-white);
  border: 1.5px solid var(--gwg-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.gwg-blog-card:hover {
  border-color: var(--gwg-green-btn);
  box-shadow: 0 6px 24px rgba(45,90,45,.12);
  transform: translateY(-3px);
}
.gwg-card-img-link { display: block; text-decoration: none; }
.gwg-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gwg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gwg-card-read-time {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(0,0,0,.38);
  color: #fff;
  font-family: var(--gwg-font-body);
  font-size: 0.63rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  z-index: 1;
}
.gwg-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gwg-card-cat {
  font-family: var(--gwg-font-body);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gwg-green-badge);
  margin-bottom: 0.45rem;
  display: block;
}
.gwg-card-body h3 {
  font-family: var(--gwg-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gwg-text-dark);
  line-height: 1.4;
  margin-bottom: 0.45rem;
  flex: 1;
}
.gwg-card-body h3 a { color: inherit; text-decoration: none; }
.gwg-card-body h3 a:hover { color: var(--gwg-green-btn); }
.gwg-card-body > p {
  font-family: var(--gwg-font-body);
  font-size: 0.76rem;
  color: var(--gwg-text-body);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.gwg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid var(--gwg-border);
  font-family: var(--gwg-font-body);
  font-size: 0.7rem;
  color: var(--gwg-text-light);
}
.gwg-card-author { display: flex; align-items: center; gap: 7px; }
.gwg-avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gwg-green-btn);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gwg-card-arrow-btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.5px solid var(--gwg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gwg-text-light);
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.gwg-blog-card:hover .gwg-card-arrow-btn {
  background: var(--gwg-green-btn);
  border-color: var(--gwg-green-btn);
  color: #fff;
}
.gwg-card-arrow-btn svg { width: 11px; height: 11px; }

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.gwg-pagination {
  display: flex;
  gap: 6px;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.gwg-pagination .gwg-page-item { display: inline-flex; }
.gwg-pagination a,
.gwg-pagination span.current,
.gwg-pagination span.dots {
  font-family: var(--gwg-font-body);
  font-size: 0.8rem;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--gwg-border);
  background: var(--gwg-white);
  color: var(--gwg-text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
  padding: 0 8px;
}
.gwg-pagination a:hover           { border-color: var(--gwg-green-btn); color: var(--gwg-green-btn); }
.gwg-pagination span.current      { background: var(--gwg-green-btn); color: #fff; border-color: var(--gwg-green-btn); }
.gwg-pagination span.dots         { border-color: transparent; background: transparent; }

/* ─────────────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────────────── */
.gwg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 88px;
}
.gwg-widget {
  background: var(--gwg-white);
  border: 1.5px solid var(--gwg-border);
  border-radius: 16px;
  padding: 1.4rem;
}
.gwg-widget-title {
  font-family: var(--gwg-font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gwg-green-dark);
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--gwg-border);
}

/* About widget */
.gwg-about-widget { text-align: center; }
.gwg-sidebar-logo {
  width: 110px;
  height: auto;
  margin: 0 auto 0.8rem;
  display: block;
}
.gwg-about-widget h3 {
  font-family: var(--gwg-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gwg-text-dark);
  margin-bottom: 0.35rem;
}
.gwg-about-widget p {
  font-family: var(--gwg-font-body);
  font-size: 0.76rem;
  color: var(--gwg-text-body);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.gwg-about-btn {
  display: inline-block;
  background: var(--gwg-green-btn);
  color: #fff;
  font-family: var(--gwg-font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity .2s;
}
.gwg-about-btn:hover { opacity: .85; color: #fff; }

/* Categories */
.gwg-cat-list { display: flex; flex-direction: column; }
.gwg-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--gwg-border);
  font-family: var(--gwg-font-body);
  font-size: 0.82rem;
  color: var(--gwg-text-body);
  text-decoration: none;
  transition: color .2s;
}
.gwg-cat-item:last-child { border-bottom: none; padding-bottom: 0; }
.gwg-cat-item:hover      { color: var(--gwg-green-dark); }
.gwg-cat-item-left       { display: flex; align-items: center; gap: 8px; }
.gwg-cat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gwg-green-btn);
  flex-shrink: 0;
}
.gwg-cat-count {
  background: var(--gwg-bg-card);
  color: var(--gwg-text-body);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Popular posts */
.gwg-pop-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gwg-border);
  text-decoration: none;
  transition: opacity .2s;
}
.gwg-pop-post:last-child { border-bottom: none; padding-bottom: 0; }
.gwg-pop-post:hover      { opacity: .75; }
.gwg-pop-num {
  font-family: var(--gwg-font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gwg-border);
  line-height: 1;
  min-width: 22px;
  flex-shrink: 0;
}
.gwg-pop-info h4 {
  font-family: var(--gwg-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gwg-text-dark);
  line-height: 1.4;
  margin-bottom: 3px;
}
.gwg-pop-info span {
  font-family: var(--gwg-font-body);
  font-size: 0.68rem;
  color: var(--gwg-text-light);
}

/* Tags */
.gwg-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.gwg-tag {
  font-family: var(--gwg-font-body);
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--gwg-bg);
  border: 1.5px solid var(--gwg-border);
  color: var(--gwg-text-body);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.gwg-tag:hover {
  background: var(--gwg-green-muted);
  border-color: var(--gwg-green-btn);
  color: var(--gwg-green-dark);
}

/* ─────────────────────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────────────────────── */
.gwg-cta-section { margin-bottom: 4rem; }
.gwg-cta-inner {
  background: linear-gradient(135deg, #1a3a22 0%, #2d5535 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gwg-cta-inner::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(200,222,202,.1) 0%, transparent 60%);
  pointer-events: none;
}
.gwg-cta-inner h2 {
  font-family: var(--gwg-font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
}
.gwg-cta-inner p {
  font-family: var(--gwg-font-body);
  color: rgba(255,255,255,.75);
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
  position: relative;
}
.gwg-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.gwg-cta-btn-primary {
  background: #fff;
  color: var(--gwg-green-dark);
  font-family: var(--gwg-font-body);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity .2s;
}
.gwg-cta-btn-primary:hover { opacity: .9; color: var(--gwg-green-dark); }
.gwg-cta-btn-outline {
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: var(--gwg-font-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  transition: all .2s;
}
.gwg-cta-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .gwg-featured-card  { grid-template-columns: 1fr; }
  .gwg-feat-img       { min-height: 200px; }
  .gwg-main-layout    { grid-template-columns: 1fr; }
  .gwg-sidebar        { position: static; }
}
@media (max-width: 640px) {
  .gwg-blog-grid      { grid-template-columns: 1fr; }
  .gwg-blog-hero h1   { font-size: 1.7rem; }
  .gwg-filter-row     { flex-direction: column; align-items: flex-start; }
  .gwg-search-box     { max-width: 100%; width: 100%; }
}
