/*
Theme Name: Nepal Samachar - News Theme
Theme URI: https://adhikarivivek.com.np
Author: Vivek Adhikari
Author URI: https://adhikarivivek.com.np
Description: Version 2. A powerful, fast, and feature-rich news theme designed for Nepali online news portals, journalists, and media houses.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nepal-samachar
Tags: news, blog, magazine, responsive, custom-colors, custom-menu, featured-images, post-formats, rtl-language-support, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  —  JanataPost Brand Palette
   Primary   : #1E4F9B  (royal blue)
   Secondary : #3038A8  (indigo)
   Accent    : #DC143C  (crimson — breaking news)
   Background: #FFFFFF  (pure white)
   Section Bg: #F5F7FA  (cool grey)
   Text      : #111827  (near-black)
   ============================================================ */
:root {
  /* ── Brand ─────────────────────────────────────── */
  --color-primary:      #1E40AF;   /* Header Royal Blue */
  --color-primary-dark: #1E3A8A;   /* Darker blue       */
  --color-primary-light:#3B82F6;   /* Lighter blue      */
  --color-secondary:    #17358F;   /* Menu Navy Blue    */
  --color-accent:       #F59E0B;   /* Amber highlight   */
  --color-button:       #2563EB;   /* Button vivid blue */
  --color-button-hover: #1D4ED8;   /* Button hover blue */

  /* ── Status / Editorial ────────────────────────── */
  --color-breaking:     #F59E0B;   /* Breaking News Amber */
  --color-trending:     #E85D04;   /* Orange            */

  /* ── Surfaces ──────────────────────────────────── */
  --color-bg:           #F8FAFC;   /* Slate Background  */
  --color-surface:      #FFFFFF;   /* White Card Surface */
  --color-border:       #E2E8F0;   /* Slate dividers    */

  /* ── Typography ────────────────────────────────── */
  --color-text:         #111827;   /* Near-black        */
  --color-text-muted:   #64748B;   /* Muted slate-grey  */

  /* ── Category accent palette (complement to blue) ─ */
  --cat-1: #1E40AF;   /* primary blue     */
  --cat-2: #F59E0B;   /* amber            */
  --cat-3: #059669;   /* emerald          */
  --cat-4: #7C3AED;   /* violet           */
  --cat-5: #D97706;   /* amber dark       */
  --cat-6: #0891B2;   /* cyan             */

  /* ── Typography ────────────────────────────────── */
  --font-heading: 'Tiro Devanagari Nepali', 'Noto Serif Devanagari', Georgia, serif;
  --font-body:    'Mukta', 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Shadows ────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(30, 79, 155, 0.06);
  --shadow-sm: 0 4px 6px -1px rgba(30, 79, 155, 0.08), 0 2px 4px -1px rgba(30, 79, 155, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(30, 79, 155, 0.10), 0 4px 6px -2px rgba(30, 79, 155, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(30, 79, 155, 0.12), 0 10px 10px -5px rgba(30, 79, 155, 0.05);

  /* ── Shape / Motion ─────────────────────────────── */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container:  1240px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 20px);
  width: 100%;
}

/* Section title with colored left bar */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--section-color, var(--color-primary));
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title .view-all {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}

.section-title .view-all:hover {
  background: var(--section-color, var(--color-primary));
  border-color: transparent;
  color: #fff;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.4;
}

.badge-category {
  background: var(--color-primary);
  color: #fff;
}

.badge-breaking {
  background: var(--color-breaking);
  color: #fff;
  animation: blink-bg 1.4s infinite;
}

