/*
Theme Name: RV-News
Theme URI: https://www.themespride.com/products/newspaper-magazine-blog
Author: ThemesPride
Author URI: https://www.themespride.com/
Description: RV-News is a modern, high-end, elegant, and fully responsive theme designed with a stunning glassmorphism aesthetic for journalists, bloggers, and content creators.
Version: 2.6.2
Tested up to: 6.9
Requires PHP: 5.6
Requires at least: 5.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newspaper-magazine-blog
Tags: wide-blocks, block-styles, one-column, two-columns, right-sidebar, left-sidebar, three-columns, grid-layout, custom-colors, custom-header, custom-background, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, translation-ready, sticky-post, theme-options, post-formats, threaded-comments, news, blog
*/

/* ============================================================
   DESIGN TOKENS (Glassmorphism Dark Theme)
   ============================================================ */
:root {
  --primary:       rgba(26, 26, 46, 0.8);
  --accent:        #e94560;
  --accent2:       #0f3460;
  --bg:            #0B0C10; /* Deep dark background */
  --card-bg:       rgba(255, 255, 255, 0.04); /* Translucent glass */
  --text:          #e0e0e0; /* Light text for dark bg */
  --muted:         #a0a0a0;
  --border:        rgba(255, 255, 255, 0.1);
  --radius:        16px;
  --radius-sm:     8px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover:  0 12px 48px rgba(233, 69, 96, 0.2);
  --glass-blur:    blur(12px);
  --font-body:     'Lato', sans-serif;
  --font-heading:  'Merriweather', serif;
  --container:     1200px;
  --transition:    0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Legacy compat vars */
  --color-primary1: #e94560;
  --color-primary2: #1a1a2e;
  --font-awesome: 'FontAwesome';
}

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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

body.custom-background { background-color: var(--bg) !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff; /* White headings for dark theme */
  line-height: 1.3;
  font-weight: 700;
}

p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color var(--transition);
}
a:hover { color: var(--accent2); }

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

textarea { width: 100%; }
ul, ol { padding-left: 0; list-style: none; }

input, button, select, textarea {
  font-family: var(--font-body);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  background: #fff;
  z-index: 99999;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-inner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legacy loader classes */
.center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 5px solid #151515; border-radius: 50%; }
.center1 { width: 60px; height: 60px; border-left-color: var(--accent); border-top-color: var(--accent); animation: animateCenter1 2s infinite linear; }
.center2 { width: 30px; height: 30px; border-left-color: var(--accent); border-top-color: var(--accent); animation: animateCenter2 2s infinite linear; }
@keyframes animateCenter1 { 100% { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes animateCenter2 { 100% { transform: translate(-50%,-50%) rotate(-360deg); } }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--primary);
  padding: 8px 0;
  font-size: 12px;
  font-family: var(--font-body);
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.75);
}
.top-bar-left .top-date { color: rgba(255,255,255,0.75); }
.top-bar-left .top-tagline { color: rgba(255,255,255,0.6); }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-right a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.top-bar-right a:hover { color: var(--accent); }
.top-bar-right svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   MASTHEAD / HEADER BRAND
   ============================================================ */
