/* ===== VERSION: 2.7.2-footer-fixed ===== */
/* ============================================================
   SiyaqCasts — Modern Style Overrides v2
   - Buttons match original design (gold pill with play icon)
   - Cards have bolder, visible borders
   - Open/breathable layout — NOT boxed everywhere
   - Only cards and widgets get borders, everything else is clean
   ============================================================ */

/* ── 1. Base typography — softer ─────────────────────────────── */
body {
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ── 2. Buttons — EXACT design from HTML mockup ─────────────── */
/* Dark gradient background + gold border + gold circle icon */

.btn-gold,
.btn-outline,
.btn-whatsapp,
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #1a130a 0%, #0d0905 100%);
  color: var(--color-gold-light, #f0c46b);
  border: 1.5px solid var(--color-gold, #b98224);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(217, 164, 65, 0.15),
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(240, 196, 107, 0.08);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s;
}

.btn-gold:hover,
.btn-outline:hover,
.btn-whatsapp:hover,
.header-cta:hover {
  border-color: #f0c46b;
  color: #f0c46b;
  background: linear-gradient(180deg, #1a130a 0%, #0d0905 100%);
  box-shadow:
    0 0 0 1px rgba(240, 196, 107, 0.25),
    0 8px 22px rgba(217, 164, 65, 0.25),
    inset 0 1px 0 rgba(240, 196, 107, 0.12);
  transform: translateY(-1px);
}

.btn-gold:active,
.btn-outline:active { transform: translateY(0); }

/* Play icon inside buttons — small gold circle with glow OUTSIDE */
.btn-gold svg,
.btn-outline svg,
.hero-cta svg,
.featured-copy .btn-gold svg,
.featured-episode-info .btn-gold svg {
  width: 14px;
  height: 14px;
  padding: 4px;
  background: linear-gradient(180deg, #f0c46b, #b98224);
  color: #1a1205;
  border-radius: 50%;
  box-shadow: none;
  filter: drop-shadow(0 0 6px rgba(240, 196, 107, 0.6));
  box-sizing: content-box;
}

/* WhatsApp keeps green icon color */
.btn-whatsapp svg,
.header-cta svg {
  color: #25d366;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  width: 16px;
  height: 16px;
}

/* Hero CTA — slightly bigger */
.hero-cta {
  padding: 13px 22px;
  font-size: 14px;
}

/* Bigger button for featured episode "Play Now" */
.featured-episode-info .btn-gold {
  padding: 12px 22px;
}

/* ── 2b. Trending icons — match "Learn More" style (dark with gold border) ── */
.trend-icon {
  background: linear-gradient(180deg, #1a130a 0%, #0d0905 100%) !important;
  color: #f0c46b !important;
  border: 1.5px solid #b98224;
  box-shadow:
    0 0 0 1px rgba(217, 164, 65, 0.15),
    0 4px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(240, 196, 107, 0.08);
}

/* ── 3. Episode Cards — matches HTML mockup exactly ─────────── */
.episode-card {
  background: #17171a;
  border: 1px solid #26262b;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.episode-card:hover {
  border-color: #b98224;
  transform: translateY(-3px);
}

.episode-card-thumb img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.episode-card:hover .episode-card-thumb img {
  transform: scale(1.05);
}

.card-play-overlay {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.card-play-icon {
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  box-shadow: 0 4px 20px rgba(201, 146, 42, 0.5);
  transition: transform 0.3s ease;
}
.episode-card:hover .card-play-icon {
  transform: scale(1.1);
}

.badge-breaking {
  background: #e53935;
  border: none;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

.card-duration {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  font-weight: 500;
}

.card-topic-link {
  color: var(--color-gold);
  font-weight: 500;
}

.episode-card-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── 4. Featured Episode — OPEN layout, no box wrapper ───────── */
.featured-episode {
  background: transparent;
  border: none;
  padding: 0;
}

.featured-episode-thumb-link {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.featured-episode-thumb-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.play-icon {
  width: 64px;
  height: 64px;
  background: var(--color-gold);
  box-shadow: 0 8px 32px rgba(201, 146, 42, 0.5);
  transition: transform 0.3s ease;
}
.featured-episode-thumb-link:hover .play-icon {
  transform: scale(1.08);
}

.featured-play-overlay {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
}

.featured-player-bar {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 12px 0;
  color: var(--color-text-3);
}

.topic-badge {
  background: rgba(201, 146, 42, 0.1);
  border: 1px solid rgba(201, 146, 42, 0.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.topic-badge:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: var(--color-gold);
}

/* ── 5. Episode Tabs — clean underline ───────────────────────── */
.episode-tab {
  padding: 6px 18px;
  font-weight: 500;
  color: var(--color-text-3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all 0.2s ease;
}
.episode-tab:hover {
  color: var(--color-text-1);
}
.episode-tab.active {
  color: var(--color-text-1);
  background: transparent;
  border-bottom-color: var(--color-gold);
}

/* ── 6. Trending Topic pills — gray default, gold glow on hover ── */
.trending-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #cccccc;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: all 0.25s ease;
}
.trending-tag:hover,
.trending-tag--active {
  background: linear-gradient(180deg, #1a130a 0%, #0d0905 100%);
  color: #f0c46b;
  border-color: #f0c46b;
  box-shadow:
    0 0 0 1px rgba(240, 196, 107, 0.25),
    0 8px 22px rgba(217, 164, 65, 0.3),
    inset 0 1px 0 rgba(240, 196, 107, 0.12);
  transform: translateY(-1px);
}

.strip-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.strip-item:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.strip-play-icon {
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}
.strip-item:hover .strip-play-icon { opacity: 1; }
.strip-play-icon svg { color: var(--color-gold); }

/* ── 7. Hero Section ─────────────────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 30%,
    rgba(10, 10, 10, 0.65) 60%,
    rgba(10, 10, 10, 0.25) 100%
  );
}

.hero-title {
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ── 8. Header ───────────────────────────────────────────────── */
.site-header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-menu a {
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-menu a:hover::after { width: 60%; }
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
  width: 60%;
  margin-top: 0;
}

/* ── 9. Ticker ───────────────────────────────────────────────── */
.ticker-social-link {
  transition: all 0.2s ease;
}
.ticker-social-link:hover {
  color: var(--color-gold);
  transform: translateY(-1px);
}

/* ── 10. Sidebar Widgets — BOLDER borders ────────────────────── */
.sidebar-widget {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease;
  padding: 1.25rem;
}
.sidebar-widget:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.widget-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.related-episode-link {
  transition: all 0.2s ease;
  padding: 6px;
  border-radius: 8px;
  margin: -6px;
}
.related-episode-link:hover {
  background: rgba(255, 255, 255, 0.03);
}
.related-episode-thumb { border-radius: 8px; }

.social-icon {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: rgba(201, 146, 42, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ── 11. Episode Single Page — OPEN layout ───────────────────── */
.episode-title {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.episode-section-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.video-player {
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Highlights — simple list with gold bullets, NO boxes */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-item {
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.highlight-bullet {
  color: var(--color-gold);
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Episode topics — clean paragraphs, NO boxes */
.episode-topic-item {
  padding: 0 0 24px 0;
  background: transparent;
  border: none;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.episode-topic-item:last-child { border-bottom: none; }
.topic-item-title {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.topic-item-content {
  color: var(--color-text-2);
  line-height: 1.75;
}

/* Related strip on single — bolder borders */
.related-strip-item {
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.related-strip-item:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 146, 42, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ── 12. About Section — true cinematic blend ───────────────── */
/* ── About Section — magazine-style with full-bleed photo ─────────────────── */
.about-section {
  position: relative;
  background: #0d0c0b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 0;
}

/* Photo as full-section background — constrained inside container */
.about-section.has-photo::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 1;
  filter: grayscale(8%) brightness(0.95);
}

/* LTR: photo on right side - aligned with container edge */
html:not([dir="rtl"]) .about-section.has-photo::before {
  right: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
  width: calc(50% - max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem)));
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%, black 100%);
}

/* RTL: photo on left side - aligned with container edge */
html[dir="rtl"] .about-section.has-photo::before {
  left: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
  width: calc(50% - max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem)));
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 35%, black 100%);
  mask-image: linear-gradient(to left, transparent 0%, black 35%, black 100%);
}

/* Subtle bottom fade */
.about-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(to top, #0d0c0b 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Grid: balanced 50/50 split */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  min-height: 340px;
  position: relative;
  z-index: 3;
}

/* RTL: photo on left, content on right (reverse grid) */
html[dir="rtl"] .about-inner {
  grid-template-columns: 1fr 280px;
}

html[dir="rtl"] .about-photo {
  order: 2;
}

html[dir="rtl"] .about-content {
  order: 1;
}

/* Hide old photo wrap (legacy) */
.about-photo-wrap {
  display: none !important;
}

/* Hide mobile-only photo on desktop */
.about-photo-mobile {
  display: none;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  padding: 1rem 0;
  max-width: 100%;
}

/* RTL: text should be right-aligned for Pashto/Arabic */
html[dir="rtl"] .about-content {
  align-items: flex-end !important;
  text-align: right !important;
  /* In RTL grid, content sits in right column - this is correct */
}

html[dir="rtl"] .about-content .about-title,
html[dir="rtl"] .about-content .about-subtitle,
html[dir="rtl"] .about-content .about-text,
html[dir="rtl"] .about-content .about-text p {
  text-align: right !important;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
}

/* Button stays auto-width but aligns to the right edge for RTL */
html[dir="rtl"] .about-content .about-btn,
html[dir="rtl"] .about-content .btn-outline {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Hide the original photo wrap — we use background instead */
.about-photo-wrap {
  display: none !important;
}

.about-title {
  letter-spacing: -0.02em;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--color-text-1);
}

.about-subtitle {
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.about-text {
  color: var(--color-text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 520px;
}

.about-btn,
.about-content .btn-outline {
  display: inline-flex !important;
  width: auto !important;
  align-self: flex-start !important;
}

html[dir="rtl"] .about-btn,
html[dir="rtl"] .about-content .btn-outline {
  align-self: flex-end !important;
}

/* ── 13. Footer ──────────────────────────────────────────────── */
.site-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-menu a {
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-menu a:hover { color: var(--color-gold); }

/* ── 14. Pagination ──────────────────────────────────────────── */
.pagination .page-numbers {
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover {
  background: rgba(201, 146, 42, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}
.pagination .page-numbers.current {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: var(--color-gold);
  box-shadow: 0 4px 12px rgba(201, 146, 42, 0.3);
}

/* ── 15. Focus & Scrollbar & Selection ───────────────────────── */
a:focus-visible,
button:focus-visible,
.episode-tab:focus-visible,
.trending-tag:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 146, 42, 0.4);
}

::selection {
  background: rgba(201, 146, 42, 0.4);
  color: #fff;
}

/* ── Trending Topics homepage strip — square thumbnails ────── */
.trending-strip .strip-thumb {
  width: 180px !important;
  aspect-ratio: 16 / 9 !important;
}

.trending-strip .strip-item {
  flex-shrink: 0;
}

.trending-strip .strip-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ── Trend icon (Learn More style) — bigger & crisper ──────── */
.trend-icon {
  width: 42px !important;
  height: 42px !important;
}
.trend-icon svg {
  width: 18px !important;
  height: 18px !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TEMPLATES — About, News, Contact, Subscribe
   ═══════════════════════════════════════════════════════════════ */

/* ── Generic page template ─────────────────────────────────── */
.page-default .page-article { max-width: 800px; margin: 0 auto; }
.page-default .page-header { margin-bottom: 2rem; }
.page-default .page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-default .page-featured-image {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.page-default .page-featured-image img { width: 100%; height: auto; display: block; }
.page-default .page-content {
  color: var(--color-text-2);
  font-size: 16px;
  line-height: 1.8;
}
.page-default .page-content p { margin-bottom: 1.25rem; }
.page-default .page-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; color: var(--color-text-1); }
.page-default .page-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; color: var(--color-text-1); }
.page-default .page-content ul, .page-default .page-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.page-default .page-content li { margin-bottom: 0.5rem; }
.page-default .page-content a { color: var(--color-gold); border-bottom: 1px solid rgba(201, 146, 42, 0.3); }
.page-default .page-content a:hover { border-bottom-color: var(--color-gold); }
.page-default .page-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-1);
  font-style: italic;
}

/* ── News archive (home.php) ───────────────────────────────── */
.news-archive .archive-header { margin-bottom: 2.5rem; text-align: center; }
.news-archive .archive-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.news-archive .archive-description {
  color: var(--color-text-2);
  max-width: 640px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #17171a;
  border: 1px solid #26262b;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  border-color: #b98224;
  transform: translateY(-3px);
}

.news-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-3);
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }

.news-card-body { padding: 16px 18px 18px; }
.news-card-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.news-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-1);
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.news-card:hover .news-card-title { color: var(--color-gold); }
.news-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-3);
  margin-bottom: 10px;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--color-text-2);
  line-height: 1.6;
}

/* ── Single post (news article) ─────────────────────────────── */
.single-post-page .post-article { max-width: 780px; margin: 0 auto; }

.single-post-page .post-header { margin-bottom: 2rem; }
.single-post-page .post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.75rem 0;
}
.single-post-page .post-categories { display: flex; gap: 8px; margin-bottom: 0.5rem; }
.single-post-page .post-category-link {
  font-size: 12px;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.single-post-page .post-meta-bar {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--color-text-3);
  margin-top: 1rem;
}
.post-date, .post-author { display: inline-flex; align-items: center; gap: 6px; }

.single-post-page .post-featured-image {
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.single-post-page .post-featured-image img { width: 100%; height: auto; display: block; }

.single-post-page .post-content {
  color: var(--color-text-2);
  font-size: 16px;
  line-height: 1.8;
}
.single-post-page .post-content p { margin-bottom: 1.25rem; }
.single-post-page .post-content h2,
.single-post-page .post-content h3 { color: var(--color-text-1); margin: 1.75rem 0 0.75rem; }
.single-post-page .post-content a { color: var(--color-gold); border-bottom: 1px solid rgba(201, 146, 42, 0.3); }
.single-post-page .post-content a:hover { border-bottom-color: var(--color-gold); }

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.post-tags .tags-label {
  font-size: 13px;
  color: var(--color-text-3);
  font-weight: 500;
}

.post-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.post-nav-link:hover {
  border-color: var(--color-gold);
  background: rgba(201, 146, 42, 0.05);
}
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 11px; color: var(--color-text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.post-nav-title { font-size: 14px; color: var(--color-text-1); font-weight: 500; }

/* ── Subscribe page ─────────────────────────────────────────── */
.subscribe-header { text-align: center; margin-bottom: 3rem; }
.subscribe-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.subscribe-intro {
  color: var(--color-text-2);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.subscribe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 1.75rem 1.5rem;
  background: #17171a;
  border: 1px solid #26262b;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}
.subscribe-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.subscribe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}
.subscribe-icon svg { width: 28px; height: 28px; }

.subscribe-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-1);
  font-family: var(--font-body);
  margin: 0;
}
.subscribe-desc {
  font-size: 13px;
  color: var(--color-text-3);
  line-height: 1.5;
  margin: 0;
}
.subscribe-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.subscribe-card:hover .subscribe-cta { transform: translateX(4px); }

/* ── Contact page ──────────────────────────────────────────── */
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.contact-intro {
  color: var(--color-text-2);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-wrap {
  background: #17171a;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 2rem;
}

.contact-form .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form .form-field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-2);
  margin-bottom: 6px;
}
.contact-form .req { color: var(--color-gold); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text-1);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(201, 146, 42, 0.04);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-submit { margin-top: 8px; }

.contact-success {
  padding: 1.5rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 10px;
  color: #4ade80;
}
.contact-success h3 { color: #4ade80; margin-bottom: 0.5rem; font-family: var(--font-body); }
.contact-error {
  padding: 12px 16px;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: 8px;
  color: #f87171;
  margin-bottom: 1rem;
  font-size: 14px;
}

.contact-sidebar {
  background: #17171a;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 1.5rem;
  height: fit-content;
}
.contact-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-1);
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.contact-sidebar-text {
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.contact-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form .form-row-2col { grid-template-columns: 1fr; }
  .post-pagination { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .contact-form-wrap { padding: 1.5rem; }
  .subscribe-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .subscribe-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   LAZY-LOAD VIDEO PLAYER
   Thumbnail + custom play button → click to load YouTube
   ═══════════════════════════════════════════════════════════════ */

/* Player wrapper */
.video-player--lazy {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Thumbnail image */
.video-player__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.video-player--lazy:hover .video-player__thumb {
  transform: scale(1.03);
  filter: brightness(0.7);
}

/* Dark overlay on top of thumbnail */
.video-player__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}
.video-player--lazy:hover .video-player__play-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Custom gold play button */
.video-player__play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a130a 0%, #0d0905 100%);
  border: 2px solid #b98224;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c46b;
  box-shadow:
    0 0 0 1px rgba(217, 164, 65, 0.2),
    0 0 40px rgba(217, 164, 65, 0.3),
    inset 0 1px 0 rgba(240, 196, 107, 0.1);
  transition: all 0.3s ease;
}
.video-player__play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  filter: drop-shadow(0 0 6px rgba(240, 196, 107, 0.6));
}
.video-player--lazy:hover .video-player__play-btn {
  border-color: #f0c46b;
  transform: scale(1.1);
  box-shadow:
    0 0 0 1px rgba(240, 196, 107, 0.35),
    0 0 60px rgba(217, 164, 65, 0.45),
    inset 0 1px 0 rgba(240, 196, 107, 0.15);
}

/* When playing — iframe replaces the thumbnail */
.video-player--lazy.is-playing .video-player__thumb,
.video-player--lazy.is-playing .video-player__play-overlay {
  display: none;
}

.video-player--lazy.is-playing {
  cursor: default;
}

.video-player--lazy iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Self-hosted player also gets clean styling */
.video-player--self {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.video-player--self video {
  width: 100%;
  display: block;
  background: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .video-player__play-btn {
    width: 56px;
    height: 56px;
  }
  .video-player__play-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Post / Page Layout with Sidebar ─────────────────────────── */
.post-layout {
  display: block;
}

.post-layout.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: flex-start;
}

.post-main {
  min-width: 0;
}

.post-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .post-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
}

/* ── Scroll to Top Button ──────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 146, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 999;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #e0a838;
  transform: translateY(-3px);
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* RTL — show on left side instead */
html[dir="rtl"] .scroll-to-top {
  right: auto;
  left: 28px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 20px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   2026 PREMIUM UPGRADES — Linear / Vercel / Raycast-style polish
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Hero Section — ambient gradient blobs + cinematic feel ────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animated ambient gradient blob — top right */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(212, 160, 67, 0.15) 0%,
    rgba(212, 160, 67, 0.06) 35%,
    transparent 65%
  );
  filter: blur(60px);
  z-index: -1;
  animation: blob-drift 20s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* Second blob — bottom left, different timing */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(212, 160, 67, 0.08) 0%,
    transparent 55%
  );
  filter: blur(80px);
  z-index: -1;
  animation: blob-drift 25s var(--ease-in-out) infinite reverse;
  pointer-events: none;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(2%, -3%) scale(1.05); }
  66%      { transform: translate(-2%, 2%) scale(0.95); }
}

/* Hero title — oversized expressive typography (2026 trend) */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 6.5rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  background: linear-gradient(
    180deg,
    var(--color-text-1) 0%,
    rgba(245, 245, 247, 0.7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-3);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* ── Premium Card System — mouse-tracking spotlight effect ─────────────────── */
.episode-card,
.news-card,
.related-strip-item,
.topic-item {
  position: relative;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  isolation: isolate;
}

/* Spotlight effect — follows mouse */
.episode-card::before,
.news-card::before,
.topic-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 160, 67, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}

.episode-card:hover::before,
.news-card:hover::before,
.topic-item:hover::before {
  opacity: 1;
}

.episode-card:hover,
.news-card:hover,
.topic-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-2);
  box-shadow: var(--shadow-lg);
}

