/*
Theme Name: NewsFlash
Theme URI: https://example.com/newsflash
Author: NewsFlash Team
Author URI: https://example.com
Description: A fast, modern, lightweight news theme for WordPress. Features stunning homepage layout, beautiful post pages, author profiles, and full mobile responsiveness.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsflash
Tags: news, magazine, blog, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --color-primary: #E63946;
  --color-primary-dark: #c1121f;
  --color-secondary: #1D3557;
  --color-accent: #F4A261;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F3F5;
  --color-text: #212529;
  --color-text-muted: #6C757D;
  --color-border: #DEE2E6;
  --color-dark: #0D1B2A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-label: 'Barlow Condensed', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-card: 0 2px 8px rgba(0,0,0,.07);

  --transition: 0.22s ease;
  --max-width: 1200px;
  --header-height: 64px;
}

/* =============================================
   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);
  color: var(--color-text) !important;
  background: #F8F9FA !important;
  background-color: #F8F9FA !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Override Offside.js / any plugin that hijacks body background */
html,
body,
body.offside-js-init,
body.offside--open,
body.menu-open,
body.nav-open {
  background: #F8F9FA !important;
  background-color: #F8F9FA !important;
  color: #212529 !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-secondary);
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1rem; }

/* =============================================
   UTILITY CLASSES
============================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

.section-title {
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), transparent);
}

.category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-label);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.category-badge:hover { background: var(--color-primary-dark); color: #fff; }

.meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.meta-info i { color: var(--color-primary); font-size: .7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =============================================
   BREAKING NEWS TICKER
============================================= */
.breaking-ticker {
  background: var(--color-primary);
  color: #fff;
  padding: 6px 0;
  overflow: hidden;
  font-size: .8rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: .04em;
}
.breaking-ticker .ticker-label {
  background: var(--color-dark);
  padding: 0 16px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.breaking-ticker .ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.breaking-ticker .ticker-move {
  display: flex;
  gap: 60px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.breaking-ticker .ticker-move span { display: flex; align-items: center; gap: 8px; }
.breaking-ticker .ticker-move span::before { content: '▸'; font-size: .7rem; opacity: .8; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   TOP BAR
============================================= */
.topbar {
  background: var(--color-secondary);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  font-family: var(--font-label);
  padding: 6px 0;
  letter-spacing: .03em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: #fff; }
.topbar .topbar-left, .topbar .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  font-size: .65rem;
  transition: background var(--transition);
}
.topbar .social-icons a:hover { background: var(--color-primary); color: #fff; }

/* =============================================
   HEADER
============================================= */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--color-primary);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo-img { max-height: 44px; width: auto; }
.site-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-secondary);
  letter-spacing: -.02em;
  line-height: 1;
}
.site-name span { color: var(--color-primary); }
.site-tagline {
  font-size: .65rem;
  font-family: var(--font-label);
  color: var(--color-text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Navigation */
.main-navigation { flex: 1; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--color-primary);
  background: rgba(230,57,70,.07);
}
/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 100;
}
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: .82rem;
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}
.nav-menu .sub-menu li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  padding-left: 26px;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search-btn, .header-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  transition: all var(--transition);
  font-size: 1.15rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
}
.header-search-btn:hover, .header-menu-btn:hover {
  background: rgba(255,255,255,.2);
  color: #ffffff !important;
}
.header-search-btn i, .header-menu-btn i { color: #ffffff !important; }
.header-menu-btn { display: none; }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,.9);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 100px;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: all .25s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 20px; }
.search-overlay input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-overlay input::placeholder { color: rgba(255,255,255,.45); }
.search-overlay input:focus { border-color: var(--color-primary); }
.search-close {
  position: absolute; top: 24px; right: 24px;
  color: rgba(255,255,255,.7); font-size: 1.6rem;
  cursor: pointer; transition: color var(--transition);
}
.search-close:hover { color: var(--color-primary); }

/* =============================================
   SECONDARY NAV / CATEGORY NAV
============================================= */
.category-nav {
  background: var(--color-secondary);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  white-space: nowrap;
}
.category-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.category-nav ul li a:hover,
.category-nav ul li.active a {
  color: #fff;
  border-bottom-color: var(--color-primary);
}