.site-masthead {
  background: var(--card-bg);
  padding: 18px 0;
  border-bottom: 3px solid var(--accent);
}
.site-masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead-brand .custom-logo-link img { max-height: 70px; width: auto; }
.masthead-brand .site-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--primary);
  line-height: 1.1;
  display: block;
  text-transform: none;
}
.masthead-brand .site-name a { color: var(--primary); }
.masthead-brand .site-name a:hover { color: var(--accent); }
.masthead-brand .site-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  display: block;
}
.masthead-ad {
  text-align: center;
  flex: 1;
}
.masthead-search {
  display: flex;
  align-items: center;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.site-navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.site-navbar .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Nav menu */
.main-navigation { flex: 1; }
.main-navigation ul { display: flex; align-items: stretch; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 16px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  border-bottom: 3px solid var(--accent);
}

/* Dropdown */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 220px;
  box-shadow: var(--shadow-hover);
  border-top: 3px solid var(--accent);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.main-navigation ul ul ul { top: 0; left: 100%; }
.main-navigation li:hover > ul,
.main-navigation li.focus > ul,
.main-navigation li:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.main-navigation ul ul li { display: block; border-bottom: 1px solid var(--border); }
.main-navigation ul ul li:last-child { border-bottom: 0; }
.main-navigation ul ul a {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 20px;
  background: none;
  border-bottom: 0;
}
.main-navigation ul ul a:hover { color: var(--accent); background: rgba(233,69,96,0.05); }

/* Dropdown arrow */
.main-navigation li.menu-item-has-children > a::after,
.main-navigation li.page_item_has_children > a::after {
  content: "▾";
  font-family: inherit;
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.7;
}
.main-navigation ul ul li.menu-item-has-children > a::after { content: "›"; }

/* Newsletter CTA in nav */
.nav-newsletter-cta {
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.nav-newsletter-cta a {
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-newsletter-cta a:hover { background: #c73050; transform: scale(1.02); border-bottom: 0 !important; }

/* Search in nav */
.nav-search {
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.nav-search button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.nav-search button:hover { color: var(--accent); }
.nav-search svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger */
.toggle-nav {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  color: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.toggle-nav span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.toggle-nav.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.toggle-nav.active span:nth-child(2) { opacity: 0; }
.toggle-nav.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9998;
  flex-direction: column;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay .main-navigation ul { flex-direction: column; }
.mobile-nav-overlay .main-navigation a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
}
.mobile-nav-overlay .main-navigation ul ul {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  border-top: none;
  background: rgba(255,255,255,0.05);
  padding-left: 16px;
}
.mobile-nav-overlay .main-navigation ul ul a { color: rgba(255,255,255,0.8); }
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}
.breaking-ticker .ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 16px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 1;
  border-radius: 4px;
  margin-right: 16px;
}
.ticker-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.breaking-ticker .ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 36px;
  position: relative;
}
.breaking-ticker .ticker-items {
  display: flex;
  align-items: center;
  height: 36px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}
.breaking-ticker .ticker-items:hover { animation-play-state: paused; }
.breaking-ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 40px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
}
.breaking-ticker .ticker-item a { color: #fff; font-weight: 600; }
.breaking-ticker .ticker-item a:hover { color: rgba(255,255,255,0.8); text-decoration: underline; }
.breaking-ticker .ticker-item::after { content: "•"; padding-left: 40px; opacity: 0.5; }
.breaking-ticker .ticker-item:last-child::after { content: ""; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-outer {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26,26,46,0.97);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}
body.search-focus .search-outer { visibility: visible; opacity: 1; }
.inner_searchbox {
  width: 90%;
  max-width: 680px;
  background: none;
}
.inner_searchbox form.search-form {
  display: flex;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  background: none;
  padding: 0;
}
.inner_searchbox input.search-field {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  font-family: var(--font-body);
  padding: 12px 0;
  outline: none;
}
.inner_searchbox input.search-field::placeholder { color: rgba(255,255,255,0.4); }
.inner_searchbox button[type="submit"] {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  padding: 12px;
}
.inner_searchbox button[type="submit"]:hover { color: var(--accent); }
.search-hint { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 12px; text-align: center; }
button.search-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}
button.search-close:hover { color: #fff; }
body.admin-bar .search-outer { padding-top: 112px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--primary);
}
.hero-section .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.hero-section:hover .hero-image { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.96) 0%, rgba(26,26,46,0.4) 60%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-section .hero-content { left: 50%; transform: translateX(-50%); width: 100%; }
.hero-badge { margin-bottom: 14px; }
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 42px;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 14px;
  max-width: 800px;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: rgba(255,255,255,0.85); }