@keyframes blink-bg {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.75;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ============================================================
   BREAKING NEWS BAR
   ============================================================ */
.breaking-news-bar {
  background: var(--color-breaking);
  color: #111827;
  padding: 9px 0;
  overflow: hidden;
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.breaking-label {
  background: #111827;
  color: #fff;
  font-family: 'Hind', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
  margin-right: 18px;
  box-shadow: var(--shadow-xs);
}

.breaking-ticker-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.breaking-ticker {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
}

/* Speed up ticker on mobile — narrow viewport means less text visible */
@media (max-width: 768px) {
  .breaking-ticker {
    animation-duration: 18s;
  }
}

.breaking-ticker a {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 70px;
  transition: opacity var(--transition);
}

.breaking-ticker a::before {
  content: '●';
  margin-right: 8px;
  font-size: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
}

.breaking-ticker a:hover {
  opacity: 0.85;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #0f172a;
  /* Fallback */
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  opacity: 0.9;
}

.top-weather i {
  font-size: 0.7rem;
  color: var(--color-accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 0.78rem;
  transition: all var(--transition);
}

.top-social a:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2px;
  margin-top: 6px;
  font-weight: 500;
  opacity: 0.9;
}

.header-ad {
  flex: 1;
  min-width: 0;
  max-width: 728px;
  height: 90px;
  background: #f8f8f8;
  border: 1px dashed #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Header Search - Expandable */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.search-toggle {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}

.search-toggle:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
}

.search-expandable {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.search-expandable.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.search-input-wrapper {
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  padding: 3px 5px 3px 18px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.search-input-wrapper input {
  border: none;
  background: none;
  padding: 10px 0;
  width: 100%;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.search-submit-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: var(--color-primary-dark);
}

/* Animations */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-button);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background: var(--color-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--color-secondary);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-menu>li {
  position: relative;
}

.main-menu>li>a {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Hind', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.main-menu>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.main-menu>li:hover>a {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-menu>li>a:hover::after,
.main-menu>li.current-menu-item>a::after {
  width: 100%;
}

.main-menu>li.current-menu-item>a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown */
.main-menu .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #fff;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 999;
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 var(--radius) var(--radius);
}

.main-menu li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
  font-weight: 500;
}

.main-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.main-menu .sub-menu li a:hover {
  background: #fef5f5;
  color: var(--color-primary);
  padding-left: 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 14px 18px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.nav-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 5px;
  white-space: nowrap;
  font-weight: 500;
}

/* ============================================================
   TOP BAR MENU
   ============================================================ */
.topbar-menu {
  display: flex;
  align-items: center;
}

.topbar-menu-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-menu-list li {
  position: relative;
}

.topbar-menu-list li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.topbar-menu-list li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-menu-list li.current-menu-item a {
  color: var(--color-accent);
}

/* ============================================================
   FOOTER MENU
   ============================================================ */
.footer-menu-wrap {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li a {
  color: #9aa0a8;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.03);
}

.footer-menu li a:hover {
  color: #fff;
  background: var(--color-primary);
}

/* ============================================================
   TOP BAR (existing styles)
   ============================================================ */
.top-bar {
  background: #0f172a;
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  opacity: 0.9;
}

.top-weather i {
  font-size: 0.7rem;
  color: var(--color-accent);
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 0.78rem;
  transition: all var(--transition);
}

.top-social a:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar sticky offset adapts to actual header height ── */
@media (min-width: 961px) {
  .sidebar {
    position: sticky;
    top: calc(var(--header-h, 90px) + 12px);
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(320px, 38vw, 440px);
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

.hero-secondary {
  position: relative;
  overflow: hidden;
}

.hero-small {
  position: relative;
  overflow: hidden;
}

.hero-main img,
.hero-secondary img,
.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-main:hover img,
.hero-secondary:hover img,
.hero-small:hover img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(15, 23, 42, 0.7) 40%,
      rgba(15, 23, 42, 0.4) 60%,
      rgba(15, 23, 42, 0) 100%);
  padding: 32px 24px 24px;
  color: #fff;
}

.hero-overlay .badge {
  margin-bottom: 8px;
}

.hero-main .hero-overlay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-secondary .hero-overlay h3,
.hero-small .hero-overlay h3 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-meta {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   NEWS CARD — consistent aspect ratio, clamped excerpt
   ============================================================ */
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* Fixed aspect ratio — eliminates uneven thumbnail sizes */
.news-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
}

.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.06);
}

.news-card-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.news-card-body {
  padding: 13px 15px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.42;
  margin-bottom: 8px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover {
  color: var(--color-primary);
}

.news-card-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-meta i {
  font-size: 0.66rem;
}

/* Clamped excerpt — 2 lines max */
.news-card-excerpt {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   NEWS GRIDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ============================================================
   LIST STYLE NEWS
   ============================================================ */
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-list-thumb {
  width: 84px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-body {
  flex: 1;
  min-width: 0;
}

.news-list-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-title a:hover {
  color: var(--color-primary);
}

.news-list-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 8px;
}

/* ============================================================
   TRENDING — with thumbnails
   ============================================================ */
.trending-section {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
}

.trending-header {
  background: var(--color-trending);
  color: #fff;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.trending-list {
  padding: 4px 18px 10px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #D8DCE2;
  min-width: 30px;
  text-align: center;
  line-height: 1;
}

.trending-item:nth-child(1) .trending-num {
  color: var(--color-primary);
}

.trending-item:nth-child(2) .trending-num {
  color: var(--color-accent);
}

.trending-item:nth-child(3) .trending-num {
  color: #7f8c8d;
}

.trending-thumb {
  width: 56px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}

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

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-title a:hover {
  color: var(--color-primary);
}

.trending-meta {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* ============================================================
   CATEGORY BLOCKS — unique color per section
   ============================================================ */
.category-block {
  margin-bottom: 32px;
}

/* Auto-assign accent colors via nth-child */
.category-block:nth-child(1) {
  --section-color: var(--cat-1);
}

.category-block:nth-child(2) {
  --section-color: var(--cat-2);
}

.category-block:nth-child(3) {
  --section-color: var(--cat-3);
}

.category-block:nth-child(4) {
  --section-color: var(--cat-4);
}

.category-block:nth-child(5) {
  --section-color: var(--cat-5);
}

.category-block:nth-child(6) {
  --section-color: var(--cat-6);
}

/* Big card + list side-by-side */
.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.category-big-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-big-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-big-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg);
}

.category-big-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-big-card:hover .thumb img {
  transform: scale(1.05);
}

.category-big-card .body {
  padding: 14px 16px 16px;
}

.category-big-card .body .badge {
  margin-bottom: 8px;
}

.category-big-card .body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 8px;
}

.category-big-card .body h3 a:hover {
  color: var(--color-primary);
}

.category-big-card .body .meta {
  font-size: 0.71rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
}

.category-big-card .body .excerpt {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-list-side {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   AD ZONES
   ============================================================ */
.ad-zone {
  background: #f9f9f9;
  border: 1px dashed #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5c5c5;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.ad-zone-leaderboard {
  width: 100%;
  min-height: 90px;
  margin-bottom: 22px;
}

.ad-zone-sidebar {
  width: 100%;
  min-height: 250px;
  margin-bottom: 24px;
}

.ad-zone-half-page {
  width: 100%;
  min-height: 600px;
  margin-bottom: 24px;
}

/* Content Ads (Before/After Article) */
.content-ad-zone {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.before-content-ad {
  margin-bottom: 30px;
}

.after-content-ad {
  margin-top: 30px;
  margin-bottom: 40px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-ad-zone {
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
}

.widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  padding: 12px 18px;
  border-bottom: 2px solid var(--color-bg);
  background: #fff;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
}

.widget-body {
  padding: 18px;
}

.widget-body>*:last-child {
  margin-bottom: 0;
}

.ad-placeholder {
  background: var(--color-bg);
  border: 1px dashed #d0d0d0;
  color: #bbb;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 250px;
}

.ad-placeholder-tall {
  min-height: 600px;
}

/* Admin-only placeholder label */
.ad-admin-placeholder {
  font-size: 0.7rem;
  font-weight: 700;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-admin-badge {
  background: #f0f0f0;
  color: #888;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  border: 1px solid #e0e0e0;
}

.widget {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
}

.widget-header {
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  background: #fafafa;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
}

.widget-title i {
  color: var(--color-primary);
  font-size: 0.85rem;
}

.widget-body {
  padding: 16px;
}

.widget-body>*:last-child {
  margin-bottom: 0;
}

/* Category list in sidebar — visually filled */
.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.category-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-list a {
  transition: color var(--transition);
  font-weight: 600;
}

.category-list a:hover {
  color: var(--color-primary);
}

.category-count {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* Standard WP Widgets - Recent Posts, Comments, etc. */
.sidebar ul,
.sidebar .widget ul,
.sidebar .widget-body ul,
.sidebar .widget_block ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar li,
.sidebar .widget li,
.sidebar .widget-body ul li,
.sidebar .widget_block ul li {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid var(--color-bg) !important;
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
  transition: all var(--transition) !important;
  list-style: none !important;
}

.sidebar li:last-child,
.sidebar .widget li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.sidebar li a,
.sidebar .widget li a {
  font-weight: 700 !important;
  color: var(--color-text) !important;
  display: block !important;
  transition: all var(--transition) !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  font-size: 0.92rem !important;
}

.sidebar li a:hover,
.sidebar .widget li a:hover {
  color: var(--color-primary) !important;
}

/* Sidebar Search Widget - Forced Single Line */
.sidebar .widget_search form,
.sidebar .search-form,
.sidebar .wp-block-search__inside-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 0 !important;
  margin-top: 5px !important;
}

.sidebar .search-field,
.sidebar .wp-block-search__input,
.sidebar input[type="search"],
.sidebar input[type="text"] {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: 1px solid var(--color-border) !important;
  border-right: none !important;
  border-radius: var(--radius) 0 0 var(--radius) !important;
  font-size: 0.9rem !important;
  outline: none !important;
  background: #fff !important;
  margin: 0 !important;
  height: 48px !important;
}

.sidebar label .screen-reader-text,
.sidebar .wp-block-search__label {
  display: none !important;
}

.sidebar .search-submit,
.sidebar .wp-block-search__button,
.sidebar input[type="submit"],
.sidebar button[type="submit"] {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 20px !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  transition: background var(--transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  align-self: flex-start !important;
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--transition);
}

.tag-item:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.post-navigation {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
}

.post-nav-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.post-nav-item:only-child {
  grid-column: span 2;
}

.post-nav-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
}

.post-nav-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-nav-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.post-nav-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-nav-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-nav-next .post-nav-content {
  flex-direction: row-reverse;
}

.post-nav-item:hover .post-nav-thumb img {
  transform: scale(1.1);
}

.post-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (max-width: 600px) {
  .post-nav-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SINGLE POST LAYOUT & TYPOGRAPHY
   ============================================================ */

/* Pre-header and category badges */
.article-pre-header {
  max-width: 720px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.post-category-trail {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.category-badge {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-xs);
}

.category-badge:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Live Breaking News Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 29, 72, 0.08);
  color: var(--color-breaking);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-breaking);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
}

/* Article Header */
.single-post-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: left;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-secondary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1.9rem;
    line-height: 1.35;
  }
}

/* Scannable Meta Section */
.post-meta-section {
  max-width: 720px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.post-author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-secondary);
}

