/* ==========================================================
   Sada-e-Rus (صدائے روس) — Custom Theme Stylesheet
   RTL Urdu news layout · mobile-first · no frameworks
   ========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --blue: #1f44a6;          /* nav + footer */
  --blue-dark: #183685;
  --red: #d2121b;           /* accents, numbers, buttons */
  --red-dark: #a90e15;
  --ink: #111;
  --text: #2a2a2a;
  --muted: #7a7a7a;
  --line: #e7e7e7;
  --bg: #fff;
  --bg-soft: #f4f5f7;
  --radius: 4px;
  --wrap: 1200px;
  --gap: 24px;
  --font-ur: "Noto Naskh Arabic", "Urdu Typesetting", "Segoe UI", Tahoma, serif;
  --font-naskh: var(--font-ur);
  --font-lat: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ur);
  font-size: 15px;
  line-height: 2.1;
  direction: rtl;
  text-rendering: optimizeLegibility;
}
img, iframe, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.9; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.lat { font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -40px; right: 8px; z-index: 999;
  background: var(--red); color: #fff; padding: 6px 12px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

/* ---------- 3. Top banner image (header ke upar) ---------- */
.top-banner { background: #1a1a2e; }
.top-banner a, .top-banner picture { display: block; }
.top-banner img {
  width: 100%;
  aspect-ratio: 1920 / 422;
  object-fit: cover;
}

/* ---------- 4. Header bar (social · logo · language) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  gap: 12px;
}
.social { display: flex; gap: 6px; align-items: center; }
.social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: #222; transition: background .2s, color .2s;
}
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.logo img { width: auto; height: 40px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }

/* Language switcher (UR · EN · RU) */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  background: #fff; border: 1px solid #d9dee8; border-radius: 30px; color: var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1; transition: border-color .2s, color .2s;
}
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: var(--blue); color: var(--blue); }
.lang-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.lang-btn::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.lang-switch.open .lang-btn::after { transform: rotate(-135deg) translateY(-2px); }
.lang-code { display: none; font-family: var(--font-lat); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.flag { width: 22px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-btn .lang-flag { width: 20px; height: 14px; }
.lang-cur, .lang-code { font-family: var(--font-lat); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; width: 230px; padding: 4px 0;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 34px rgba(15, 30, 70, .18); border-top: 3px solid var(--red);
  direction: ltr; max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li + li { border-top: 1px solid #eceef2; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px; background: none; border: 0; text-align: left;
  font-family: var(--font-lat); font-size: 15px; line-height: 1.4; color: #222;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--blue); }
.lang-menu button[aria-current] { font-weight: 800; color: var(--blue); background: #f2f5fc; }

.drawer-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; direction: ltr; }
.drawer-lang button {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-lat); font-size: 13px; line-height: 1.4; color: #333; text-align: left;
}
.drawer-lang button[aria-current] { border-color: var(--blue); background: #f2f5fc; color: var(--blue); font-weight: 700; }

/* ---- Google Translate: hide Google's own UI, keep our layout ---- */
.gt-hidden, #goog-gt-tt, .goog-te-balloon-frame, iframe.skiptranslate, .goog-te-banner-frame,
body > .skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
html.is-translated body { top: 0 !important; position: static !important; }
font[style*="vertical-align"] { vertical-align: baseline !important; } /* GT wraps text in <font> */
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---- Left-to-right languages (English, Russian, Chinese, Hindi, Turkish, Estonian) ---- */
html[dir="ltr"] { --font-ur: "Inter", system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Microsoft YaHei", "PingFang SC", Roboto, Arial, sans-serif; }
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .ticker-list { animation-name: ticker-ltr; }
@keyframes ticker-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="ltr"] .lang-menu { left: auto; right: 0; }
html[dir="ltr"] .f-links li a:hover { transform: translateX(4px); }
html[dir="ltr"] .nav-search input { left: auto; right: 0; }
html[dir="ltr"] .nav-search.open input { padding: 0 36px 0 14px; }
/* Urdu line-heights are generous; tighten a little for Latin/CJK scripts */
html[dir="ltr"] body { line-height: 1.65; }
html[dir="ltr"] .article-body { line-height: 1.75; font-size: 19px; }
/* English/Russian words are longer than Urdu: keep the menu on one line */
html[dir="ltr"] .nav-list > li > a { font-size: 14px; padding-inline: 8px; }
@media (max-width: 1240px) { html[dir="ltr"] .nav-list > li > a { font-size: 13px; padding-inline: 6px; } }
.menu-toggle {
  display: none; background: none; border: 0; padding: 6px; color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- 5. Main navigation ---------- */
.main-nav {
  background: var(--blue);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.main-nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; flex: 1; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; color: #fff; font-size: 14px; padding: 4px 12px; line-height: 2.4;
  position: relative;
}
.nav-list > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px;
  background: #fff; transform: scaleX(0); transition: transform .2s;
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list > li > a:hover { color: #fff; }
.has-sub > a::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px);
}
.sub-menu {
  position: absolute; top: 100%; right: 0; min-width: 180px; background: #fff;
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 6px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.search-btn {
  background: none; border: 0; color: #fff; padding: 8px; display: grid; place-items: center;
}
.search-btn svg { width: 16px; height: 16px; }

/* Breaking news ticker */
.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; height: 42px; }
.ticker-label {
  flex: none; background: var(--red); color: #fff; font-size: 13px; padding: 0 12px;
  line-height: 30px; border-radius: var(--radius);
}
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-list { display: flex; gap: 48px; width: max-content; animation: ticker 45s linear infinite; }
.ticker-list li { white-space: nowrap; font-size: 14px; }
.ticker-list li::before { content: "◆"; color: var(--red); font-size: 9px; margin-inline-end: 10px; }
.ticker:hover .ticker-list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Inline search — desktop: field expands inside the blue nav (no popup) */
.nav-search { display: flex; align-items: center; flex: none; position: relative; }
.nav-search input {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  width: 0; opacity: 0; padding: 0; border: 0; height: 32px; border-radius: 30px;
  font: inherit; font-size: 14px; line-height: 32px; background: #fff; color: var(--ink); outline: none;
  transition: width .25s ease, opacity .2s, padding .25s;
}
.nav-search.open input { width: 260px; opacity: 1; padding: 0 14px 0 36px; }
.nav-search .search-btn { border-radius: 50%; width: 32px; height: 32px; padding: 0; transition: background .2s, color .2s; }
.nav-search.open .search-btn { position: relative; z-index: 3; color: var(--blue); }
.nav-search input::-webkit-search-cancel-button { display: none; }

/* Mobile: slim bar that slides down right under the header */
@media (min-width: 821px) { .m-search { display: none; } }
.m-search { max-height: 0; overflow: hidden; background: #fff; transition: max-height .25s ease; }
.m-search.open { max-height: 70px; border-top: 1px solid var(--line); }
.m-search .wrap { display: flex; gap: 8px; padding-block: 8px; }
.m-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 16px; font: inherit; font-size: 16px; line-height: 40px;
  border: 1px solid #d5dbe6; border-radius: 30px; background: var(--bg-soft); outline: none;
}
.m-search input:focus { border-color: var(--blue); background: #fff; }
.m-search button {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center;
}
.m-search button svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 6. Ad slots ---------- */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 28px auto; text-align: center;
}
.ad-slot .ad-label {
  font-family: var(--font-lat); font-size: 10px; letter-spacing: .08em; color: #9a9a9a;
  text-transform: uppercase; line-height: 1.6; margin-top: 4px; align-self: flex-start;
}
.ad-box {
  width: 100%; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(45deg, #f6f7f9, #f6f7f9 10px, #eff1f4 10px, #eff1f4 20px);
  border: 1px dashed #cfd4dc; color: #8a93a3; font-family: var(--font-lat); font-size: 13px;
  direction: ltr;
}
.ad-box img { width: 100%; height: 100%; object-fit: cover; }
/* reserved sizes => no layout shift (CLS) */
.ad-leaderboard .ad-box { max-width: 970px; aspect-ratio: 970 / 120; min-height: 90px; }
.ad-wide { background: var(--bg-soft); padding: 18px; border-radius: var(--radius); }
.ad-wide .ad-box { max-width: 728px; aspect-ratio: 728 / 180; border: 0;
  background: linear-gradient(135deg, #5b6fd6, #7f8ce6); color: #fff;
  font-family: var(--font-lat); font-size: clamp(22px, 4vw, 44px); font-weight: 700; line-height: 1.25; }
.ad-rect .ad-box { max-width: 300px; aspect-ratio: 300 / 250; }
.ad-tall .ad-box { max-width: 300px; aspect-ratio: 300 / 469; }
.ad-inarticle .ad-box { max-width: 728px; aspect-ratio: 728 / 90; min-height: 90px; }
.ad-mobile-sticky {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 90; background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); padding: 4px; justify-content: center;
}
.ad-mobile-sticky .ad-box { width: 320px; height: 50px; }
.ad-mobile-sticky .ad-close {
  position: absolute; top: -22px; left: 6px; width: 22px; height: 22px; border: 0;
  background: #fff; border-radius: 4px 4px 0 0; font-size: 16px; line-height: 1; color: #555;
}

/* ---------- 7. Section headings + section backgrounds ---------- */
.section { padding-block: 48px; }
.section-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 26px; position: relative;
}
/* line that fills the gap between title and "مزید" pill */
.section-head::after { content: ""; flex: 1; height: 2px; order: 1; background: linear-gradient(90deg, transparent, var(--line) 30%); }
.section-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 26px; color: var(--ink); line-height: 2.1;
}
.section-title::before {
  content: ""; flex: none; width: 7px; height: 30px; border-radius: 2px;
  background: linear-gradient(var(--red) 0 55%, var(--blue) 55% 100%);
}
.section-title.dark { color: var(--ink); }
.section-more {
  order: 2; flex: none; font-size: 13px; color: var(--blue); line-height: 2;
  border: 1px solid #d5dcef; border-radius: 30px; padding: 2px 16px; transition: .2s;
}
.section-more:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* section background variants */
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: linear-gradient(180deg, #f2f5fc 0%, #fff 100%); }
.bg-navy {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(210, 18, 27, .28), transparent 60%),
    linear-gradient(135deg, #0b1d4d 0%, #142f7a 55%, #1f44a6 100%);
  color: #e8ecf8;
}
.bg-dark { background: #14161b; color: #d9d9d9; }
.bg-navy .section-title, .bg-dark .section-title { color: #fff; }
.bg-navy .section-head::after, .bg-dark .section-head::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.2) 30%); }
.bg-navy .section-more, .bg-dark .section-more { color: #fff; border-color: rgba(255,255,255,.35); }
.bg-navy .section-more:hover, .bg-dark .section-more:hover { background: #fff; color: var(--blue); }
.bg-navy .post-title, .bg-dark .post-title { color: #fff; }
.bg-navy .post-title a:hover, .bg-dark .post-title a:hover { color: #ffb3b6; }
.bg-navy .meta, .bg-dark .meta { color: rgba(255,255,255,.6); }
.bg-navy .cats, .bg-dark .cats { color: #ff8a90; }
.bg-dark .excerpt { color: #a9adb6; }
.bg-dark .meta .author { color: #fff; }
.bg-dark .thumb img { filter: grayscale(1) contrast(1.05); }
.bg-dark .post:hover .thumb img { filter: grayscale(.3); }

/* category badge on image */
.badge {
  position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--red); color: #fff;
  font-size: 12px; line-height: 1.9; padding: 0 10px; border-radius: 2px;
}
.badge.blue { background: var(--blue); }
/* gradient overlay card (title on image) */
.overlay-card { position: relative; border-radius: 4px; overflow: hidden; }
.overlay-card .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.overlay-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 12, 35, .88) 100%);
}
.overlay-card .ov-body { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 24px; z-index: 1; color: #fff; }
.overlay-card .post-title, .overlay-card .post-title a { color: #fff; }
.overlay-card .post-title a:hover { color: #ffd2d4; }
.overlay-card .meta { color: rgba(255,255,255,.75); }
.overlay-card .cats { color: #ff9aa0; }

/* ---------- 8. Post cards ---------- */
.thumb {
  display: block; position: relative; overflow: hidden; background: #e9ebef; border-radius: 2px;
  aspect-ratio: 16 / 10;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .thumb img { transform: scale(1.05); }
.cats {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; line-height: 1.8; margin-top: 12px; color: var(--red);
}
.cats a::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-inline-end: 5px; vertical-align: middle; }
.post-title { font-size: 17px; line-height: 2.05; margin-top: 4px; color: var(--ink); }
.post-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s, color .2s; }
.post-title a:hover { color: var(--red); background-size: 100% 1px; }
.excerpt { font-size: 14px; color: #5a5a5a; line-height: 2.2; margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta {
  font-family: var(--font-lat); font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px;
  direction: ltr; text-align: right;
}
.meta .author { color: var(--ink); text-decoration: underline; }

.post-lg .post-title { font-size: 27px; line-height: 2; }
.post-lg .excerpt { font-size: 15px; -webkit-line-clamp: 3; }
.post-md .post-title { font-size: 19px; }
.thumb { border-radius: 4px; }

/* horizontal small list item (thumb beside text) */
.post-row { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-row .thumb { order: 2; aspect-ratio: 4 / 3; }
.post-row .post-title { font-size: 15.5px; line-height: 2; margin-top: 0; }
.post-row .cats { margin-top: 0; }

/* numbered list (trending / تازہ ترین sidebar) */
.num-list { counter-reset: n; }
.num-list li {
  counter-increment: n; display: grid; grid-template-columns: 1fr 24px 60px; align-items: center; gap: 8px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.num-list li::before {
  content: counter(n); order: 2; font-family: var(--font-lat); font-weight: 800; font-size: 22px;
  color: var(--red); text-align: center; line-height: 1;
}
.num-list .thumb { order: 3; aspect-ratio: 1; }
.num-list a.t { order: 1; font-size: 14.5px; line-height: 2; font-weight: 700; color: var(--ink); }
.num-list a.t:hover { color: var(--red); }

/* play icon on video thumbs */
.play {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .2s;
}
.play::after {
  content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.play.center { top: 50%; right: 50%; transform: translate(50%, -50%); width: 56px; height: 56px; }
.play.center::after { border-width: 10px 0 10px 16px; }
.post:hover .play { transform: scale(1.1); }
.post:hover .play.center { transform: translate(50%, -50%) scale(1.1); }

/* ---------- 9. Layout grids ---------- */
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* page with sidebar (category / single / videos) */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-block: 36px; }
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar .sticky { position: sticky; top: 70px; }
.widget-title { font-size: 19px; color: var(--ink); line-height: 2.2; border-bottom: 2px solid var(--line); margin-bottom: 4px; position: relative; }
.widget-title::after { content: ""; position: absolute; bottom: -2px; right: 0; width: 50px; height: 2px; background: var(--red); }

/* ---------- 10. HOME: hero ---------- */
.hero {
  display: grid; grid-template-columns: 290px minmax(0, 1fr) 290px; gap: 32px; padding-block: 28px 44px;
}
.hero .section-head { margin-bottom: 12px; }
.hero .section-title { font-size: 22px; }
.hero-main .post-lg .post-title { font-size: 30px; }
.hero-main .grid .post-title { font-size: 17.5px; }
.hero-right .post-row .post-title { font-size: 15px; }
.hero-col { min-width: 0; }
.hero-left { order: 3; }    /* in RTL, 3rd = visually left */
.hero-main { order: 2; border-inline: 1px solid var(--line); padding-inline: 28px; }
.hero-right { order: 1; }
.hero-main .post-lg { margin-bottom: 22px; }
.hero-main .thumb { aspect-ratio: 16 / 9; }

/* tabs widget */
.tabs { margin-top: 18px; }
.tab-btns { display: flex; justify-content: flex-start; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-btns button {
  background: none; border: 0; font-family: var(--font-lat); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); padding: 8px 8px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btns button[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
.tab-panel[hidden] { display: none; }

/* ---------- 11. HOME: video slider ---------- */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-nav {
  position: absolute; top: 30%; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; color: var(--red);
}
.slider-nav svg { width: 16px; height: 16px; }
.slider-nav.prev { right: -14px; }
.slider-nav.next { left: -14px; }
.video-card .post-title { font-size: 16px; margin-top: 10px; }
.video-card .thumb { aspect-ratio: 16 / 9; }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.video-card .dur {
  position: absolute; bottom: 8px; left: 8px; z-index: 1; font-family: var(--font-lat); font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.75); color: #fff; padding: 1px 7px; border-radius: 3px; line-height: 1.8;
}
.bg-navy .slider-nav { background: #fff; color: var(--blue); }
.yt-cta {
  order: 3; display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: #ff0000; color: #fff; font-size: 13px; line-height: 2.2; padding: 1px 16px; border-radius: 30px; transition: .2s;
}
.yt-cta svg { width: 18px; height: 18px; fill: #fff; }
.yt-cta:hover { background: #fff; color: #ff0000; }
.yt-cta:hover svg { fill: #ff0000; }

/* ---------- 12. HOME: category blocks ---------- */
.block-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.block-feature .side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-content: start; }
.block-feature .side .ad-slot { margin: 0; }
.block-feature .side .ad-box { aspect-ratio: 1.1; }
.block-feature .side .post-title { font-size: 14px; }

.list-2col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: 18px; border-top: 1px solid var(--line); }

/* Trending strip */
.trending-strip { background: linear-gradient(180deg, #eef2fb, #f7f8fb); padding-block: 36px; border-block: 1px solid #e3e8f4; }
.trending-strip .label {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-lat); font-size: 12px; font-weight: 800;
  letter-spacing: .08em; margin: 0 0 16px; color: var(--blue);
}
.trending-strip .label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(210,18,27,.15); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(210,18,27,0); } }
.trend-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: t; }
.trend-row li {
  counter-increment: t; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 6px;
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,30,70,.06); border: 1px solid #e6eaf3; transition: transform .2s, box-shadow .2s;
}
.trend-row li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trend-row li::before {
  content: counter(t); font-family: var(--font-lat); font-weight: 800; font-size: 42px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red); min-width: 28px;
}
.trend-row .post-title { font-size: 15px; }

/* Overlay mosaic (سی آئی ایس) */
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.mosaic > :first-child { grid-row: 1 / 3; }
.mosaic > :first-child .thumb { aspect-ratio: auto; height: 100%; min-height: 420px; }
.mosaic > :first-child .post-title { font-size: 28px; }
.mosaic .post-title { font-size: 18px; }

/* Columnists cards */
.col-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,30,70,.07); transition: .2s; display: flex; flex-direction: column; }
.col-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.col-card .thumb { border-radius: 0; }
.col-card .body { padding: 4px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.col-card .post-title { font-size: 17px; flex: 1; }
.col-author { display: flex; align-items: center; gap: 10px; margin-top: -26px; position: relative; z-index: 1; }
.col-author img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); object-fit: cover; }
.col-author span, .col-author a { font-size: 13px; color: var(--blue); margin-top: 22px; font-weight: 700; }

/* sports block (list right, big left) */
.block-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.block-split .stack .post-row { grid-template-columns: 1fr 140px; }
.block-split .stack .post-row .thumb { aspect-ratio: 16 / 10; }
.mini-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

/* ---------- 13. CATEGORY / ARCHIVE ---------- */
.archive-title { font-size: 28px; color: var(--red); opacity: .85; line-height: 2; margin-bottom: 14px; }
.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span[aria-hidden] { margin-inline: 6px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
.archive-grid > .ad-slot { grid-column: 1 / -1; margin: 6px 0; }
.archive-grid .post { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.archive-grid .post-title { font-size: 14.5px; }
.load-more {
  display: block; margin: 36px auto 0; background: var(--red); color: #fff; border: 0;
  font-family: var(--font-lat); font-size: 12px; font-weight: 800; letter-spacing: .05em;
  padding: 11px 34px; border-radius: var(--radius); transition: background .2s;
}
.load-more:hover { background: var(--red-dark); }
.load-more[disabled] { opacity: .6; cursor: progress; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; font-family: var(--font-lat); font-size: 13px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 14. SINGLE POST ---------- */
.article-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.article-title { font-size: clamp(22px, 3vw, 31px); line-height: 2; color: var(--ink); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between;
  font-family: var(--font-lat); font-size: 12px; color: var(--muted); margin-bottom: 16px;
}
.article-meta .author-chip { display: flex; align-items: center; gap: 8px; }
.article-meta .author-chip img { width: 28px; height: 28px; border-radius: 50%; }
.featured { margin: 0 0 22px; }
.featured img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.featured figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.article-body { font-size: 17px; line-height: 2.35; color: #222; max-width: 760px; }
.article-body p { margin: 0 0 1.3em; text-align: justify; }
.article-body .dateline { font-weight: 700; color: var(--red); }
.article-body h2 { font-size: 21px; margin: 1.2em 0 .5em; }
.article-body blockquote {
  margin: 1.5em 0; padding: 14px 22px; background: var(--bg-soft); border-inline-start: 4px solid var(--red);
  font-size: 18px; color: var(--ink);
}
.article-body .video-embed { margin: 1.5em 0; }
.share { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.share h3 { font-size: 13px; margin-bottom: 8px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns a, .share-btns button {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-lat); font-size: 12px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 5px 12px; line-height: 1.6; color: #333;
  transition: .2s;
}
.share-btns svg { width: 14px; height: 14px; fill: currentColor; }
.share-btns .wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btns .fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btns .x:hover { background: #000; color: #fff; border-color: #000; }
.share-btns .li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btns .em:hover, .share-btns .pr:hover, .share-btns .cp:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags a {
  font-family: var(--font-lat); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  background: var(--bg-soft); padding: 4px 10px; border-radius: 2px; line-height: 1.8; color: #333;
}
.tags a:hover { background: var(--red); color: #fff; }
.author-box {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; margin-top: 28px; padding: 18px;
  background: var(--bg-soft); border-radius: var(--radius);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; }
.author-box h4 { font-size: 16px; }
.author-box p { margin: 0; font-size: 13px; color: #555; }
.related { margin-top: 40px; }
.related .post-title { font-size: 16px; }

/* reading progress */
.progress { position: fixed; top: 0; right: 0; height: 3px; width: 0; background: var(--red); z-index: 300; }

/* ---------- 15. VIDEOS page ---------- */
.video-featured { margin-bottom: 30px; }
.video-featured .yt { aspect-ratio: 16 / 9; }
.video-featured .post-title { font-size: 22px; margin-top: 8px; }
.video-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.video-filters button {
  border: 1px solid var(--line); background: #fff; padding: 2px 16px; border-radius: 30px; font-size: 13px; line-height: 2.2;
}
.video-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* lite YouTube facade (no heavy iframe until click) */
.yt { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; border: 0; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .95; transition: opacity .2s, transform .5s; }
.yt:hover img { opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* video modal */
.modal { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .88); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-inner { width: min(1000px, 100%); position: relative; }
.modal-inner .frame { aspect-ratio: 16 / 9; background: #000; position: relative; }
.modal-inner iframe { width: 100%; height: 100%; border: 0; }
.modal-title { color: #fff; font-size: 16px; margin-top: 8px; line-height: 2; }
.modal-close { position: absolute; top: -46px; left: 0; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; }

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative; color: #dfe5f5; margin-top: 0;
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(210,18,27,.22), transparent 60%),
    linear-gradient(160deg, #1f44a6 0%, #163485 55%, #0e2563 100%);
}
.site-footer::before { /* red / white / blue stripe on top (flag accent) */
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, #fff 33.3% 66.6%, var(--blue) 66.6%);
}
/* newsletter band */
.footer-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding-block: 34px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-cta h3 { color: #fff; font-size: 24px; line-height: 2; }
.footer-cta p { margin: 0; font-size: 14px; opacity: .8; }
.newsletter { display: flex; width: min(460px, 100%); background: #fff; border-radius: 40px; padding: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 18px; font-family: var(--font-lat); font-size: 14px; outline: none; }
.newsletter button { background: var(--red); color: #fff; border: 0; padding: 0 26px; border-radius: 40px; font-size: 14px; line-height: 2.4; transition: background .2s; }
.newsletter button:hover { background: var(--red-dark); }

.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-block: 46px 38px; }
.footer-top h4 {
  color: #fff; font-size: 18px; margin-bottom: 14px; padding-bottom: 6px; position: relative;
}
.footer-top h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--red); }
.footer-about p { font-size: 14px; line-height: 2.2; opacity: .85; margin: 0 0 14px; }
.footer-logo { background: #fff; display: inline-block; padding: 6px 14px; border-radius: 6px; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.footer-logo img { width: auto; height: 44px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 2.3; }
.contact-list svg { width: 16px; height: 16px; fill: #ff8a90; flex: none; }
.contact-list .lat { font-size: 13px; }
.f-links li a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 2.4; opacity: .9; transition: .2s; }
.f-links li a::before { content: ""; width: 6px; height: 6px; border: solid #ff8a90; border-width: 0 0 2px 2px; transform: rotate(45deg); transition: .2s; }
.f-links li a:hover { color: #fff; opacity: 1; transform: translateX(-4px); }
.f-posts li { display: grid; grid-template-columns: 1fr 74px; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px dashed rgba(255,255,255,.15); }
.f-posts li:last-child { border-bottom: 0; }
.f-posts img { width: 74px; height: 56px; object-fit: cover; border-radius: 4px; order: 2; }
.f-posts a.t { font-size: 14px; line-height: 2; color: #fff; font-weight: 700; }
.f-posts a.t:hover { color: #ffb3b6; }
.f-posts time { display: block; font-family: var(--font-lat); font-size: 11px; opacity: .6; direction: ltr; text-align: right; }
.f-social { display: flex; gap: 8px; margin-top: 16px; }
.f-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: .2s;
}
.f-social svg { width: 16px; height: 16px; fill: currentColor; }
.f-social a:hover { transform: translateY(-3px); }
.f-social .fb:hover { background: #1877f2; border-color: #1877f2; }
.f-social .x:hover { background: #000; border-color: #000; }
.f-social .ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: transparent; }
.f-social .yt:hover { background: #ff0000; border-color: #ff0000; }
.f-social .wa:hover { background: #25d366; border-color: #25d366; }

.footer-bottom-bar { background: rgba(0, 0, 0, .22); }
.footer-bottom {
  padding-block: 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-bottom .legal a { opacity: .8; font-size: 13px; }
.footer-bottom .legal a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.footer-bottom .copy { opacity: .85; }

.to-top {
  position: fixed; bottom: 22px; left: 22px; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 16b. Static pages (about / contact / legal / advertise / 404 / search / author) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding-block: 46px 42px;
  background:
    radial-gradient(800px 300px at 90% -20%, rgba(210,18,27,.35), transparent 60%),
    linear-gradient(135deg, #0b1d4d 0%, #163485 60%, #1f44a6 100%);
}
.page-hero::after { /* subtle dotted texture */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.9; }
.page-hero p { margin: 4px 0 0; max-width: 680px; font-size: 16px; opacity: .85; line-height: 2.1; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.7); margin-bottom: 4px; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .updated { display: inline-block; margin-top: 12px; font-size: 13px; background: rgba(255,255,255,.12); padding: 2px 14px; border-radius: 30px; }

.page-body { padding-block: 48px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }

/* table of contents (legal pages) */
.toc { position: sticky; top: 70px; background: var(--bg-soft); border-radius: 8px; padding: 18px 20px; }
.toc h2 { font-size: 16px; margin-bottom: 6px; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; font-size: 14px; line-height: 2.2; color: #444; padding-block: 2px; border-bottom: 1px dashed #dde1ea; }
.toc li:last-child a { border-bottom: 0; }
.toc a::before { content: counter(toc) "."; font-family: var(--font-lat); color: var(--red); font-weight: 700; font-size: 12px; padding-top: 3px; }
.toc a:hover, .toc a.active { color: var(--red); }

/* long-form prose */
.prose { font-size: 16.5px; line-height: 2.35; color: #262626; }
.prose h2 {
  font-size: 22px; margin: 1.6em 0 .4em; padding-top: 6px; scroll-margin-top: 80px;
  display: flex; align-items: center; gap: 10px;
}
.prose h2::before { content: ""; width: 6px; height: 24px; border-radius: 2px; background: linear-gradient(var(--red) 55%, var(--blue) 55%); flex: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 1.2em 0 .3em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-inline-start: 22px; margin-bottom: .2em; }
.prose ul li::before { content: ""; position: absolute; right: 4px; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--red); }
.prose .note {
  background: #fff8e6; border: 1px solid #f3dfa6; border-inline-start: 4px solid #e0a800; border-radius: 6px;
  padding: 12px 18px; font-size: 15px; margin: 1.4em 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 14px; text-align: right; }
.prose th { background: var(--bg-soft); }

/* feature / value cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 30px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card {
  background: #fff; border: 1px solid #e6eaf3; border-radius: 10px; padding: 22px; transition: .2s;
  box-shadow: 0 1px 2px rgba(16,30,70,.05);
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info-card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, #e9eefb, #fbe9ea); color: var(--blue);
}
.info-card .ic svg { width: 22px; height: 22px; fill: currentColor; }
.info-card h3 { font-size: 18px; }
.info-card p { margin: 4px 0 0; font-size: 14.5px; color: #555; line-height: 2.1; }
.info-card a { color: var(--blue); }
.info-card .lat { font-size: 14px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.stat { text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 20px 10px; }
.stat b { direction: ltr; display: block; font-family: var(--font-lat); font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1.3; }
.stat span { font-size: 14px; color: #555; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { text-align: center; }
.member img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.member h3 { font-size: 17px; }
.member p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; line-height: 1.9; padding: 8px 14px; border: 1px solid #d5dbe6; border-radius: 8px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: right; font-family: var(--font-lat); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,68,166,.12); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 12.5px; }
.field.invalid .err { display: block; }
.field label.check { font-weight: 400; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-size: 14px; color: #444; }
.check input { margin-top: 10px; accent-color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 15px; line-height: 2.2; padding: 4px 28px; transition: .2s;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid #cdd6ea; }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.form-msg { display: none; grid-column: 1 / -1; padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.form-msg.ok { display: block; background: #e8f7ee; color: #146c3a; border: 1px solid #bfe6cf; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; } /* honeypot anti-spam (clip, not offset: offsets break RTL scroll width) */

.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.panel { background: #fff; border: 1px solid #e6eaf3; border-radius: 12px; padding: 28px; box-shadow: 0 2px 10px rgba(16,30,70,.05); }
.panel h2 { font-size: 22px; margin-bottom: 4px; }
.panel > p { margin: 0 0 18px; color: #666; font-size: 14.5px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-side .info-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
.contact-side .info-card .ic { margin: 0; }
.map-card { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: #dfe6f3; display: grid; place-items: center; }
.map-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.map-card .btn { position: absolute; bottom: 14px; }

/* FAQ */
.faq details { border: 1px solid #e6eaf3; border-radius: 8px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 10px 18px; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-lat); font-size: 22px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 14px; color: #555; font-size: 15px; line-height: 2.2; }

/* advertise: placements + packages */
.placements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.placement { border: 1px solid #e6eaf3; border-radius: 10px; padding: 18px; background: #fff; }
.placement .size { font-family: var(--font-lat); font-weight: 800; color: var(--blue); font-size: 18px; direction: ltr; text-align: right; }
.placement .mock { margin: 10px 0; height: 92px; border-radius: 6px; background: var(--bg-soft); position: relative; overflow: hidden; }
.placement .mock i { position: absolute; background: repeating-linear-gradient(45deg, #fcd9db, #fcd9db 6px, #fbe7e8 6px, #fbe7e8 12px); border: 1px solid var(--red); border-radius: 3px; }
.placement h3 { font-size: 17px; }
.placement p { margin: 0; font-size: 14px; color: #666; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.package { border: 1px solid #e6eaf3; border-radius: 14px; padding: 26px; background: #fff; display: flex; flex-direction: column; position: relative; }
.package.featured { border: 2px solid var(--blue); box-shadow: 0 14px 40px rgba(31,68,166,.18); transform: translateY(-6px); }
.package .tag { position: absolute; top: -13px; right: 24px; background: var(--red); color: #fff; font-size: 12px; padding: 0 12px; border-radius: 20px; line-height: 2; }
.package h3 { font-size: 20px; }
.package .price { font-family: var(--font-lat); font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.4; direction: ltr; text-align: right; }
.package .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.package ul { margin: 12px 0 20px; flex: 1; }
.package li { font-size: 14.5px; line-height: 2.3; display: flex; gap: 8px; }
.package li::before { content: "✓"; color: #16a34a; font-weight: 700; font-family: var(--font-lat); }

/* CTA band */
.cta-band {
  margin-top: 46px; border-radius: 14px; padding: 30px 34px; color: #fff; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--red) 0%, #a10f17 100%);
}
.cta-band h2 { color: #fff; font-size: 24px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* 404 */
.err-page { text-align: center; padding-block: 70px 40px; }
.err-code {
  font-family: var(--font-lat); font-weight: 800; font-size: clamp(100px, 22vw, 200px); line-height: 1;
  background: linear-gradient(135deg, var(--red) 0 45%, var(--blue) 45%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-page h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.err-page > .wrap > p { color: #666; margin: 0 auto 22px; max-width: 520px; }
.search-inline { display: flex; max-width: 560px; margin: 0 auto 18px; border: 2px solid var(--blue); border-radius: 40px; overflow: hidden; background: #fff; }
.search-inline input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 16px; padding: 6px 20px; outline: none; }
.search-inline button { border: 0; background: var(--blue); color: #fff; padding: 0 26px; font-size: 15px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* search results */
.result-count { font-size: 15px; color: #555; margin: 0 0 18px; }
.result-count b { color: var(--ink); }
.results .post-row { grid-template-columns: 1fr 200px; gap: 20px; padding-block: 20px; }
.results .post-row .thumb { aspect-ratio: 16 / 10; }
.results .post-title { font-size: 19px; }
.results mark { background: #fff1a8; color: inherit; padding: 0 2px; }

/* author header */
.author-hero { display: flex; gap: 24px; align-items: center; }
.author-hero img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); flex: none; object-fit: cover; }
.author-hero .f-social { margin-top: 10px; }

/* ---------- 17. Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 140; opacity: 0; visibility: hidden; transition: .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 150;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 16px;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.drawer-close { background: none; border: 0; font-size: 30px; line-height: 1; color: #333; }
.drawer nav a { display: block; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.drawer nav .sub a { padding-inline-start: 20px; font-size: 14px; color: #555; }
.drawer .social { margin-top: 16px; }

/* ---------- 17b. Naskh typography (BBC-Urdu style scale) — whole site ----------
   Headline 20px/1.6 bold · lead 32px/1.5 · summary 16px/1.75 · meta 14px */
body { font-size: 16px; line-height: 1.75; }
h1, h2, h3, h4 { line-height: 1.55; }

/* Menus */
.nav-list > li > a { font-size: 16px; font-weight: 700; line-height: 2.6; padding-inline: 11px; }
.sub-menu a { font-size: 15px; line-height: 2.2; }
.drawer nav a { font-size: 17px; line-height: 2.2; }
.ticker-list li { font-size: 15px; }

/* Section / widget headings */
.section-title { font-size: 26px; line-height: 1.7; }
.widget-title { font-size: 20px; line-height: 1.9; }

/* Card headlines */
.post-title { font-size: 20px; line-height: 1.6; margin-top: 6px; }
.post-lg .post-title { font-size: 30px; line-height: 1.5; }
.hero-main .post-lg .post-title { font-size: 32px; line-height: 1.5; }
.post-md .post-title { font-size: 20px; }
.post-row .post-title, .hero-right .post-row .post-title { font-size: 17px; line-height: 1.6; }
.hero-main .grid .post-title { font-size: 19px; }
.block-feature .side .post-title, .trend-row .post-title, .archive-grid .post-title { font-size: 17px; }
.mosaic > :first-child .post-title { font-size: 30px; }
.mosaic .post-title { font-size: 20px; }
.col-card .post-title, .video-card .post-title, .related .post-title { font-size: 18px; }
.video-featured .post-title { font-size: 24px; }
.results .post-title { font-size: 20px; }
.num-list a.t { font-size: 16px; line-height: 1.6; }
.f-posts a.t { font-size: 15px; line-height: 1.6; }

/* Summary / excerpt */
.excerpt { font-size: 16px; line-height: 1.75; color: #3f3f3f; margin-top: 8px; }
.post-lg .excerpt { font-size: 17px; }
.bg-dark .excerpt { color: #b4b8c1; }
.meta, .post-meta { font-size: 14px; }

/* News detail */
.article-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.5; }
.article-body { font-size: 20px; line-height: 1.85; color: #1d1d1d; }
.article-body p { margin-bottom: 1.1em; }
.article-body h2 { font-size: 24px; line-height: 1.55; }
.article-body h3 { font-size: 21px; }
.article-body blockquote { font-size: 21px; line-height: 1.8; }
.featured figcaption { font-size: 14px; line-height: 1.6; }

/* Static pages */
.page-hero h1 { line-height: 1.5; }
.page-hero p, .prose, .faq details p, .info-card p, .footer-about p { line-height: 1.85; }
.prose { font-size: 17px; }
.archive-title { line-height: 1.6; }


/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 260px; }
  .hero-main { order: 1; border: 0; padding: 0; grid-column: 1 / -1; }
  .hero-right { order: 2; }
  .hero-left { order: 3; }
  .slider-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mosaic > :first-child .post-title { font-size: 24px; }
}
@media (max-width: 960px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar .sticky { position: static; }
  .block-feature, .block-split { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .trend-row { grid-template-columns: repeat(3, 1fr); }
  .list-2col { grid-template-columns: 1fr 1fr; }
  .page-grid, .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .cards-4, .team, .stats { grid-template-columns: repeat(2, 1fr); }
  .placements, .packages, .cards-3 { grid-template-columns: 1fr 1fr; }
  .package.featured { transform: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic > :first-child .thumb { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .footer-cta { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-list, .nav-search.desk { display: none; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .site-header { position: sticky; top: 0; z-index: 60; }
  .header-bar { grid-template-columns: auto 1fr auto; min-height: 54px; }
  .header-bar .social.desk { display: none; }
  .header-bar .logo { justify-self: center; }
  .lang-btn { padding: 0 10px; gap: 5px; height: 32px; }
  .lang-cur { display: none; }
  .lang-code { display: inline; }
  .header-actions { display: flex; gap: 4px; justify-self: end; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { order: -1; }
  .hero-right, .hero-left { order: initial; }
  .g-3, .archive-grid { grid-template-columns: 1fr 1fr; }
  .slider-track { grid-auto-columns: calc((100% - 16px) / 2.2); }
  .ad-mobile-sticky { display: flex; }
  body.has-sticky-ad { padding-bottom: 58px; }
  body.has-sticky-ad .to-top { bottom: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .section { padding-block: 24px; }
  .g-2, .g-3, .g-4, .archive-grid, .list-2col, .mini-2, .block-feature .side { grid-template-columns: 1fr; }
  .block-feature .side .post { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
  .block-feature .side .post .thumb { order: 2; }
  .archive-grid .post, .g-3 > .post.compact-m { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: start; }
  .archive-grid .post .thumb, .g-3 > .post.compact-m .thumb { order: 2; }
  .archive-grid .post .cats { margin-top: 0; }
  .trend-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .trend-row::-webkit-scrollbar { display: none; }
  .trend-row li { scroll-snap-align: start; }
  .g-3 > .post-md:not(:first-child) { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
  .g-3 > .post-md:not(:first-child) > * { grid-column: 1; }
  .g-3 > .post-md:not(:first-child) > .thumb { grid-column: 2; grid-row: 1 / 5; aspect-ratio: 4 / 3; }
  .g-3 > .post-md:not(:first-child) .cats { margin-top: 0; }
  .g-3 > .post-md:not(:first-child) .post-title { font-size: 17px; }
  .g-3 > .post-md:not(:first-child) .excerpt { display: none; }
  .grid.g-3 { gap: 14px; }
  .slider-track { grid-auto-columns: 78%; }
  .slider-nav { display: none; }
  .post-title, .post-md .post-title { font-size: 18px; }
  .post-lg .post-title, .mosaic > :first-child .post-title { font-size: 24px; }
  .archive-grid .post-title { font-size: 17px; }
  .excerpt { font-size: 15.5px; }
  .block-split .stack .post-row { grid-template-columns: 1fr 110px; }
  .article-body { font-size: 18.5px; line-height: 1.85; }
  .article-body h2 { font-size: 21px; }
  .article-body p { text-align: right; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 32px 20px; }
  .footer-about, .footer-top .f-latest { grid-column: 1 / -1; }
  .footer-cta h3 { font-size: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .legal { justify-content: center; }
  .section-title { font-size: 22px; }
  .section-more { padding: 0 12px; font-size: 12px; }
  .yt-cta span { display: none; }
  .yt-cta { padding: 4px 10px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .post-title { font-size: 17px; }
  .overlay-card .ov-body { padding: 14px 16px; }
  .hero-main .post-lg .post-title { font-size: 25px; }
  .trend-row li::before { font-size: 34px; }
  .page-hero { padding-block: 30px 28px; }
  .page-body { padding-block: 30px; }
  .form, .placements, .packages, .cards-3 { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .prose { font-size: 16px; }
  .results .post-row { grid-template-columns: 1fr 110px; gap: 12px; }
  .results .post-title { font-size: 17px; }
  .results .excerpt { display: none; }
  .author-hero { flex-direction: column; text-align: center; }
  .author-hero .f-social { justify-content: center; }
  .cta-band { padding: 22px 20px; }
  .ad-wide { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top-banner, .site-header, .main-nav, .ticker, .sidebar, .ad-slot, .ad-mobile-sticky, .share, .related, .site-footer, .to-top, .progress { display: none !important; }
  .with-sidebar { display: block; }
  .article-body { max-width: none; font-size: 13pt; }
}

/* ==========================================================
   19. WordPress additions
   ========================================================== */

/* Menus generated by wp_nav_menu (has-sub class added in PHP) */
.drawer-head img { width: auto; height: 40px; }
.drawer .drawer-menu .sub-menu {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
  border: 0; min-width: 0; background: none;
}
.drawer .drawer-menu .sub-menu a { padding-inline-start: 20px; font-size: 15px; color: #555; }
.drawer .drawer-menu a::before { display: none !important; }
.drawer .drawer-menu a[aria-current] { color: var(--red); }

/* Admin bar offsets for the sticky nav / header */
.admin-bar .main-nav { top: 32px; }
@media (max-width: 820px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 782px) { .admin-bar .main-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Pagination (paginate_links) */
.pagination { flex-wrap: wrap; }
.pagination .dots { border: 0; min-width: 20px; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.archive-title .page-no { font-size: 15px; color: var(--muted); margin-inline-start: 10px; font-weight: 400; }

/* Forms: server status */
.form-msg.err { display: block; background: #fdecec; color: #a90e15; border: 1px solid #f5c2c2; }
.nl-msg { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.nl-msg.ok { color: #b8f5cc; }
.nl-msg.err { color: #ffd0d0; }

/* Ads */
.ad-slot.is-placeholder .ad-box { flex-direction: column; }
.ad-slot.is-placeholder .ad-box small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.ad-box[data-lazy-ad] > template { display: none; }

/* Admin-only hints */
.admin-hint {
  margin: 18px 0; padding: 12px 16px; border: 2px dashed #f0b429; background: #fffbea;
  border-radius: 8px; font-size: 14px; line-height: 1.8; color: #5c4400;
}
.admin-hint a { color: var(--blue); text-decoration: underline; }

/* Archive extras */
.archive-desc { color: #555; margin: -4px 0 18px; font-size: 16px; line-height: 1.85; }
.archive-desc p { margin: 0 0 .6em; }
.sub-cats, .cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sub-cats a, .cat-cloud a {
  padding: 2px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; line-height: 2; background: #fff;
}
.sub-cats a:hover, .cat-cloud a:hover { border-color: var(--blue); color: var(--blue); }
.cat-cloud small { color: var(--muted); margin-inline-start: 4px; font-size: 11px; }
.empty-state { padding: 26px 0; color: #555; }
.empty-state .search-inline { margin-top: 12px; }

/* Date archives: year chips + month grid */
.date-nav { margin: 0 0 24px; }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.year-chips .chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px 3px 14px; border: 1px solid var(--line);
  border-radius: 30px; background: #fff; font-weight: 700; font-family: var(--font-lat); font-size: 14px; line-height: 1.9;
}
.year-chips .chip small {
  font-size: 11px; background: var(--bg-soft); color: var(--muted); padding: 0 8px; border-radius: 20px; font-weight: 600;
}
.year-chips .chip:hover { border-color: var(--blue); color: var(--blue); }
.year-chips .chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.year-chips .chip.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }
.month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.month-grid .month {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; text-align: center; line-height: 1.6;
}
.month-grid .month b { font-size: 15px; }
.month-grid .month small { font-size: 12px; color: var(--muted); }
.month-grid a.month:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }
.month-grid .month.is-active { background: #eef2fb; border-color: var(--blue); color: var(--blue); }
.month-grid .month.is-empty { opacity: .45; background: var(--bg-soft); }
.year-block { margin-bottom: 34px; }
.year-block .section-title a:hover { color: var(--red); }
.year-total { color: var(--muted); font-size: 14px; flex: none; }

/* Videos page */
.videos-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.videos-head .archive-title { margin-bottom: 14px; }
.video-filters a {
  border: 1px solid var(--line); background: #fff; padding: 2px 16px; border-radius: 30px; font-size: 13px; line-height: 2.2;
}
.video-filters a:hover { border-color: var(--blue); color: var(--blue); }
.video-filters a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.video-featured .video-embed { margin: 0 0 12px; }
.more-on-yt { text-align: center; margin-top: 26px; }
.more-on-yt .btn svg { width: 18px; height: 18px; fill: currentColor; vertical-align: middle; }

/* Single extras */
.article-meta { flex-wrap: wrap; }
.article-meta .updated-at, .article-meta .read-time { font-size: 13px; color: var(--muted); }
.author-box h4 a:hover { color: var(--red); }

/* Contact: map button without image */
.map-card--plain { aspect-ratio: auto; background: none; display: block; }
.map-card--plain .btn { position: static; width: 100%; justify-content: center; }

/* Core content classes */
.alignleft { float: left; margin: .3em 0 1em 1.4em; }
.alignright { float: right; margin: .3em 1.4em 1em 0; }
.aligncenter { display: block; margin-inline: auto; }
.article-body img, .prose img, .page-raw img { max-width: 100%; height: auto; }
.article-body figure, .wp-caption { max-width: 100%; margin: 1.3em 0; }
.wp-caption-text, .article-body figcaption, .wp-element-caption, .prose figcaption {
  font-size: 14px; line-height: 1.7; color: var(--muted); text-align: center; margin-top: 6px;
}
.article-body .wp-block-embed, .article-body .video-embed { margin: 1.4em 0; }
.article-body table, .prose table { width: 100%; border-collapse: collapse; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 6px 10px; }
.article-body p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Comments */
.comments-area { margin-top: 38px; }
.comment-list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { padding-inline-start: 28px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata, .comment-meta { font-size: 12.5px; color: var(--muted); }
.comment-content p { margin: 6px 0; }
.reply a { font-size: 13px; color: var(--blue); }
.comment-respond { margin-top: 20px; }
.comment-reply-title { font-size: 20px; margin-bottom: 6px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 8px 14px; border: 1px solid #d5dbe6; border-radius: 8px; background: #fff;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .alignleft, .alignright { float: none; margin: 1em 0; }
}
