:root {
  --g-darkest:  #052e16;
  --g-dark:     #14532d;
  --g-mid:      #166534;
  --g-base:     #15803d;
  --g-bright:   #16a34a;
  --g-light:    #86efac;
  --g-pale:     #dcfce7;
  --g-surface:  #f0fdf4;
  --g-gold:     #d97706;
  --g-gold-lt:  #fef3c7;

  --text-primary:   #1a2e20;
  --text-secondary: #4b7a5c;
  --text-muted:     #6b9a7a;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 2px 8px rgba(21,128,61,.06);
  --shadow-md:  0 6px 24px rgba(21,128,61,.10);
  --shadow-lg:  0 16px 48px rgba(21,128,61,.15);
  --shadow-btn: 0 6px 18px rgba(21,128,61,.35);
}
*, *::before, *::after {
  box-sizing: border-box !important;
  max-width: 100%;
}
/* ── PAGE WRAPPER ─────────────────────────────────────── */
.page {
  max-width: auto;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

/* ── LAYOUT GRID ──────────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 4vw, 2.5rem);
  align-items: start;
}

/* ════════════════════════════════════════════════════════
   ARCHIVE HEADER
════════════════════════════════════════════════════════ */
.archive-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--g-pale);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Top gradient accent stripe */
.archive-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--g-base), var(--g-gold), var(--g-bright));
}

.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--g-darkest) 0%, var(--g-mid) 50%, var(--g-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.7rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.archive-header p {
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

/* Admin Buttons */
.archive-header .admin-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-write {
  background: linear-gradient(135deg, var(--g-base), var(--g-dark));
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
}
.btn-write:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21,128,61,.45);
  color: #fff !important;
}

.btn-manage {
  background: #fff;
  color: var(--g-base) !important;
  border: 1.5px solid var(--g-pale);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
}
.btn-manage:hover {
  background: var(--g-surface);
  border-color: var(--g-light);
  color: var(--g-dark) !important;
}

/* ── SEARCH BAR ───────────────────────────────────────── */
.search-wrap { display: flex; justify-content: center; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--g-surface);
  border: 1.5px solid var(--g-pale);
  border-radius: 50px;
  padding: 11px 22px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within {
  border-color: var(--g-light);
  box-shadow: 0 0 0 4px rgba(21,128,61,.10);
}
.search-bar i {
  color: var(--g-base);
  font-size: 1rem;
  flex-shrink: 0;
}
.search-bar input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   SECTION SWITCHER  (pill container)
════════════════════════════════════════════════════════ */
.switcher-wrap {
  margin-bottom: 1.4rem;
}

.content-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1.5px solid var(--g-pale);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all .22s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.switch-pill .cnt {
  background: var(--g-pale);
  color: var(--g-base);
  padding: 1px 7px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}

.switch-pill:hover {
  background: var(--g-surface);
  color: var(--g-dark);
}

.switch-pill.active {
  background: linear-gradient(135deg, var(--g-base), var(--g-dark));
  color: #fff;
  box-shadow: 0 3px 12px rgba(21,128,61,.3);
}

.switch-pill.active .cnt {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ── CATEGORY NAV ─────────────────────────────────────── */
.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 70vw;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-nav .pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--g-pale);
  color: var(--g-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.22s ease;
}
.category-nav .pill:hover {
  background: var(--g-surface);
  border-color: var(--g-light);
  color: var(--g-dark);
}
.category-nav .pill.active {
  background: var(--g-surface);
  color: var(--g-darkest);
  border-color: var(--g-base);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════
   FEATURED CARD
════════════════════════════════════════════════════════ */
.featured-section { margin-bottom: 2.5rem; }

/* Label above featured card */
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--g-gold);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1rem;
}
.featured-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--g-gold);
  border-radius: 2px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--g-pale);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s;
}
.featured-card:hover {
  box-shadow: 0 24px 64px rgba(21,128,61,.20);
}

.featured-card .img-wrapper {
  min-height: 320px;
  overflow: hidden;
  position: relative;
}
.featured-card .img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,46,22,.2), transparent 60%);
}
.featured-card .blog-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-card:hover .blog-img { transform: scale(1.05); }