.meta-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.meta-sub span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Social Sharing Buttons (Meta Right & Bottom) */
.social-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 0.95;
}

.share-facebook {
  background-color: #1877F2;
}
.share-whatsapp {
  background-color: #25D366;
}
.share-viber {
  background-color: #7360F2;
}

/* Featured Image & Wide elements */
.post-featured-image {
  margin: 32px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.post-featured-image.alignwide {
  max-width: 1040px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.post-featured-image:hover img {
  transform: scale(1.02);
}

.wp-element-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  padding: 0 16px;
}

/* Ad Spaces */
.content-ad-zone {
  max-width: 728px;
  margin: 32px auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ------------------------------------------------------------
   DYNAMIC EDITORIAL READING COLUMN (max-width: 680px)
   ------------------------------------------------------------ */
.post-content {
  width: 100%;
  margin: 0 auto;
}

/* All standard direct children constrained to 680px */
.post-content > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Text content styling - let WordPress handle margins */
.post-content > p,
.post-content > ul,
.post-content > ol,
.post-content > blockquote,
.post-content > pre,
.post-content > figure,
.post-content > table {
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6; /* optimized for Devanagari */
  color: var(--color-text);
}

/* Reset headings inside content */
.post-content > h2,
.post-content > h3,
.post-content > h4,
.post-content > h5,
.post-content > h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.post-content > h2 {
  font-size: 1.85rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.post-content > h3 {
  font-size: 1.45rem;
}

.post-content > h4 {
  font-size: 1.25rem;
}

/* Links inside post content */
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition);
}

.post-content a:hover {
  color: var(--color-primary-dark);
}

/* Lists */
.post-content > ul,
.post-content > ol {
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.9;
}

/* Breakout Elements */
/* Blockquotes: Max-width 800px */
.post-content > blockquote {
  max-width: 800px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  border-left: 5px solid var(--color-primary);
  padding: 24px 32px;
  background: #FFF5F5;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.post-content > blockquote p {
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Images & Figures: Alignwide (1000px) and Alignfull (100vw) */
.post-content > .alignwide,
.post-content > .wp-block-image.alignwide {
  max-width: 1000px;
}

.post-content > .alignfull,
.post-content > .wp-block-image.alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.post-content > .alignfull img,
.post-content > .wp-block-image.alignfull img {
  border-radius: 0;
  width: 100%;
}

.post-content img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-sm);
}