/* ── Episode Grid — clean 3-column layout (featured shown separately above) ── */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Tablet — 2 columns ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile — single column ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .episodes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem) !important;
  }
}

/* ── Trending Topic items — premium hover ──────────────────────────────────── */
.trending-tag {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  overflow: hidden;
}

.trending-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gold-pale), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.trending-tag:hover::before { opacity: 1; }
.trending-tag:hover {
  border-color: var(--color-border-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
}

/* ── Buttons — refined micro-interactions ──────────────────────────────────── */
.btn-gold,
.btn-outline,
.header-cta,
.btn-whatsapp {
  position: relative;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.btn-gold:hover,
.header-cta:hover,
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gold:active,
.btn-outline:active,
.header-cta:active,
.btn-whatsapp:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* ── Section Titles — modern uppercase eyebrow + big heading ───────────────── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── Header — refined glass with subtle border ─────────────────────────────── */
.site-header {
  background: rgba(5, 5, 6, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

/* Header gets even more solid when scrolled */
.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.92);
  border-bottom-color: var(--color-border-2);
}

/* ── Featured Episode — premium upgrade ────────────────────────────────────── */
.featured-episode {
  position: relative;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition);
}

.featured-episode::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top right,
    rgba(212, 160, 67, 0.08),
    transparent 50%
  );
  z-index: 1;
  pointer-events: none;
}

