/*
Theme Name: SarkariLok
Theme URI: https://sarkarilok.in
Author: SarkariLok Team
Description: Gujarat's #1 Sarkari Job Portal — Modern, SEO-Friendly WordPress Theme
Version: 2.2.1
Text Domain: customer-job-protal
Tags: government-jobs, sarkari, gujarat, job-portal, seo
*/

/* =============================================
   1. DESIGN TOKENS & CSS VARIABLES
   ============================================= */
:root {
  /* Colors */
  --homepage-hero-bg: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  --hero-pattern-opacity: 0.5;
  --color-primary: #1a56db;
  --color-primary-dark: #1345b7;
  --color-primary-light: #e8effd;
  --color-accent: #e85d04;
  --color-accent-light: #fff3e8;

  --color-bg: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;

  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #0284c7;

  /* Typography */
  --font-sans: 'Poppins', 'Anek Gujarati', 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', system-ui, -apple-system, BlinkMacSystemFont, 'Noto Color Emoji', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.3;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: var(--line-height-tight); font-weight: var(--font-weight-bold); color: var(--color-text); }

/* =============================================
   3. LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =============================================
   4. PREMIUM SOCIAL BAR
   ============================================= */

/* Keyframe animations */
@keyframes sl-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50%       { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
}
@keyframes sl-float {
  0%,100% { transform: translateY(0) scale(1);   opacity: 0.35; }
  50%      { transform: translateY(-8px) scale(1.2); opacity: 0.7; }
}
@keyframes sl-shimmer {
  0%   { transform: translateX(-250%); }
  100% { transform: translateX(450%); }
}
@keyframes sl-tg-glow {
  0%,100% { text-shadow: 0 0 6px rgba(255,255,255,0.3); }
  50%      { text-shadow: 0 0 18px rgba(255,255,255,0.9), 0 0 30px rgba(38,165,228,0.6); }
}
@keyframes sl-badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Wrapper */
.sl-social-bar { width: 100%; font-family: var(--font-sans); }

/* Shared bar base */
.sl-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
}

/* ── Row 1: WhatsApp ── */
.sl-bar--whatsapp {
  background: linear-gradient(100deg, #0d1b4b 0%, #1a3580 45%, #0f2d6e 100%);
  padding: 9px 20px;
}

/* Decorative floating particles */
.sl-bar__particles {
  position: absolute; inset: 0; pointer-events: none;
}
.sl-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: sl-float 4s ease-in-out infinite;
}
.sl-bar--whatsapp .sl-particle:nth-child(1) { top: 20%; left:  5%; animation-delay: 0s;    animation-duration: 3.5s; }
.sl-bar--whatsapp .sl-particle:nth-child(2) { top: 70%; left: 15%; animation-delay: 0.7s;  animation-duration: 4.2s; width: 4px; height: 4px; }
.sl-bar--whatsapp .sl-particle:nth-child(3) { top: 30%; left: 85%; animation-delay: 1.2s;  animation-duration: 3.8s; }
.sl-bar--whatsapp .sl-particle:nth-child(4) { top: 75%; left: 75%; animation-delay: 0.4s;  animation-duration: 5s;   width: 3px; height: 3px; }
.sl-bar--whatsapp .sl-particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 1.8s;  animation-duration: 4.5s; width: 6px; height: 6px; }

.sl-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sl-bar__message {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Milestone star badge */
.sl-milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: sl-badge-pop 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.sl-bar__text {
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.sl-bar__text strong { color: #fff; font-weight: 700; }

/* WhatsApp CTA button */
.sl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
/* Shimmer effect — uses transform (GPU-composited, no CLS) */
.sl-cta-btn::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: sl-shimmer 2.8s ease-in-out infinite;
  will-change: transform;
}
.sl-cta-btn--wa {
  background: linear-gradient(135deg, #128c3e, #25d366, #1ebe5d);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.35);
  animation: sl-pulse-glow 2.2s ease-in-out infinite;
}
.sl-cta-btn--wa:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.55);
  color: #fff;
  animation: none;
}
.sl-cta-arrow {
  transition: transform 0.2s ease;
}
.sl-cta-btn:hover .sl-cta-arrow { transform: translateX(3px); }

/* ── Row 2: Telegram ── */
.sl-bar--telegram {
  background: linear-gradient(95deg, #005f85 0%, #0088cc 40%, #00b4d8 80%, #007ea8 100%);
  padding: 8px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.sl-bar--telegram:hover { filter: brightness(1.1); }

.sl-bar--telegram .sl-particle:nth-child(1) { top: 20%; left:  3%; animation-delay: 0.3s;  animation-duration: 4s;   background: rgba(255,255,255,0.22); }
.sl-bar--telegram .sl-particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s;    animation-duration: 5.5s; width: 4px; height: 4px; }
.sl-bar--telegram .sl-particle:nth-child(3) { top: 25%; left: 80%; animation-delay: 0.5s;  animation-duration: 4.5s; }
.sl-bar--telegram .sl-particle:nth-child(4) { top: 70%; left: 90%; animation-delay: 1.5s;  animation-duration: 3.8s; width: 3px; height: 3px; }

.sl-tg-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sl-tg-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  color: #fff;
  /* backdrop-filter removed — high paint cost, no visual benefit on small icon */
  transition: transform 0.25s ease, background 0.25s ease;
}
.sl-bar--telegram:hover .sl-tg-icon-wrap {
  transform: rotate(-12deg) scale(1.15);
  background: rgba(255,255,255,0.28);
}

.sl-tg-text {
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  animation: sl-tg-glow 3s ease-in-out infinite;
}
.sl-tg-text strong { color: #fff; font-weight: 700; }
.sl-tg-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
  /* backdrop-filter removed — high paint cost */
  vertical-align: middle;
}

.sl-tg-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  /* backdrop-filter removed — high paint cost */
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sl-bar--telegram:hover .sl-tg-cta {
  background: rgba(255,255,255,0.32);
  transform: translateX(3px);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .sl-bar--whatsapp { padding: 8px 14px; }
  .sl-bar__inner { flex-direction: column; gap: 7px; text-align: center; }
  .sl-bar__message { justify-content: center; }
  .sl-cta-btn { width: 100%; justify-content: center; }
  .sl-tg-inner { gap: 7px; flex-wrap: wrap; }
  .sl-tg-cta { display: none; }
  .sl-tg-text { font-size: 0.8rem; }
}

/* =============================================
   5. HEADER
   ============================================= */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  width: 100%; height: var(--header-height);
  padding: 0 var(--space-4);
}
@media (min-width: 768px) {
  .header-container { padding: 0 var(--space-6); }
}

.site-branding { flex: 0 0 auto; }
.site-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.logo-main {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-normal);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.25rem;
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-surface-2); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Navigation */
.primary-nav {
  display: none;
}
.primary-nav.is-open { display: block; }
@media (min-width: 768px) {
  .primary-nav {
    display: block;
    flex: 0 0 auto;
  }
}

.nav-list {
  display: flex; align-items: center; gap: var(--space-1);
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .primary-nav.is-open {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .primary-nav.is-open .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-2); }
}

.nav-list li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li.current-menu-item > a {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* =============================================
   6. AD SLOT COMPONENT
   ============================================= */
.ad-slot {
  text-align: center;
  padding: var(--space-3) 0;
  overflow: hidden;
}
.ad-slot-placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--color-border-light),
    var(--color-border-light) 10px,
    var(--color-bg) 10px,
    var(--color-bg) 20px
  );
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-slot-banner {
  max-width: 728px; margin: 0 auto;
  background: var(--color-bg); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.ad-slot-rectangle { max-width: 336px; margin: var(--space-4) auto; }
.ad-slot-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--space-1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =============================================
   7. MAIN CONTENT
   ============================================= */
.site-main { flex: 1 0 auto; width: 100%; }

/* =============================================
   8. HERO SECTION
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 60%, #1d4ed8 100%);
  color: #fff;
  padding: var(--space-10) var(--space-4);
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
}
.hero-stats {
  display: flex;
  justify-content: center; gap: var(--space-8);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
}
.stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* =============================================
   9. NEWS TICKER
   ============================================= */
.updates-ticker {
  background: #fff3e8;
  border-bottom: 1px solid #fcd9b4;
  padding: var(--space-2) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  overflow: hidden;
}
.ticker-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.ticker-track-wrapper {
  flex: 1; overflow: hidden; position: relative;
}
.ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.ticker-track a { color: var(--color-primary); font-weight: var(--font-weight-medium); }
.ticker-track a:hover { text-decoration: underline; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* =============================================
   10. LANDING PAGE GRID
   ============================================= */
.landing-page { max-width: var(--max-width); margin: 0 auto; padding: var(--space-6) var(--space-4); }

/* 2-column equal grid */
.main-content-grid,
.secondary-content-grid,
.tertiary-content-grid,
.additional-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) {
  .main-content-grid,
  .secondary-content-grid,
  .tertiary-content-grid,
  .additional-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   11. SECTION CARDS
   ============================================= */
.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.section-header h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  display: flex; align-items: center; gap: var(--space-2);
}
.section-icon {
  width: 28px; height: 28px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.view-all {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.view-all:hover { background: var(--color-primary); color: #fff; }

/* =============================================
   12. POST LIST
   ============================================= */
.post-list { padding: var(--space-2) 0; }

.post-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--color-surface-2); }

.post-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  margin-top: 2px;
}
.post-icon svg { width: 16px; height: 16px; fill: currentColor; }

.post-emoji { font-size: 1.1rem; flex-shrink: 0; margin-top: 3px; }

.post-details { flex: 1; min-width: 0; }
.post-details h3 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}
.post-details h3 a { color: var(--color-text); }
.post-details h3 a:hover { color: var(--color-primary); }
.post-details p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

/* Latest Jobs date row */
.peo-latest-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  margin-bottom: 4px;
}
.peo-date-row {
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}
.peo-days-left {
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
}
.peo-days-left.expired { color: var(--color-danger); }
.peo-days-left.urgent { color: var(--color-warning); }

/* =============================================
   13. DATA TABLES
   ============================================= */
.table-container { width: 100%; max-width: 100vw; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.data-table thead { background: var(--color-surface-2); }
.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-surface-2); }
.data-table a { color: var(--color-primary); font-weight: var(--font-weight-medium); }
.data-table a:hover { text-decoration: underline; }

/* =============================================
   14. STATUS BADGES
   ============================================= */