/* Tag Container styling */
.post-tags-container {
  max-width: 720px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.tags-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: #f1f5f9;
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.tag-item:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Bottom Share section */
.post-bottom-share {
  max-width: 720px;
  margin: 32px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.share-label {
  font-weight: 700;
  color: var(--color-secondary);
}

/* Author Bio Card */
.post-author-bio-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.post-author-bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--color-primary);
}

.author-bio-avatar {
  flex-shrink: 0;
}

.author-bio-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.author-bio-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-bio-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
}

.author-bio-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.author-bio-name a {
  color: var(--color-secondary);
  transition: color var(--transition);
}

.author-bio-name a:hover {
  color: var(--color-primary);
}

.author-bio-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .post-author-bio-card {
    flex-direction: column;
    padding: 24px;
    align-items: center;
    text-align: center;
  }
  .post-author-bio-card::before {
    width: 100%;
    height: 5px;
    left: 0;
    top: 0;
  }
}

/* Post Navigation (Next/Prev Cards) */
.post-navigation-card {
  max-width: 720px;
  margin: 40px auto;
}

.post-nav-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .post-nav-wrapper {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  min-height: 110px;
  justify-content: center;
}

.nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.nav-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.nav-card:hover .nav-meta-label {
  color: var(--color-primary);
}