.featured-card .blog-body {
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.featured-card .cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--g-gold-lt);
  color: var(--g-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid #fde68a;
  width: fit-content;
}

.featured-card .blog-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--g-darkest);
  line-height: 1.25;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.featured-card:hover .blog-title { color: var(--g-base); }

.featured-card .blog-desc {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card .read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--g-base), var(--g-dark));
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  width: fit-content;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s;
  margin-bottom: 1.8rem;
}
.featured-card .read-more-link:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(21,128,61,.45);
}
.featured-card .read-more-link i { transition: transform 0.2s; }
.featured-card .read-more-link:hover i { transform: translateX(4px); }

/* ── BLOG FOOTER ─────────────────────────────────────── */
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid var(--g-pale);
  margin-top: auto;
}

.author-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g-base), var(--g-bright));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700; font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(21,128,61,.3);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}
.author-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--g-surface);
  border: 1.5px solid var(--g-pale);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  user-select: none;
}
.like-btn:hover {
  background: #fff0f0;
  border-color: #fca5a5;
}
.like-btn.liked {
  background: #fff0f0;
  border-color: #f87171;
}
.like-btn .like-count {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.like-btn i { color: var(--text-muted); transition: transform 0.2s; }
.like-btn:hover i, .like-btn.liked i { transform: scale(1.2); color: #ef4444; }

/* ── DELETE BUTTON ────────────────────────────────────── */
.btn-delete {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-delete:hover { background: #fff0f0; }

/* ════════════════════════════════════════════════════════
   ARTICLE GRID SECTION
════════════════════════════════════════════════════════ */
.articles-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.articles-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--g-darkest);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g-base);
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.view-all-link:hover { gap: 8px; color: var(--g-dark); }

/* ── GRID ─────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--g-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
}
.article-grid .blog-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--g-light);
}

.article-grid .img-wrapper {
  overflow: hidden;
  height: 190px;
  position: relative;
}
.article-grid .img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,46,22,.3));
  opacity: 0;
  transition: opacity 0.3s;
}
.article-grid .blog-card:hover .img-wrapper::after { opacity: 1; }
.article-grid .blog-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-grid .blog-card:hover .blog-img { transform: scale(1.07); }

.article-grid .blog-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-grid .cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--g-base);
  margin-bottom: 8px;
}

.article-grid .blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.article-grid .blog-card:hover .blog-title { color: var(--g-base); }

.article-grid .blog-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-grid .inline-read-more {
  color: var(--g-base) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.1rem;
  width: fit-content;
  transition: gap 0.2s, color 0.2s;
}
.article-grid .inline-read-more:hover { gap: 8px; color: var(--g-dark) !important; }

/* Card footer always at bottom */
.article-grid .blog-footer { margin-top: auto; }

/* ════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.widget {
  background: #fff;
  border: 1.5px solid var(--g-pale);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.widget:hover { box-shadow: var(--shadow-md); }

.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--g-darkest);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Gradient line after title */
.widget-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--g-base), transparent);
  border-radius: 2px;
}

/* ── NEWSLETTER ──────────────────────────────────────── */
.newsletter-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.newsletter-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--g-pale);
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--g-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.newsletter-box input:focus {
  border-color: var(--g-light);
  box-shadow: 0 0 0 3px rgba(21,128,61,.10);
}
.newsletter-box .btn {
  width: 100%;
  background: linear-gradient(135deg, var(--g-base), var(--g-dark));
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.newsletter-box .btn:hover {
  background: linear-gradient(135deg, var(--g-dark), var(--g-darkest));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21,128,61,.4);
}

/* ── TRENDING ─────────────────────────────────────────── */
.popular-list { padding: 0; list-style: none; margin: 0; }
.popular-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--g-pale);
}
.popular-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
/* Numbered rank badge */
.trend-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--g-surface);
  color: var(--g-base);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--g-pale);
}
.popular-list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  flex: 1;
}
.popular-list .pop-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--g-base);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.popular-list .pop-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s;
}
.popular-list li:hover .pop-title { color: var(--g-base); }

