/*
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
   ============================================================ */
:root {
  --color-primary: #C0392B;
  --color-primary-dark: #96281B;
  --color-secondary: #0F172A;
  --color-accent: #F39C12;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-breaking: #E11D48;
  --color-trending: #EA580C;

  /* Category accent palette */
  --cat-1: #C0392B;
  --cat-2: #2471A3;
  --cat-3: #1E8449;
  --cat-4: #7D3C98;
  --cat-5: #D35400;
  --cat-6: #117A65;

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

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --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 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: #fff;
  padding: 9px 0;
  overflow: hidden;
}

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

.breaking-label {
  background: #fff;
  color: var(--color-breaking);
  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;
}

.breaking-ticker a {
  color: #fff;
  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: 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-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.35);
}

/* ============================================================
   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;
}

.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: 13px 16px;
}

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

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.content-area {
  padding: 24px 0 40px;
}

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

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

/* ============================================================
   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: 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: 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
   ============================================================ */
.single-post-header {
  margin: 16px 0 20px;
}

.post-category-trail {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 18px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================================
   POST CONTENT TYPOGRAPHY
   ============================================================ */
.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-top: 36px;
  margin-bottom: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.post-content h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

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

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

.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

.post-content blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--color-text-muted);
}

.post-content figure {
  margin: 32px 0;
}

.post-content figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.post-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
}

.social-share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.social-share-btn.facebook {
  background: #1877F2;
}

.social-share-btn.twitter {
  background: #14171A;
}

.social-share-btn.whatsapp {
  background: #25D366;
}

.social-share-btn.viber {
  background: #7360F2;
}

.post-content {
  font-size: 1rem;
  line-height: 1.82;
  color: #222;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 14px 20px;
  background: #fef9f9;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content img {
  border-radius: var(--radius);
  margin: 18px 0;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  max-height: 500px;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-tags {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.post-tags strong {
  font-size: 0.85rem;
}

.author-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  gap: 25px;
  margin-top: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

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

.author-box-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--color-text);
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   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
   ============================================================ */
@media (max-width: 1100px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar>* {
    flex: 1 1 260px;
  }

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

  .hero-grid {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
  }

  .header-ad {
    display: none;
  }

  .header-search {
    width: 100%;
    margin-top: 10px;
  }

  .header-search form {
    width: 100%;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

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

  .main-menu>li>a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

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

  .main-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav .container {
    flex-wrap: wrap;
    padding: 0;
  }

  .nav-meta {
    display: none;
  }

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

  .hero-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .hero-main {
    height: 260px;
  }

  .hero-secondary,
  .hero-small {
    height: 180px;
  }

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

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

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

  .top-bar {
    display: none;
  }

  .category-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    height: 220px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

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

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

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

/* ============================================================
   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: '‹';
}