.featured-episode-info {
  position: relative;
  z-index: 2;
}

.featured-episode-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

/* ── Topic Badges — refined pills ──────────────────────────────────────────── */
.topic-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-gold-pale);
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition);
}

.topic-badge:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

/* ── Scroll Reveal Animation — fade-in cards on viewport entry ─────────────── */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards in a grid */
.fade-in-on-scroll:nth-child(1) { transition-delay: 0s; }
.fade-in-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.fade-in-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.fade-in-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.fade-in-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.fade-in-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
}

/* ── Tab buttons — premium feel ────────────────────────────────────────────── */
.episode-tab {
  position: relative;
  background: transparent;
  color: var(--color-text-3);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.episode-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.episode-tab:hover {
  color: var(--color-text-1);
}

.episode-tab.active {
  color: var(--color-gold);
}

.episode-tab.active::after {
  width: 24px;
}

/* ── Scroll-to-top button — glassy refinement ──────────────────────────────── */
.scroll-to-top {
  background: rgba(212, 160, 67, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* ── Tighten vertical rhythm — remove excessive empty space ────────────────── */

/* Trending section — section-header was creating too much top gap */
.trending-section .section-header {
  margin-bottom: 1.25rem;
}

/* Latest episodes section — same fix */
.latest-episodes-section .section-header {
  margin-bottom: 1.5rem;
}

/* Episode card — slightly tighter internal padding */
.episode-card-info {
  padding: 12px 14px 14px;
}

.card-topics {
  margin-bottom: 6px;
}

.episode-card-title {
  margin-bottom: 6px;
}

/* Trending strip — pull closer to tag pills above */
.trending-strip {
  margin-top: 0;
}

/* Episodes grid — tighter row gap */
.episodes-grid {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .episodes-grid {
    row-gap: 1.5rem;
  }
}

/* Section pad — slightly less aggressive on smaller sections */
.trending-section.section-pad {
  padding-block: 3rem;
}


/* ── Fix excessive section gaps (latest-episodes ↔ trending sections) ──────── */

/* Reduce the double-padding between consecutive sections */
.latest-episodes-section.section-pad {
  padding-bottom: 2.5rem;
}

.trending-section.section-pad {
  padding-block: 2.5rem;
}

/* Tighten load-more buttons gap above */
.load-more-wrap {
  margin-top: 2rem !important;
}

/* Section header bottom margin — tighter for trending */
.trending-section .section-header {
  margin-bottom: 1rem !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   AGGRESSIVE SECTION GAP FIX — overrides everything before
   ════════════════════════════════════════════════════════════════════════════ */

/* Latest episodes — pull bottom way in */
.latest-episodes-section,
.latest-episodes-section.section-pad {
  padding-bottom: 1.5rem !important;
}

/* Trending section — pull top way in (this is the main culprit) */
.trending-section,
.trending-section.section-pad {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
}

/* The container around buttons — no extra margin below */
.load-more-wrap {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* Section header gap inside trending */
.trending-section .section-header,
.trending-section .section-header h2 {
  margin-bottom: 1rem !important;
}

/* About section — desktop locked layout */
.about-section {
  padding: 0 !important;
}
.about-section .about-inner {
  min-height: 340px;
  padding-block: 2.5rem;
}
.about-section .about-content {
  max-height: 100%;
  overflow: hidden;
}
.about-section .about-text {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1rem;
  /* Limit to 5 lines of text on desktop */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile — release all desktop locks for proper stacking */
@media (max-width: 768px) {
  .about-section .about-inner {
    min-height: auto !important;
    padding: 0 !important;
  }
  .about-section .about-content {
    max-height: none !important;
    overflow: visible !important;
  }
  .about-section .about-text {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    line-height: 1.7 !important;
  }
}



/* ════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE FIXES — All breakpoints
   Tablet: 1024px | Mobile: 768px | Small: 480px
   ════════════════════════════════════════════════════════════════════════════ */

/* ═══ TABLET — 1024px and below ═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Container padding tighter */
  .container {
    padding-inline: 1.25rem;
  }

  /* Hero — slightly smaller */
  .hero-section {
    min-height: 360px !important;
  }

  /* Hero title — slightly smaller */
  .hero-title {
    font-size: clamp(2.25rem, 6vw, 4.5rem) !important;
  }

  /* Featured episode - stack media and info */
  .featured-episode {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Episode grid — 2 columns */
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  /* Trending tags wrap nicely */
  .trending-tags {
    gap: 8px !important;
  }
  .trending-tag {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  /* Sidebar — pages stack the sidebar */
  .post-layout.has-sidebar {
    grid-template-columns: 1fr 280px !important;
    gap: 2rem !important;
  }
}


/* ═══ MOBILE — 768px and below ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Container padding even tighter */
  .container {
    padding-inline: 1rem;
  }

  /* === HEADER === */
  .header-inner {
    padding-block: 0.5rem;
  }
  .site-logo img,
  .footer-site-name {
    max-height: 36px !important;
  }
  /* Nav menu hidden behind hamburger - existing behavior */

  /* === BREAKING TICKER === */
  .breaking-ticker {
    font-size: 12px;
  }
  .ticker-label {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }

  /* === HERO === */
  .hero-section {
    min-height: 300px !important;
    padding: 2rem 0 !important;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-cta {
    padding: 11px 18px !important;
    font-size: 13px !important;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(10, 10, 10, 0.95) 100%
    ) !important;
  }

  /* Hero gradient blobs - smaller */
  .hero-section::before,
  .hero-section::after {
    width: 100% !important;
    height: 50% !important;
  }

  /* === FEATURED EPISODE === */
  .featured-episode {
    margin-bottom: 1.5rem !important;
  }
  .featured-episode-title {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }
  .featured-episode-excerpt {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }
  .featured-episode-info {
    padding-inline: 0.5rem;
  }
  .featured-episode-meta {
    font-size: 12px !important;
  }
  .play-icon {
    width: 52px !important;
    height: 52px !important;
  }

  /* === EPISODE GRID === */
  .episodes-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === SECTION HEADERS — stack on mobile === */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem !important;
  }
  /* RTL: flex-start in column flex = right side (start of horizontal axis) */
  html[dir="rtl"] .section-header {
    align-items: flex-start;
  }
  html[dir="rtl"] .section-title {
    width: 100%;
    text-align: right;
  }
  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.6rem) !important;
  }

  /* === EPISODE TABS — scrollable horizontal === */
  .episode-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }
  .episode-tabs::-webkit-scrollbar { display: none; }
  .episode-tab {
    flex-shrink: 0;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  /* === TRENDING SECTION === */
  .trending-tags {
    gap: 6px !important;
  }
  .trending-tag {
    padding: 5px 12px !important;
    font-size: 11px !important;
  }
  .trending-strip .strip-thumb {
    width: 130px !important;
  }

  /* Section spacing tighter */
  .latest-episodes-section,
  .latest-episodes-section.section-pad {
    padding-bottom: 1rem !important;
  }
  .trending-section,
  .trending-section.section-pad {
    padding-block: 1.5rem !important;
  }

  /* === ABOUT SECTION — stack vertically === */
  .about-section {
    overflow: hidden;
  }

  /* Hide the desktop ::before background on mobile */
  .about-section.has-photo::before {
    display: none !important;
  }
  .about-section::after {
    display: none !important;
  }

  .about-inner,
  html[dir="rtl"] .about-inner {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    min-height: auto !important;
    gap: 0 !important;
  }

  /* Show the mobile-only photo image */
  .about-photo-mobile {
    display: block !important;
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    margin: 0;
  }

  .about-photo-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: grayscale(8%) brightness(0.9);
  }

  /* Soft fade at bottom of mobile photo so it blends to dark */
  .about-photo-mobile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #0d0c0b 100%);
    pointer-events: none;
  }

  /* Content sits below photo */
  .about-content {
    padding: 1.25rem 1rem 2rem !important;
    text-align: start !important;
    align-items: flex-start !important;
  }
  html[dir="rtl"] .about-content {
    text-align: right !important;
    align-items: flex-end !important;
  }

  .about-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .about-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }
  .about-text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 1.25rem !important;
  }

  /* === LOAD MORE / VIEW ALL BUTTONS === */
  .load-more-wrap {
    flex-direction: column;
    gap: 0.5rem !important;
    width: 100%;
  }
  .load-more-wrap .btn-gold,
  .load-more-wrap .btn-outline {
    width: auto;
    justify-content: center;
  }

  /* === FOOTER === */
  .footer-main {
    flex-direction: column !important;
    gap: 1.25rem !important;
    text-align: center;
  }
  .footer-nav {
    width: 100%;
  }
  .footer-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }
  .footer-bottom {
    text-align: center;
    padding: 1rem 0 !important;
  }
  .footer-widgets {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* === SIDEBARS — full width below content === */
  .post-layout.has-sidebar {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .post-sidebar {
    position: static !important;
  }

  /* === PAGE TITLES === */
  .page-default .page-title,
  .single-post-page .post-title,
  .news-archive .archive-title,
  .episode-archive .archive-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  /* === SUBSCRIBE PAGE === */
  .subscribe-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .subscribe-card {
    padding: 1.25rem 1rem !important;
  }

  /* === CONTACT PAGE === */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .contact-form .form-row-2col {
    grid-template-columns: 1fr !important;
  }
  .contact-form-wrap {
    padding: 1.25rem !important;
  }

  /* === SCROLL TO TOP === */
  .scroll-to-top {
    bottom: 16px !important;
    width: 40px !important;
    height: 40px !important;
  }
  html:not([dir="rtl"]) .scroll-to-top { right: 16px !important; }
  html[dir="rtl"] .scroll-to-top { left: 16px !important; right: auto !important; }
}


/* ═══ SMALL MOBILE — 480px and below ══════════════════════════════════════ */
@media (max-width: 480px) {

  /* Container even tighter */
  .container {
    padding-inline: 0.875rem;
  }

  /* Hero very small */
  .hero-section {
    min-height: 260px !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem) !important;
  }
  .hero-subtitle {
    font-size: 0.85rem !important;
  }

  /* Section pads tighter */
  .section-pad {
    padding-block: 2rem !important;
  }

  /* Featured */
  .featured-episode-title {
    font-size: 1.05rem !important;
  }

  /* Subscribe — single column on tiny screens */
  .subscribe-grid {
    grid-template-columns: 1fr !important;
  }

  /* Trending strip thumbs smaller */
  .trending-strip .strip-thumb {
    width: 110px !important;
  }

  /* About photo height smaller on tiny screens */
  .about-photo-mobile {
    height: 220px !important;
  }

  /* Topic badges smaller */
  .topic-badge {
    font-size: 10px !important;
    padding: 3px 9px !important;
  }

  /* Card play icons smaller */
  .card-play-icon {
    width: 40px !important;
    height: 40px !important;
  }
}