/* =============================================
   HERO / FEATURED SECTION
============================================= */
.hero-section { padding: 32px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto auto;
  gap: 20px;
}
.hero-main { grid-column: 1; grid-row: 1/4; }
.hero-side-top { grid-column: 2; grid-row: 1; }
.hero-side-middle { grid-column: 2; grid-row: 2; }
.hero-side-bottom { grid-column: 2; grid-row: 3; }

/* Hero Main Card */
.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.hero-main-card .card-image {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2d4a6e 50%, #1a3a5c 100%);
  z-index: 0;
}
.hero-main-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-main-card:hover .card-image img { transform: scale(1.04); }
.hero-main-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.92) 30%, rgba(13,27,42,.1) 80%);
  pointer-events: none;
  z-index: 1;
}
.hero-main-card .card-content {
  position: relative;
  z-index: 2;
  padding: 28px 28px 28px;
  color: #fff;
}
.hero-main-card .card-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: #fff;
  margin: 10px 0 12px;
  line-height: 1.2;
}
.hero-main-card .card-title a { color: inherit; }
.hero-main-card .card-title a:hover { color: var(--color-accent); }
.hero-main-card .meta-info { color: rgba(255,255,255,.7); }
.hero-main-card .meta-info i { color: var(--color-accent); }
.hero-main-card .card-excerpt {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin-top: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Side Cards */
.side-card {
  background: #ffffff !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  padding: 14px;
  height: 100%;
}
.side-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.side-card .card-image {
  flex-shrink: 0;
  width: 120px; height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-alt);
}
.side-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.side-card:hover .card-image img { transform: scale(1.05); }
.side-card .card-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; }
.side-card .card-title { font-size: .92rem; margin-bottom: 4px; line-height: 1.3; }
.side-card .meta-info { margin-top: auto; }
.side-card .card-title a:hover { color: var(--color-primary); }

/* =============================================
   TRENDING / MOST READ
============================================= */
.trending-section { padding: 24px 0; background: var(--color-dark); }
.trending-section .section-title { color: var(--color-accent); }
.trending-section .section-title::after { background: linear-gradient(to right, var(--color-accent), transparent); }
.trending-list { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.trending-list::-webkit-scrollbar { display: none; }
.trending-item {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trending-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,.12);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}
.trending-item .item-title {
  font-family: var(--font-heading);
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
  font-weight: 600;
}
.trending-item .item-title a { color: inherit; }
.trending-item .item-title a:hover { color: var(--color-accent); }
.trending-item .item-meta { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 4px; font-family: var(--font-label); }

/* =============================================
   NEWS GRID
============================================= */
.news-grid-section { padding: 40px 0; }
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
/* Sidebar stays at top when content ends */
.news-layout .sidebar { position: sticky; top: 80px; }