.hero-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
}
.hero-meta .author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.5); }
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-hero-read:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-hero-read svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   CATEGORY BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
}
.badge-news     { background: #e94560; color: #fff; }
.badge-tips     { background: #0f3460; color: #fff; }
.badge-tutorial { background: #27ae60; color: #fff; }
.badge-review   { background: #f39c12; color: #fff; }
.badge-tech     { background: #8e44ad; color: #fff; }
.badge-sport    { background: #2980b9; color: #fff; }
.badge-default  { background: var(--primary); color: #fff; }

/* Dynamic category badge (auto-colored by WP category) */
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.cat-badge:hover { opacity: 0.85; color: #fff; }

/* ============================================================
   FEATURED STORIES GRID
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
  margin: 32px 0;
}
.featured-grid .card-featured-main { grid-row: 1 / 3; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card, .card, .page-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.article-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}
.card-image-wrap {
  position: relative;
  overflow: hidden;
}
.card-image-wrap img,
.card-img-top {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-card:hover .card-image-wrap img { transform: scale(1.04); }
.card-image-wrap .cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}
.card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 8px 0 10px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  flex-wrap: wrap;
}
.card-meta .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.card-meta .sep { opacity: 0.4; }
.card-meta .read-time { display: flex; align-items: center; gap: 4px; }
.card-meta svg { width: 12px; height: 12px; fill: currentColor; }

/* Featured card with overlay */
.card-overlay {
  position: relative;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.card-overlay:hover img { opacity: 0.45; }
.card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(26,26,46,0.95) 0%, transparent 100%);
}
.card-overlay-content .card-title { color: #fff; font-size: 16px; }
.card-overlay-content .card-title a { color: #fff; }
.card-overlay-content .card-title a:hover { color: rgba(255,255,255,0.85); }
.card-overlay-content .card-meta { color: rgba(255,255,255,0.6); }

/* ============================================================
   ARTICLE GRIDS
   ============================================================ */
.article-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.article-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Main content + sidebar layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.view-all-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover { color: var(--accent2); }
.view-all-link::after { content: " →"; }

/* Category Showcase section */
.category-showcase { margin: 40px 0; }

/* ============================================================
   IN-FEED AD SLOT
   ============================================================ */
.ad-slot {
  text-align: center;
  padding: 12px 0;
  margin: 32px 0;
}
.ad-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  display: block;
}
.ad-placeholder {
  background: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
}
.ad-placeholder-728 { width: 100%; max-width: 728px; height: 90px; }
.ad-placeholder-300 { width: 300px; height: 250px; }
.ad-placeholder-300-600 { width: 300px; height: 600px; }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: var(--accent2);
  padding: 64px 0;
  text-align: center;
}
.newsletter-band .nl-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.newsletter-band .nl-readers {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.newsletter-band .nl-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  margin-bottom: 10px;
}
.newsletter-band .nl-subtitle {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.newsletter-form input[type="email"] {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  color: var(--text);
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: #c73050; }
.newsletter-gdpr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-gdpr input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.newsletter-gdpr label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  cursor: pointer;
}
.newsletter-trust {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  font-family: var(--font-body);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#theme-sidebar { width: 100%; }
.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 16px 20px; }

/* Newsletter widget */
.newsletter-widget {
  background: var(--primary);
  padding: 24px;
}
.newsletter-widget .widget-title { border-color: var(--accent); color: #fff; background: none; padding: 0 0 14px; }
.newsletter-widget p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.newsletter-widget input[type="email"] {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.newsletter-widget input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-widget button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-widget button:hover { background: #c73050; }
.newsletter-widget .trust-line {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
  text-align: center;
}

/* Trending widget */
.trending-widget .trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.trending-widget .trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-rank {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  min-width: 32px;
  opacity: 0.6;
}
.trending-content { flex: 1; }
.trending-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-title a { color: var(--text); }
.trending-title a:hover { color: var(--accent); }
.trending-meta { font-size: 11px; color: var(--muted); font-family: var(--font-body); }

/* Category list widget */
.category-widget ul { list-style: none; padding: 0; }
.category-widget li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.category-widget li:last-child { border-bottom: none; }
.category-widget li:hover { background: rgba(233,69,96,0.04); }
.category-widget li a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.category-widget li a:hover { color: var(--accent); }
.category-widget .cat-count {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-body);
}

/* WordPress native widgets */
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--font-body);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }
#theme-sidebar .textwidget a,
#footer .textwidget a { text-decoration: underline; color: var(--accent); }

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.single-article-wrap { padding: 40px 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--text); }

/* Article header */
.article-header { margin-bottom: 28px; }
.article-header .cat-badge { margin-bottom: 16px; }
.article-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 20px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
  margin-bottom: 20px;
}
.article-meta-row .author-wrap { display: flex; align-items: center; gap: 8px; }
.article-meta-row .author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-meta-row .author-name { font-weight: 700; color: var(--text); }
.article-meta-row .meta-sep { opacity: 0.35; }
.article-meta-row .meta-date, .article-meta-row .meta-read-time { display: flex; align-items: center; gap: 4px; }
.article-meta-row svg { width: 13px; height: 13px; fill: currentColor; }

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.share-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }
.share-facebook { background: #1877f2; color: #fff; }
.share-twitter  { background: #000; color: #fff; }
.share-linkedin { background: #0a66c2; color: #fff; }
.share-copy     { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.share-copy.copied { background: #27ae60; color: #fff; border-color: #27ae60; }

/* Article hero image */
.article-hero-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.article-image-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-bottom: 32px;
}

/* Article body */
.entry-content,
.article-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  max-width: 720px;
}
.entry-content p, .article-body p { margin-bottom: 24px; }
.entry-content h2, .article-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  margin: 40px 0 16px;
}
.entry-content h3, .article-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--accent2);
  margin: 28px 0 12px;
}
.entry-content h4, .article-body h4 { font-size: 18px; margin: 20px 0 10px; }
.entry-content blockquote, .article-body blockquote {
  border-left: 4px solid var(--accent);
  background: #fff4f6;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--primary);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img, .article-body img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  display: block;
  margin: 24px auto;
}
.entry-content a, .article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(233,69,96,0.3);
  transition: border-color var(--transition);
}
.entry-content a:hover, .article-body a:hover {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}
.entry-content code, .article-body code {
  font-family: 'Courier New', monospace;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.entry-content pre, .article-body pre {
  background: var(--primary);
  color: #e8e8e8;
  padding: 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.entry-content pre code, .article-body pre code { background: none; padding: 0; }
.entry-content ul, .entry-content ol,
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li, .article-body li { margin-bottom: 8px; }
.entry-content ul li::marker, .article-body ul li::marker { color: var(--accent); }

/* In-content ad */
.in-content-ad {
  margin: 32px auto;
  text-align: center;
  clear: both;
}
.in-content-ad .ad-label { margin-bottom: 6px; }

/* Tags */
.post-tags {
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags .tags-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}
.post-tag:hover { border-color: var(--accent); color: var(--accent); }
div.post_tag a, div.post_category a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 2px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
div.post_tag a:hover, div.post_category a:hover { border-color: var(--accent); color: var(--accent); }

/* Author box */
.author-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-top: 3px solid var(--accent);
}
.author-box .author-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 4px;
}
.author-box-role {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.author-box-bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.post-nav-link {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.post-nav-link:hover { transform: translateY(-2px); }
.post-nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.post-nav-title { font-family: var(--font-heading); font-size: 14px; color: var(--primary); line-height: 1.4; }
.post-nav-next { text-align: right; }
.nav-links a { text-decoration: none; }
.nav-links .nav-previous a, .nav-links .nav-next a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================
   PAGE LAYOUT (index, archive, search)
   ============================================================ */
.box-image-page {
  position: relative;
  background: var(--primary);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.box-image-page .single-page-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent2) 100%);
  opacity: 1;
}
.box-text {
  position: relative;
  z-index: 5;
  text-align: center;
}
.box-text h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}
.blog-description { font-size: 15px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.external-div {
  position: relative;
  text-align: center;
  height: 260px;
  background: var(--primary);
  overflow: hidden;
}
.external-div .box-image-page {
  height: 260px;
  position: absolute;
  inset: 0;
}
.external-div .featured-image {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-size: cover;
  background-position: center;
}
.external-div .box-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}
.external-div .box-text h2 { color: #fff; font-size: 28px; }

/* Post cards in index/archive */
.page-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}
.page-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}
.page-box .box-image-page {
  height: 240px;
  border-radius: 0;
  overflow: hidden;
}
.page-box .box-image-page img { width: 100%; height: 100%; object-fit: cover; }
.page-box .box-content { padding: 20px 24px 24px; }
.page-box h4 { margin-bottom: 10px; padding-bottom: 0; }
.page-box h4 a { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); }
.page-box h4 a:hover { color: var(--accent); }
.page-box p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 10px 0; }
.page-box .readmore-btn a {
  display: inline-block;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition);
}
.page-box .readmore-btn a:hover { background: var(--accent2); }
.page-box .box-info { padding: 8px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.box-info i { color: var(--accent); font-size: 12px; }
.content-area .box-info a, .content-area .box-info span {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.content-area .box-info a:hover { color: var(--accent); }

/* Grid view */
.col-grid .page-box { margin-bottom: 24px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.navigation { margin: 32px 0; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  margin: 2px;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer, .site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
}
.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-brand .site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}
.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.footer-social-link:hover { background: var(--accent); color: #fff; }
.footer-social-link svg { width: 15px; height: 15px; fill: currentColor; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

/* Footer newsletter */
.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.footer-nl-form { display: flex; flex-direction: column; gap: 8px; }
.footer-nl-form input[type="email"] {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.footer-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.footer-nl-form button:hover { background: #c73050; }

/* Footer bottom bar */
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: var(--accent); }

/* WordPress widgets in footer */
#footer .widget { background: transparent; box-shadow: none; border-radius: 0; margin-bottom: 0; }
#footer .widget-title { color: #fff; background: none; padding: 0 0 10px; border-bottom: 2px solid var(--accent); }
#footer .widget ul li { border-color: rgba(255,255,255,0.08); }
#footer .widget ul li a { color: rgba(255,255,255,0.65); }
#footer .widget ul li a:hover { color: var(--accent); }
#footer .wp-calendar-table th { background-color: var(--accent); color: #fff; border-color: var(--accent); }
#footer .tagcloud a, #footer p.wp-block-tag-cloud a { text-decoration: none; color: rgba(255,255,255,0.6); }
#footer .widget.widget_block.widget_text a { text-decoration: underline; }
#footer .wp-block-details summary { color: #fff; }
.footer-widgets-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.return-to-header { position: fixed; bottom: 28px; right: 28px; z-index: 9000; }
#return-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(233,69,96,0.4);
  font-size: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}
#return-to-top.visible { opacity: 1; transform: translateY(0); }
#return-to-top:hover { background: var(--accent2); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-author .avatar { border-radius: 50%; }
.comment-content p { font-size: 15px; color: var(--text); margin: 8px 0; }
.comment-reply-link { font-size: 13px; color: var(--accent); font-weight: 600; }
.comment-form label { font-size: 14px; color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--accent2); }
.comment-reply-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 80px 16px; }
.error-404 .error-code {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404 h1 { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.error-404 p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto 32px; }
.error-404 .search-form { max-width: 400px; margin: 0 auto 40px; display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.error-404 .search-form input { flex: 1; border: none; padding: 12px 16px; font-size: 15px; font-family: var(--font-body); outline: none; }
.error-404 .search-form button { background: var(--accent); color: #fff; border: none; padding: 12px 20px; cursor: pointer; }

/* ============================================================
   PAGE TEMPLATES (Contact, Newsletter, etc.)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent2) 100%);
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 18px; }

.contact-form-wrap { max-width: 680px; margin: 0 auto; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--card-bg);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.contact-form button:hover { background: var(--accent2); transform: translateY(-2px); }

/* ============================================================
   UTILITY
   ============================================================ */
.clearfix::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.section-pad { padding: 48px 0; }

/* Lazy loading fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded { opacity: 1; }
.lazy-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.lazy-fade.in-view { opacity: 1; transform: translateY(0); }

/* Search bar legacy */
.search-bar button { background: none; border: none; cursor: pointer; }
.search-bar i { font-size: 18px; color: rgba(255,255,255,0.75); }

/* Tag cloud */
.tagcloud a, .wp-block-tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  margin: 3px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px !important;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}
.tagcloud a:hover, .wp-block-tag-cloud a:hover { border-color: var(--accent); color: var(--accent); }

/* Sidebar WP widgets */
#secondary .wp-calendar-table th, #theme-sidebar .wp-calendar-table th {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
#secondary li a, #theme-sidebar li a { text-decoration: none; }
#secondary .widget.widget_block.widget_text p a,
#theme-sidebar .widget.widget_block.widget_text p a { text-decoration: underline; }

/* Page content */
.entry-header { margin-bottom: 24px; }
.entry-header .entry-title { font-size: 32px; }
.page-content { padding: 40px 0; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 576px+ */
@media (min-width: 576px) {
  .article-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured-grid .card-featured-main { grid-row: auto; grid-column: 1 / 3; }
}

/* Laptop: 768px+ */
@media (min-width: 768px) {
  .main-layout { grid-template-columns: 1fr 280px; }
  .article-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .article-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-widgets-area { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 200px); }
  .featured-grid .card-featured-main { grid-row: 1 / 3; grid-column: auto; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .container { max-width: var(--container); }
  .main-layout { grid-template-columns: 1fr 300px; gap: 40px; }
  .article-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 42px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-widgets-area { grid-template-columns: repeat(4, 1fr); }
}

/* Large: 1200px+ */
@media (min-width: 1200px) {
  .container { max-width: 1280px; }
}

/* ============================================================
   MOBILE OVERRIDES (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* Hide desktop nav, show hamburger */
  .site-navbar .main-navigation { display: none; }
  .toggle-nav { display: flex; }
  .nav-newsletter-cta { display: none; }

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

  /* Masthead */
  .site-masthead .container { flex-wrap: wrap; }
  .masthead-ad { display: none; }
  .masthead-brand .site-name { font-size: 22px; }

  /* Hero */
  .hero-section { height: 320px; }
  .hero-content { padding: 24px 16px; }
  .hero-title { font-size: 22px; }
  .hero-excerpt { display: none; }

  /* Featured grid */
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .featured-grid .card-featured-main { grid-row: auto; height: 220px; }

  /* Grids */
  .article-grid-4, .article-grid-3, .article-grid-2 { grid-template-columns: 1fr; }

  /* Main layout: stack */
  .main-layout { grid-template-columns: 1fr; }
  .main-layout .sidebar { display: block; margin-top: 40px; }

  /* Category showcase: scroll */
  .category-showcase .article-grid-4 {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .category-showcase .article-grid-4 .article-card {
    min-width: 260px;
    scroll-snap-align: start;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-widgets-area { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  /* Article */
  .article-title { font-size: 24px; }
  .share-buttons { display: none; }
  .author-box { flex-direction: column; }
  .post-navigation { grid-template-columns: 1fr; }

  /* Newsletter band */
  .newsletter-form { flex-direction: column; border-radius: var(--radius-sm); overflow: visible; }
  .newsletter-form input[type="email"] { border-radius: var(--radius-sm); }
  .newsletter-form button { border-radius: var(--radius-sm); }
}

/* ============================================================
   ADMIN BAR OFFSETS
   ============================================================ */
body.admin-bar .site-navbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-navbar { top: 46px; }
}

/* ============================================================
   BLOCKS CSS COMPAT
   ============================================================ */
.wp-block-image { margin: 24px auto; }
.wp-block-quote { border-left: 4px solid var(--accent); background: #fff4f6; padding: 20px 24px; margin: 28px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wp-block-separator { border-color: var(--border); margin: 32px 0; }
.wp-block-button .wp-block-button__link { background: var(--accent); border-radius: var(--radius-sm); }
.alignwide { max-width: 100%; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }