/* ============================================================
   NAWAPAKISTAN — Forest Editorial Design System
   Version: 1.0.0
   ============================================================ */

/* ── Variables ── */
:root {
  --green-dark:    #14472e;
  --green-primary: #1a5c3a;
  --green-mid:     #2d7a52;
  --green-accent:  #7edba0;
  --green-light:   #e8f5ee;
  --green-bg:      #f0f9f4;

  --ink:           #111111;
  --ink-mid:       #333333;
  --ink-muted:     #666666;
  --ink-light:     #999999;

  --bg-page:       #f7f5f0;
  --bg-white:      #ffffff;
  --bg-off:        #faf9f6;
  --border:        #e8e2d8;
  --border-light:  #f0ece4;

  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-urdu:     'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);

  --container:     1200px;
  --nav-height:    56px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
.serif { font-family: var(--font-serif); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--ink); }

/* ── Container ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

/* ── Screen Reader ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header { position: sticky; top: 0; z-index: 100; }

/* Top bar */
.top-bar {
  background: var(--green-dark);
  padding: 5px 0;
  font-size: 11px;
  color: rgba(255,255,255,.6);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar__date { white-space: nowrap; }
.top-bar__social { display: flex; gap: 10px; }
.top-bar__social a {
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color .15s;
}
.top-bar__social a:hover { color: var(--green-accent); }

/* Main nav */
.main-nav {
  background: var(--green-primary);
  height: var(--nav-height);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.main-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.site-logo__en {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
}
.site-logo__en span { color: var(--green-accent); }
.site-logo__ur {
  font-family: var(--font-urdu);
  font-size: 14px;
  color: rgba(255,255,255,.55);
  direction: rtl;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
  transition: all .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.current-menu-item { background: rgba(255,255,255,.12); color: #fff; }
.nav-links .urdu-link {
  font-family: var(--font-urdu);
  font-size: 14px;
  letter-spacing: 0;
}

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: all .15s;
  font-size: 16px;
}
.search-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: all .2s; }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--green-dark);
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 12px 20px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--green-accent); }

/* ── Breaking Ticker ── */
.breaking-ticker {
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-ticker__inner { display: flex; align-items: center; gap: 0; }
.breaking-ticker__badge {
  background: var(--green-accent);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 2px;
  margin-right: 16px;
  flex-shrink: 0;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-items {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  padding-right: 48px;
  cursor: pointer;
  transition: color .15s;
}
.ticker-item::after {
  content: '·';
  margin-left: 48px;
  color: rgba(255,255,255,.3);
}
.ticker-item:hover { color: #fff; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* ============================================================
   CATEGORY NAV
   ============================================================ */

.cat-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cat-nav__inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .15s;
}
.cat-nav a:hover,
.cat-nav a.active {
  color: var(--green-primary);
  border-bottom-color: var(--green-primary);
}


/* ============================================================
   HOMEPAGE HERO
   ============================================================ */

.homepage-hero { background: var(--bg-white); margin-bottom: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 420px;
  border-bottom: 1px solid var(--border);
}

/* Main hero story */
.hero-main {
  position: relative;
  overflow: hidden;
  background: var(--green-primary);
}
.hero-main__image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .25;
}
.hero-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,92,58,.2) 0%, rgba(20,71,46,.96) 60%, rgba(20,71,46,1) 100%);
}
.hero-main__content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-main__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-accent);
}
.cat-badge--filled {
  background: var(--green-accent);
  color: var(--green-dark);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}
.cat-sep { color: rgba(255,255,255,.3); font-size: 10px; }
.cat-location { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; }

.hero-main__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-main__title a { color: #fff; }
.hero-main__title a:hover { color: var(--green-accent); }

.hero-main__excerpt {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 520px;
}
.hero-main__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.hero-main__meta .dot { color: rgba(255,255,255,.2); }

/* Hero sidebar */
.hero-side {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.hero-side__item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background .15s;
}
.hero-side__item:hover { background: var(--bg-off); }
.hero-side__item:last-child { border-bottom: none; }

.hero-side__thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--green-light);
}
.hero-side__text { flex: 1; min-width: 0; }
.hero-side__cat {
  font-size: 9px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.hero-side__title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.hero-side__title a:hover { color: var(--green-primary); }
.hero-side__time {
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 5px;
  display: block;
}

/* ── Secondary hero row ── */
.hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.hero-secondary__item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  transition: background .15s;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-secondary__item:last-child { border-right: none; }
.hero-secondary__item:hover { background: var(--bg-off); }

.hero-secondary__num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}
.hero-secondary__content { flex: 1; min-width: 0; }
.hero-secondary__cat {
  font-size: 9px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.hero-secondary__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.hero-secondary__title a:hover { color: var(--green-primary); }


/* ============================================================
   HOMEPAGE MAIN CONTENT
   ============================================================ */

.homepage-content { padding: 28px 0 0; }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-header__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-header__label--large {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.section-header__accent {
  width: 3px;
  height: 16px;
  background: var(--green-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-header__line { flex: 1; height: 1px; background: var(--border); }
.section-header__link {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.section-header__link:hover { color: var(--green-dark); }

/* Main 2-col layout */
.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* News card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.news-grid--3col { grid-template-columns: repeat(3, 1fr); }

/* Article Card */
.article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #ede8e0;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

/* ── Thumbnail: MUST be display:block — <a> is inline by default ── */
.article-card__thumb {
  display: block;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #c8e6d5;
}
/* Padding-top trick: forces 16:9 regardless of image size or browser CSS overrides */
.article-card__thumb::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 9/16 = 56.25% */
}
.article-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-card__thumb img { transform: scale(1.04); }

.article-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8e6d5, #a8d5bc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

/* ── Body: flex:1 fills remaining height, explicit white bg ── */
.article-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Sizer div inside thumb creates the 16:9 height */
.article-card__thumb-sizer {
  display: block;
  padding-top: 56.25%;
}
.article-card__category {
  font-size: 9px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-card__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-card__title a:hover { color: var(--green-primary); }
.article-card__excerpt {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-light);
  margin-top: auto;
  padding-top: 8px;
}
.article-card__meta .dot { color: var(--border); }

/* List card (horizontal) */
.list-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: opacity .15s;
}
.list-card:last-child { border-bottom: none; }
.list-card:hover { opacity: .8; }
.list-card__thumb {
  width: 88px;
  height: 66px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-light);
}
.list-card__thumb-placeholder {
  width: 88px;
  height: 66px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-light), #c8e6d5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.list-card__body { flex: 1; min-width: 0; }
.list-card__cat {
  font-size: 9px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.list-card__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.list-card__title a:hover { color: var(--green-primary); }
.list-card__meta {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 5px;
  display: block;
}

/* Featured list card */
.list-card--featured .list-card__title { font-size: 15.5px; }


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.widget__header {
  background: var(--green-primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget__title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.widget__body { padding: 14px 16px; }

/* Trending widget */
.trending-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.trending-item:last-child { border-bottom: none; }
.trending-item__num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--green-accent);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  padding-top: 2px;
}
.trending-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.trending-item__title a:hover { color: var(--green-primary); }
.trending-item__time { font-size: 10px; color: var(--ink-light); margin-top: 3px; display: block; }

/* Ad widget */
/* ad-widget removed */

/* Newsletter widget */
.newsletter-widget { background: var(--green-primary); border-radius: var(--radius-md); padding: 20px; }
.newsletter-widget__title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.newsletter-widget__desc { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 14px; }
.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
.newsletter-widget input[type="email"]::placeholder { color: #aaa; }
.newsletter-widget button {
  width: 100%;
  padding: 9px;
  background: var(--green-accent);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
  transition: opacity .15s;
}
.newsletter-widget button:hover { opacity: .88; }


/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */

.cat-section { margin-bottom: 36px; }

/* Urdu section strip */
.urdu-strip {
  background: var(--green-dark);
  padding: 14px 0;
  margin: 28px 0;
}
.urdu-strip__inner { display: flex; align-items: center; gap: 20px; }
.urdu-strip__label {
  font-size: 9px;
  font-weight: 800;
  color: var(--green-accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.urdu-strip__divider { width: 1px; height: 20px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.urdu-strip__items { display: flex; gap: 24px; overflow: hidden; }
.urdu-strip__item {
  font-family: var(--font-urdu);
  font-size: 15px;
  color: rgba(255,255,255,.8);
  direction: rtl;
  white-space: nowrap;
  transition: color .15s;
}
.urdu-strip__item:hover { color: var(--green-accent); }
.urdu-strip__more {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-accent);
  letter-spacing: .06em;
  flex-shrink: 0;
}

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tool-card:hover {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px var(--green-light);
  transform: translateY(-2px);
}
.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.tool-card__name { font-size: 12px; font-weight: 700; color: var(--ink); }
.tool-card__desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }


/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */

.single-hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.single-hero__inner {
  padding: 32px 0 0;
}
.single-hero__breadcrumb {
  font-size: 11px;
  color: var(--ink-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.single-hero__breadcrumb a { color: var(--green-primary); }
.single-hero__breadcrumb a:hover { text-decoration: underline; }
.single-hero__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.single-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.single-hero__excerpt {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 400;
  max-width: 680px;
  padding: 14px 16px;
  border-left: 3px solid var(--green-primary);
  background: var(--green-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}
.single-hero__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.single-hero__date { font-size: 12px; color: var(--ink-light); }
.single-hero__reading-time { font-size: 12px; color: var(--ink-light); }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.share-btn {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1.5px solid;
  transition: all .15s;
}
.share-btn--fb { border-color: #1877f2; color: #1877f2; }
.share-btn--fb:hover { background: #1877f2; color: #fff; }
.share-btn--tw { border-color: #000; color: #000; }
.share-btn--tw:hover { background: #000; color: #fff; }
.share-btn--wa { border-color: #25d366; color: #25d366; }
.share-btn--wa:hover { background: #25d366; color: #fff; }
.share-btn--copy { border-color: var(--border); color: var(--ink-muted); }
.share-btn--copy:hover { background: var(--bg-off); }

/* Featured image */
/* Single featured image wrapper
   Uses fixed height NOT percentage — percentage is relative to full viewport
   width so at 1280px wide 52.5% = 672px which is far too tall.
   Fixed 500px height looks intentional and editorial on all screen sizes. */
.single-featured-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 58vh;     /* never taller than 58% of viewport height */
  overflow: hidden;
  background: #c8e6d5;
}
.single-featured {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep faces/subjects in frame */
  display: block;
}
.single-featured-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8e6d5, #a8d5bc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* Article content layout */
.single-content {
  padding: 32px 0 48px;
}
.single-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 40px;
  align-items: start;
}

/* Article body — width controlled by grid column */
.article-body {
  min-width: 0;
}

/* Ad: in-content */
/* ad-in-content removed */

/* entry-content rules consolidated in Single Post Improvements section */

/* Key facts box */
.key-facts {
  background: var(--green-bg);
  border: 1px solid #b8dfc9;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.key-facts__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.key-facts ul { list-style: none; margin: 0; }
.key-facts li { padding: 6px 0; border-bottom: 1px solid rgba(26,92,58,.1); font-size: 14px; color: var(--ink-mid); display: flex; gap: 8px; align-items: flex-start; }
.key-facts li:last-child { border-bottom: none; }
.key-facts li::before { content: '✓'; color: var(--green-primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Tags */
.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tags__label { font-size: 11px; font-weight: 700; color: var(--ink-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 12px;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all .15s;
}
.tag:hover { background: var(--green-light); border-color: var(--green-accent); color: var(--green-primary); }

/* Related articles */
.related-section { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--border); }


/* ============================================================
   URDU SECTION
   ============================================================ */

.urdu-section { direction: rtl; }
.urdu-section .article-card__title,
.urdu-section .list-card__title,
.urdu-section .hero-main__title {
  font-family: var(--font-urdu);
  font-size: 16px;
  line-height: 1.8;
}
.urdu-section .entry-content {
  font-family: var(--font-urdu);
  font-size: 17px;
  line-height: 2.1;
  direction: rtl;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  margin-top: 48px;
}
.footer-top { padding: 40px 0 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }

.footer-brand .site-logo__en { font-size: 22px; }
.footer-about { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); margin: 12px 0 16px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  transition: all .15s;
}
.footer-social a:hover { border-color: var(--green-accent); color: var(--green-accent); }

.footer-col__title {
  font-size: 10px;
  font-weight: 800;
  color: var(--green-accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: var(--green-accent); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--green-accent); }
.footer-bottom__links { display: flex; gap: 16px; }


/* ============================================================
   PAGINATION
   ============================================================ */

.np-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 32px 0;
  list-style: none;
}
/* paginate_links outputs: <a class="page-numbers"> and <span class="page-numbers current"> */
.np-pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border: 1px solid #e8e2d8;
  background: #fff;
  text-decoration: none;
  transition: all .15s;
}
.np-pagination .page-numbers:hover {
  border-color: #1a5c3a;
  color: #1a5c3a;
}
.np-pagination .page-numbers.current {
  background: #1a5c3a;
  border-color: #1a5c3a;
  color: #fff;
}
.np-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: #999;
}
.np-pagination .prev,
.np-pagination .next {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}


/* ============================================================
   SEARCH
   ============================================================ */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,71,46,.95);
  z-index: 1000;
  padding: 80px 20px 20px;
}
.search-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.search-box { width: 100%; max-width: 640px; }
.search-box__input-wrap { position: relative; }
.search-box input[type="search"] {
  width: 100%;
  padding: 18px 56px 18px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 18px;
  font-family: var(--font-sans);
  outline: none;
}
.search-box__submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,.6);
  font-size: 24px;
  cursor: pointer;
  transition: color .15s;
}
.search-close:hover { color: #fff; }


/* ============================================================
   UTILITIES & HELPERS
   ============================================================ */

.text-green  { color: var(--green-primary); }
.text-muted  { color: var(--ink-muted); }
.text-light  { color: var(--ink-light); }
.bg-green    { background: var(--green-primary); }
.bg-light    { background: var(--green-bg); }

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  padding: 11px 28px;
  border: 1.5px solid var(--green-primary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg-white);
  transition: all .15s;
}
.load-more:hover { background: var(--green-primary); color: #fff; }

/* Breaking badge */
.badge--breaking {
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.7} }

/* Category color accents */
.cat--tech    { color: #0ea5e9; }
.cat--auto    { color: #f59e0b; }
.cat--infra   { color: #8b5cf6; }
.cat--edu     { color: #ec4899; }
.cat--govt    { color: #10b981; }
.cat--lahore  { color: #f97316; }
.cat--isb     { color: #06b6d4; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; border-left: none; border-top: 1px solid var(--border); }
  .hero-side__item { border-bottom: none; border-right: 1px solid var(--border); }
  .hero-side__item:last-child { border-right: none; }
  .homepage-grid { grid-template-columns: 1fr; }
  .single-content__grid { grid-template-columns: 1fr; }
  #article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .single-featured-wrap { height: 240px; max-height: 50vw; }
  .top-bar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main__content { padding: 24px 20px; }
  .hero-main__title { font-size: 20px; }
  .hero-main__excerpt { display: none; }
  .hero-side { flex-direction: column; }
  .hero-side__item { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-secondary { grid-template-columns: 1fr; }
  .hero-secondary__item { border-right: none; border-bottom: 1px solid var(--border); }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid--3col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { max-width: 100%; }
  .single-hero__meta { gap: 10px; }
  .share-bar { margin-left: 0; width: 100%; }
  .urdu-strip__items { display: none; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-side { display: none; }
  .hero-secondary { display: none; }
  .cat-nav { display: none; }
  .news-grid--3col { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}


/* header scroll states removed — shadow only via JS */

/* ── Reading progress ── */
#reading-progress { will-change: width; }


/* ============================================================
   JUST IN STRIP
   ============================================================ */

.just-in-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.just-in-strip__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  height: 52px;
}
.just-in-strip__label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  flex-shrink: 0;
  white-space: nowrap;
}
.just-in-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-accent);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }

.just-in-strip__track {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
}
.just-in-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-right: 1px solid var(--border-light);
  min-width: 220px;
  max-width: 260px;
  height: 52px;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .15s;
}
.just-in-item:hover { background: var(--bg-off); }
.just-in-item__img {
  width: 40px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--green-light);
}
.just-in-item__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.just-in-item__body { flex: 1; min-width: 0; }
.just-in-item__cat {
  font-size: 8px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.just-in-item__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}
.just-in-item__time {
  font-size: 9px;
  color: var(--ink-light);
  display: block;
  margin-top: 1px;
}
.just-in-strip__nav {
  display: flex;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.just-in-btn {
  width: 36px;
  height: 52px;
  background: #fff;
  border: none;
  border-right: 1px solid var(--border);
  font-size: 18px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.just-in-btn:last-child { border-right: none; }
.just-in-btn:hover { background: var(--green-bg); color: var(--green-primary); }


/* ============================================================
   FEATURED SECTION LAYOUT (1 lead + compact list)
   ============================================================ */

.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Featured lead — left dominant card */
.featured-lead {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.featured-lead:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-lead:hover img { transform: scale(1.03); }

.featured-lead__img {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--green-light);
  flex-shrink: 0;
}
.featured-lead__breaking {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  animation: pulse-badge 2s infinite;
}
.featured-lead__body { padding: 16px 18px 18px; flex: 1; background: #fff; }
.featured-lead__cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  text-decoration: none;
  color: var(--green-primary);
}
.featured-lead__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
}
.featured-lead__title a { color: inherit; text-decoration: none; }
.featured-lead__title a:hover { color: var(--green-primary); }
.featured-lead__excerpt {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-lead__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-light);
}

/* Compact list — right column */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 0;
  transition: box-shadow .15s, transform .15s;
}
.compact-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transform: translateY(-1px);
}
.compact-card__img {
  display: block;
  position: relative;
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--green-light);
}
/* Override the padding-top inside for horizontal card - use fixed height instead */
.compact-card__img > div:first-child { display: none; }
.compact-card__img img {
  position: static !important;
  width: 110px !important;
  height: 100% !important;
  min-height: 90px;
  object-fit: cover;
  display: block;
}
.compact-card__body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
}
.compact-card__cat {
  font-size: 8px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
}
.compact-card__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
  margin-bottom: 6px;
}
.compact-card__title a { color: inherit; text-decoration: none; }
.compact-card__title a:hover { color: var(--green-primary); }
.compact-card__time {
  font-size: 10px;
  color: var(--ink-light);
  margin-top: auto;
}


/* ============================================================
   CITY SPOTLIGHT
   ============================================================ */

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.city-col {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.city-col__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.city-col__header--isb { background: #0a3d62; }
.city-col__header--lhr { background: #6c3483; }
.city-col__header span:nth-child(2) { flex: 1; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.city-col__header a { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); text-decoration: none; }
.city-col__header a:hover { color: #fff; }

.city-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.city-item:last-child { border-bottom: none; }
.city-item__img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 8px;
  background: var(--green-light);
}
.city-item__img:first-child { /* only first city-item gets image */ }
.city-item__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.city-item__title a { color: inherit; text-decoration: none; }
.city-item__title a:hover { color: var(--green-primary); }
.city-item__time { font-size: 10px; color: var(--ink-light); }


/* ============================================================
   RESPONSIVE — new components
   ============================================================ */

@media (max-width: 900px) {
  .featured-section { grid-template-columns: 1fr; }
  .featured-list { flex-direction: row; flex-wrap: wrap; }
  .compact-card { flex: 1 1 calc(50% - 6px); }
}

@media (max-width: 768px) {
  .just-in-strip__label { padding: 0 12px; font-size: 9px; }
  .just-in-item { min-width: 180px; max-width: 200px; }
  .city-grid { grid-template-columns: 1fr; }
  .compact-card { flex: 1 1 100%; }
  .featured-lead__title { font-size: 16px; }
}

@media (max-width: 480px) {
  .just-in-strip { display: none; }
  .featured-list { flex-direction: column; }
}


/* ============================================================
   SINGLE POST IMPROVEMENTS
   ============================================================ */

/* Updated badge */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green-primary);
  font-weight: 600;
}

/* Featured image caption */
/* Caption is a sibling of .single-featured-wrap, not inside it */
.single-featured__caption {
  text-align: center;
  font-size: 12px;
  color: var(--ink-light);
  padding: 8px 20px 10px;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
  font-style: italic;
  display: block;
  width: 100%;
}

/* ── Key Points Box ── */
.key-points-box {
  background: var(--green-bg);
  border: 1.5px solid #b8dfc9;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.key-points-box__header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.key-points-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.key-points-box__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26,92,58,.1);
}
.key-points-box__list li:last-child { border-bottom: none; padding-bottom: 0; }
.key-points-box__list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Table of Contents ── */
.toc-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}
.toc-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-off);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.toc-box__header span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-box__toggle {
  font-size: 14px;
  color: var(--ink-muted);
  transition: transform .2s;
}
.toc-box--collapsed .toc-box__toggle { transform: rotate(-90deg); }
.toc-box--collapsed .toc-box__list { display: none; }
.toc-box__list {
  padding: 12px 16px 12px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-box__list li { font-size: 13px; }
.toc-box__list a {
  color: var(--green-primary);
  text-decoration: none;
  line-height: 1.4;
}
.toc-box__list a:hover { text-decoration: underline; }

/* ── Article body typography improvements ── */
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mid);
}
.entry-content > p:first-child {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.entry-content p { margin-bottom: 22px; }
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
  scroll-margin-top: 90px; /* offset for sticky header */
}
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
  scroll-margin-top: 90px;
}
.entry-content ul, .entry-content ol {
  margin: 0 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { line-height: 1.65; font-size: 15px; }
.entry-content blockquote {
  border-left: 4px solid var(--green-primary);
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--green-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.65;
}
.entry-content blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--ink-light);
  margin-top: 8px;
}
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
  max-width: 100%;
}
.entry-content figure { margin: 28px 0; }
.entry-content figcaption {
  font-size: 12px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.entry-content a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.entry-content a:hover { color: var(--green-dark); }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.entry-content th {
  background: var(--green-primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}
.entry-content tr:nth-child(even) td { background: var(--bg-off); }

/* ── Bottom share bar ── */
.article-share-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.article-share-bottom__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.share-btn svg { vertical-align: middle; margin-right: 4px; }

/* ── Author Box ── */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 32px;
}
.author-box__avatar { flex-shrink: 0; }
.author-box__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box__avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-box__info { flex: 1; min-width: 0; }
.author-box__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.author-box__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.author-box__bio {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Floating Share Bar ── */
.float-share {
  position: fixed;
  /* Sit just outside the left edge of the max-width container.
     Container is 1200px centered, so left edge = 50% - 600px.
     We place the bar 64px to the left of that edge. */
  left: calc(50% - 640px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.float-share.visible {
  opacity: 1;
  pointer-events: auto;
}
.float-share__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  text-decoration: none;
}
.float-share__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.float-share__btn--fb  { background: #1877f2; color: #fff; }
.float-share__btn--wa  { background: #25d366; color: #fff; }
.float-share__btn--tw  { background: #000;    color: #fff; }
.float-share__btn--copy { background: #fff; color: var(--ink-muted); border: 1px solid var(--border); }
.float-share__btn--copied { background: var(--green-light); color: var(--green-primary); }

/* Hide floating share unless there is space outside the content column */
@media (max-width: 1340px) { .float-share { display: none; } }

/* ── Related section ── */
.related-section { margin-top: 8px; }

/* ── Single post responsive ── */
@media (max-width: 768px) {
  .author-box { flex-direction: column; gap: 14px; }
  .author-box__avatar-img,
  .author-box__avatar-fallback { width: 52px; height: 52px; }
  .toc-box { display: none; } /* hide TOC on mobile — too much space */
}