/* Article Cards */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.article-card {
  background: #ffffff !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card .card-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.article-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .card-thumb img { transform: scale(1.06); }
.article-card .card-thumb .category-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.article-card .card-body { 
  padding: 16px; flex: 1; display: flex; flex-direction: column; 
  background: #ffffff !important; 
}
.article-card .card-title { 
  font-size: 1rem; margin: 8px 0 10px; line-height: 1.3; flex: 1; 
  color: #1a1a2e !important; 
}
.article-card .card-title a { color: #1a1a2e !important; }
.article-card .card-title a:hover { color: #E63946 !important; }
.article-card .card-footer { 
  margin-top: auto; padding-top: 12px; 
  border-top: 1px solid #dee2e6; 
  background: #ffffff !important; 
}
.article-card .meta-info { color: #6c757d !important; }

/* List style card */
.article-card-list {
  display: flex;
  gap: 14px;
  background: #ffffff !important;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.article-card-list:hover { box-shadow: var(--shadow-md); }
.article-card-list .card-thumb { flex-shrink: 0; width: 100px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; }
.article-card-list .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-list .card-body { flex: 1; background: #ffffff !important; }
.article-card-list .card-title { font-size: .9rem; margin-bottom: 6px; line-height: 1.3; color: #1a1a2e !important; }
.article-card-list .card-title a { color: #1a1a2e !important; }
.article-card-list .card-title a:hover { color: #E63946 !important; }

/* =============================================
   SIDEBAR
============================================= */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget-box {
  background: #ffffff !important;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.widget-box .widget-title {
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  display: flex; align-items: center; gap: 8px;
}
.widget-box .widget-title::before { content: ''; width: 4px; height: 14px; background: var(--color-primary); border-radius: 2px; }

/* Popular Posts Widget */
.popular-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.popular-post:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post .post-thumb { flex-shrink: 0; width: 68px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-alt); }
.popular-post .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post .post-info { flex: 1; }
.popular-post .post-title { font-size: .85rem; line-height: 1.3; font-weight: 600; font-family: var(--font-heading); }
.popular-post .post-title a:hover { color: var(--color-primary); }
.popular-post .post-meta { font-size: .72rem; color: var(--color-text-muted); margin-top: 4px; font-family: var(--font-label); }

/* Category Widget */
.category-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.category-list li:last-child { border-bottom: none; }
.category-list li a { font-weight: 600; color: var(--color-text); transition: color var(--transition); }
.category-list li a:hover { color: var(--color-primary); }
.category-list li .count { background: var(--color-bg); color: var(--color-text-muted); font-size: .72rem; font-family: var(--font-label); padding: 2px 8px; border-radius: var(--radius-pill); }

/* Ad Widget - hidden until real ads placed */
.ad-widget { display: none !important; }
.ad-widget .ad-label { display: none; }
.ad-widget .ad-placeholder { display: none; }

/* Newsletter Widget */
.newsletter-widget { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); color: #fff; border-radius: var(--radius-md); padding: 24px 20px; }
.newsletter-widget .widget-title { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.2); }
.newsletter-widget .widget-title::before { background: rgba(255,255,255,.6); }
.newsletter-widget p { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.newsletter-widget input {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  color: #fff; font-family: inherit; font-size: .88rem;
  margin-bottom: 10px; outline: none;
  transition: border-color var(--transition);
}
.newsletter-widget input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-widget input:focus { border-color: rgba(255,255,255,.7); }
.newsletter-widget .btn-sub {
  width: 100%; padding: 10px;
  background: #fff; color: var(--color-primary);
  font-family: var(--font-label); font-weight: 800;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.newsletter-widget .btn-sub:hover { background: var(--color-accent); color: #fff; }

/* Tags Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .75rem;
  font-family: var(--font-label);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* =============================================
   SINGLE POST
============================================= */
/* =============================================
   SINGLE POST LAYOUT
============================================= */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  align-items: start;
  box-sizing: border-box;
}
.post-article {
  background: transparent;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.post-header { padding-bottom: 16px; }
.post-content { max-width: 100%; overflow: hidden; }

/* Post sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }
#secondary-single { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#secondary-single > div { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }

/* Tablet/Mobile - single column, hide sidebar */
@media (max-width: 900px) {
  .single-post-layout {
    grid-template-columns: 1fr;
    padding: 16px var(--mobile-padding, 16px);
    gap: 0;
  }
  .post-sidebar, #secondary-single { display: none !important; }
}

.post-header { margin-bottom: 24px; }
.post-header .post-category { margin-bottom: 12px; }
.post-header h1.post-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #1a1a2e; line-height: 1.2; margin-bottom: 16px; }
.post-header .post-meta { margin-bottom: 20px; }
.post-header .post-excerpt-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Featured Image */
.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-image figcaption {
  background: var(--color-surface-alt);
  padding: 8px 16px;
  font-size: .78rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Post Content */
.post-content { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; }
.post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: #1a1a2e; border-bottom: none; padding-bottom: 0; }
.post-content h3 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; color: #1a1a2e; border-bottom: none; }
.post-content h4 { color: #1a1a2e; }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  background: linear-gradient(135deg, rgba(230,57,70,.06), rgba(230,57,70,.02));
  border-left: 5px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--color-secondary);
  line-height: 1.6;
}
.post-content blockquote cite { display: block; font-size: .8rem; color: var(--color-text-muted); margin-top: 8px; font-style: normal; font-family: var(--font-body); }
.post-content ul, .post-content ol { padding-left: 1.6rem; margin-bottom: 1.4rem; }
.post-content li { margin-bottom: .4rem; }
.post-content ul li::marker { color: var(--color-primary); }
.post-content img { border-radius: var(--radius-md); margin: 24px 0; box-shadow: var(--shadow-md); }
.post-content pre {
  background: var(--color-dark); color: #e8e8e8;
  padding: 20px; border-radius: var(--radius-md);
  overflow-x: auto; font-family: var(--font-mono); font-size: .88rem;
  margin: 24px 0; line-height: 1.6;
}
.post-content code {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.post-content table { 
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  table-layout: auto;
}
.post-content th { 
  background: #eef2f5 !important;
  color: #1a1a2e !important;
  padding: 11px 16px; 
  text-align: left; 
  font-size: .82rem; 
  letter-spacing: .06em; 
  text-transform: uppercase;
  border-bottom: 2px solid #dee2e6;
  font-weight: 700;
  white-space: nowrap;
}
.post-content td { 
  padding: 10px 16px; 
  border-bottom: 1px solid #dee2e6;
  color: #212529 !important;
  background: #ffffff !important;
}
.post-content tr:nth-child(even) td { background: #f8f9fa !important; }
.post-content tr:last-child td { border-bottom: none; }

/* Share Bar */
.post-share-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.post-share-bar .share-label { font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label); font-weight: 700; font-size: .75rem;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  transition: all var(--transition); cursor: pointer;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); color: #fff; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-copy { background: var(--color-secondary); }

/* Tags */
.post-tags { margin: 32px 0 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 24px; border-top: 2px solid var(--color-border); }
.post-tags .tags-label { font-family: var(--font-label); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }

/* Author Bio Box */
.author-bio-box {
  background: #ffffff !important;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.author-bio-box .author-avatar { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--color-primary); background: var(--color-surface-alt); }
.author-bio-box .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-box .author-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #1a1a2e !important; margin-bottom: 4px; }
.author-bio-box .author-role { font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #E63946 !important; margin-bottom: 10px; font-weight: 700; }
.author-bio-box .author-desc { font-size: .88rem; color: #555 !important; line-height: 1.6; margin-bottom: 12px; }
.author-bio-box .author-social { display: flex; gap: 8px; }
.author-bio-box .author-social a {
  width: 28px; height: 28px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--color-text-muted);
  transition: all var(--transition);
}
.author-bio-box .author-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.author-link-btn { display: inline-block; margin-top: 10px; font-family: var(--font-label); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); border-bottom: 2px solid var(--color-primary); padding-bottom: 1px; }

/* Related Posts */
.related-posts-section { margin: 40px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Comments Section */
.comments-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}
.comments-section .comments-title { font-size: 1.2rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: none; }
.comment .comment-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--color-surface-alt); }
.comment .comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author-name { font-weight: 700; font-size: .9rem; color: var(--color-secondary); }
.comment-date { font-size: .75rem; color: var(--color-text-muted); font-family: var(--font-label); }
.comment-text { font-size: .9rem; color: var(--color-text); line-height: 1.6; margin-top: 6px; }
.comment-reply-link { font-family: var(--font-label); font-size: .75rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; display: inline-block; }

/* Comment Form */
.comment-form-wrap { margin-top: 28px; }
.comment-form-wrap h4 { font-size: 1rem; margin-bottom: 18px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-label); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.form-group input,
.form-group textarea {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit; font-size: .9rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); background: #fff; }

/* =============================================
   AUTHOR PAGE
============================================= */
.author-page { padding: 40px 0; }
.author-page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2d5282 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.author-page-avatar {
  flex-shrink: 0;
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
}
.author-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-page-info .author-page-name { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.author-page-info .author-page-role { font-family: var(--font-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); margin-bottom: 12px; font-weight: 700; }
.author-page-info .author-page-bio { font-size: .92rem; color: rgba(255,255,255,.8); line-height: 1.6; max-width: 500px; }
.author-page-stats { display: flex; gap: 20px; margin-top: 16px; }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-label { font-family: var(--font-label); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 2px; }
.author-page-social { display: flex; gap: 10px; margin-top: 14px; }
.author-page-social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%; font-size: .75rem; color: #fff;
  transition: all var(--transition);
}
.author-page-social a:hover { background: var(--color-primary); transform: translateY(-2px); }

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb-wrap {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-label); font-size: .78rem; color: var(--color-text-muted);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--color-text-muted); white-space: nowrap; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-border); font-size: .65rem; flex-shrink: 0; }
.breadcrumb .current { color: var(--color-primary); font-weight: 700; 
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================
   PAGINATION
============================================= */
.pagination-wrap { margin: 40px 0; display: flex; justify-content: center; }
.page-numbers {
  display: flex; gap: 6px; align-items: center;
  font-family: var(--font-label); font-weight: 700;
}
.page-numbers .page-number {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--color-text);
  transition: all var(--transition);
}
.page-numbers .page-number:hover,
.page-numbers .page-number.active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

/* =============================================
   FOOTER
============================================= */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.75); margin-top: 48px; }
.footer-top { padding: 48px 0 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }

.footer-brand .site-name { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.footer-brand .site-tagline { color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; font-size: .78rem; color: rgba(255,255,255,.65);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 { color: #fff; font-family: var(--font-label); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.1); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.6); transition: all var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-col ul li a::before { content: '›'; color: var(--color-primary); font-size: .9rem; }

.footer-newsletter p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 12px; line-height: 1.5; }
.footer-newsletter .nl-form { display: flex; flex-direction: column; gap: 8px; }
.footer-newsletter input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff; font-family: inherit; font-size: .85rem;
  outline: none; transition: border-color var(--transition);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter input:focus { border-color: var(--color-primary); }
.footer-newsletter button {
  background: var(--color-primary); color: #fff;
  padding: 10px; border-radius: var(--radius-sm);
  font-family: var(--font-label); font-weight: 800; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--transition);
}
.footer-newsletter button:hover { background: var(--color-primary-dark); }

.footer-bottom { padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copyright { font-size: .78rem; color: rgba(255,255,255,.4); font-family: var(--font-label); }
.footer-bottom .copyright a { color: rgba(255,255,255,.6); }
.footer-bottom .copyright a:hover { color: var(--color-primary); }
.footer-menu { display: flex; gap: 16px; }
.footer-menu a { font-size: .78rem; color: rgba(255,255,255,.4); font-family: var(--font-label); }
.footer-menu a:hover { color: var(--color-primary); }

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(230,57,70,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease; z-index: 500; cursor: pointer;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--color-primary-dark); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(230,57,70,.45); }

/* =============================================
   LOADING SKELETON
============================================= */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, #e2e6ea 50%, var(--color-surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* =============================================
   DARK MODE
============================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1923;
    --color-surface: #1a2535;
    --color-surface-alt: #243044;
    --color-text: #e8ecf0;
    --color-text-muted: #8b98a8;
    --color-border: #2a3b50;
    --color-secondary: #a8c4e0;
  }
  .site-header { background: #1a2535; }
  .site-name { color: #e8ecf0; }
  .nav-menu > li > a { color: #c8d8e8; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { grid-row: 1; }
  .hero-side-top, .hero-side-middle, .hero-side-bottom { grid-column: 1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr 280px; gap: 24px; }
}
@media (max-width: 768px) {
  .topbar .topbar-left .date-display { display: none; }
  .main-navigation { display: none; }
  .header-menu-btn { display: flex; }

  /* Hide category nav bar on mobile */
  .category-nav { display: none !important; }

  /* Hide topbar search form on mobile */
  .topbar .search-form,
  .topbar form,
  .topbar input[type="search"],
  .topbar input[type="text"] { display: none !important; }

  /* Hide topbar entirely on mobile (optional - keeps it clean) */
  .topbar { display: none !important; }

  /* Hide push notification bars from any plugin */
  [class*="push-notification"],
  [class*="push_notification"],
  [id*="push-notification"],
  [id*="push_notification"],
  [class*="onesignal"],
  [id*="onesignal"],
  [class*="notification-bar"],
  [class*="notif-bar"],
  [id*="notification-bar"],
  .pn-container,
  .pushcrew-overlay,
  .pushcrew-bar,
  [class*="pushcrew"],
  [class*="fcm-notification"],
  [class*="web-push"],
  div[class*="notification"][style*="position: fixed"],
  div[class*="notification"][style*="position:fixed"],
  .noti-bar,
  #noti-bar { display: none !important; visibility: hidden !important; }
  .hero-main-card { min-height: 320px; }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-page-header { flex-direction: column; text-align: center; }
  .author-page-header .author-page-stats { justify-content: center; }
  .author-page-header .author-page-social { justify-content: center; }
  .comment-form-row { grid-template-columns: 1fr; }
  .post-share-bar { justify-content: center; }

  /* Mobile padding fixes */
  .container { padding: 0 12px; }
  .container-wide { padding: 0 8px; }
  .hero-section { padding: 12px 0 16px; }
  .hero { padding: 12px; }
  .news-grid-section { padding: 16px 0; }
  .news-layout { padding: 0 12px 16px; }
  .post-header { padding: 0; }
  .post-content { padding: 0; font-size: .97rem; }
  .post-featured-image { margin: 0 0 20px; border-radius: 0; }
  .post-featured-image img { border-radius: 0; }
  .post-share-bar { margin: 0 0 16px; }
  .post-tags { padding: 0; }
  .author-bio-box { margin: 20px 0; }
  .related-posts-section { padding: 0; }
  .comments-section { margin: 16px 0; padding: 20px 0; }
  .author-page { padding: 16px 0; }
  .author-page-header { margin: 0 12px 24px; padding: 24px 20px; }
  .breadcrumb-wrap { padding: 10px 16px; margin-bottom: 16px; }
  .footer-top { padding: 28px 0 20px; }
  .footer-grid { padding: 0 16px; gap: 20px; }
  .footer-bottom .container { padding: 0 16px; }

  /* Fix prev/next post nav on mobile */
  .post-nav {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 16px;
  }
  .post-nav .article-card-list {
    padding: 10px;
    gap: 8px;
    flex-direction: column;
  }
  .post-nav .article-card-list .card-thumb {
    width: 100% !important;
    height: 80px !important;
  }
  .post-nav .article-card-list .card-body {
    width: 100%;
  }
  .post-nav .article-card-list .card-title {
    font-size: .8rem !important;
    -webkit-line-clamp: 2;
  }

  /* PC post padding via mobile override reset */
  .post-article { padding: 0; }
  .post-header { padding: 0 16px; }
}

@media (max-width: 480px) {
  .breaking-ticker .ticker-label { display: none; }
  .hero-main-card .card-content { padding: 16px; }
  .trending-item { width: 180px; }
  .author-bio-box { flex-direction: column; }
  .header-inner { gap: 12px; }

  /* Extra small mobile */
  .container { padding: 0 8px; }
  .post-content { padding: 0; font-size: .95rem; line-height: 1.7; }
  .post-header { padding: 0; }
  .post-share-bar { margin: 0 0 12px; gap: 8px; }
  .post-tags { padding: 0; }
  .author-bio-box { margin: 16px 0; padding: 20px 12px; }
  .related-posts-section { padding: 0; }
  .comments-section { margin: 12px; padding: 16px 12px; }
  .news-layout { padding: 0 10px 12px; }
  .hero-section { padding: 8px 0 12px; }
  .post-header h1.post-title { font-size: 1.4rem; }
}

/* =============================================
   MOBILE MENU
============================================= */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu-overlay.open {
  pointer-events: all;
  visibility: visible;
}
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.mobile-menu-panel {
  position: relative;
  width: 300px;
  background: var(--color-surface);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-overlay.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-secondary);
}
.mobile-menu-header .site-name { color: #fff !important; font-size: 1.2rem; }
.mobile-menu-header .site-name span { color: var(--color-primary) !important; }
.mobile-menu-close { font-size: 1.4rem; color: rgba(255,255,255,.8) !important; cursor: pointer; }
.mobile-nav { padding: 8px 0; flex: 1; background: var(--color-surface); }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  font-family: var(--font-label); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: #212529 !important;
  border-bottom: 1px solid #dee2e6;
  transition: all var(--transition);
  background: #fff;
}
.mobile-nav a:hover { color: var(--color-primary) !important; background: #f8f9fa; padding-left: 26px; }
.mobile-menu-footer { padding: 16px 20px; border-top: 1px solid var(--color-border); }
.mobile-social { display: flex; gap: 10px; }
.mobile-social a {
  width: 36px; height: 36px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: var(--color-text-muted);
  transition: all var(--transition);
}
.mobile-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* =============================================
   POST NAVIGATION
============================================= */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.post-nav .article-card-list {
  min-width: 0;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #dee2e6;
}
.post-nav .article-card-list .card-thumb {
  flex-shrink: 0;
}
.post-nav .article-card-list .card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  color: #1a1a2e !important;
}
.post-nav .article-card-list .card-body { background: #ffffff !important; }
.post-nav .article-card-list div[style*="font-family"] { color: #6c757d !important; }

/* =============================================
   PRINT STYLES
============================================= */
@media print {
  .site-header, .site-footer, .sidebar, .breaking-ticker, .topbar, .trending-section,
  .post-share-bar, .related-posts-section, .comments-section, .scroll-top-btn { display: none !important; }
  .single-post-layout { grid-template-columns: 1fr; }
  .post-content a { text-decoration: underline; }
  body { font-size: 12pt; }
}

/* =============================================
   BUG FIXES v1.0.1
   - Removed backdrop-filter blur from overlays
   - Fixed pointer-events blocking clicks
   - Fixed z-index stacking on hero card
   - WP Rocket LazyLoad blur override
============================================= */

/* Override WP Rocket / any plugin lazyload blur */
img.lazy,
img.lazyload,
img.lazyloading,
img[data-lazy-src],
img[data-src],
.lazyload,
.lazyloading {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Ensure all images never blur */
img {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Fix any accidental blur on containers */
.hero-main-card,
.article-card,
.side-card,
.author-bio-box,
.news-grid-section,
.hero-section {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Fix click blocking - make sure overlays don't block when hidden */
.search-overlay:not(.active),
.mobile-menu-overlay:not(.open) {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Fix hero card z-index stacking */
.hero-main-card { position: relative !important; overflow: hidden !important; }
.hero-main-card .card-image { position: absolute !important; inset: 0 !important; z-index: 0 !important; }
.hero-main-card .card-overlay { position: absolute !important; inset: 0 !important; z-index: 1 !important; pointer-events: none !important; }
.hero-main-card .card-content { position: relative !important; z-index: 2 !important; }
.hero-main-card .card-title a { position: relative !important; z-index: 3 !important; }

/* Fix side cards clickable */
.side-card,
.article-card,
.article-card a,
.side-card a,
.hero-main-card a {
  cursor: pointer !important;
}

/* =============================================
   GLOBAL FORCE OVERRIDES - v13 final
============================================= */

/* Article cards - always white */
.article-card,
.article-card .card-body,
.article-card .card-footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
.article-card .card-title,
.article-card .card-title a {
  color: #1a1a2e !important;
}
.article-card .card-title a:hover { color: #E63946 !important; }
.article-card .meta-info,
.article-card .meta-info span { color: #6c757d !important; }

/* Share bar - never has background */
.post-share-bar {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Author bio box - always white */
.author-bio-box { background: #ffffff !important; }
.author-bio-box .author-name { color: #1a1a2e !important; }
.author-bio-box .author-role { color: #E63946 !important; }
.author-bio-box .author-desc { color: #555555 !important; }
.author-bio-box .author-social a { color: #6c757d !important; }

/* Post nav cards - always white with dark text */
.post-nav .article-card-list,
.post-nav .article-card-list .card-body { background: #ffffff !important; }
.post-nav .article-card-list .card-title,
.post-nav .article-card-list .card-title a { color: #1a1a2e !important; }
.post-nav .article-card-list .meta-info,
.post-nav .article-card-list .meta-info span { color: #6c757d !important; }

/* Mobile hamburger menu icon - always white/visible */
.header-menu-btn,
.header-menu-btn i,
.header-search-btn,
.header-search-btn i { color: #ffffff !important; }

/* All list cards white */
.article-card-list,
.article-card-list .card-body { background: #ffffff !important; }
.article-card-list .card-title,
.article-card-list .card-title a { color: #1a1a2e !important; }

/* Widget boxes always white */
.widget-box { background: #ffffff !important; }
.widget-box .widget-title { color: #E63946; }

/* Side cards always white with dark text */
.side-card { background: #ffffff !important; }
.side-card .card-title,
.side-card .card-title a,
.side-card h4,
.side-card h4 a { color: #1a1a2e !important; }
.side-card .card-title a:hover,
.side-card h4 a:hover { color: #E63946 !important; }
.side-card .meta-info,
.side-card .meta-info span { color: #6c757d !important; }

/* Mobile header icons always white & visible */
.header-search-btn,
.header-search-btn i,
.header-menu-btn,
.header-menu-btn i {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 768px) {
  .header-menu-btn { display: flex !important; }
  .header-search-btn { display: flex !important; }
}

/* Search form styling */
.search-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}
.search-field:focus { border-color: #E63946; }

/* =============================================
   SINGLE POST LAYOUT FIX
============================================= */
.single-post-layout.container {
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 32px !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  .single-post-layout.container {
    grid-template-columns: 1fr !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
@media (max-width: 480px) {
  .single-post-layout.container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