/* ═══ LANDSCAPE PHONES — keep hero compact ═════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 240px !important;
    padding: 1.5rem 0 !important;
  }
  .hero-title {
    font-size: 2rem !important;
  }
}


/* ═══ PREVENT HORIZONTAL OVERFLOW EVERYWHERE ═══════════════════════════════ */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  img, video, iframe {
    max-width: 100%;
  }
}



/* ════════════════════════════════════════════════════════════════════════════
   CROSS-BROWSER COMPATIBILITY — Make site look identical in all browsers
   Targets: Samsung Browser, Chrome (all platforms), Safari (iOS/macOS),
            Firefox, Edge, Opera, UC Browser, Brave, Vivaldi
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Force native dark theme — prevents any browser from auto-darkening ───── */
html, body {
  color-scheme: dark;
  background-color: #050506;
}

/* ── Safari iOS — fix tap highlights and touch issues ──────────────────────── */
* {
  -webkit-tap-highlight-color: rgba(212, 160, 67, 0.2);
}

a, button, .episode-card, .news-card, [role="button"] {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* ── Firefox — scrollbar styling ───────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* ── Safari — fix backdrop-filter fallback (older versions) ───────────────── */
.site-header {
  background: rgba(5, 5, 6, 0.92);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .site-header {
    background: rgba(5, 5, 6, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

/* ── Force vendor prefixes for mask-image (Safari, older Samsung) ──────────── */
@supports not ((mask-image: linear-gradient(to right, transparent, black)) or (-webkit-mask-image: linear-gradient(to right, transparent, black))) {
  /* Fallback for browsers without mask-image - just hide the gradient blend */
  .about-section.has-photo::before {
    opacity: 0.85;
  }
}

/* ── Force solid background fallbacks for translucent surfaces ─────────────── */
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: #0a0a0c !important; }
  .scroll-to-top { background: var(--color-gold) !important; }
}

/* ── Edge / IE — flex gap fallback ─────────────────────────────────────────── */
@supports not (gap: 1rem) {
  .episodes-grid > * { margin: 0.5rem; }
  .trending-tags > * { margin-right: 8px; margin-bottom: 8px; }
}

/* ── iOS Safari — fix 100vh issue (address bar takes space) ────────────────── */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: 90vh;
    min-height: 90dvh; /* dynamic viewport height when supported */
  }
}

/* ── Disable Samsung Browser's text reflow / font scaling ──────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── Force consistent font rendering across all browsers ──────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Fix image rendering on Samsung devices (sometimes too sharp/contrasty) ── */
img {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

/* ── Force all images to inherit dark theme color filters ──────────────────── */
@media (forced-colors: active) {
  /* High contrast mode (Windows, Samsung accessibility) — don't break design */
  .episode-card,
  .news-card,
  .featured-episode {
    forced-color-adjust: none;
  }
}

/* ── Firefox: fix inline-flex baseline alignment ───────────────────────────── */
@-moz-document url-prefix() {
  .btn-gold,
  .btn-outline,
  .header-cta {
    line-height: 1;
  }
}

/* ── Safari: fix sticky position with overflow ─────────────────────────────── */
.site-header {
  position: -webkit-sticky;
  position: sticky;
}

/* ── Print styles — for users who print pages ──────────────────────────────── */
@media print {
  .site-header,
  .scroll-to-top,
  .breaking-ticker,
  .footer-nav,
  .related-strip,
  .trending-section,
  .scroll-to-top {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .episode-title,
  .post-title,
  .page-title {
    color: black !important;
  }
}

/* ── Reduce motion for users who prefer it (accessibility) ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Prevent color shifts from the noise overlay on Samsung/Chrome Android ─── */
body::before {
  /* Force this to use simple opacity, not blend modes if browser doesn't support them */
  mix-blend-mode: overlay;
}
@supports not (mix-blend-mode: overlay) {
  body::before {
    display: none;
  }
}

/* ── Safari iOS — fix font rendering on retina ─────────────────────────────── */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}



/* ════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES — Header, layout, alignment, trending, gaps
   These are the FINAL mobile overrides — placed at end to win specificity
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ═══ HEADER FIXES — proper layout, no overlapping ═══════════════════════ */
  .site-header {
    padding: 0 !important;
  }

  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    height: 56px !important;
    padding: 0 1rem !important;
    flex-wrap: nowrap !important;
  }

  /* Logo — keep visible but compact */
  .site-logo,
  .site-logo a {
    flex-shrink: 0;
  }
  .site-logo img,
  .footer-site-name,
  .site-logo .footer-site-name {
    max-height: 30px !important;
    width: auto !important;
  }

  /* Hide nav menu on mobile - hamburger handles it */
  .nav-menu {
    display: none !important;
  }
  .nav-menu.is-open {
    display: flex !important;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #050506;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
  }

  /* WhatsApp CTA - styled in dedicated block below at end of file */

  /* Hamburger menu button - visible & properly sized */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .menu-toggle-bar {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--color-text-1) !important;
    border-radius: 2px !important;
  }

  /* ═══ BREAKING TICKER — separate from header, full width ════════════════ */
  .breaking-ticker {
    width: 100% !important;
    overflow: hidden !important;
    font-size: 11px !important;
    padding: 6px 0 !important;
  }
  .ticker-badge {
    padding: 4px 10px !important;
    font-size: 10px !important;
    flex-shrink: 0 !important;
  }

  /* ═══ HERO SECTION FIXES ═══════════════════════════════════════════════ */
  .hero-section {
    min-height: 280px !important;
    padding: 2.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-content {
    text-align: center !important;
    width: 100% !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
  .hero-cta {
    padding: 10px 18px !important;
    font-size: 13px !important;
    margin: 0 auto !important;
  }
  /* Hero hero overlay - stronger contrast on mobile */
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.5), rgba(10,10,10,0.95)) !important;
  }

  /* ═══ EPISODE TABS — horizontal scroll, no wrap ═════════════════════════ */
  .episode-tabs {
    display: flex !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding-bottom: 4px !important;
    margin-bottom: 1rem !important;
  }
  .episode-tabs::-webkit-scrollbar { display: none !important; }
  .episode-tab {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* ═══ FEATURED EPISODE — proper RTL alignment ═════════════════════════ */
  .featured-episode {
    margin-bottom: 1.5rem !important;
  }
  html[dir="rtl"] .featured-episode-info,
  html[dir="rtl"] .featured-episode-title,
  html[dir="rtl"] .featured-episode-excerpt,
  html[dir="rtl"] .featured-episode-meta {
    text-align: right !important;
    direction: rtl !important;
  }
  html[dir="rtl"] .featured-episode-topics {
    justify-content: flex-end !important;
  }
  html[dir="rtl"] .featured-player-bar {
    flex-direction: row-reverse !important;
  }

  /* ═══ EPISODE CARDS — proper RTL alignment for cards with mixed content ═ */
  .episode-card {
    direction: rtl;
  }
  html:not([dir="rtl"]) .episode-card {
    direction: ltr;
  }

  /* English titles inside cards stay LTR for readability */
  .episode-card-title,
  .news-card-title {
    text-align: start !important;
  }

  /* But Pashto/RTL meta info goes right */
  html[dir="rtl"] .card-meta,
  html[dir="rtl"] .news-card-meta {
    direction: rtl !important;
    justify-content: flex-end !important;
  }

  /* Topic label aligned to the start (which is right in RTL) */
  html[dir="rtl"] .card-topics {
    justify-content: flex-start !important;
  }

  /* ═══ TRENDING TAGS — 3 columns max on mobile ══════════════════════════ */
  .trending-tags {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 1rem !important;
  }
  .trending-tag {
    padding: 7px 10px !important;
    font-size: 11px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* ═══ TRENDING STRIP — proper horizontal scroll ════════════════════════ */
  .trending-strip {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
  }
  .trending-strip::-webkit-scrollbar { display: none !important; }
  .trending-strip-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 0 1rem !important;
    width: max-content !important;
  }
  .trending-strip .strip-item {
    flex-shrink: 0 !important;
    width: 130px !important;
  }
  .trending-strip .strip-thumb {
    width: 130px !important;
    height: 130px !important;
  }

  /* ═══ FIX HUGE EMPTY GAP BEFORE BUTTONS ════════════════════════════════ */
  /* Prevent any leftover spacing/padding from creating big empty zones */
  .latest-episodes-section .episodes-grid {
    margin-bottom: 0 !important;
  }
  .latest-episodes-section .load-more-wrap {
    margin-top: 1.5rem !important;
    padding: 0 !important;
  }
  .latest-episodes-section,
  .latest-episodes-section.section-pad {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Load more buttons stack and centered */
  .load-more-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .load-more-wrap .btn-gold,
  .load-more-wrap .btn-outline {
    width: auto !important;
    min-width: 200px !important;
    justify-content: center !important;
  }

  /* ═══ TRENDING SECTION SPACING ═════════════════════════════════════════ */
  .trending-section,
  .trending-section.section-pad {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .trending-section .section-header {
    margin-bottom: 0.875rem !important;
  }

  /* ═══ SECTION HEADERS — proper RTL stacking ════════════════════════════ */
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  /* RTL: flex-start in column flex = right side (start of horizontal axis) */
  html[dir="rtl"] .section-header {
    align-items: flex-start !important;
  }
  /* Force section title to span width and align right for RTL */
  html[dir="rtl"] .section-title {
    width: 100% !important;
    text-align: right !important;
  }
  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
    margin: 0 !important;
  }

  /* ═══ ABOUT SECTION POLISH ═════════════════════════════════════════════ */
  .about-photo-mobile img {
    object-position: center 25% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMALL MOBILE — 480px and below
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Header even tighter */
  .header-inner {
    padding: 0 0.75rem !important;
    gap: 0.5rem !important;
  }
  .site-logo img,
  .site-logo .footer-site-name {
    max-height: 26px !important;
  }

  /* Hero compact */
  .hero-section {
    min-height: 240px !important;
  }
  .hero-title {
    font-size: clamp(1.5rem, 9vw, 2rem) !important;
  }

  /* Trending tags - 2 columns on tiny screens */
  .trending-tags {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Trending strip - smaller thumbs */
  .trending-strip .strip-item,
  .trending-strip .strip-thumb {
    width: 110px !important;
  }
  .trending-strip .strip-thumb {
    height: 110px !important;
  }

  /* Tabs slightly smaller */
  .episode-tab {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
}



/* ════════════════════════════════════════════════════════════════════════════
   HEADER ORDER — MOBILE (RTL Pashto)
   Custom layout: [Logo on LEFT] [WhatsApp] ............. [Hamburger on RIGHT]
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  html[dir="rtl"] .header-inner {
    flex-direction: row !important;
  }

  /* Hamburger on FAR RIGHT (start of RTL flex = right side) */
  html[dir="rtl"] .menu-toggle {
    order: -1 !important;          /* First in flex = right side in RTL */
    margin-left: auto !important;  /* Push to right edge */
    margin-right: 0 !important;
  }

  /* WhatsApp button - second from right */
  html[dir="rtl"] .header-cta {
    order: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Nav menu - middle (hidden on mobile but keep order) */
  html[dir="rtl"] .main-nav,
  html[dir="rtl"] #site-navigation {
    order: 1 !important;
  }

  /* Logo - last in flex = LEFT side in RTL */
  html[dir="rtl"] .site-branding {
    order: 2 !important;
    margin-left: 0 !important;
    margin-right: auto !important;  /* Push to left edge */
  }
}

/* Desktop RTL — keep existing layout */
@media (min-width: 769px) {
  html[dir="rtl"] .site-branding {
    order: 0;
    margin-left: auto;
  }
}



/* ════════════════════════════════════════════════════════════════════════════
   FINAL HEADER FIXES — Mobile menu + WhatsApp button
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ═══ MOBILE MENU PANEL — JS toggles .main-nav.is-open ═══════════════════ */

  /* Hide nav by default on mobile */
  .main-nav {
    display: none !important;
  }

  /* When hamburger clicked, JS adds .is-open class to .main-nav */
  .main-nav.is-open {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #050506 !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    z-index: 100 !important;
    padding: 1rem !important;
    animation: slideDown 0.2s ease-out !important;
  }

  /* The nav menu UL inside the open nav */
  .main-nav.is-open .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-nav.is-open .nav-menu li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .main-nav.is-open .nav-menu li:last-child {
    border-bottom: none !important;
  }

  .main-nav.is-open .nav-menu a {
    display: block !important;
    padding: 0.875rem 0.5rem !important;
    font-size: 15px !important;
    color: var(--color-text-1) !important;
    transition: color 0.2s ease !important;
  }

  .main-nav.is-open .nav-menu a:hover,
  .main-nav.is-open .nav-menu a:focus {
    color: var(--color-gold) !important;
  }

  /* RTL: align menu items to right */
  html[dir="rtl"] .main-nav.is-open .nav-menu {
    text-align: right !important;
  }

  /* Hide the dotted underline on hover for mobile menu */
  .main-nav.is-open .nav-menu a::after {
    display: none !important;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }


  /* ═══ WHATSAPP BUTTON — text + icon, like desktop but smaller ════════════ */
  .header-cta {
    padding: 7px 12px !important;
    height: auto !important;
    width: auto !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  /* Show the text on mobile (override earlier hide rule) */
  .header-cta span,
  .header-cta-text {
    display: inline !important;
    white-space: nowrap !important;
  }

  /* Smaller WhatsApp icon on mobile */
  .header-cta svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }
}


/* ═══ Very small phones (≤380px) — hide text to prevent crowding ════════════ */
@media (max-width: 380px) {
  .header-cta-text,
  .header-cta span {
    display: none !important;
  }
  .header-cta {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    gap: 0 !important;
  }
  .header-cta svg {
    width: 16px !important;
    height: 16px !important;
  }
}


/* ════════════════════════════════════════════════════════════════════════════
   FOOTER — Tagline + Mobile Layout (Option 4 minimal)
   Tagline: shown only on mobile under logo
   Desktop: untouched (uses original .footer-main flex layout)
   Mobile: stacked column with inline-dot menu
   ════════════════════════════════════════════════════════════════════════════ */

/* Hide tagline on desktop */
@media (min-width: 769px) {
  .footer-tagline {
    display: none !important;
  }
}

/* ═══ MOBILE-ONLY footer redesign ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Footer-main: stack vertically as column, centered */
  .footer-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--color-border) !important;
    margin-bottom: 1.25rem !important;
  }

  /* Brand block: logo + tagline */
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .footer-brand .footer-site-name {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
  }

  .footer-tagline {
    display: block !important;
    font-size: 0.85rem !important;
    color: var(--color-text-3) !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  /* Menu: inline horizontal with dots between items */
  .footer-nav {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .footer-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-menu li {
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Dot separator */
  .footer-menu li:not(:last-child)::after {
    content: '·' !important;
    margin: 0 0.6rem !important;
    color: var(--color-text-4) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .footer-menu a {
    font-size: 0.85rem !important;
    padding: 4px 0 !important;
    color: var(--color-text-2) !important;
  }

  .footer-menu a:hover {
    color: var(--color-gold) !important;
  }

  /* WhatsApp button */
  .btn-whatsapp {
    padding: 9px 16px !important;
    font-size: 12px !important;
  }

  /* Copyright */
  .footer-bottom {
    text-align: center !important;
    padding-top: 0 !important;
  }
  .footer-copyright {
    font-size: 0.75rem !important;
    color: var(--color-text-4) !important;
  }
}

/* Very small screens (≤480px) */
@media (max-width: 480px) {
  .footer-menu li:not(:last-child)::after {
    margin: 0 0.5rem !important;
  }
  .footer-menu a {
    font-size: 0.8rem !important;
  }
}