.nav-card-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-card-prev .nav-card-body {
  flex-direction: row;
}

.nav-card-next .nav-card-body {
  flex-direction: row-reverse;
  text-align: right;
}

.nav-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-thumb img {
  transform: scale(1.1);
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Stories grid */
.related-stories-section {
  max-width: 1000px;
  margin: 60px auto;
  padding-top: 40px;
  border-top: 2px solid var(--color-border);
}

.related-stories-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--color-secondary);
  border-left: 5px solid var(--color-primary);
  padding-left: 14px;
  line-height: 1.2;
}

.news-grid-col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .news-grid-col-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Performance styling: below the fold */
.content-visibility-lazy {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Comments Container styling wrapper */
.post-comments-section {
  max-width: 720px;
  margin: 40px auto 60px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   MOBILE STICKY Bottom Action Bar & Reading Progress Bar
   ============================================================ */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Hidden on desktop */
  padding-bottom: env(safe-area-inset-bottom);
}

/* Show when screen is smaller than 768px */
@media (max-width: 768px) {
  .mobile-sticky-action-bar {
    display: block;
    transform: translateY(0); /* display by default on mobile */
  }
}

.reading-progress-container {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  position: absolute;
  top: 0;
  left: 0;
}

.reading-progress-bar {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.1s ease-out;
}

.sticky-action-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  gap: 12px;
}

.sticky-meta-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.sticky-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  border: none;
}

.sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sticky-facebook {
  background-color: #1877F2;
}

.sticky-whatsapp {
  background-color: #25D366;
}

.sticky-comments-jump {
  background-color: var(--color-secondary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 40px;
}

.comments-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.comment-form textarea {
  height: 120px;
  resize: vertical;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition);
  background: #fff;
}

.pagination a:hover,
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
nav.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  align-items: center;
}

nav.breadcrumb li+li::before {
  content: '›';
  margin-right: 6px;
}

nav.breadcrumb li a {
  color: var(--color-primary);
}

nav.breadcrumb li a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   SITE FOOTER (Improved Design)
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0f1823 100%);
  color: #e8e8e8;
  padding: 60px 0 0;
  margin-top: 50px;
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}


/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.footer-section h3::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--color-primary);
  max-width: 40px;
}

.footer-section a,
.footer-section span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8b8b8;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-section a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

.footer-section a i,
.footer-section span i {
  width: 18px;
  text-align: center;
  opacity: 0.7;
  color: var(--color-primary);
}



/* Footer Ad Zone */
.footer-footer-ad {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 40px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
}

.footer-bottom-content {
  text-align: center;
}

.footer-bottom-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.12);
  color: var(--color-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(192, 57, 43, 0.4);
}

.footer-copyright {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.8;
}

.footer-copyright strong {
  color: #fff;
  font-size: 1.1rem;
}


/* ============================================================
   CATEGORY ARCHIVE HEADER
   ============================================================ */
.category-header {
  background: var(--color-secondary);
  color: #fff;
  padding: 22px 0;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--color-primary);
}

.category-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .category-header {
    padding: 18px 0;
    text-align: center;
  }

  .category-header .container {
    flex-direction: column;
    gap: 8px;
  }

  .category-header h1 {
    font-size: 1.4rem;
  }
}

.category-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
}

.category-header .category-desc {
  font-size: 0.85rem;
  color: #8899A8;
}

/* ============================================================
   LIVE INDICATOR
   ============================================================ */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-breaking);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ============================================================
   SOCIAL REELS ROW
   ============================================================ */
.social-reels-section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.social-reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.reels-column {
  width: 100%;
}

/* 9:16 Responsive Video Iframe Container */
.reels-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #000000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  z-index: 1;
}

.reels-iframe-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.reels-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Premium Placeholder Cards (matching 9:16 aspect ratio) */
.reels-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  z-index: 1;
}

.reels-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.reels-placeholder-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 10rem;
  opacity: 0.08;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.reels-placeholder:hover .reels-placeholder-bg-icon {
  transform: rotate(-5deg) scale(1.1);
  opacity: 0.14;
}

.reels-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
  font-size: 1.8rem;
  z-index: 1;
  transition: transform 0.3s ease;
}

.reels-placeholder:hover .reels-placeholder-icon {
  transform: scale(1.1);
}

.reels-placeholder-info {
  z-index: 1;
}