/* ── QUICK TOOLS ──────────────────────────────────────── */
.calc-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.calc-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: var(--g-surface);
  border: 1px solid var(--g-pale);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.calc-links a:hover {
  background: var(--g-pale);
  border-color: var(--g-light);
  color: var(--g-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.calc-links a i { font-size: 1rem; flex-shrink: 0; }

/* ── EMPTY STATE ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: #fff;
  border: 1.5px dashed var(--g-pale);
  border-radius: var(--radius-md);
}
.empty-state i { font-size: 3.5rem; color: var(--g-light); }
.empty-state h3 {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE (UPDATED FOR MOBILE FIX)
════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  /* 1. LAYOUT RESET: Grid ko hata kar flex banayenge taaki 100% width le */
  .content-layout { display: flex !important; flex-direction: column !important; }
  .featured-card { display: flex !important; flex-direction: column !important; }
  
  /* 2. PAGE MARGINS: Mobile par padding kam karenge taaki space bache */
  .page { padding: 1rem !important; width: 100% !important; overflow-x: hidden; }

  /* 3. SWITCHERS & HEADER: Wrap hone denge */
  .content-switcher { flex-wrap: wrap !important; width: 100%; }
  .switch-pill { white-space: normal !important; flex-grow: 1; text-align: center; justify-content: center; }
  .archive-header h1 { font-size: 1.8rem !important; word-break: break-word; }

  /* 4. IMAGE FIX: Fix height ki jagah Aspect Ratio, isse image katega nahi */
  .featured-card .img-wrapper, .article-grid .img-wrapper, .blog-card .img-wrapper {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    aspect-ratio: 16 / 9 !important; /* Perfect mobile image shape */
  }

  /* 5. TEXT & CARDS FIX: Box-sizing aur truncate */
  .featured-card .blog-body, .article-grid .blog-body {
    padding: 1.2rem !important;
    width: 100% !important;
  }
  .blog-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* 2 line ke baad ... aa jayega */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
  }

  /* 6. FOOTER STACK: Items ek line mein takrayenge nahi */
  .blog-footer { flex-wrap: wrap !important; gap: 10px !important; height: auto !important; }
  .blog-footer > div { width: 100% !important; justify-content: space-between !important; flex-wrap: wrap; }
}

@media (max-width: 576px) {
  /* 1. LOCK SCREEN WIDTH (Prevents horizontal scrolling/breaking) */
  body, .page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* 2. HEADER & SEARCH BAR FIX */
  .archive-header { padding: 1.5rem 1rem !important; }
  .archive-header h1 { font-size: 1.6rem !important; }
  .search-bar { max-width: 100% !important; padding: 8px 16px !important; }

  /* 3. CARD CONTAINER FIX */
  .featured-card, .blog-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 auto 1.5rem !important;
  }

  /* 4. PERFECT IMAGE SHRINKING (Uses aspect ratio instead of random height) */
  .featured-card .img-wrapper,
  .article-grid .img-wrapper,
  .blog-card .img-wrapper {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    aspect-ratio: 16 / 9 !important; /* Forces perfect landscape proportion on mobile */
    width: 100% !important;
  }

  /* 5. TEXT CONTENT BREAK & TRUNCATE */
  .featured-card .blog-body,
  .article-grid .blog-body {
    padding: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .blog-title {
    font-size: 1.25rem !important;
    word-wrap: break-word !important; /* Breaks long words */
    overflow-wrap: break-word !important;
    white-space: normal !important;
    margin-bottom: 0.5rem !important;
  }

  .blog-desc {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    /* Strict 2-line truncate */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 6. FOOTER STACKING (Prevents buttons from squishing) */
  .blog-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .blog-footer > .d-flex {
    width: 100% !important;
    justify-content: space-between !important;
  }
}
.pagination-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin:40px 0;
    flex-wrap:wrap;
}

.page-btn{
    padding:10px 16px;
    border:1px solid #ddd;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    background:#fff;
    transition:.2s;
}

.page-btn:hover{
    background:#f5f5f5;
}

.page-btn.active{
    background:#15803d;
    color:#fff;
    border-color:#15803d;
}