.status-badge {
  display: inline-flex; align-items: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.status-upcoming { background: #dcfce7; color: #166534; }
.status-urgent   { background: #fef3c7; color: #92400e; }
.status-expired  { background: #fee2e2; color: #991b1b; }

/* =============================================
   15. ACTION BUTTONS
   ============================================= */
.action-button {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.action-button:hover { opacity: 0.85; transform: translateY(-1px); }
.download-button { background: var(--color-primary); color: #fff !important; }
.key-button      { background: #e0f2fe; color: #0369a1 !important; }
.final-key       { background: #dcfce7; color: #166534 !important; }
.question-btn    { background: #f3e8ff; color: #6b21a8 !important; }
.offline-tag     { background: var(--color-accent-light); color: var(--color-accent); border: 1px solid #fcd9b4; }
.online-tag      { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* =============================================
   16. QUESTION PAPER CPT PAGE
   ============================================= */
.qp-page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}
.qp-page-header {
  margin-bottom: var(--space-6);
}
.qp-page-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}
.qp-page-header p {
  color: var(--color-text-muted);
}
.qp-filter-bar {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-5);
  align-items: center;
}
.qp-filter-bar select,
.qp-filter-bar input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  background: var(--color-bg-white);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
}
.qp-filter-bar select:focus,
.qp-filter-bar input:focus { border-color: var(--color-primary); }

.type-badge-prelim { background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: var(--radius-full); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.type-badge-mains  { background: #f3e8ff; color: #6b21a8; padding: 2px 8px; border-radius: var(--radius-full); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }

/* =============================================
   17. SINGLE POST PAGE
   ============================================= */
.single-post-page {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.post-entry {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-entry-header { padding: var(--space-6); border-bottom: 1px solid var(--color-border); }
.post-entry-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}
.post-entry-meta {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.post-entry-meta span { display: flex; align-items: center; gap: var(--space-1); }

.post-entry-content {
  padding: var(--space-6);
  line-height: var(--line-height-relaxed);
}
.post-entry-content p { margin-bottom: var(--space-4); }
.post-entry-content h2 { font-size: var(--font-size-xl); margin: var(--space-6) 0 var(--space-3); }
.post-entry-content h3 { font-size: var(--font-size-lg); margin: var(--space-5) 0 var(--space-2); }
.post-entry-content ul,
.post-entry-content ol { margin: var(--space-4) 0 var(--space-4) var(--space-6); }
.post-entry-content li { margin-bottom: var(--space-2); list-style-type: disc; }
.post-entry-content a { text-decoration: underline; }
.post-entry-content table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.post-entry-content th, .post-entry-content td { padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); }
.post-entry-content th { background: var(--color-surface-2); font-weight: var(--font-weight-semibold); }

.post-thumbnail-full {
  width: 100%; max-height: 400px;
  overflow: hidden;
}
.post-thumbnail-full img { width: 100%; height: 100%; object-fit: cover; }

/* Post Extra Options Display (in single posts) */
.post-extra-data {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-6);
}
.post-extra-data h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.admit-card-info-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.admit-card-info-table td { padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); }
.admit-card-info-table td:first-child { font-weight: var(--font-weight-semibold); background: var(--color-surface); width: 40%; }

/* Post Navigation */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  margin: var(--space-6) 0;
}
.nav-link {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-link:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); color: var(--color-text); }
.nav-direction { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: 4px; }
.nav-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.next-link { text-align: right; }

/* Enhanced Post Footer */
.enhanced-post-footer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.post-tags-section { margin-bottom: var(--space-4); }
.tags-label { font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); }
.tag-link {
  display: inline-block;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 2px;
  transition: background var(--transition-fast);
}
.tag-link:hover { background: var(--color-primary-light); color: var(--color-primary); }

.social-share-section { }
.share-label { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); display: block; margin-bottom: var(--space-3); }
.share-buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.share-button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: opacity var(--transition-fast);
}
.share-button:hover { opacity: 0.85; }
.share-button.twitter  { background: #000; color: #fff; }
.share-button.whatsapp { background: #25D366; color: #fff; }
.share-button.telegram { background: #26A5E4; color: #fff; }
.share-button.email    { background: #4285F4; color: #fff; }
.share-button svg { width: 18px; height: 18px; }

/* Related Posts */
.related-posts-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.related-title { font-size: var(--font-size-xl); margin-bottom: var(--space-4); }
.related-posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4);
}
.related-post-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.related-post-item:hover { box-shadow: var(--shadow-md); }
.related-post-thumbnail img { width: 100%; height: 120px; object-fit: cover; }
.related-post-content { padding: var(--space-3); }
.related-post-content h4 { font-size: var(--font-size-sm); margin-bottom: var(--space-1); }
.related-post-content h4 a { color: var(--color-text); }
.related-post-content h4 a:hover { color: var(--color-primary); }
.related-excerpt { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: var(--space-1); }
.related-date { font-size: var(--font-size-xs); color: var(--color-text-light); }

/* =============================================
   18. ARCHIVE PAGE
   ============================================= */
.archive-page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}
.archive-page-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.archive-page-header h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

/* =============================================
   19. SEARCH PAGE
   ============================================= */
.search-results-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

/* Search Form */
.search-form {
  display: flex; gap: var(--space-2);
  max-width: 600px; margin: var(--space-4) 0;
  width: 100%;
}
.search-form input[type="search"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-form input[type="search"]:focus { border-color: var(--color-primary); }
.search-form button {
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-family: var(--font-sans);
}
.search-form button:hover { background: var(--color-primary-dark); }

/* =============================================
   20. FOOTER
   ============================================= */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
}

.footer-ad-slot {
  background: #263447;
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid #334155;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 640px) { .footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-widgets { grid-template-columns: 2fr 1fr 1fr; } }

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #334155;
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul li a {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  transition: color var(--transition-fast);
  display: flex; align-items: center; gap: var(--space-2);
}
.footer-col ul li a:hover { color: #fff; }

.quick-links { }

.connect-list { }
.connect-list .icon { display: inline-flex; }
.connect-list .label { }

.social-links {
  display: flex; gap: var(--space-3); margin-top: var(--space-4);
}
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #334155;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.social-links a:hover { background: var(--color-primary); }

.site-disclaimer {
  background: #0f172a;
  padding: var(--space-5) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: var(--font-size-xs);
  color: #64748b;
  line-height: 1.7;
}
.site-disclaimer p { margin-bottom: var(--space-2); }
.site-disclaimer strong { color: #94a3b8; }

.site-info {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-xs);
  color: #475569;
}
.site-info p { margin-bottom: 4px; }

/* =============================================
   21. NO POST FOUND / 404
   ============================================= */
.no-post-found, .no-results {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.back-home-button {
  display: inline-flex;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
}

/* =============================================
   22. PAGINATION
   ============================================= */
.pagination, .archive-pagination {
  display: flex; justify-content: center; gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
}
.pagination a, .pagination span,
.archive-pagination a, .archive-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.pagination a:hover, .archive-pagination a:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary); }
.pagination .current, .archive-pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =============================================
   23. BREADCRUMBS
   ============================================= */
.breadcrumb-wrapper {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-primary); }
.breadcrumbs span { margin: 0 var(--space-2); }

/* =============================================
   24. MISCELLANEOUS
   ============================================= */
.featured-post { border-left: 3px solid var(--color-primary); }

/* Loading animation */
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.skeleton {
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth reveal */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section-card { animation: fadeIn 0.3s ease forwards; }

/* =============================================
   25. RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 640px) {
  .hero-stats { gap: var(--space-5); }
  .stat-number { font-size: var(--font-size-xl); }
  .post-navigation { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: var(--space-2) var(--space-3); font-size: var(--font-size-xs); }
  .qp-filter-bar { flex-direction: column; }
  .qp-filter-bar select, .qp-filter-bar input { width: 100%; }
}

/* =============================================
   26. READING PROGRESS BAR
   ============================================= */
.reading-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* =============================================
   27. SINGLE POST PAGE — v3.0
   ============================================= */
.single-post-page { background: var(--color-bg); min-height: 80vh; }

/* Two-column layout: article + sidebar */
.single-post-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
  align-items: start;
}

/* ── POST HERO HEADER ── */
.post-hero {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.cat-badge {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.cat-badge:hover { background: var(--color-primary); color: #fff; }
.post-category-badge { margin-bottom: var(--space-3); }
.post-hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.meta-item { display: flex; align-items: center; gap: var(--space-1); }
.meta-divider { color: var(--color-border); }
.meta-updated { font-style: italic; }

/* Share bar (compact, above fold) */
.post-hero-share { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.share-label-sm { font-size: var(--font-size-xs); color: var(--color-text-muted); font-weight: 600; }
.share-btn-sm {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  border: none; cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.share-btn-sm:hover { transform: scale(1.12); box-shadow: var(--shadow-md); }
.share-wa  { background: #25D366; color: #fff; }
.share-tg  { background: #26A5E4; color: #fff; }
.share-copy{ background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); }

/* ── FEATURED IMAGE ── */
.post-featured-image {
  margin: 0 0 var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-featured-img {
  width: 100%; height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.post-featured-image figcaption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
}

/* ── QUICK INFO BOX ── */
.post-info-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
  border: 1.5px solid #b3d9f7;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.info-box-header {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #b3d9f7;
}
.info-box-icon { font-size: 1.5rem; }
.info-box-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-text); margin: 0; }
.info-box-badge {
  margin-left: auto;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.info-box-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.info-box-table th,
.info-box-table td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid #d0eaf7; }
.info-box-table th { font-weight: 600; color: var(--color-text-muted); white-space: nowrap; width: 140px; }
.info-box-table td { color: var(--color-text); }
.info-box-table .date-urgent { color: var(--color-danger); font-weight: 600; }
.info-box-table tr:last-child th,
.info-box-table tr:last-child td { border-bottom: none; }
.info-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.info-action-btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* ── SYLLABUS CARD DETAILS LAYOUT ── */
.info-card-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.info-card-title-row {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}
.info-card-sub-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.info-card-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.info-card-item .info-card-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-card-item .info-card-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card-item .sl-countdown {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}
.info-card-item.last-date-item {
  background: var(--color-accent-light, #fff3e8);
  border-color: #ffd8b3;
}
body.dark-mode .info-card-item.last-date-item {
  background: rgba(232, 93, 4, 0.1);
  border-color: rgba(232, 93, 4, 0.2);
}
.info-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.info-action-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.info-action-card-btn.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
}
.info-action-card-btn.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.info-action-card-btn.btn-secondary {
  background: var(--color-info, #0284c7);
  color: #fff !important;
}
.info-action-card-btn.btn-secondary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
.info-action-card-btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text) !important;
}
.info-action-card-btn.btn-ghost:hover {
  background: var(--color-surface-2);
  transform: translateY(-1px);
}

/* ── POST CONTENT BODY ── */
.post-content-body {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}
.post-content-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-text); margin: 2rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--color-primary-light); }
.post-content-body h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--color-text); }
.post-content-body h4 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.6rem; }
.post-content-body p  { margin-bottom: 1.2rem; }
.post-content-body ul,
.post-content-body ol { margin: 1rem 0 1.2rem 1.5rem; }
.post-content-body li { margin-bottom: 0.4rem; }
.post-content-body a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.post-content-body a:hover { color: var(--color-primary-dark); }
.post-content-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1rem 0; }
.post-content-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--font-size-sm); overflow-x: auto; display: block; }
.post-content-body table th,
.post-content-body table td { border: 1px solid var(--color-border); padding: 0.5rem 0.75rem; text-align: left; }
.post-content-body table thead th { background: var(--color-primary); color: #fff; }
.post-content-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.post-content-body pre,
.post-content-body code { background: #1e293b; color: #e2e8f0; border-radius: var(--radius-sm); padding: 0.2em 0.5em; font-size: 0.9em; }
.post-content-body pre { padding: 1rem; overflow-x: auto; margin: 1.5rem 0; }

/* ── POST TAGS ── */
.post-tags {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.tags-icon { font-size: 1rem; }
.post-tag {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.post-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── FULL SHARE SECTION ── */
.post-share-full {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.share-title { font-weight: 600; font-size: var(--font-size-sm); white-space: nowrap; }
.share-full-buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.share-full-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer; border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}
.share-full-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: .92; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-telegram  { background: #26A5E4; color: #fff; }
.btn-twitter   { background: #000;    color: #fff; }
.btn-copy      { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); }

/* ── COPY LINK TOAST ── */
.copy-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm); font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── POST NAVIGATION ── */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-decoration: none; color: var(--color-text);
  transition: all var(--transition-base);
  min-height: 60px;
}
.post-nav-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); background: var(--color-primary-light); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: var(--font-size-xs); color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav-t { font-size: var(--font-size-sm); font-weight: 500; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-empty { display: block; }

/* ── SIDEBAR ── */
.single-post-sidebar { position: sticky; top: 80px; }
.sidebar-sticky { display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-quick-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-4);
}
.sidebar-quick-links { list-style: none; margin: 0; padding: 0; }
.sidebar-quick-links li { border-bottom: 1px solid var(--color-border-light); }
.sidebar-quick-links li:last-child { border-bottom: none; }
.sidebar-quick-links a {
  display: block; padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm); color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.sidebar-quick-links a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.sidebar-wa-btn {
  display: block; text-align: center;
  background: #25D366; color: #fff;
  font-weight: 700; font-size: var(--font-size-sm);
  padding: var(--space-3);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.sidebar-wa-btn:hover { background: #1da851; }

/* ── RELATED POSTS ── */
.related-posts-section {
  background: var(--color-surface-2);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}
.related-posts-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}
.related-post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex; flex-direction: column;
}
.related-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-post-thumb { display: block; overflow: hidden; height: 150px; }
.related-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.related-post-card:hover .related-thumb-img { transform: scale(1.05); }
.related-post-thumb-placeholder { height: 100px; background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.related-post-body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.related-cat { font-size: var(--font-size-xs); color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.related-post-title { font-size: var(--font-size-sm); font-weight: 600; margin: 0; line-height: 1.4; }
.related-post-title a { color: var(--color-text); text-decoration: none; }
.related-post-title a:hover { color: var(--color-primary); }
.related-post-date { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: auto; }
.no-related { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.post-comments-wrap { padding: var(--space-8) 0; }

/* =============================================
   28. FOOTER REDESIGN v3.0
   ============================================= */
/* WhatsApp CTA Banner */
.footer-cta-banner {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: var(--space-5) 0;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); flex-wrap: wrap;
}
.footer-cta-text {
  display: flex; align-items: center; gap: var(--space-4); color: #fff;
}
.footer-cta-icon { font-size: 2rem; }
.footer-cta-text strong { font-size: var(--font-size-lg); font-weight: 700; display: block; }
.footer-cta-text p { font-size: var(--font-size-sm); opacity: .85; margin: 0; }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #fff;
  color: #075e54;
  font-weight: 700; font-size: var(--font-size-sm);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* Main footer */
.site-footer { background: #0f172a; color: #94a3b8; }
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding: var(--space-12) var(--space-6);
}
/* Brand col */
.footer-brand-col {}
.footer-logo {
  display: inline-flex; align-items: baseline; gap: 1px;
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.footer-logo-text { font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.footer-logo-dot  { font-size: 1.6rem; font-weight: 900; color: var(--color-accent); }
.footer-logo-in   { font-size: 1.6rem; font-weight: 900; color: var(--color-accent); }
.footer-brand-desc { font-size: var(--font-size-sm); line-height: 1.65; color: #94a3b8; margin-bottom: var(--space-5); }

/* Social icons */
.footer-social { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.social-icon:hover { transform: scale(1.12); opacity: .9; }
.social-icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.social-wa  { background: #25D366; color: #fff; }
.social-tg  { background: #26A5E4; color: #fff; }
.social-ig  { background: linear-gradient(135deg, #fd5 0%, #ff543e 50%, #c837ab 100%); color: #fff; }
.social-em  { background: #4285F4; color: #fff; }

/* Nav columns */
.footer-nav-col {}
.footer-col-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid #1e293b;
}
.footer-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-nav-list a:hover { color: #fff; padding-left: 4px; }
.footer-contact { margin-top: var(--space-4); }
.footer-contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #94a3b8; font-size: var(--font-size-xs);
  text-decoration: none; transition: color var(--transition-fast);
}
.footer-contact-link:hover { color: #fff; }

/* Disclaimer */
.footer-disclaimer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid #1e293b;
  font-size: var(--font-size-xs);
  color: #94a3b8;
  line-height: 1.6;
}
.footer-disclaimer strong { color: #cbd5e1; }

/* Bottom bar */
.footer-bottom { background: #020617; border-top: 1px solid #1e293b; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  flex-wrap: wrap; gap: var(--space-2);
}
.footer-copy { font-size: var(--font-size-xs); color: #94a3b8; }
.footer-copy strong { color: #cbd5e1; }
.footer-tagline { font-size: var(--font-size-xs); color: #94a3b8; }

/* =============================================
   29. FULL SITE MOBILE OPTIMIZATION
   ============================================= */

/* ── Large tablets (≤1024px) ── */
@media (max-width: 1024px) {
  .single-post-container { grid-template-columns: 1fr; }
  .single-post-sidebar { position: static; }
  .sidebar-sticky { flex-direction: row; flex-wrap: wrap; }
  .sidebar-quick-card { flex: 1; min-width: 240px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* ── Tablets (≤768px) ── */
@media (max-width: 768px) {
  /* Navigation */
  .site-header { flex-wrap: wrap; padding: var(--space-3) var(--space-4); }
  .primary-nav { width: 100%; }
  .nav-list { flex-direction: column; }

  /* Hero */
  .post-hero { padding: var(--space-5); }
  .post-hero-title { font-size: 1.4rem; }
  .post-hero-meta { gap: var(--space-2); font-size: var(--font-size-xs); }
  .meta-divider { display: none; }

  /* Info box */
  .post-info-box { padding: var(--space-4); }
  .info-box-table th { width: 110px; font-size: var(--font-size-xs); }
  .info-box-table td { font-size: var(--font-size-xs); }

  /* Post content */
  .post-content-body { padding: var(--space-5); }
  .post-content-body h2 { font-size: 1.3rem; }
  .post-content-body h3 { font-size: 1.1rem; }

  /* Share */
  .post-share-full { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .share-full-buttons { gap: var(--space-2); }
  .share-full-btn { padding: 8px 14px; font-size: var(--font-size-xs); }

  /* Post nav */
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }

  /* Related posts */
  .related-posts-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-text { flex-direction: column; text-align: center; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-8) var(--space-4); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Archive grid */
  .archive-grid { grid-template-columns: 1fr !important; }
  .archive-main-content { flex-direction: column !important; }
  .archive-sidebar { width: 100% !important; }

  /* QP Table scroll */
  .qp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .qp-search-bar { flex-direction: column; }
  .qp-search-bar select,
  .qp-search-bar input { width: 100%; }
}

/* ── Mobile phones (≤480px) ── */
@media (max-width: 480px) {
  :root { --space-6: 1.25rem; }

  /* Container squeeze */
  .container,
  .single-post-container,
  .single-post-page { padding-left: var(--space-4); padding-right: var(--space-4); }

  /* Post hero */
  .post-hero { padding: var(--space-4); border-radius: var(--radius-md); }
  .post-hero-title { font-size: 1.2rem; }

  /* Info box table responsive */
  .info-box-table thead { display: none; }
  .info-box-table tr { display: block; margin-bottom: var(--space-2); border: 1px solid #d0eaf7; border-radius: var(--radius-sm); overflow: hidden; }
  .info-box-table th { display: block; background: #e8f4fd; border-bottom: 1px solid #d0eaf7; }
  .info-box-table td { display: block; }

  /* Post content */
  .post-content-body { padding: var(--space-4); }
  .post-content-body table { font-size: 0.75rem; }

  /* Related */
  .related-posts-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; padding: var(--space-6) var(--space-4); gap: var(--space-6); }
  .footer-logo-text,
  .footer-logo-dot,
  .footer-logo-in { font-size: 1.4rem; }
  .footer-social { justify-content: center; }

  /* Front page */
  .hero-section { padding: var(--space-8) var(--space-4); }
  .home-posts-grid { grid-template-columns: 1fr !important; }

  /* Top notification */
  .notification-content { flex-wrap: wrap; justify-content: center; text-align: center; font-size: var(--font-size-xs); gap: var(--space-2); }

  /* Breadcrumbs */
  .breadcrumbs { font-size: var(--font-size-xs); }

  /* QP page */
  .qp-hero { text-align: center; }
  .qp-hero h1 { font-size: 1.4rem; }
  .qp-table th, .qp-table td { font-size: 0.75rem; padding: 6px 8px; }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
  .post-hero-title { font-size: 1.1rem; }
  .share-full-btn { padding: 7px 10px; font-size: 0.7rem; }
  .share-full-buttons { gap: var(--space-1); }
  .footer-cta-btn { font-size: var(--font-size-xs); padding: 10px 16px; }
}

/* ── Touch targets (accessibility) ── */
@media (hover:none) and (pointer:coarse) {
  .share-full-btn,
  .info-action-btn,
  .sidebar-wa-btn,
  .footer-cta-btn { min-height: 44px; }
  .nav-list a { min-height: 44px; display: flex; align-items: center; padding: var(--space-3) var(--space-4); }
}

/* ── Print ── */
@media print {
  .reading-progress-bar,
  .post-hero-share,
  .post-share-full,
  .related-posts-section,
  .single-post-sidebar,
  .footer-cta-banner,
  .site-footer { display: none !important; }
  .single-post-container { grid-template-columns: 1fr; }
  .post-content-body { box-shadow: none; border: none; }
}

/* =======================================================
   MOBILE DRAWER Z-INDEX FIX v2.0.9
   Ensure the slide-up drawer overlay always covers the
   sticky header (site-header z-index: 1000)
   ======================================================= */
.sl-menu-drawer-overlay {
  z-index: 99999 !important; /* FIX: raised from 10000 so drawer clears sticky header on all pages */
}

/* =====================================================
   CLEAN MODERN REDESIGN OVERRIDES: Header + Hero + Search
   ===================================================== */

/* HEADER - Clean and Minimal */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-border-light) !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  z-index: 200 !important;
  justify-content: space-between !important;
  padding: 0 clamp(1rem,5vw,3rem) !important;
  height: 72px !important;
  transition: box-shadow 250ms ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.logo-main {
  font-size: 1.5rem !important; font-weight: 800 !important;
  color: var(--color-text) !important;
  letter-spacing: -0.04em;
}

.header-controls { display: flex; align-items: center; gap: 12px; }
.header-search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: none;
  border-radius: 50%; cursor: pointer;
  color: var(--color-text);
  transition: background 150ms ease, color 150ms ease;
}
.header-search-toggle:hover { background: var(--color-surface-2); color: var(--color-primary); }

.menu-toggle {
  border: none; background: transparent; width: 44px; height: 44px;
}
.menu-toggle:hover { background: var(--color-surface-2); color: var(--color-primary); }

@media (min-width: 768px) {
  .primary-nav { display: flex !important; align-items: center; flex: 1; justify-content: flex-end; padding-right: 2rem; }
}
@media (max-width: 767px) {
  .primary-nav.is-open {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 199;
  }
  .primary-nav.is-open .nav-list { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.nav-list li a {
  padding: 8px 16px !important; font-size: 0.95rem !important; font-weight: 500 !important;
  color: var(--color-text) !important; border-radius: 8px !important;
  transition: background 150ms ease, color 150ms ease; white-space: nowrap;
}
.nav-list li a:hover, .nav-list li.current-menu-item > a {
  background: var(--color-surface-2) !important; color: var(--color-primary) !important;
}

/* HERO - Clean gradients & subtle patterns */
.hero-section {
  background: var(--homepage-hero-bg) !important;
  padding: 80px 1.5rem 100px !important;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: var(--hero-pattern-opacity);
    z-index: 0;
    pointer-events: none;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.hero-content h1 {
  font-size: clamp(2.5rem,6vw,4rem) !important; font-weight: 900 !important;
  color: var(--color-text) !important; margin-bottom: 1rem !important; letter-spacing: -0.05em; line-height: 1.15;
}
.hero-content > p {
  font-size: 1.125rem !important; color: var(--color-text-muted) !important;
  margin-bottom: 2.5rem !important; font-weight: 400; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* === MODEN SEARCH BAR === */
.hero-search-wrapper { position: relative; max-width: 680px; margin: 0 auto 2rem; }
.hero-search-form {
  display: flex; align-items: center;
  background: #ffffff; border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-border);
  transition: box-shadow 250ms ease, border-color 250ms ease;
  padding: 6px;
}
.hero-search-form:focus-within {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--color-primary);
}
.hero-search-icon {
  padding: 0 1rem 0 1.25rem; color: var(--color-text-light);
  display: flex; align-items: center; flex-shrink: 0;
}
.hero-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 1.125rem; font-weight: 400;
  color: var(--color-text); padding: 14px 0; min-width: 0;
}
.hero-search-input::placeholder { color: var(--color-text-light); }
.hero-search-btn {
  background: var(--color-primary); color: #fff; border: none;
  padding: 14px 32px; font-size: 1rem; font-weight: 600;
  border-radius: 12px; cursor: pointer; white-space: nowrap;
  transition: background 150ms ease;
}
.hero-search-btn:hover { background: var(--color-primary-dark); }

/* === AUTOCOMPLETE DROPDOWN === */
.hero-search-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  overflow: hidden; display: none; z-index: 400; max-height: 400px; overflow-y: auto;
}
.hero-search-dropdown.is-open { display: block; animation: dropIn .2s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top; }
@keyframes dropIn { from{opacity:0;transform:scaleY(0.95)} to{opacity:1;transform:scaleY(1)} }

.search-dropdown-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--color-border-light);
  text-decoration: none; transition: background 150ms ease;
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover, .search-dropdown-item.is-active { background: var(--color-surface-2); }
.search-dropdown-icon { color: var(--color-text-light); display: flex; align-items: center; margin-top: 2px;}
.search-dropdown-text { flex: 1; text-align: left; min-width: 0; }
.search-dropdown-title {
  font-size: 1rem; font-weight: 500; color: var(--color-text);
  display: block; margin-bottom: 4px;
}
.search-dropdown-meta { font-size: 0.875rem; color: var(--color-text-muted); }
.search-dropdown-view-all {
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-surface-2);
}
.search-dropdown-view-all:hover {
    background: var(--color-primary-light);
}

.search-dropdown-loading,
.search-dropdown-empty { padding: 32px 24px; text-align: center; color: var(--color-text-muted); font-size: 1rem; }

/* === TRENDING TAGS === */
.hero-search-trending {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.hero-search-trending-label { font-size: 0.875rem; color: var(--color-text-muted); font-weight: 500; }
.hero-trending-tag {
  background: var(--color-bg-white); border: 1px solid var(--color-border);
  border-radius: 8px; padding: 6px 16px; font-size: 0.875rem; font-weight: 500;
  color: var(--color-text); text-decoration: none; transition: all 150ms ease;
}
.hero-trending-tag:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hero-badge, .hero-stats { display: none !important; }

/* SPECIFIC SEARCH ICON AND BAR OVERRIDES */
#hero-search-form.hero-search-form {
    display: flex !important;
    align-items: center !important;
    background: var(--color-bg-white) !important;
    border-radius: 99px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 8px 12px 8px 24px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

#hero-search-form.hero-search-form:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2) !important;
}

.hero-search-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    margin-right: 12px !important;
}

#hero-search-input.hero-search-input,
#search-field-main.hero-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    padding: 10px 0 !important;
    outline: none !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
}

.hero-search-btn {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 99px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.hero-search-btn:hover {
    background: #1d4ed8 !important;
}

.hero-trending-tag {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 99px !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}

.hero-trending-tag:hover {
    background: white !important;
    color: #2563eb !important;
}
.hero-search-trending-label { color: rgba(255,255,255,0.8) !important; }

/* RE-ADJUSTING TAG COLORS FOR LIGHT HERO BACKGROUND */
.hero-trending-tag {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 99px !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}

.hero-trending-tag:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
    border-color: #94a3b8 !important;
}
.hero-search-trending-label { color: #64748b !important; }

/* Modern Advanced Search Filters Dropdown */
.advanced-filters {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 0.75rem;
}

.advanced-filters[hidden] {
    display: none !important;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.filter-group input:focus, .filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

@media (max-width: 600px) {
    .advanced-filters {
        width: 100%;
        right: 0;
        left: 0;
    }
}

/* =====================================================
   CLEAN MODERN REDESIGN OVERRIDES: SINGLE POST CONTENT 
   ===================================================== */
.post-content-body {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}

/* Headings */
.post-content-body h2 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 2.5rem 0 1.25rem !important;
    padding: 0.8rem 1.2rem !important;
    background: #f1f5f9 !important;
    border-left: 5px solid #2563eb !important;
    border-radius: 0 8px 8px 0 !important;
    border-bottom: none !important;
    line-height: 1.4 !important;
}

.post-content-body h3 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 2rem 0 1rem !important;
    padding: 0.6rem 1rem !important;
    background: #eff6ff !important;
    border-radius: 6px !important;
    display: inline-block !important;
    border: 1px solid #dbeafe !important;
}

.post-content-body h4:not(.author-name) {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 1.5rem 0 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    background: #f8fafc !important;
    border-left: 3px solid #64748b !important;
    display: inline-block !important;
}

/* Paragraphs & Lists */
.post-content-body p { margin-bottom: 1.25rem !important; }
.post-content-body ul, .post-content-body ol {
    margin: 1.25rem 0 1.25rem 1.5rem !important;
}
.post-content-body li {
    margin-bottom: 0.5rem !important;
    padding-left: 0.25rem !important;
}
.post-content-body ul li {
    list-style-type: none !important;
    position: relative !important;
}
.post-content-body ul li::before {
    content: "✓" !important;
    color: #059669 !important; /* Green checkmark */
    font-weight: 900 !important;
    display: inline-block !important; width: 1.2em !important;
    margin-left: -1.2em !important;
}

/* Links inside content */
.post-content-body a {
    color: #2563eb !important;
    text-decoration: none !important;
    border-bottom: 1px dotted #2563eb !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}
.post-content-body a:hover {
    color: #1d4ed8 !important;
    border-bottom: 1px solid #1d4ed8 !important;
    background: #eff6ff !important;
}

/* Tables (Responsive & Modern) */
.post-content-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    font-size: 0.95rem !important;
    overflow-x: auto !important;
    display: block !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    white-space: nowrap !important;
}
.post-content-body table::-webkit-scrollbar {
    height: 8px;
}
.post-content-body table::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
.post-content-body table th, 
.post-content-body table td {
    padding: 1rem 1.2rem !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
}
.post-content-body table thead th {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
}
.post-content-body table tbody tr:nth-child(even) { background: #f8fafc !important; }
.post-content-body table tbody tr:hover { background: #f1f5f9 !important; }

/* Blockquotes */
.post-content-body blockquote {
    border-left: 4px solid #2563eb !important;
    padding: 1.5rem !important;
    background: #eff6ff !important; /* light blue tint */
    border-radius: 0 8px 8px 0 !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    color: #1e293b !important;
    font-size: 1.15rem !important;
}

/* Images inside post body */
.post-content-body img {
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 2rem auto !important;
}

/* Force WordPress-converted emojis and smileys to stay inline, small, and unstyled */
.post-content-body img.emoji,
.post-content-body img.wp-smiley {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}


/* Media Queries for fine tuning */
@media (max-width: 768px) {
    .post-content-body {
        font-size: 1rem !important;
        padding: 1.25rem !important;
    }
    .post-content-body h2 { font-size: 1.4rem !important; }
    .post-content-body h3 { font-size: 1.25rem !important; }
    .post-content-body h4 { font-size: 1.1rem !important; }
}

/* =====================================================
   HEADER ONE-LINE REDESIGN: sarkarilok.in logo style
   ===================================================== */

/* Force the header into a true single flex row */
.site-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: auto !important;
  min-height: 64px !important;
  padding: 0 clamp(1rem, 4vw, 2.5rem) !important;
  gap: 0 !important;
}

/* Logo: sarkarilok.in footer-style */
.site-logo {
  text-decoration: none !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.logo-text {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  letter-spacing: -0.5px !important;
  font-family: var(--font-sans) !important;
}
.logo-dot {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
}
.logo-in {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  letter-spacing: -0.5px !important;
}

/* Primary nav takes all remaining space, pushes right */
.primary-nav {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 !important;
}

/* Nav list: all items on one row, smaller font */
.nav-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.nav-list li a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 10px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* Mobile hamburger: show only on small screens */
.header-controls { 
  display: none !important; 
  flex-shrink: 0;
}

@media (max-width: 900px) {
  /* On mobile: logo + hamburger only, nav collapses */
  .site-header { min-height: 56px !important; }
  .logo-text, .logo-dot, .logo-in { font-size: 1.3rem !important; }
  .header-controls { display: flex !important; }
  .primary-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    z-index: 999 !important;
    flex-direction: column !important;
    padding: 1rem !important;
  }
  .primary-nav.is-open { display: flex !important; flex-direction: column !important; }
  .primary-nav.is-open .nav-list { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
  .nav-list li a { padding: 10px 12px !important; font-size: 0.9rem !important; }
}

/* === FIX: Force logo inline on one line === */
a.site-logo {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
a.site-logo span { display: inline !important; }
span.logo-text {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  font-family: var(--font-sans) !important;
  letter-spacing: -0.5px !important;
}
span.logo-dot {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
}
span.logo-in {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  letter-spacing: -0.5px !important;
}

/* =====================================================
   BLOG POST TEMPLATE - FULL RESPONSIVE OPTIMIZATION
   All screen sizes: Mobile, Tablet, Desktop, Wide
   ===================================================== */

/* === BASE (all sizes): readable max-width & fluid layout === */
.single-post-page {
  background: #f8fafc !important;
  padding: 0 !important;
}
.single-post-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem !important;
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  gap: 2rem !important;
  align-items: start !important;
}

/* === ARTICLE MAIN COLUMN === */
.single-post-article {
  min-width: 0 !important; /* Prevents blowout in grid */
}

/* === POST HERO === */
.post-hero {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.post-hero-title {
  font-size: clamp(1.3rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  margin-bottom: 1rem !important;
  word-break: break-word !important;
}
.post-hero-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 1rem !important;
  align-items: center !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
}
.post-hero-share {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  margin-top: 1rem !important;
}

/* === FEATURED IMAGE === */
.post-featured-image {
  margin: 0 0 1.5rem !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
}
.post-featured-img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: cover !important;
  display: block !important;
}

/* === INFO BOX === */
.post-info-box {
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}
.info-box-table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.info-box-table th,
.info-box-table td {
  padding: 0.7rem 1rem !important;
  font-size: 0.9rem !important;
  vertical-align: top !important;
}
.info-box-table th {
  width: 38% !important;
  white-space: nowrap !important;
}

/* === POST CONTENT BODY === */
.post-content-body {
  border-radius: 16px !important;
  padding: clamp(1.25rem, 4vw, 2.5rem) !important;
  overflow: hidden !important;
  word-break: break-word !important;
}
.post-content-body p {
  max-width: 72ch !important;
}

/* === RELATED POSTS === */
.related-posts-section { padding: 2rem 1.5rem !important; }
.related-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 1.25rem !important;
}

/* === SIDEBAR === */
.single-post-sidebar {
  position: sticky !important;
  top: 80px !important;
  min-width: 0 !important;
}
.sidebar-quick-card {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* ─────────────────────────────────────────────
   LARGE DESKTOP (≥1280px)
───────────────────────────────────────────── */
@media (min-width: 1280px) {
  .single-post-container {
    grid-template-columns: 1fr 300px !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
  }
}

/* ─────────────────────────────────────────────
   LAPTOP TABLET (1025px – 1279px)
───────────────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1279px) {
  .single-post-container {
    grid-template-columns: 1fr 250px !important;
    gap: 1.5rem !important;
  }
}

/* ─────────────────────────────────────────────
   TABLET (769px – 1024px)
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .single-post-container {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1.25rem !important;
    gap: 1.5rem !important;
  }
  .single-post-sidebar {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .sidebar-sticky {
    display: contents !important;
  }
  .sidebar-quick-card { width: 100% !important; }
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ─────────────────────────────────────────────
   MOBILE (≤768px)
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .single-post-container {
    padding: 1rem !important;
    gap: 1rem !important;
  }
  .post-hero {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }
  .post-hero-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
  }
  .post-hero-meta {
    font-size: 0.78rem !important;
    gap: 0.4rem 0.75rem !important;
  }
  .meta-divider { display: none !important; }
  .post-featured-img { max-height: 260px !important; }
  .post-content-body {
    padding: 1.1rem !important;
    font-size: 1rem !important;
  }
  .post-content-body h2 {
    font-size: 1.2rem !important;
    padding: 0.65rem 0.9rem !important;
  }
  .post-content-body h3 {
    font-size: 1.05rem !important;
    padding: 0.5rem 0.8rem !important;
  }
  .post-content-body h4 { font-size: 0.95rem !important; }
  .info-box-table,
  .info-box-table tbody,
  .info-box-table tr,
  .info-box-table th,
  .info-box-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .info-box-table tr {
    margin-bottom: 0.75rem !important;
    border: 1px solid #d0eaf7 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(208, 234, 247, 0.15) !important;
  }
  .info-box-table th {
    background: #e8f4fd !important;
    border-bottom: 1px solid #d0eaf7 !important;
    font-weight: 600 !important;
    color: #1a56db !important;
    padding: 0.55rem 0.8rem !important;
    font-size: 0.82rem !important;
    white-space: normal !important;
  }
  .info-box-table td {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
    color: #374151 !important;
    border-bottom: none !important;
  }
  .info-box-table tr:last-child {
    margin-bottom: 0 !important;
  }
  .single-post-sidebar {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .sidebar-sticky { display: flex !important; flex-direction: column !important; gap: 1rem !important; }
  .post-share-full { flex-direction: column !important; gap: 0.75rem !important; }
  .share-full-buttons { flex-wrap: wrap !important; gap: 0.5rem !important; }
  .share-full-btn { padding: 9px 14px !important; font-size: 0.82rem !important; }
  .post-nav { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
  .post-nav-next { text-align: left !important; }
  .related-posts-section { padding: 1.5rem 1rem !important; }
  .related-posts-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
  .related-post-card { border-radius: 10px !important; }
}

/* ─────────────────────────────────────────────
   SMALL MOBILE (≤480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .single-post-container { padding: 0.75rem !important; }
  .post-hero {
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  .post-hero-title { font-size: 1.2rem !important; }
  .post-hero-meta { font-size: 0.73rem !important; }
  .post-content-body {
    padding: 0.9rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }
  .post-content-body h2 { font-size: 1.1rem !important; }
  .post-content-body h3 { font-size: 1rem !important; }
  .post-featured-img { max-height: 200px !important; }
  .related-posts-grid { grid-template-columns: 1fr !important; }
  .share-full-btn { width: 100% !important; justify-content: center !important; }
  .post-nav-item { padding: 0.75rem !important; }
  .info-box-table th,
  .info-box-table td { padding: 0.5rem 0.7rem !important; font-size: 0.75rem !important; }
  .info-action-btn { font-size: 0.8rem !important; padding: 8px 14px !important; }
}

/* ─────────────────────────────────────────────
   VERY SMALL (≤360px)
───────────────────────────────────────────── */
@media (max-width: 360px) {
  .post-hero-title { font-size: 1.1rem !important; }
  .post-content-body { font-size: 0.9rem !important; }
  .share-btn-sm { padding: 6px 8px !important; }
}

/* =====================================================
   CRITICAL FIXES: Header 1-line + Sidebar contained
   ===================================================== */

/* Fix 1: Nav stays on one line at 1440px - reduce font + padding */
.nav-list li a {
  padding: 8px 8px !important;
  font-size: 0.79rem !important;
  white-space: nowrap !important;
}

/* Fix 2: header never wraps - always one row */
.site-header {
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

/* Fix 3: Sidebar must never overflow viewport */
.single-post-sidebar {
  overflow: hidden !important;
  max-width: 100% !important;
}
.sidebar-sticky {
  max-width: 100% !important;
  overflow: hidden !important;
}
.sidebar-quick-card {
  max-width: 100% !important;
  overflow: hidden !important;
}
.sidebar-wa-btn {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Fix 4: Single-post-container ensures sidebar does not bleed out */
.single-post-container {
  overflow-x: hidden !important;
}

/* =====================================================
   FINAL FIX: Nav list never wraps on desktop
   ===================================================== */
#site-navigation .nav-list {
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
#primary-menu {
  flex-wrap: nowrap !important;
}

/* Make "Question Papers" shorter display */
/* Also ensure site-branding doesn't grow too much */
.site-branding {
  flex-shrink: 0 !important;
  max-width: 200px !important;
}
.primary-nav {
  min-width: 0 !important;
  overflow: visible !important;
}

/* At exactly mobile breakpoint: show hamburger, hide desktop nav */
@media (max-width: 860px) {
  .header-controls { display: flex !important; }
  .primary-nav {
    display: none !important;
  }
  .primary-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important; right: 0 !important;
    background: #fff !important;
    z-index: 9999 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0.75rem !important;
  }
  .primary-nav.is-open .nav-list {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .primary-nav.is-open .nav-list li a {
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
  }
}
@media (min-width: 861px) {
  .header-controls { display: none !important; }
  .primary-nav { display: flex !important; }
}

/* =====================================================
   MOBILE SIDEBAR POSITION FIX
   On mobile: sidebar appears AFTER article content 
   but BEFORE related posts / comments.
   We achieve this by pulling the sidebar OUT of the 
   grid on mobile and making the whole page a flex-col.
   ===================================================== */

@media (max-width: 768px) {
  /* Turn the outer page into a flex column so we 
     can control the exact order of each section */
  .single-post-page {
    display: flex !important;
    flex-direction: column !important;
  }

  /* The grid container: article only (sidebar will 
     be manually ordered separately) */
  .single-post-container {
    display: block !important;
    order: 1 !important;
    width: 100% !important;
  }

  /* Article stays first */
  .single-post-article {
    display: block !important;
    width: 100% !important;
  }

  /* Sidebar: pull it OUT of the grid flow so it 
     sits between .single-post-container and 
     .related-posts-section */
  .single-post-sidebar {
    order: 2 !important;
    width: 100% !important;
    padding: 0 16px !important;
    margin: 16px 0 !important;
    box-sizing: border-box !important;
  }

  .sidebar-sticky {
    position: static !important;
    top: auto !important;
  }

  .sidebar-quick-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Related posts: order 3 */
  .related-posts-section {
    order: 3 !important;
    width: 100% !important;
  }

  /* Comments: order 4 (last) */
  .post-comments-wrap,
  .single-post-page > div:has(.post-comments-wrap) {
    order: 4 !important;
    width: 100% !important;
  }
}

/* =====================================================
   UNIFIED IN-CONTENT COLLAPSIBLE STEP-CARD TOC
   ===================================================== */
.sl-unified-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.sl-toc-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.sl-toc-toggle-title {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  gap: 0.5rem;
}

.sl-toc-chevron {
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-toc-toggle-btn[aria-expanded="false"] .sl-toc-chevron {
  transform: rotate(-90deg);
}

.sl-toc-steps-container {
  max-height: 2500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.sl-toc-steps-container.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.sl-toc-steps-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sl-toc-step-item {
  display: flex;
  flex-direction: column;
}

.sl-toc-step-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none !important;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-toc-step-card:hover {
  background: #f0f7ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.06);
}

.sl-toc-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sl-toc-step-card:hover .sl-toc-step-badge {
  background: #3b82f6;
  color: #ffffff;
}

.sl-toc-step-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.sl-toc-card-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sl-toc-step-card:hover .sl-toc-card-arrow {
  color: #3b82f6;
  transform: translateX(3px);
}

/* Scrollspy Active State for Step Card */
.sl-toc-step-card.sl-toc-active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

.sl-toc-step-card.sl-toc-active .sl-toc-step-badge {
  background: #2563eb !important;
  color: #ffffff !important;
  transform: scale(1.15);
}

.sl-toc-step-card.sl-toc-active .sl-toc-card-arrow {
  color: #2563eb !important;
}

/* Substeps for H3 */
.sl-toc-substeps-list {
  list-style: none;
  padding: 0.35rem 0 0.35rem 1.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sl-toc-substep-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.sl-toc-substep-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sl-toc-substep-marker {
  color: #94a3b8;
  font-weight: 500;
  font-family: monospace;
}

.sl-toc-substep-text {
  line-height: 1.4;
}

/* Scrollspy Active State for Substep Link */
.sl-toc-substep-link.sl-toc-active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

.sl-toc-substep-link.sl-toc-active .sl-toc-substep-marker {
  color: #2563eb !important;
}

/* =====================================================
   SIDEBAR RESTYLED WIDGETS
   ===================================================== */

/* Standalone WhatsApp Sidebar Button */
.sidebar-wa-btn-standalone {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  margin: 1.5rem 0;
  border: none;
}

.sidebar-wa-btn-standalone:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.sidebar-wa-btn-standalone:active {
  transform: translateY(0);
}

/* Latest Posts Widget with Thumbnails */
.sidebar-latest-posts-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-latest-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-latest-post-item {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.sidebar-latest-post-item:last-child {
  border-bottom: none;
}

.sidebar-latest-post-item:hover {
  background: #f8fafc;
}

.sidebar-latest-post-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none !important;
  color: inherit;
}

.sidebar-latest-post-thumb {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-latest-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sidebar-latest-post-thumb-fallback {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar-latest-post-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-latest-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-latest-post-item:hover .sidebar-latest-post-title {
  color: #2563eb;
}

.sidebar-latest-post-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* =====================================================
   REMOVE CARD VIEW REDESIGN
   User requested "I don't want card view". Removes white 
   box backgrounds, borders, padding and shadows for a 
   clean, flat reading layout.
   ===================================================== */
.single-post-article .post-hero,
.single-post-article .post-content-body,
.single-post-article .post-info-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Add a subtle bottom border to the hero header to separate it from content */
.single-post-article .post-hero {
  border-bottom: 1px solid var(--color-border) !important;
  padding-bottom: 2rem !important;
  margin-bottom: 2rem !important;
}

/* Sidebar quick links card - keep a subtle background or also flatten? 
   Usually sidebars look better with a slight distinction or left alone. 
   Let's keep the sidebar as is unless user complains, or we can flatten it too.
   Let's flatten it to match the no-card aesthetic. */
.single-post-sidebar .sidebar-quick-card {
  box-shadow: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
}

/* Ensure body background of the page is solid white so flat text is readable */
body.single-post {
  background-color: #ffffff !important;
}

/* Adjust the post-content-body so images are still responsive but no padding */
@media (max-width: 768px) {
  .single-post-article .post-hero,
  .single-post-article .post-content-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Ensure the main page background is white for the flat design to look its best */
body.single, body.single-post {
  background-color: #ffffff !important;
}

/* Make sure the main content wrapper doesn't have a grey background */
.site-content, main, .single-post-page {
  background-color: transparent !important;
}

/* =====================================================
   LAYOUT CORRECTIONS (GAP, ALIGNMENT, INDENT AND ADMIN BAR)
   ===================================================== */

/* 1. Fix the HUGE vertical gap above the content */
.site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.single-post-page {
  margin-top: 0 !important;
  /* Make sure it expands to full allowed width */
  width: 100% !important; 
  padding-top: 1rem !important; /* Reduce top padding instead of 2rem */
}

/* 2. Fix the extra left-indentation on the text */
.single-post-article {
  padding: 0 !important;
  margin: 0 !important;
}
.single-post-container {
  padding: 0 !important;
  margin-left: 0 !important;
}

/* 3. Fix Sidebar positioning bug where it was shifted inwards */
@media (min-width: 769px) {
  .single-post-sidebar {
    right: 0 !important; /* Keep it glued to the actual right edge of single-post-page */
  }
}

/* 4. Fix overlap issue when WordPress Admin bar is active */
.admin-bar .site-header {
  top: 32px !important;
}

/* =====================================================
   MOBILE HORIZONTAL SCROLL & OVERFLOW FIXES
   ===================================================== */
@media (max-width: 768px) {
  /* Force the entire body and HTML to not overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Reset the header so it doesn't force a huge width */
  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force the related posts and sidebar to stack and fit the screen */
  .related-posts-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  
  .related-posts-section, .single-post-container, .single-post-sidebar, .post-comments-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
}

/* =====================================================
   ARCHIVE & TAXONOMY FLAT DESIGN
   ===================================================== */
/* Override grid card styles */
.archive-card, .section-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
}

.archive-card:last-child {
  border-bottom: none !important;
}

/* Ensure images don't look weird without borders */
.archive-card-thumb img {
  border-radius: var(--radius-lg);
}

.archive-grid {
  display: block !important;
}

/* =====================================================
   ADMIT CARD LIST — Premium Flat Design
   ===================================================== */
.admit-card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.admit-card-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.admit-card-row:first-child {
  border-top: 1px solid var(--color-border);
}

.admit-card-row:hover {
  background: rgba(0,0,0,0.015);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 8px;
}

.admit-card-title a {
  transition: color 0.15s ease;
}

.admit-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.admit-meta-pill {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-surface-2, #f5f7fa);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-upcoming {
  background: #e6f9ee;
  color: #1a7a40;
}
.status-urgent {
  background: #fff3cd;
  color: #856404;
}
.status-expired {
  background: #f0f0f0;
  color: #777;
}
.status-unknown {
  background: #e8f0fe;
  color: #1a56db;
}

/* Download / View buttons */
.admit-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.admit-download-btn:hover {
  background: var(--color-primary-dark, #1a4cc7);
  transform: translateY(-1px);
}
.admit-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid var(--color-border);
  color: var(--color-text) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.admit-view-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

/* Pagination */
.archive-pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.15s ease;
}
.archive-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.archive-pagination .page-numbers:hover:not(.current) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Archive page header styles */
.archive-page-header { display: none; }

/* Mobile responsive for admit card rows */
@media (max-width: 768px) {
  .admit-card-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  .admit-card-status,
  .admit-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
}

/* Live job countdown */
.sl-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.sl-ok {
  background: #dcfce7;
  color: #15803d;
}
.sl-urgent {
  background: #fef3c7;
  color: #92400e;
  animation: sl-pulse 1s ease-in-out infinite alternate;
}
.sl-today {
  background: #fee2e2;
  color: #991b1b;
  animation: sl-pulse 0.6s ease-in-out infinite alternate;
}
.sl-expired {
  background: #f1f5f9;
  color: #64748b;
}
@keyframes sl-pulse {
  from { opacity: 1; }
  to { opacity: 0.65; }
}

/* Archive card grid (latest jobs/results/call letters/apply online pages) */
.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.archive-grid-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  display: flex;
  flex-direction: column;
}
.archive-grid-thumb {
  display: block;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #dbeafe, #e2e8f0);
  text-decoration: none;
}
.archive-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive-grid-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 700;
  color: #1e40af;
}
.archive-grid-body { padding: 1rem; }
.archive-grid-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.archive-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.archive-tag-primary { background: #dbeafe; color: #1d4ed8; }
.archive-grid-title {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}
.archive-grid-title a { color: var(--color-text); text-decoration: none; }
.archive-grid-title a:hover { color: var(--color-primary); }
.archive-grid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.75rem;
}
.archive-grid-countdown { font-weight: 700; color: #c2410c; }
.archive-grid-excerpt {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.archive-grid-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.55rem 1rem;
}
.archive-grid-readmore:hover { background: #1d4ed8; color: #fff; }
@media (max-width: 1180px) {
  .archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .archive-card-grid { grid-template-columns: 1fr; }
  .archive-grid-thumb { height: 210px; }
}

/* =====================================================
   Global Header + Breadcrumb Cleanup
   Single source of truth for site-wide header layout
   ===================================================== */
header.site-header#site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-height: 72px !important;
  height: 72px !important;
  padding: 0 clamp(1rem, 3vw, 3rem) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}

.site-branding {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

a.site-logo {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.primary-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible !important;
}

#site-navigation .nav-list,
#primary-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.2rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#site-navigation .nav-list li,
#primary-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#site-navigation .nav-list li a,
#primary-menu li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.header-controls {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
}

.breadcrumb-wrapper {
  padding: 0.8rem clamp(1rem, 3vw, 3rem) !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.breadcrumb-wrapper .breadcrumbs,
.breadcrumb-wrapper .rank-math-breadcrumb,
.breadcrumb-wrapper .rank-math-breadcrumb p {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #64748b !important;
}

.breadcrumb-wrapper .rank-math-breadcrumb p,
.breadcrumb-wrapper nav.breadcrumbs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
}

.breadcrumb-wrapper a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.breadcrumb-wrapper a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.breadcrumb-wrapper span[aria-current="page"],
.breadcrumb-wrapper [aria-current="page"] {
  color: #0f172a !important;
  font-weight: 600 !important;
}

@media (max-width: 900px) {
  header.site-header#site-header {
    min-height: 64px !important;
    height: 64px !important;
    gap: 0.75rem !important;
    padding: 0 1rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  body.dark-mode header.site-header#site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(30, 41, 59, 0.98) !important;
  }

  .header-controls {
    display: flex !important;
  }

  .primary-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: var(--color-bg-white) !important;
    border-top: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.9rem 1rem 1rem !important;
  }

  .primary-nav.is-open {
    display: block !important;
  }

  #site-navigation .nav-list,
  #primary-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.3rem !important;
  }

  #site-navigation .nav-list li a,
  #primary-menu li a {
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.75rem 0.9rem !important;
    font-size: 0.95rem !important;
  }

  .breadcrumb-wrapper {
    padding: 0.7rem 1rem !important;
  }

  .breadcrumb-wrapper .breadcrumbs,
  .breadcrumb-wrapper .rank-math-breadcrumb,
  .breadcrumb-wrapper .rank-math-breadcrumb p {
    font-size: 0.88rem !important;
  }
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #60a5fa 60%, #a78bfa 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* Scroll offset — prevents sticky header from hiding jumped-to headings */
.post-content-body h2[id],
.post-content-body h3[id] {
  scroll-margin-top: calc(var(--header-height, 64px) + 16px);
}

/* =============================================
   TABLE OF CONTENTS — SIDEBAR (desktop)
   ============================================= */
.sl-toc-sidebar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.sl-toc-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary-light);
}

.sl-toc-list {
  padding: 8px 0;
  margin: 0;
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  /* thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.sl-toc-list::-webkit-scrollbar { width: 4px; }
.sl-toc-list::-webkit-scrollbar-track { background: transparent; }
.sl-toc-list::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.sl-toc-list li { line-height: 1.35; }

/* H2 items */
.sl-toc-lvl-2 {
  padding: 0;
}
.sl-toc-lvl-2 .sl-toc-link {
  display: block;
  padding: 7px 16px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.4;
}

/* H3 items — indented */
.sl-toc-lvl-3 {
  padding: 0;
}
.sl-toc-lvl-3 .sl-toc-link {
  display: block;
  padding: 5px 16px 5px 28px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.4;
}

.sl-toc-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* Active heading */
.sl-toc-link.sl-toc-active {
  background: var(--color-primary-light);
  color: var(--color-primary) !important;
  font-weight: 600;
  border-left-color: var(--color-primary);
}

/* Hide sidebar TOC on mobile — show mobile version instead */
@media (max-width: 899px) {
  .sl-toc-sidebar { display: none; }
}

/* =============================================
   TABLE OF CONTENTS — MOBILE (in-content accordion)
   ============================================= */
.sl-toc-mobile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  /* Only visible on small screens */
  display: none;
}

@media (max-width: 899px) {
  .sl-toc-mobile { display: block; }
}

.sl-toc-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-primary-light);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  letter-spacing: 0.01em;
}
.sl-toc-mobile-toggle span { flex: 1; }
.sl-toc-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.sl-toc-mobile-toggle[aria-expanded="true"] .sl-toc-chevron {
  transform: rotate(180deg);
}

.sl-toc-mobile-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 8px;
  border-top: 1px solid var(--color-border);
}

.sl-toc-mobile-list li a {
  display: block;
  padding: 6px 16px;
  font-size: 0.84rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sl-toc-mobile-list li a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.sl-toc-mobile-list li a.sl-toc-active {
  color: var(--color-primary);
  font-weight: 600;
}
/* H3 indent on mobile */
.sl-toc-mobile-list .sl-toc-lvl-3 a {
  padding-left: 28px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}


/* -- BREADCRUMBS -- */
.breadcrumb-wrapper { background: #fff; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.breadcrumbs, .rank-math-breadcrumb { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: 13px; font-weight: 500; color: #64748b; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs a, .rank-math-breadcrumb a { color: #1a56db; text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover, .rank-math-breadcrumb a:hover { color: #0f172a; text-decoration: underline; }
.breadcrumbs span[aria-hidden='true'], .separator { color: #cbd5e1; font-size: 14px; margin: 0 2px; }
.breadcrumbs span[aria-current='page'], .rank-math-breadcrumb .last { color: #94a3b8; }

/* -- MODERN BACK TO TOP FAB -- */
.sl-back-to-top { position: fixed; bottom: 80px; right: 20px; width: 48px; height: 48px; background: var(--color-primary, #1a56db); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(26, 86, 219, 0.4); opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 998; }
.sl-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.sl-back-to-top:hover { background: #1e40af; transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(26, 86, 219, 0.6); }
.sl-back-to-top:active { transform: translateY(1px) scale(0.95); }
@media (min-width: 768px) { .sl-back-to-top { bottom: 30px; right: 30px; width: 54px; height: 54px; } }

/* Force mobile nav to bottom */
@media (max-width: 900px) { .sl-mobile-nav { position: fixed !important; bottom: 0 !important; top: auto !important; left: 0 !important; margin: 0 !important; z-index: 9999 !important; transform: translateZ(0) !important; } }

/* =====================================================
   PART-A GLOBAL PAGE LAYOUT FIXES
   ===================================================== */
/* Ensure sl-page and ac-page templates fill full width */@media (max-width: 900px) {
  .sl-page, #cl-page, #ap-page, #results-page, #pb-page {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .site-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}
/* Admit cards sidebar gap fix on all screen sizes */@media (max-width: 1100px) {
  .ac-body {
    grid-template-columns: 1fr !important;
  }
  .ac-sidebar {
    display: none !important;
  }
}
/* Remove extra bottom padding from sl-body on mobile (back to top button already provides 70px) */@media (max-width: 768px) {
  .sl-body { padding-bottom: 90px !important; }
}

/* =====================================================
   EXAM CALENDAR CARD � Homepage
   ===================================================== */
.exam-calendar-card { margin-bottom: 1.5rem; }
.excal-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.excal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
  border-radius: 8px;
}
.excal-row:last-child { border-bottom: none; }
.excal-row:hover { background: #f0f7ff; }
.excal-row.excal-urgent { background: #fff5f5; }
.excal-row.excal-soon   { background: #fffbea; }
.excal-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  background: #1a56db;
  color: #fff;
  border-radius: 8px;
  padding: 5px 6px;
  flex-shrink: 0;
}
.excal-row.excal-urgent .excal-date-box { background: #dc2626; }
.excal-row.excal-soon   .excal-date-box { background: #d97706; }
.excal-day   { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.excal-month { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.excal-info  { flex: 1; min-width: 0; }
.excal-board-chip {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  margin-bottom: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.excal-title {
  font-size: 13px; font-weight: 600;
  color: #1e293b; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.excal-countdown {
  font-size: 11px; font-weight: 700;
  color: #1a56db; flex-shrink: 0;
  background: #eff6ff; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap;
}
.excal-countdown.excal-urgent { background: #fee2e2; color: #b91c1c; }
.excal-countdown.excal-soon   { background: #fef3c7; color: #92400e; }
@media (max-width: 480px) {
  .excal-title { font-size: 12px; }
  .excal-countdown { font-size: 10px; padding: 2px 7px; }
}

/* =====================================================
   DESKTOP/LAPTOP BUG FIXES v2
   ===================================================== */

/* 1. Restore proper section-card styling on homepage (don't strip all borders globally) */
.landing-page .section-card {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
  border-bottom: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
}

/* 2. Fix sl-body sidebar stretching - add align-items start */
.sl-body { align-items: start; }

/* 3. On laptop (1024-1280px) admit cards should still show sidebar */
@media (min-width: 1024px) {
  .ac-body {
    grid-template-columns: 1fr 310px !important;
  }
  .ac-sidebar {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }
}

/* 4. On exactly laptop viewport (1024-1100px) sl-body sidebar: keep 280px column */
@media (min-width: 900px) and (max-width: 1100px) {
  .sl-body { grid-template-columns: 1fr 260px !important; }
}

/* 5. Fix sl-grid on desktop for pages with few results (2 columns is cleaner than 3) */
@media (min-width: 900px) and (max-width: 1100px) {
  .sl-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 6. Ensure sl-page fills full height with proper flex inside site-main */
.site-main > .sl-page {
  min-height: 50vh;
  width: 100%;
}

/* 7. Fix ac-body gap removed on <=1100 to not affect desktop */
@media (min-width: 1024px) {
  .ac-body { gap: 28px !important; }
}

/* 8. Prevent any double duplicate breadcrumbs */
.rank-math-breadcrumb + .breadcrumb-wrapper { display: none !important; }

/* 9. Fix footer bottom bar gap on desktop - ensure it hugs the footer */
.site-footer { margin-top: 0 !important; }
.footer-ad-slot:empty { display: none !important; }

/* =====================================================
   === PREMIUM DARK MODE & GLASSMORPHISM OVERRIDES ===
   ===================================================== */

body.dark-mode {
  --homepage-hero-bg: linear-gradient(135deg, #09090b 0%, #18181b 100%);
  --hero-pattern-opacity: 0.15;
  --color-bg: #0f172a;
  --color-bg-white: #1e293b;
  --color-surface: #1e293b;
  --color-surface-2: #334155;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --color-primary-light: rgba(37, 99, 235, 0.15);
  --color-accent-light: rgba(232, 93, 4, 0.15);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);

  /* Admit cards specific overrides */
  --ac-bg: #0f172a;
  --ac-white: #1e293b;
  --ac-border: #334155;
  --ac-text: #f8fafc;
  --ac-muted: #94a3b8;
  --ac-primary-lt: rgba(37, 99, 235, 0.15);
  --ac-success-lt: rgba(22, 163, 74, 0.15);
  --ac-accent-lt: rgba(217, 119, 6, 0.15);
  --ac-warning-lt: rgba(217, 119, 6, 0.15);
}

/* --- Toggle Button Styling --- */
.dark-mode-toggle {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-full);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; margin-right: var(--space-2);
  transition: all var(--transition-base);
}
.dark-mode-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.05);
}
body.dark-mode .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fbbf24; border-color: #fbbf24;
}
.dark-mode-toggle .sun-icon { display: none; }
.dark-mode-toggle .moon-icon { display: block; }
body.dark-mode .dark-mode-toggle .sun-icon { display: block; color: #fbbf24; }
body.dark-mode .dark-mode-toggle .moon-icon { display: none; }

/* --- Glassmorphic site header (dark mode override) --- */
body.dark-mode header.site-header#site-header {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.dark-mode .breadcrumb-wrapper {
  background: var(--color-bg-white) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.dark-mode .breadcrumb-wrapper .breadcrumbs,
body.dark-mode .breadcrumb-wrapper .rank-math-breadcrumb,
body.dark-mode .breadcrumb-wrapper .rank-math-breadcrumb p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .breadcrumb-wrapper a {
  color: #60a5fa !important;
}
body.dark-mode .breadcrumbs a:hover {
  color: #fbbf24 !important;
}
@media (max-width: 900px) {
  body.dark-mode .primary-nav {
    background: var(--color-bg-white) !important;
    border-top: 1px solid var(--color-border) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4) !important;
  }
  body.dark-mode .sl-cat-chips {
    background: var(--color-bg-white) !important;
    border-bottom: 0.5px solid var(--color-border) !important;
  }
}
body.dark-mode .sl-chip {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-chip.active,
body.dark-mode .sl-chip:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* --- Glassmorphic homepage section cards & standard cards --- */
body.dark-mode .landing-page .section-card,
body.dark-mode .section-card,
body.dark-mode .sl-card,
body.dark-mode .sl-list-card,
body.dark-mode .sl-widget,
body.dark-mode .sl-table-container,
body.dark-mode .archive-content,
body.dark-mode .table-container,
body.dark-mode .archive-card,
body.dark-mode .archive-posts .latest-job,
body.dark-mode .ac-card,
body.dark-mode .ac-widget,
body.dark-mode .ac-table-wrap,
body.dark-mode .ac-faq-item {
  background: var(--color-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .landing-page .section-header,
body.dark-mode .section-header,
body.dark-mode .ac-widget__head {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Admit Cards UI overrides --- */
body.dark-mode .ac-card__title,
body.dark-mode .ac-card__title a {
  color: var(--color-text) !important;
}
body.dark-mode .ac-card__title a:hover {
  color: var(--color-primary) !important;
}
body.dark-mode .ac-meta-item {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ac-post-date {
  color: var(--color-text-light) !important;
}
body.dark-mode .ac-card__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .ac-stat-num {
  color: var(--color-text) !important;
}
body.dark-mode .ac-stat-lbl {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ac-stats-bar {
  background: rgba(30, 41, 59, 0.4) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.dark-mode .ac-stat {
  border-right: 1px solid var(--color-border) !important;
}
body.dark-mode .ac-view-tabs {
  background: var(--color-surface-2) !important;
  border: 1px solid var(--color-border) !important;
}
body.dark-mode .ac-view-tab:hover:not(.ac-view-tab--active) {
  background: var(--color-surface) !important;
}
body.dark-mode .ac-pager .page-numbers {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .ac-pager .page-numbers:hover {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}
body.dark-mode .ac-faq__heading {
  color: var(--color-text) !important;
}
body.dark-mode .ac-faq-item summary {
  color: var(--color-text) !important;
}
body.dark-mode .ac-faq-item p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ac-empty {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .ac-empty h3 {
  color: var(--color-text) !important;
}
body.dark-mode .ac-empty p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ac-table tbody td {
  color: var(--color-text) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.dark-mode .ac-table thead th {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.dark-mode .ac-table tbody tr:hover td {
  background: var(--color-surface-2) !important;
}
body.dark-mode .ac-table__title {
  color: var(--color-text) !important;
}

/* --- Standard Job Lists & Cards --- */
body.dark-mode .job-item,
body.dark-mode .result-item,
body.dark-mode .call-item,
body.dark-mode .apply-item,
body.dark-mode .gujarat-job-item {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .job-item:hover,
body.dark-mode .result-item:hover,
body.dark-mode .call-item:hover,
body.dark-mode .apply-item:hover,
body.dark-mode .gujarat-job-item:hover {
  background: var(--color-surface-2) !important;
}

body.dark-mode .post-item {
  border-color: var(--color-border-light) !important;
}
body.dark-mode .post-item:hover {
  background: var(--color-surface-2) !important;
}
body.dark-mode .post-details h3 a {
  color: var(--color-text) !important;
}
body.dark-mode .post-details h3 a:hover {
  color: var(--color-primary) !important;
}
body.dark-mode .peo-date-row {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .data-table td {
  color: var(--color-text) !important;
  border-color: var(--color-border-light) !important;
}
body.dark-mode .data-table tr:hover td {
  background: var(--color-surface-2) !important;
}
body.dark-mode .data-table thead {
  background: var(--color-surface-2) !important;
}
body.dark-mode .data-table th {
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .pagination a,
body.dark-mode .pagination span {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .pagination a:hover {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}

/* --- Badges in Dark Mode --- */
body.dark-mode .status-upcoming { background: rgba(22, 163, 74, 0.2) !important; color: #4ade80 !important; }
body.dark-mode .status-urgent   { background: rgba(217, 119, 6, 0.2) !important; color: #fbbf24 !important; }
body.dark-mode .status-expired  { background: rgba(220, 38, 38, 0.2) !important; color: #f87171 !important; }
body.dark-mode .key-button      { background: rgba(3, 105, 161, 0.2) !important; color: #38bdf8 !important; border: 1px solid rgba(56, 189, 248, 0.2) !important; }
body.dark-mode .final-key       { background: rgba(22, 163, 74, 0.2) !important; color: #4ade80 !important; border: 1px solid rgba(74, 222, 128, 0.2) !important; }
body.dark-mode .question-btn    { background: rgba(107, 33, 168, 0.2) !important; color: #c084fc !important; border: 1px solid rgba(192, 132, 252, 0.2) !important; }
body.dark-mode .offline-tag     { background: rgba(232, 93, 4, 0.2) !important; color: #ff9e00 !important; border: 1px solid rgba(255, 158, 0, 0.2) !important; }
body.dark-mode .online-tag      { background: rgba(22, 163, 74, 0.2) !important; color: #4ade80 !important; border: 1px solid rgba(74, 222, 128, 0.2) !important; }

/* --- Search Autocomplete dropdown dark mode --- */
body.dark-mode .hero-search-dropdown {
  background: var(--color-bg-white) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .hero-search-dropdown li:hover {
  background: var(--color-surface-2) !important;
}
body.dark-mode #hero-search-form.hero-search-form {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  width: 100% !important;
}
body.dark-mode #hero-search-input.hero-search-input,
body.dark-mode #search-field-main.hero-search-input {
  color: #f8fafc !important;
}

/* --- Table of Contents overrides in dark mode --- */
body.dark-mode .sl-unified-toc {
  background: var(--color-bg-white) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .sl-toc-toggle-title { color: var(--color-text) !important; }
body.dark-mode .sl-toc-step-card {
  background: var(--color-surface-2) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-toc-step-card:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}
body.dark-mode .sl-toc-step-badge {
  background: var(--color-bg-white) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-toc-step-card.sl-toc-active {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}
body.dark-mode .sl-toc-substep-link { color: var(--color-text-muted) !important; }
body.dark-mode .sl-toc-substep-link:hover {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
}
body.dark-mode .sl-toc-substep-link.sl-toc-active {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

/* --- CBT Shifts Table and Single Question Paper overrides --- */
body.dark-mode .sqp-group,
body.dark-mode .sqp-group table,
body.dark-mode .qp-shifts-table { border-color: var(--color-border) !important; }
body.dark-mode .sqp-group table thead,
body.dark-mode .qp-shifts-table thead th {
  background: var(--color-surface-2) !important;
  border-bottom: 2px solid var(--color-border) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .sqp-group table tbody tr,
body.dark-mode .qp-shifts-table tbody td {
  background: var(--color-bg-white) !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .sqp-group table tbody tr:hover td,
body.dark-mode .qp-shifts-table tbody tr:hover td {
  background: var(--color-surface-2) !important;
}
body.dark-mode .qp-card-shift-row {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}

/* Question Paper Single Page dark mode fixes */
body.dark-mode .sqp-hero {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .sqp-cards {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .sqp-seo-note {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-muted) !important;
}

/* --- Mobile Slide-up Menu Drawer overrides --- */
body.dark-mode .sl-mobile-nav {
  background: rgba(30, 41, 59, 0.98) !important;
  border-top: 0.5px solid var(--color-border) !important;
}
body.dark-mode .sl-mnav-item {
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-mnav-item.active {
  color: #60a5fa !important;
}
body.dark-mode .sl-mnav-item.active svg {
  stroke: #60a5fa !important;
}
body.dark-mode .sl-menu-drawer-overlay {
  background: rgba(15, 23, 42, 0.7) !important;
}
body.dark-mode .sl-menu-drawer {
  background: var(--color-bg-white) !important;
}
body.dark-mode .sl-drawer-handle-bar {
  background: var(--color-border) !important;
}
body.dark-mode .sl-drawer-head {
  border-bottom: 0.5px solid var(--color-border) !important;
}
body.dark-mode .sl-drawer-head h2 {
  color: var(--color-text) !important;
}
body.dark-mode .sl-drawer-head p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-drawer-grid {
  background: var(--color-border) !important;
}
body.dark-mode .sl-drawer-tile {
  background: var(--color-surface) !important;
}
body.dark-mode .sl-drawer-tile:active {
  background: var(--color-surface-2) !important;
}
body.dark-mode .sl-tile-label {
  color: var(--color-text-muted) !important;
}
body.dark-mode .sl-drawer-socials {
  border-top: 0.5px solid var(--color-border) !important;
}

/* Icon backgrounds in mobile drawer */
body.dark-mode .sl-icon-jobs   { background: rgba(59, 130, 246, 0.15) !important; }
body.dark-mode .sl-icon-admit  { background: rgba(34, 197, 94, 0.15) !important; }
body.dark-mode .sl-icon-result { background: rgba(234, 179, 8, 0.15) !important; }
body.dark-mode .sl-icon-call   { background: rgba(168, 85, 247, 0.15) !important; }
body.dark-mode .sl-icon-apply  { background: rgba(249, 115, 22, 0.15) !important; }
body.dark-mode .sl-icon-papers { background: rgba(14, 165, 233, 0.15) !important; }
body.dark-mode .sl-icon-yojana { background: rgba(236, 72, 153, 0.15) !important; }
body.dark-mode .sl-icon-calc   { background: rgba(99, 102, 241, 0.15) !important; }
body.dark-mode .sl-icon-stories{ background: rgba(244, 63, 94, 0.15) !important; }

body.dark-mode .sl-social-pill-wa { background: rgba(34, 197, 94, 0.15) !important; color: #4ade80 !important; }
body.dark-mode .sl-social-pill-tg { background: rgba(14, 165, 233, 0.15) !important; color: #38bdf8 !important; }

/* --- Exam Calendar overrides --- */
body.dark-mode .excal-row {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .excal-row:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}
body.dark-mode .excal-row.excal-urgent {
  background: rgba(220, 38, 38, 0.1) !important;
}
body.dark-mode .excal-row.excal-soon {
  background: rgba(217, 119, 6, 0.1) !important;
}
body.dark-mode .excal-title {
  color: var(--color-text) !important;
}
body.dark-mode .excal-countdown {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}
body.dark-mode .excal-countdown.excal-urgent {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #f87171 !important;
}
body.dark-mode .excal-countdown.excal-soon {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #fbbf24 !important;
}

/* --- Web Stories overrides --- */
body.dark-mode #ws-page {
  background: var(--color-bg) !important;
}
body.dark-mode .ws-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .ws-card-title {
  color: var(--color-text) !important;
}
body.dark-mode .ws-card-date {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ws-pager .page-numbers {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .ws-empty h2 {
  color: var(--color-text) !important;
}
body.dark-mode .ws-empty p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ws-info-section {
  background: var(--color-bg-white) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .ws-section-title {
  color: var(--color-text) !important;
}
body.dark-mode .ws-info-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .ws-info-card h3 {
  color: var(--color-text) !important;
}
body.dark-mode .ws-info-card p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .ws-info-icon--blue {
  background: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
}
body.dark-mode .ws-info-icon--orange {
  background: rgba(232, 93, 4, 0.15) !important;
  color: #ff9e00 !important;
}
body.dark-mode .ws-info-icon--green {
  background: rgba(22, 163, 74, 0.15) !important;
  color: #4ade80 !important;
}

/* --- Global Headings & Container overrides --- */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--color-text) !important;
}

body.dark-mode .ac-body,
body.dark-mode .sl-body,
body.dark-mode .sl-page,
body.dark-mode #ac-page,
body.dark-mode #cl-page,
body.dark-mode #ap-page,
body.dark-mode #results-page,
body.dark-mode #pb-page,
body.dark-mode .site-main {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
}

/* --- Question Papers Page (page-question-papers.css) Dark Mode Overrides --- */
body.dark-mode .qp-page {
  background-color: var(--color-bg) !important;
}
body.dark-mode .qp-search-bar {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode #qp-search {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode #qp-search:focus {
  border-color: var(--color-primary) !important;
  background: var(--color-surface-2) !important;
}
body.dark-mode .qp-search-bar select {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .qp-search-bar select:focus {
  border-color: var(--color-primary) !important;
  background-color: var(--color-surface-2) !important;
}
body.dark-mode #qp-clear-btn {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode #qp-clear-btn:hover {
  background: var(--color-surface) !important;
  color: #ffffff !important;
}
body.dark-mode .qp-year-select-wrap {
  background: transparent !important;
  border-color: var(--color-border) !important;
  box-shadow: none !important;
}
body.dark-mode .qp-year-select-label {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-year-select-wrap select {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .qp-year-select-wrap select:focus {
  border-color: var(--color-primary) !important;
  background-color: var(--color-surface-2) !important;
}
body.dark-mode .qp-recent {
  background: rgba(15, 23, 42, 0.6) !important;
  border-top-color: rgba(255, 255, 255, 0.04) !important;
  border-bottom-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .qp-recent-title {
  color: var(--color-text) !important;
}
body.dark-mode .qp-recent-card {
  background: rgba(30, 41, 59, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .qp-recent-card:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .qp-recent-card-title {
  color: var(--color-text) !important;
}
body.dark-mode .qp-recent-card-date {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-results-info {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-table-wrap {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .qp-table thead tr {
  background: var(--color-surface-2) !important;
}
body.dark-mode .qp-table thead th {
  color: var(--color-text-muted) !important;
  border-bottom-color: var(--color-border) !important;
}
body.dark-mode .qp-table thead th[data-sort]:hover {
  background: var(--color-surface) !important;
}
body.dark-mode .qp-row td {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-bottom-color: var(--color-border) !important;
}
body.dark-mode .qp-row:hover td {
  background: var(--color-surface-2) !important;
}
body.dark-mode .qp-row-cbt-parent td {
  background: rgba(217, 119, 6, 0.15) !important;
}
body.dark-mode .qp-row-cbt-parent:hover td {
  background: rgba(217, 119, 6, 0.25) !important;
}
body.dark-mode .qp-group-label {
  color: #60a5fa !important;
}
body.dark-mode .qp-paper-label {
  color: var(--color-text-muted) !important;
}
body.dark-mode .cell-exam .exam-name {
  color: var(--color-text) !important;
}
body.dark-mode .cell-exam .exam-name:hover {
  color: var(--color-primary) !important;
}
body.dark-mode .qp-cbt-toggle-btn-text {
  background: var(--color-surface-2) !important;
  color: #fbbf24 !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-cbt-toggle-btn-text:hover {
  background: var(--color-surface) !important;
}
body.dark-mode .qp-cbt-shifts-cell {
  border-bottom-color: var(--color-border) !important;
  border-top-color: var(--color-border) !important;
}
body.dark-mode .qp-shifts-table {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-shifts-table thead th {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-shifts-table tbody td {
  border-bottom-color: var(--color-border) !important;
}
body.dark-mode .qp-card {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .qp-card-title {
  color: var(--color-text) !important;
}
body.dark-mode .qp-card-title:hover {
  color: var(--color-primary) !important;
}
body.dark-mode .qp-card-paper {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-pill-year {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-card-cbt-toggle {
  background: var(--color-surface-2) !important;
  color: #fbbf24 !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-card-cbt-toggle:hover {
  background: var(--color-surface) !important;
}
body.dark-mode .qp-card-shifts {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-card-shift-row {
  background: var(--color-bg-white) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-card-shift-head {
  color: var(--color-text) !important;
}
body.dark-mode .qp-card-shift-date {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-load-more {
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
body.dark-mode .qp-load-more:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}
body.dark-mode .qp-seo-block {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .qp-seo-block h2 {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
  border-left-color: var(--color-primary) !important;
}
body.dark-mode .qp-seo-block p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-seo-block strong {
  color: var(--color-text) !important;
}
body.dark-mode .qp-howto li {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-faq-item {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .qp-faq-item:hover {
  border-color: var(--color-primary) !important;
}
body.dark-mode .qp-faq-item[open] {
  background: var(--color-surface-2) !important;
  border-color: var(--color-primary) !important;
}
body.dark-mode .qp-faq-item summary {
  color: var(--color-text) !important;
}
body.dark-mode .qp-faq-item p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .qp-no-results {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .qp-no-results h2 {
  color: var(--color-text) !important;
}
body.dark-mode .qp-no-results p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .na {
  color: var(--color-text-light) !important;
}
body.dark-mode .badge-prelim {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
}
body.dark-mode .badge-mains {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
}
body.dark-mode .badge-cbt {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
}
body.dark-mode .type-tag.omr {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .type-tag.descriptive {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
}

/* --- Logo Dark Mode Contrast Override --- */
body.dark-mode .logo-text,
body.dark-mode span.logo-text {
  color: #ffffff !important;
}
body.dark-mode .logo-dot,
body.dark-mode span.logo-dot {
  color: #94a3b8 !important;
}
body.dark-mode .logo-in,
body.dark-mode span.logo-in {
  color: #60a5fa !important;
}

/* --- Single Post Page Dark Mode & Overlap Fixes --- */
body.dark-mode .post-content-body {
  color: var(--color-text) !important;
}
body.dark-mode .post-content-body h2 {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-left-color: #3b82f6 !important;
}
body.dark-mode .post-content-body h3 {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}
/* --- Author Box (light + dark mode) --- */
.post-author-box {
  margin: 32px 0;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.post-author-box .author-avatar {
  flex-shrink: 0;
}
.post-author-box .author-avatar-img,
.post-author-box .author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}
.post-author-box .author-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}
.post-author-box .author-bio {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}
.post-author-box .author-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-author-box .author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.post-author-box .author-social-fb {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}
.post-author-box .author-social-fb:hover {
  background: rgba(24, 119, 242, 0.18);
}
.post-author-box .author-social-tw {
  color: #1da1f2;
  background: rgba(29, 161, 242, 0.08);
}
.post-author-box .author-social-tw:hover {
  background: rgba(29, 161, 242, 0.18);
}
.post-author-box .author-social-yt {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.08);
}
.post-author-box .author-social-yt:hover {
  background: rgba(255, 0, 0, 0.18);
}
@media (max-width: 480px) {
  .post-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-author-box .author-social {
    justify-content: center;
  }
}

/* Dark mode author box */
body.dark-mode .post-author-box {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .post-author-box .author-avatar-img,
body.dark-mode .post-author-box .author-avatar img {
  border-color: var(--color-border) !important;
}
body.dark-mode .post-author-box .author-name {
  color: var(--color-text) !important;
}
body.dark-mode .post-author-box .author-bio {
  color: var(--color-text-muted) !important;
}
body.dark-mode .post-author-box .author-social-fb {
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.12) !important;
}
body.dark-mode .post-author-box .author-social-fb:hover {
  background: rgba(96, 165, 250, 0.25) !important;
}
body.dark-mode .post-author-box .author-social-tw {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}
body.dark-mode .post-author-box .author-social-tw:hover {
  background: rgba(56, 189, 248, 0.25) !important;
}
body.dark-mode .post-author-box .author-social-yt {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.12) !important;
}
body.dark-mode .post-author-box .author-social-yt:hover {
  background: rgba(248, 113, 113, 0.25) !important;
}
body.dark-mode .sl-toc-substep-link.sl-toc-active .sl-toc-substep-marker {
  color: #60a5fa !important;
}

/* Fix WP Admin Bar overlap with sticky header */
.admin-bar header.site-header#site-header {
  top: 32px !important;
}
@media (max-width: 600px) {
  .admin-bar header.site-header#site-header {
    top: 46px !important;
  }
}

/* --- Question Papers (SQP) Dark Mode overrides --- */
body.dark-mode .sqp-main {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
}
body.dark-mode .sqp-sec-pre {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  border-bottom: none !important;
}
body.dark-mode .sqp-sec-pre h2 {
  color: #fbbf24 !important;
}
body.dark-mode .sqp-sec-mai {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  border-bottom: none !important;
}
body.dark-mode .sqp-sec-mai h2 {
  color: #a78bfa !important;
}
body.dark-mode .sqp-cards {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .sqp-sec-pre + .sqp-cards {
  border-color: rgba(245, 158, 11, 0.3) !important;
}
body.dark-mode .sqp-sec-mai + .sqp-cards {
  border-color: rgba(139, 92, 246, 0.3) !important;
}
body.dark-mode .sqp-card {
  background: var(--color-surface-2) !important;
  border-color: var(--color-border) !important;
}
body.dark-mode .sqp-card-body h3 {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--color-text) !important;
  margin: 0 0 4px !important;
  display: block !important;
}
body.dark-mode .sqp-card-body p {
  color: var(--color-text-muted) !important;
}
body.dark-mode .sqp-sbadge-omr {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}
body.dark-mode .sqp-sbadge-desc {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}
body.dark-mode .sqp-na {
  color: var(--color-text-muted) !important;
}
body.dark-mode .sqp-group {
  background: var(--color-surface) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}
body.dark-mode .sqp-group-hd {
  background: rgba(139, 92, 246, 0.1) !important;
  border-bottom-color: rgba(139, 92, 246, 0.2) !important;
}
body.dark-mode .sqp-group-name {
  color: #a78bfa !important;
}
body.dark-mode .sqp-paper-row {
  border-bottom-color: var(--color-border) !important;
  background: transparent !important;
}
body.dark-mode .sqp-paper-lbl {
  color: var(--color-text) !important;
}
body.dark-mode .sqp-pill-na {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
}
body.dark-mode .sqp-pill-desc {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}
body.dark-mode .sqp-group table tbody tr,
body.dark-mode .qp-shifts-table tbody tr,
body.dark-mode .qp-shifts-table tbody td {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}
body.dark-mode .sqp-group table tbody tr:hover td,
body.dark-mode .qp-shifts-table tbody tr:hover td {
  background: var(--color-surface-2) !important;
}

/* --- Dark Mode Post Body Links & Table Overrides --- */
body.dark-mode .post-content-body a {
  color: #60a5fa !important;
}
body.dark-mode .post-content-body a:hover {
  color: #93c5fd !important;
  background: rgba(96, 165, 250, 0.15) !important;
  border-bottom-color: #93c5fd !important;
}
body.dark-mode .post-content-body table {
  border-color: var(--color-border) !important;
}
body.dark-mode .post-content-body table th,
body.dark-mode .post-content-body table td {
  border-color: var(--color-border) !important;
}
body.dark-mode .post-content-body table thead th {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
}
body.dark-mode .post-content-body table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}
body.dark-mode .post-content-body table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .post-content-body table::-webkit-scrollbar-thumb {
  background-color: var(--color-border) !important;
}

/* =====================================================
   DESKTOP & PC LAYOUT OPTIMIZATIONS (Post & Table Sizing)
   ===================================================== */
@media (min-width: 1280px) {
  .single-post-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr 300px !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .single-post-container {
    max-width: 1250px !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr 250px !important;
    gap: 1.5rem !important;
    padding: 2rem 1.5rem !important;
  }
}

@media (min-width: 1025px) {
  .single-post-page {
    max-width: none !important;
  }
  .post-content-body {
    font-size: 1.15rem !important;
  }
  .post-content-body h2 {
    font-size: 1.7rem !important;
  }
  .post-content-body h3 {
    font-size: 1.45rem !important;
  }
  .post-content-body table {
    display: table !important;
    width: 100% !important;
    font-size: 1.05rem !important;
    white-space: normal !important;
  }
  .post-content-body table thead th {
    font-size: 0.95rem !important;
  }
  .post-content-body table th,
  .post-content-body table td {
    padding: 1.1rem 1.3rem !important;
  }
}



/* --- Dark Mode for Info Box Table --- */
body.dark-mode .info-box-table th {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .info-box-table td {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .info-box-table tr {
  border-color: var(--color-border) !important;
}


/* =====================================================
   MERGED SITE-SHELL STYLES
   ===================================================== */

.site-shell-note { display: none; }

header.site-header#site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
  overflow: visible;
  will-change: transform;
}

.site-branding {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

a.site-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  line-height: 1;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#site-navigation .nav-list,
#primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-navigation .nav-list li a,
#primary-menu li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.header-controls {
  display: none;
  flex: 0 0 auto;
  align-items: center;
}

.breadcrumb-wrapper {
  padding: 0.8rem clamp(1rem, 3vw, 3rem);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-wrapper .breadcrumbs,
.breadcrumb-wrapper .rank-math-breadcrumb,
.breadcrumb-wrapper .rank-math-breadcrumb p {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b;
}

.breadcrumb-wrapper .rank-math-breadcrumb p,
.breadcrumb-wrapper nav.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.breadcrumb-wrapper a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-wrapper a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-nav-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom-inner,
.footer-disclaimer,
.footer-cta-inner {
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.sl-page .sl-body {
  align-items: start;
}

.sl-page .sl-card,
.sl-page .sl-widget,
.sl-page .sl-table-container {
  min-width: 0;
}

@media (max-width: 900px) {
  header.site-header#site-header {
    min-height: 64px;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .header-controls {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 0.9rem 1rem 1rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  #site-navigation .nav-list,
  #primary-menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
  }

  #site-navigation .nav-list li a,
  #primary-menu li a {
    display: flex !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px;
    padding: 0.75rem 0 !important; /* remove horizontal padding */
    font-size: 0.95rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav-list {
    align-items: center;
  }

  .footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social,
  .footer-contact {
    display: flex;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   OPTIMIZED MOBILE MENU & UI — SarkariLok v3.0
   Add these styles to your site-shell.css
═══════════════════════════════════════════════ */

/* ── Header: add search icon on mobile ──────── */
@media (max-width: 900px) {
  .header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Improved hamburger — hide on mobile, use bottom nav instead */
  .menu-toggle {
    display: none !important;
  }

  /* ── Quick search button in header ── */
  .sl-header-search {
    width: 36px;
    height: 36px;
    border: 0.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    text-decoration: none;
  }

  /* ── Category chip filter row ── */
  .sl-cat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-bottom: 0.5px solid #f1f5f9;
  }
  .sl-cat-chips::-webkit-scrollbar { display: none; }
  .sl-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    color: #475569;
    border: 0.5px solid #e2e8f0;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .sl-chip.active,
  .sl-chip:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

  /* ── Improved job cards ── */
  .job-item, .result-item, .call-item, .apply-item, .gujarat-job-item {
    border-radius: 12px !important;
    border: 0.5px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
}

/* ═══════════════════════════════════════════════
   REDESIGNED MOBILE BOTTOM NAV
═══════════════════════════════════════════════ */
.sl-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 0.5px solid #e2e8f0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: 64px;
}

.sl-mnav-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 3px;
  letter-spacing: 0.1px;
}

.sl-mnav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: stroke-width 0.15s;
}

.sl-mnav-item.active { color: #2563eb; }
.sl-mnav-item.active svg { stroke-width: 2.4; stroke: #2563eb !important; }
.sl-mnav-item:hover { color: #2563eb; }

/* ── Center "Menu" button ── */
.sl-mnav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 3px;
  position: relative;
}

.sl-mnav-center-orb {
  width: 46px;
  height: 46px;
  background: #2563eb;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sl-mnav-center:hover .sl-mnav-center-orb,
.sl-mnav-center:active .sl-mnav-center-orb {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.sl-mnav-center-label {
  font-size: 10px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.1px;
}

/* ═══════════════════════════════════════════════
   SLIDE-UP MENU DRAWER (replaces dropdown list)
═══════════════════════════════════════════════ */
.sl-menu-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 99999; /* FIX: raised from 10000 */
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sl-menu-drawer-overlay.is-open { display: flex; }

.sl-menu-drawer {
  width: 100%;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.sl-menu-drawer-overlay.is-open .sl-menu-drawer {
  transform: translateY(0);
}

.sl-drawer-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}
.sl-drawer-handle-bar {
  width: 36px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}

.sl-drawer-head {
  padding: 4px 20px 14px;
  border-bottom: 0.5px solid #f1f5f9;
}
.sl-drawer-head h2 { font-size: 16px; font-weight: 700; color: #1e293b; }
.sl-drawer-head p { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── 3-column tile grid ── */
.sl-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #f1f5f9;
}

.sl-drawer-tile {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.sl-drawer-tile:active { background: #f8fafc; }

.sl-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-tile-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.3;
}

/* Icon bg colors */
.sl-icon-jobs   { background: #eff6ff; }
.sl-icon-admit  { background: #f0fdf4; }
.sl-icon-result { background: #fefce8; }
.sl-icon-call   { background: #fdf4ff; }
.sl-icon-apply  { background: #fff7ed; }
.sl-icon-papers { background: #f0f9ff; }
.sl-icon-yojana { background: #fdf2f8; }
.sl-icon-calc   { background: #f5f3ff; }
.sl-icon-stories{ background: #fff1f2; }

/* ── Drawer social pills ── */
.sl-drawer-socials {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 0.5px solid #f1f5f9;
}
.sl-social-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}
.sl-social-pill:active { opacity: 0.85; }
.sl-social-pill-wa { background: #dcfce7; color: #166534; }
.sl-social-pill-tg { background: #e0f2fe; color: #0369a1; }

/* ── Responsive: show mobile nav ── */
@media (max-width: 900px) {
  .sl-mobile-nav { display: flex; }
  .sl-floating-wa { bottom: 76px; right: 16px; width: 48px; height: 48px; }
  .sl-back-to-top { bottom: 138px; right: 16px; width: 40px; height: 40px; }
  .site-footer { padding-bottom: 70px; }
  /* Prevent top dropdown from showing on mobile */
  .primary-nav.is-open { display: none !important; }
  header.site-header#site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  body.dark-mode header.site-header#site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(30, 41, 59, 0.98) !important;
  }
}

/* --- Logo Dark Mode Contrast Override --- */
body.dark-mode .logo-text,
body.dark-mode span.logo-text {
  color: #ffffff !important;
}
body.dark-mode .logo-dot,
body.dark-mode span.logo-dot {
  color: #94a3b8 !important;
}
body.dark-mode .logo-in,
body.dark-mode span.logo-in {
  color: #60a5fa !important;
}


/* =====================================================
   PAGESPEED LAYOUT STABILIZATION & AD SLOTS
   ===================================================== */

/* 1. Ticker Section */
.updates-ticker {
  height: 40px;
  box-sizing: border-box;
}

/* 2. Premium Social Bar Rows (Desktop) */
.sl-bar--whatsapp {
  min-height: 52px;
  height: auto;
  box-sizing: border-box;
}
.sl-bar--telegram {
  min-height: 36px;
  height: auto;
  box-sizing: border-box;
}

/* 3. Premium Social Bar Rows (Mobile) */
@media (max-width: 600px) {
  .sl-social-bar {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  body.dark-mode .sl-social-bar {
    background: rgba(30, 41, 59, 0.98) !important;
  }
  
  .sl-bar--whatsapp,
  .sl-bar--telegram {
    background: transparent !important;
    flex: 1 !important;
    width: 50% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* WhatsApp content overrides */
  .sl-bar--whatsapp .sl-bar__inner {
    width: 100% !important;
    height: 100% !important;
    min-height: 30px !important;   /* FIX: ensures inner container never collapses to 0 */
    overflow: visible !important;  /* FIX: was clipping the green button on homepage mobile */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .sl-bar--whatsapp .sl-bar__message {
    display: none !important;
  }
  .sl-bar--whatsapp .sl-cta-btn--wa {
    background: linear-gradient(135deg, #128c3e, #25d366, #1ebe5d) !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    margin: 4px 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: calc(100% - 12px) !important;
    height: 30px !important;
    box-shadow: none !important;
    animation: none !important;
  }
  .sl-bar--whatsapp .sl-cta-btn--wa::before {
    display: none !important;
  }
  .sl-bar--whatsapp .sl-cta-btn--wa span {
    display: none !important;
  }
  .sl-bar--whatsapp .sl-cta-btn--wa::after {
    content: "WhatsApp" !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap !important;
  }
  .sl-bar--whatsapp .sl-cta-arrow {
    display: none !important;
  }

  /* Telegram content overrides */
  .sl-bar--telegram .sl-tg-inner {
    background: linear-gradient(135deg, #0088cc, #00a8e8) !important;
    border-radius: 8px !important;
    margin: 4px 6px !important;
    width: calc(100% - 12px) !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 10px !important;
  }
  .sl-bar--telegram .sl-tg-text,
  .sl-bar--telegram .sl-tg-cta {
    display: none !important;
  }
  .sl-bar--telegram .sl-tg-icon-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  .sl-bar--telegram .sl-tg-inner::after {
    content: "Telegram" !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap !important;
  }

  /* Hide decorative particles on mobile to save paint performance */
  .sl-bar__particles {
    display: none !important;
  }
}

/* 4. Google AdSense Slots (Desktop) */
@media (min-width: 769px) {
  .ad-slot-top_banner,
  .ad-slot-after_hero,
  .ad-slot-footer {
    min-height: 90px;
  }
  .ad-slot-between_sections,
  .ad-slot-after_content,
  .ad-slot-sidebar,
  .ad-slot-sidebar_bottom {
    min-height: 250px;
  }
}

/* 5. Google AdSense Slots (Mobile) */
@media (max-width: 768px) {
  .ad-slot-top_banner,
  .ad-slot-footer {
    min-height: 50px;
  }
  .ad-slot-after_hero {
    min-height: 250px;
  }
  .ad-slot-between_sections,
  .ad-slot-after_content,
  .ad-slot-sidebar,
  .ad-slot-sidebar_bottom {
    min-height: 250px;
  }
}

/* 6. Laptop View (901px to 1200px) Navigation Wrapping Fix */
@media (min-width: 901px) and (max-width: 1024px) {
  header.site-header#site-header {
    padding: 0 0.75rem !important;
    gap: 0.4rem !important;
  }
  span.logo-text, span.logo-dot, span.logo-in {
    font-size: 1.2rem !important;
  }
  #site-navigation .nav-list,
  #primary-menu {
    gap: 0px !important;
    flex-wrap: nowrap !important;
  }
  #site-navigation .nav-list li a,
  #primary-menu li a {
    padding: 0.3rem 0.25rem !important;
    font-size: 0.76rem !important;
  }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  header.site-header#site-header {
    padding: 0 1rem !important;
    gap: 0.75rem !important;
  }
  #site-navigation .nav-list,
  #primary-menu {
    gap: 0.15rem !important;
    flex-wrap: nowrap !important;
  }
  #site-navigation .nav-list li a,
  #primary-menu li a {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.9rem !important;
  }
}

/* ── In-Content FAQ Q&A Cards ── */
.content-faq-card {
  background: var(--color-bg-white, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-left: 4px solid var(--color-primary, #2563eb);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  display: block !important;
  width: 100%;
  box-sizing: border-box;
}
.content-faq-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.content-faq-card h3.faq-question-h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--color-text, #1e293b) !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  display: block !important;
}
.content-faq-card p.faq-answer-p {
  font-size: 0.95rem !important;
  color: var(--color-text-muted, #475569) !important;
  margin: 0 !important;
  line-height: 1.62 !important;
}

/* Dark Mode support for In-Content FAQ Cards */
body.dark-mode .content-faq-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
body.dark-mode .content-faq-card h3.faq-question-h3 {
  color: #f8fafc !important;
}
body.dark-mode .content-faq-card p.faq-answer-p {
  color: #cbd5e1 !important;
}

/* --- Search Results Page Dark Mode Fixes --- */
body.dark-mode .search-results-page {
  background: var(--color-bg) !important;
}
body.dark-mode .search-hero {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: var(--shadow-md) !important;
}
body.dark-mode .search-hero-title {
  color: var(--color-text) !important;
}
body.dark-mode .search-hero-query {
  color: #60a5fa !important;
}
body.dark-mode .search-hero-count {
  color: var(--color-text-muted) !important;
}
body.dark-mode .search-result-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
}
body.dark-mode .search-card-title a {
  color: var(--color-text) !important;
}
body.dark-mode .search-card-title a:hover {
  color: #60a5fa !important;
}
body.dark-mode .search-card-meta {
  color: var(--color-text-light) !important;
}
body.dark-mode .search-card-meta svg {
  color: var(--color-text-light) !important;
}
body.dark-mode .search-card-excerpt {
  color: var(--color-text-muted) !important;
}
body.dark-mode .search-card-link {
  color: #60a5fa !important;
}
body.dark-mode .search-card-link:hover {
  color: #93c5fd !important;
}
body.dark-mode .no-results-title {
  color: var(--color-text) !important;
}
body.dark-mode .no-results-text {
  color: var(--color-text-muted) !important;
}
body.dark-mode .no-results-icon {
  color: var(--color-border) !important;
}

/* --- Archive & Search Pagination Dark Mode --- */
body.dark-mode .archive-pagination a,
body.dark-mode .archive-pagination span,
body.dark-mode .archive-pagination .page-numbers {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
body.dark-mode .archive-pagination a:hover,
body.dark-mode .archive-pagination .page-numbers:hover:not(.current) {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
body.dark-mode .archive-pagination .current,
body.dark-mode .archive-pagination .page-numbers.current {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