.reels-placeholder-platform {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.reels-placeholder-desc {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* Brand Customization for Placeholders */
.reels-youtube .reels-placeholder {
  background: linear-gradient(135deg, #FF0000 0%, #B30000 100%);
}
.reels-youtube .reels-placeholder:hover {
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.reels-tiktok .reels-placeholder {
  background: linear-gradient(135deg, #010101 0%, #121212 100%);
  border: 1px solid rgba(254, 44, 85, 0.25);
}
.reels-tiktok .reels-placeholder:hover {
  box-shadow: 0 10px 20px rgba(254, 44, 85, 0.25);
  border-color: rgba(254, 44, 85, 0.5);
}
.reels-tiktok .reels-placeholder-icon i {
  color: #25F4EE;
  text-shadow: 2px 0px 0px #FE2C55;
}

.reels-instagram .reels-placeholder {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.reels-instagram .reels-placeholder:hover {
  box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.reels-facebook .reels-placeholder {
  background: linear-gradient(135deg, #1877F2 0%, #0D47A1 100%);
}
.reels-facebook .reels-placeholder:hover {
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

/* TikTok Creator Profile Feed Container */
.tiktok-profile-container {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.tiktok-profile-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tiktok-profile-container::-webkit-scrollbar {
  width: 6px;
}

.tiktok-profile-container::-webkit-scrollbar-track {
  background: transparent;
}

.tiktok-profile-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* Facebook Page Timeline Feed Container */
.reels-fb-page-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.reels-fb-page-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.reels-fb-page-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Premium Instagram Profile Call-To-Action Card */
.reels-insta-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #1e1e2f 0%, #12121e 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.reels-insta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(220, 39, 67, 0.25);
  border-color: rgba(220, 39, 67, 0.3);
}

.insta-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  opacity: 0.85;
  z-index: 0;
}

.insta-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #12121e;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ffffff;
  margin-top: 15%;
  z-index: 1;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
}

.reels-insta-card:hover .insta-avatar {
  transform: scale(1.08) rotate(5deg);
}

.insta-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.insta-handle {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(220, 39, 67, 0.2);
  color: #ff5e7e;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(220, 39, 67, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insta-body {
  padding: 0 10px;
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 20px;
  z-index: 1;
}

.insta-follow-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
  z-index: 1;
}

.insta-follow-btn:hover {
  background: linear-gradient(45deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.6);
  color: #ffffff;
}

.pulse-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.6rem;
  animation: buttonPulse 1.8s infinite ease-in-out;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* YouTube Channel Card (for @handle URLs) */
.reels-yt-channel-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #1a0000 0%, #0d0000 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  border: 1px solid rgba(255, 0, 0, 0.1);
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.reels-yt-channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.35);
}

.reels-yt-bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  color: rgba(255, 0, 0, 0.08);
  pointer-events: none;
  z-index: 0;
}

.reels-yt-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.12);
  border: 3px solid rgba(255, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #ff0000;
  margin-top: 10%;
  z-index: 1;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.reels-yt-channel-card:hover .reels-yt-icon {
  transform: scale(1.08);
}

.reels-yt-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.reels-yt-handle {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.reels-yt-desc {
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.5;
  padding: 0 10px;
}

.reels-yt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff0000;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  z-index: 1;
}

.reels-yt-btn:hover {
  background: #cc0000;
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
  color: #ffffff;
}

/* TikTok Video-List Feed Container */
.tiktok-feed-container {
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

.tiktok-feed-container .tiktok-embed {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Responsive Rules for Reels Grid */
@media (max-width: 992px) {
  .social-reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .social-reels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================================
   RESPONSIVE  —  Mobile-First, Systematic
   Breakpoints:
     1100px  – narrow desktop
      960px  – tablet landscape / layout shift
      768px  – tablet portrait
      600px  – large phone
      480px  – mid phone
      375px  – small phone
   ============================================================ */

/* ── 1100px ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 960px ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Sidebar goes horizontal below layout threshold */
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .sidebar > * {
    flex: 1 1 260px;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero-grid {
    height: clamp(280px, 35vw, 360px);
  }
}

/* ── 768px (tablet portrait) ─────────────────────────────── */
@media (max-width: 768px) {

  /* ─ Top Bar ─ */
  .top-bar {
    display: none;
  }

  /* ─ Breaking Bar ─ */
  .breaking-label {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-right: 10px;
  }

  /* ─ Header ─ */
  .header-main .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px clamp(12px, 4vw, 20px);
  }

  .header-ad {
    display: none;
  }

  /* Mobile search: keep toggle button, but expand panel full-width below header */
  .header-search {
    margin-left: auto;
    flex-shrink: 0;
  }

  .search-toggle {
    display: flex; /* keep the icon button visible */
  }

  .search-expandable {
    position: fixed;
    top: var(--header-h, 90px);
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    padding: 10px clamp(12px, 4vw, 20px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-top: 1px solid var(--color-border);
  }

  .search-expandable.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .search-input-wrapper {
    box-shadow: var(--shadow-sm);
  }

  /* ─ Navigation ─ */
  .main-nav .container {
    flex-wrap: wrap;
    padding: 0;
    align-items: stretch;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-meta {
    display: none;
  }

  /* Mobile menu: hidden by default, slide-in on open */
  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }

  .main-menu > li > a::after {
    display: none;
  }

  /* Mobile sub-menus: visible + indented */
  .main-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.15);
  }

  .main-menu .sub-menu li a {
    padding: 10px 20px 10px 36px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
  }

  .main-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding-left: 40px;
  }

  /* ─ Hero ─ */
  .hero-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 8px;
    border-radius: var(--radius);
  }

  .hero-main {
    height: clamp(200px, 52vw, 300px);
  }

  .hero-secondary,
  .hero-small {
    height: clamp(140px, 36vw, 200px);
  }

  /* Show secondary but hide small on narrow viewports */
  .hero-small {
    display: block;
  }

  /* ─ News Grid ─ */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ─ Category ─ */
  .category-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ─ Single Post ─ */
  .post-title {
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    line-height: 1.35;
  }

  .post-meta-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .post-featured-image {
    margin: 20px auto;
    border-radius: var(--radius);
  }

  .post-content > * {
    font-size: 1.0625rem; /* 17px on mobile */
    margin-bottom: 1.5rem;
  }

  .post-content > blockquote {
    padding: 16px 20px;
    font-size: 1.1rem;
  }

  .post-bottom-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .share-btn {
    min-height: 48px; /* Better touch target */
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .post-author-bio-card {
    gap: 16px;
  }

  /* ─ Social Reels grid ─ */
  .social-reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ─ Footer ─ */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 40px 0 0;
  }

  /* ─ Comments ─ */
  .comment-form input {
    width: 100% !important;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-family: var(--font-body);
  }

  /* ─ Related Posts ─ */
  .news-grid-col-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ── 600px (large phone) ─────────────────────────────────── */
@media (max-width: 600px) {
  .hero-main {
    height: clamp(180px, 55vw, 240px);
  }

  .hero-secondary {
    height: clamp(130px, 38vw, 175px);
  }

  /* Hide the small hero on phones to reduce clutter */
  .hero-small {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-grid-col-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Trending: tighter layout */
  .trending-item {
    gap: 8px;
  }

  .trending-num {
    font-size: 1.2rem;
    min-width: 24px;
  }

  /* Section title: tighter */
  .section-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  /* ─ Sidebar: single column ─ */
  .sidebar {
    flex-direction: column;
  }

  .sidebar > * {
    flex: 1 1 100%;
  }

  /* ─ Footer bottom ─ */
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-social {
    gap: 10px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-share {
    margin-left: 0;
  }

  /* ─ Ad zones ─ */
  .ad-zone-leaderboard,
  .ad-zone {
    height: auto !important;
    min-height: 50px;
    padding: 10px;
  }

  .ad-zone span {
    font-size: 0.6rem;
    letter-spacing: 0;
  }

  /* ─ Single Post ─ */
  .post-tags-container {
    gap: 8px;
  }

  .post-comments-section {
    margin: 28px auto 40px;
  }

  /* ─ Post navigation ─ */
  .post-nav-container {
    grid-template-columns: 1fr;
  }

  .post-nav-item:only-child {
    grid-column: 1;
  }

  /* ─ Social Reels ─ */
  .social-reels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── 480px (mid phone) ───────────────────────────────────── */
@media (max-width: 480px) {
  /* Tighter section spacing */
  .content-area {
    padding: 16px 0 32px;
  }

  .category-block {
    margin-bottom: 24px;
  }

  .trending-section {
    margin-bottom: 20px;
  }

  /* Hero overlay: less padding on tiny screens */
  .hero-overlay {
    padding: 20px 14px 14px;
  }

  .hero-main .hero-overlay h2 {
    font-size: 0.95rem;
  }

  .hero-secondary .hero-overlay h3,
  .hero-small .hero-overlay h3 {
    font-size: 0.82rem;
  }

  /* News card: smaller body padding */
  .news-card-body {
    padding: 10px 12px 12px;
  }

  .news-card-title {
    font-size: 0.9rem;
  }

  /* Search expandable: full width on phone */
  .search-expandable {
    width: 100%;
  }

  /* Author bio: stack vertically */
  .post-author-bio-card {
    flex-direction: column;
    padding: 20px;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .post-author-bio-card::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }

  /* Category big card: tighter body */
  .category-big-card .body {
    padding: 10px 12px 12px;
  }

  /* Share buttons: stack on mobile */
  .social-share-group {
    gap: 6px;
  }

  .share-btn span {
    display: none; /* icon-only on tiny screens */
  }

  .share-btn {
    padding: 0 14px;
    gap: 0;
  }
}

/* ── 375px (small phone) ─────────────────────────────────── */
@media (max-width: 375px) {
  .breaking-label {
    display: none; /* save space on very small screens */
  }

  .hero-main {
    height: 180px;
  }

  .news-card-title {
    font-size: 0.85rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 9px 18px;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

  .site-header,
  .main-nav,
  .sidebar,
  .site-footer,
  .breaking-news-bar,
  .social-share,
  .ad-zone {
    display: none;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    background: #fff;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  animation: fadeIn 0.45s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"] .section-title::before {
  margin-left: 10px;
  margin-right: 0;
}

[dir="rtl"] .main-menu .sub-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .post-content blockquote {
  border-left: none;
  border-right: 4px solid var(--color-primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .footer-links a::before {
  content: '‹';
}

/* Hide Recent Posts and Recent Comments on Homepage (in case of Gutenberg block widgets or custom templates) */
.home .widget_recent_entries,
.home .widget_recent_comments,
.home .wp-block-latest-posts,
.home .wp-block-latest-comments {
  display: none !important;
}

/* Dynamic widget padding wrapper support */
.widget-body,
.widget-content-wrapper {
  padding: 18px;
}

.widget-content-wrapper:empty {
  display: none;
  padding: 0;
}

/* Force block margins and paragraph spacing inside the main article body */
.single-post .entry-content p,
.single-post .entry-content .wp-block-paragraph,
.single-post .entry-content div {
    margin-top: 0 !important;
    margin-bottom: 16px !important;   /* Tightens the gap between blocks perfectly */
    font-size: 18px !important;        /* Clear, sharp text size */
    line-height: 1.8 !important;       /* Clean vertical space for Devanagari script */
    color: #1e293b !important;         /* Professional dark tone */
}

/* Fix line-height and tight spacing on blocks that contain text */
.single-post .entry-content > * {
    margin-bottom: 16px !important;
}

/* Make the first paragraph slightly larger */
.single-post .entry-content p:first-of-type,
.single-post .entry-content .wp-block-paragraph:first-of-type {
    font-size: 19px !important;
    font-weight: 600 !important;
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */

.footer-top-bar {
    padding: 28px 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-logo img {
    max-height: 48px;
    width: auto;
}

.footer-brand-text {
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
}

.footer-top-social {
    display: flex;
    gap: 10px;
}

.footer-top-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #9aa0a8;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.footer-top-social .social-icon:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* 4-Column Grid */
.footer-grid--four {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.4fr;
    gap: 30px;
    padding: 35px 0;
}

/* Column Titles */
.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Team List */
.footer-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-team-list li {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #9aa0a8;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
}

.ft-role {
    color: #b0b5bc;
    font-weight: 500;
}

.ft-sep {
    color: #666;
    margin-right: 2px;
}

.ft-name {
    color: #d0d3d8;
    font-weight: 500;
}

/* Link Lists (Legal & Support) */
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #9aa0a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: #fff;
}

.footer-link-list a i {
    font-size: 0.75rem;
    color: #666;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Registration & Contact Column */
.footer-reg-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.frc-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: #d0d3d8;
    margin: 0 0 3px 0;
}

.frc-addr {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 0 0;
}

.frc-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 14px 0;
}

.frc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.frc-list li {
    font-size: 0.82rem;
    color: #9aa0a8;
    line-height: 1.5;
}

.frc-label {
    color: #b0b5bc;
    font-weight: 500;
}

.frc-list a {
    color: #9aa0a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.frc-list a:hover {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}

.footer-bottom-inner {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* ============================================================
   AUTHOR & DATE ARCHIVE HEADERS
   ============================================================ */
.category-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
    margin-bottom: 24px;
}

.category-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin: 0;
}

/* Author bio card in archive header */
.author-archive-header {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-archive-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    flex-shrink: 0;
}

.author-archive-info {
    flex: 1;
    min-width: 0;
}

.author-archive-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin: 0 0 8px;
}

.author-archive-role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    display: block;
}

.author-archive-bio {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

.author-archive-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.author-archive-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.author-archive-links a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .author-archive-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-archive-links {
        justify-content: center;
    }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--color-surface);
    transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   ARCHIVE GRID LAYOUT FIX
   ============================================================ */
.layout-grid .main-content {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid--four {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid--four {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand-row {
        flex-direction: column;
    }
}