/*
Theme Name: KopaNews
Theme URI: https://rastrydesign.com/kopanews-wordpress-news-magazine-theme
Author: RastryDesign
Author URI: https://rastrydesign.com
Description: KopaNews is a powerful, modern, and professional news and magazine WordPress theme with pixel-perfect design and outstanding functionality. KopaNews features native WordPress Core Starter Content for instant live setup in the Customizer, clean code, news ticker, sticky menu, logo upload, header image, custom background, and Bootstrap 5 framework, built with SEO and accessibility in mind, mobile ready, translation ready (WPML, Polylang), and beautiful on all screen sizes. Perfectly suited for news agencies, digital newspapers, editorial portals, online magazines, broadcast media, world news, politics, business, finance, sports, technology, entertainment, travel, and personal blogs. Includes visual wireframe layout pickers, theme color presets, breaking news ticker, and compatibility with popular plugins like Yoast SEO, Rank Math, Contact Form 7, and Jetpack.
Version: 1.0.4
Tested up to: 7.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kopanews
Tags: news, entertainment, grid-layout, two-columns, three-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, theme-options, translation-ready

(C) 2026 RastryDesign. Distributed under GNU GPL v2 or later.
*/

/* ============================================
   NEWS TEMPLATE - CUSTOM STYLES
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --brand-red: #cc0000;
  --brand-red-dark: color-mix(in srgb, var(--brand-red) 80%, #000000 20%);
  --brand-red-light: color-mix(in srgb, var(--brand-red) 85%, #ffffff 15%);
  --brand-red-hover: color-mix(in srgb, var(--brand-red) 80%, #000000 20%);
  --navbar-bg: var(--brand-red);
  --navbar-hover-bg: color-mix(in srgb, var(--navbar-bg) 75%, #ffffff 25%);
  --navbar-text: #ffffff;
  --navbar-text-hover: #ffffff;
  --dark-bg: #0c0c0c;
  --dark-surface: #1a1a1a;
  --dark-surface-2: #222222;
  --light-bg: #f9f9f9;
  --card-bg: #ffffff;
  --border-color: #e2e2e2;
  --border-light: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: #5f6368;
  --text-muted: #8a8a8a;
  --text-light: #bdbdbd;
  --accent-blue: #0066cc;
  --accent-orange: #ff6b00;
  --accent-green: #00a854;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-headline: "Roboto Condensed", "Inter", sans-serif;
  --section-gap: 2.5rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Global Layout Max-Width ---------- */
.container-fluid {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* Inline Body & Content Links */
p a,
.entry-content p a,
.single-post-content p a,
.lead a,
.story-card p a,
.comment-content p a {
  color: var(--link-color, var(--brand-red, #cc0000));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

p a:hover,
p a:focus,
.entry-content p a:hover,
.entry-content p a:focus,
.single-post-content p a:hover,
.single-post-content p a:focus,
.lead a:hover,
.lead a:focus,
.story-card p a:hover,
.story-card p a:focus,
.comment-content p a:hover,
.comment-content p a:focus {
  color: var(
    --link-hover-color,
    var(--brand-red-hover, color-mix(in srgb, var(--brand-red, #cc0000) 75%, #ffffff 25%))
  ) !important;
  text-decoration: underline;
}

/* Button & Submit Styles */
.btn-danger,
#submit,
input[type='submit'],
button[type='submit'],
.comment-form input#submit,
.comment-form .submit {
  background-color: var(--primary-color, var(--brand-red, #cc0000)) !important;
  border-color: var(--primary-color, var(--brand-red, #cc0000)) !important;
  color: #ffffff !important;
  transition: all var(--transition-fast);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
#submit:hover,
#submit:focus,
input[type='submit']:hover,
input[type='submit']:focus,
button[type='submit']:hover,
button[type='submit']:focus,
.comment-form input#submit:hover,
.comment-form input#submit:focus {
  background-color: var(--brand-red-hover, var(--brand-red-dark)) !important;
  border-color: var(--brand-red-hover, var(--brand-red-dark)) !important;
  color: #ffffff !important;
}

a:hover,
a:focus,
a.text-dark:hover,
a.text-dark:focus,
a.text-decoration-none:hover,
a.text-decoration-none:focus,
.hero-main-headline h1 a:hover,
.hero-main-headline h1 a:focus,
.hero-sidebar-story h6 a:hover,
.hero-sidebar-story h6 a:focus,
.story-card .card-title a:hover,
.story-card .card-title a:focus,
.story-card h4 a:hover,
.story-card h4 a:focus,
.story-card h5 a:hover,
.story-card h5 a:focus,
.story-card h6 a:hover,
.story-card h6 a:focus,
.trending-item h6 a:hover,
.trending-item h6 a:focus,
.widget a:hover,
.widget a:focus,
.see-more:hover,
.entry-title a:hover,
.entry-title a:focus,
.footer-links a:hover,
.cat-links a:hover,
.comments-link a:hover {
  color: var(
    --brand-red-hover,
    color-mix(in srgb, var(--brand-red, #cc0000) 75%, #ffffff 25%)
  ) !important;
}

/* ---------- Footer Social Icons Hover (No Red Hover) ---------- */
.footer-social a,
.footer-social a:hover,
.footer-social a:focus {
  color: #bdbdbd !important;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.footer-social a:hover,
.footer-social a:focus {
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

/* ---------- Utility Classes ---------- */
.section-gap {
  padding: 1.5rem 0;
}

.section-divider-thick {
  border: none;
  border-top: 3px solid var(--brand-red);
  margin: 0 0 1.5rem;
  width: 60px;
}

.category-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brand-red);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.category-label.blue {
  color: var(--accent-blue);
}
.category-label.orange {
  color: var(--accent-orange);
}
.category-label.green {
  color: var(--accent-green);
}

.timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--dark-bg);
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: #ffffff;
}

.top-bar .live-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

/* ---------- Main Navigation ---------- */
.main-navbar {
  background: var(--navbar-bg, var(--brand-red));
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-red, #cc0000) 30%, transparent);
  transition: box-shadow var(--transition-base);
}

.main-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-navbar .navbar-brand,
.main-navbar .navbar-brand a,
.main-navbar a.navbar-brand {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navbar-text, #ffffff) !important;
  letter-spacing: 3px;
  padding: 0.5rem 0;
  text-transform: uppercase;
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast);
}

.main-navbar .navbar-brand:hover,
.main-navbar .navbar-brand:focus,
.main-navbar .navbar-brand a:hover,
.main-navbar .navbar-brand a:focus,
.main-navbar a.navbar-brand:hover,
.main-navbar a.navbar-brand:focus {
  color: var(--navbar-text-hover, #ffffff) !important;
  opacity: 0.88;
}

.main-navbar .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.main-navbar .custom-logo {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.site-footer .custom-logo-link {
  display: inline-block;
}

.site-footer .custom-logo {
  max-height: 38px;
  width: auto;
  height: auto;
  display: block;
}

.main-navbar .nav-link,
.main-navbar a.nav-link,
.main-navbar .navbar-nav .nav-link {
  color: var(--navbar-text, rgba(255, 255, 255, 0.95)) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.9rem 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: all var(--transition-fast);
}

.main-navbar .nav-link::after,
.main-navbar a.nav-link::after,
.main-navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--navbar-text, #ffffff);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus,
.main-navbar a.nav-link:hover,
.main-navbar a.nav-link:focus,
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link:focus {
  color: var(--navbar-text-hover, #ffffff) !important;
  background: var(
    --navbar-hover-bg,
    color-mix(in srgb, var(--navbar-bg, var(--brand-red)) 75%, #ffffff 25%)
  ) !important;
  border-radius: 4px;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link:focus::after,
.main-navbar a.nav-link:hover::after,
.main-navbar a.nav-link:focus::after {
  width: 100%;
}

.main-navbar .nav-link.active,
.main-navbar a.nav-link.active {
  color: var(--navbar-text-hover, #ffffff) !important;
  background: var(
    --navbar-hover-bg,
    color-mix(in srgb, var(--navbar-bg, var(--brand-red)) 75%, #ffffff 25%)
  ) !important;
  border-radius: 4px;
}

.main-navbar .nav-link.active::after,
.main-navbar a.nav-link.active::after {
  width: 100%;
}

.navbar-search-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 2px solid transparent !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.1rem !important;
  cursor: pointer;
  border-radius: 50% !important;
  transition: all var(--transition-fast);
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.navbar-search-btn:hover {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

.navbar-search-btn:focus,
.navbar-search-btn:focus-visible {
  outline: none !important;
  border-color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
  border-radius: 50% !important;
}

.navbar-search-btn i {
  font-size: 1.05rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* ---------- Accessibility & Skip Link ---------- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  clip: auto !important;
  clip-path: none;
  color: var(--brand-red, #cc0000) !important;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 14px;
  line-height: normal;
  padding: 12px 22px;
  text-decoration: none;
  top: 14px;
  width: auto;
  z-index: 100000;
  outline: 2px solid var(--brand-red, #cc0000);
}

/* Accessible Keyboard Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-red, #cc0000) !important;
  outline-offset: 2px !important;
}

.main-navbar a:focus-visible,
.main-navbar button:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* ---------- Dropdown Navigation Menus ---------- */
.main-navbar .navbar-nav .nav-item {
  position: relative;
}

.main-navbar .navbar-nav .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--brand-red, #cc0000);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;
  min-width: 220px;
  margin-top: 0;
  list-style: none;
  z-index: 1055;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-navbar .navbar-nav .dropdown-item {
  color: #1a1a1a !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: none;
  letter-spacing: normal;
  transition: all var(--transition-fast);
  background: transparent !important;
}

.main-navbar .navbar-nav .dropdown-item:hover,
.main-navbar .navbar-nav .dropdown-item:focus {
  background: color-mix(in srgb, var(--brand-red, #cc0000) 10%, #ffffff) !important;
  color: var(--brand-red, #cc0000) !important;
  padding-left: 1.5rem !important;
}

.main-navbar .navbar-nav .dropdown-item.active {
  background: var(--brand-red, #cc0000) !important;
  color: #ffffff !important;
}

.main-navbar .nav-link-wrapper,
.main-navbar .dropdown-item-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.main-navbar .dropdown-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.main-navbar .dropdown-toggle-btn:hover,
.main-navbar .dropdown-toggle-btn:focus {
  color: #ffffff;
}

.main-navbar .is-open > .nav-link-wrapper .dropdown-toggle-btn,
.main-navbar .is-open > .dropdown-item-wrapper .dropdown-toggle-btn,
.main-navbar .nav-item.is-open > .nav-link-wrapper .dropdown-toggle-btn,
.main-navbar .dropdown-submenu.is-open > .dropdown-item-wrapper .dropdown-toggle-btn {
  transform: rotate(180deg);
}

/* Desktop Dropdown Presentation */
@media (min-width: 992px) {
  .main-navbar .navbar-nav .dropdown > .dropdown-menu,
  .main-navbar .navbar-nav .menu-item-has-children > .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .main-navbar .navbar-nav .dropdown.is-open > .dropdown-menu,
  .main-navbar .navbar-nav .menu-item-has-children.is-open > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .main-navbar .navbar-nav .dropdown-menu .dropdown-submenu {
    position: relative;
  }

  .main-navbar .navbar-nav .dropdown-menu .dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--brand-red, #cc0000);
  }

  .main-navbar .navbar-nav .dropdown-menu .dropdown-submenu.is-open > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Mobile dropdown styles */
@media (max-width: 991.98px) {
  .main-navbar .navbar-nav .dropdown-menu {
    display: none;
    position: static !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    border-left: 3px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 0.75rem !important;
    margin: 0.25rem 0 0.5rem 0.5rem !important;
  }

  .main-navbar .navbar-nav .dropdown.is-open > .dropdown-menu,
  .main-navbar .navbar-nav .menu-item-has-children.is-open > .dropdown-menu {
    display: block !important;
  }

  .main-navbar .navbar-nav .dropdown-item {
    color: #ffffff !important;
  }

  .main-navbar .navbar-nav .dropdown-item:hover,
  .main-navbar .navbar-nav .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }
}

/* ---------- Breaking News Ticker ---------- */
.breaking-news-bar {
  background: #000000;
  color: #ffffff;
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
  margin-left: 0;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}

.ticker-content span {
  margin: 0 0.85rem;
  position: relative;
}

.ticker-content span::after {
  content: "•";
  margin-left: 0.85rem;
  color: var(--brand-red);
}

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

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-main-headline h1 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.hero-main-headline h1:hover {
  color: var(--brand-red);
}

.hero-main-headline .hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-image-wrapper .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
}

/* ---------- Horizontal List Card / Hero Sidebar (Exact Design Match) ---------- */
.hero-sidebar-container,
.horizontal-list-container {
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-color);
}

.hero-sidebar-story,
.horizontal-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.hero-sidebar-story:last-child,
.horizontal-list-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-sidebar-story .category-label,
.horizontal-list-card .category-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
  display: block;
}

.hero-sidebar-story h6,
.hero-sidebar-story h6 a,
.horizontal-list-card h6,
.horizontal-list-card h6 a {
  font-family: var(--font-headline);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
  color: #1a1a1a;
  margin: 0;
  transition: color var(--transition-fast);
}

.hero-sidebar-story:hover h6,
.hero-sidebar-story:hover h6 a,
.horizontal-list-card:hover h6,
.horizontal-list-card:hover h6 a {
  color: var(--brand-red) !important;
}

.hero-sidebar-story .timestamp,
.horizontal-list-card .timestamp {
  font-size: 0.78rem;
  color: #8a8a8a;
  margin-top: 0.35rem;
  display: block;
}

.hero-sidebar-thumb,
.horizontal-list-thumb {
  width: 115px;
  min-width: 115px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-sidebar-thumb img,
.horizontal-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.hero-sidebar-story:hover .hero-sidebar-thumb img,
.horizontal-list-card:hover .horizontal-list-thumb img {
  transform: scale(1.06);
}

/* ---------- Story Cards ---------- */
.story-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
  border-color: color-mix(in srgb, var(--brand-red, #cc0000) 20%, transparent);
}

.story-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  flex-shrink: 0;
}

.story-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.story-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--brand-red, #cc0000) 90%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.story-card:hover .play-btn {
  opacity: 1;
}

.story-card .card-body {
  padding: 0.9rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-card .card-title {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  transition: color var(--transition-fast);
}

.story-card:hover .card-title {
  color: var(--brand-red);
}

.story-card .card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.story-card .timestamp {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* ---------- Horizontal Story Card ---------- */
.story-horizontal {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.story-horizontal:last-child {
  border-bottom: none;
}

.story-horizontal:hover {
  background: var(--light-bg);
  transform: translateX(4px);
}

.story-horizontal .story-thumb {
  width: 140px;
  min-width: 140px;
  height: 90px;
  overflow: hidden;
  border-radius: 3px;
  flex-shrink: 0;
}

.story-horizontal .story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.story-horizontal:hover .story-thumb img {
  transform: scale(1.05);
}

.story-horizontal .story-content h6 {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}

.story-horizontal:hover .story-content h6 {
  color: var(--brand-red);
}

/* ---------- Featured Wide Section ---------- */
.featured-wide {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.featured-wide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-wide:hover img {
  transform: scale(1.04);
}

.featured-wide .featured-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
}

.featured-wide .featured-overlay h2 {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.featured-wide .featured-overlay p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 600px;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--brand-red);
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0;
}

.section-header .see-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.section-header .see-more:hover {
  color: var(--brand-red-dark);
  transform: translateX(3px);
}

.section-header .see-more i {
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ---------- Trending Section ---------- */
.trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.trending-item:hover {
  background: var(--light-bg);
  transform: translateX(3px);
}

.trending-number {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
  min-width: 35px;
  opacity: 0.7;
}

.trending-item h6 {
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  transition: color var(--transition-fast);
}

.trending-item:hover h6 {
  color: var(--brand-red);
}

/* ---------- Video Section ---------- */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
  border-color: color-mix(in srgb, var(--brand-red, #cc0000) 20%, transparent);
}

.video-card .video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.video-card .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 55px;
  height: 55px;
  background: color-mix(in srgb, var(--brand-red, #cc0000) 85%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.video-card:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1);
  background: var(--brand-red);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--brand-red, #cc0000) 40%, transparent);
}

.video-card .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}

.video-card .video-info {
  padding: 0.9rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card .video-info .timestamp {
  margin-top: auto;
  padding-top: 0.4rem;
}

.video-card .video-info h6 {
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.video-card:hover .video-info h6 {
  color: var(--brand-red);
}

/* ---------- Opinion/Columns Section ---------- */
.opinion-card {
  text-align: center;
  padding: 1.5rem 1rem;
  transition: all var(--transition-base);
  border-radius: 6px;
  cursor: pointer;
}

.opinion-card:hover {
  background: var(--light-bg);
  transform: translateY(-3px);
}

.opinion-card .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.opinion-card:hover .author-avatar {
  border-color: var(--brand-red);
}

.opinion-card h6 {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.opinion-card .opinion-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- More From Section (Dark) ---------- */
.more-from-section {
  background: var(--dark-bg);
  color: #ffffff;
  padding: 3rem 0;
}

.more-from-section .section-header {
  border-bottom-color: var(--brand-red);
}

.more-from-section .section-header h2 {
  color: #ffffff;
}

.more-from-section .dark-story-card {
  background: var(--dark-surface);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  height: 100%;
}

.more-from-section .dark-story-card:hover {
  background: var(--dark-surface-2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.more-from-section .dark-story-card .card-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.more-from-section .dark-story-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.more-from-section .dark-story-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.more-from-section .dark-story-card .card-body {
  padding: 1rem;
}

.more-from-section .dark-story-card h6 {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.more-from-section .dark-story-card .timestamp {
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0 0;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-section h6 {
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-section ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--brand-red);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  margin-top: 2rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0.75rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ---------- Weather Widget ---------- */
.weather-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.weather-widget .temp {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.weather-widget .location {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Ad Placeholder ---------- */
.ad-space {
  background: var(--light-bg);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2rem;
  margin: 1.5rem 0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Mini Story Row ---------- */
.mini-story-row {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scroll-behavior: smooth;
}

.mini-story-row::-webkit-scrollbar {
  height: 3px;
}

.mini-story {
  min-width: 180px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-story:hover {
  transform: translateY(-2px);
}

.mini-story .mini-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mini-story .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.mini-story:hover .mini-thumb img {
  transform: scale(1.06);
}

.mini-story h6 {
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Live Badge ---------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* ---------- Image Grid Gallery ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.image-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  aspect-ratio: 1;
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-base);
}

.image-grid-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.image-grid-item .grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.image-grid-item:hover .grid-overlay {
  opacity: 1;
}

.image-grid-item .grid-overlay p {
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .hero-main-headline h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .hero-main-headline h1 {
    font-size: 1.5rem;
  }

  .featured-wide {
    min-height: 320px;
  }

  .featured-wide .featured-overlay h2 {
    font-size: 1.3rem;
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-navbar .nav-link {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-gap: 1.75rem;
  }

  .hero-main-headline h1 {
    font-size: 1.35rem;
  }

  .featured-wide {
    min-height: 260px;
  }

  .featured-wide .featured-overlay h2 {
    font-size: 1.1rem;
  }

  .story-horizontal .story-thumb {
    width: 110px;
    min-width: 110px;
    height: 75px;
  }

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

  .section-header h2 {
    font-size: 1rem;
  }

  .opinion-card .author-avatar {
    width: 65px;
    height: 65px;
  }

  .top-bar {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .hero-main-headline h1 {
    font-size: 1.2rem;
  }

  .mini-story {
    min-width: 150px;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .trending-number {
    font-size: 1.4rem;
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary-color, var(--brand-red));
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--brand-red, #cc0000) 35%, transparent);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--brand-red-hover, var(--brand-red-dark));
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-red, #cc0000) 45%, transparent);
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .main-navbar,
  .top-bar,
  .breaking-news-bar,
  .back-to-top,
  .ad-space {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--text-secondary, #666666);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.navigation.pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.navigation.pagination .screen-reader-text {
  display: none !important;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.page-numbers:hover {
  background: #f3f4f6;
  color: var(--brand-red, #cc0000);
  border-color: #d1d5db;
}
.page-numbers.current {
  background: var(--brand-red, #cc0000) !important;
  color: #ffffff !important;
  border-color: var(--brand-red, #cc0000) !important;
}
.page-numbers.dots {
  border: none;
  background: transparent;
}

/* ---------- WordPress Alignment & Caption Classes ---------- */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}
.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-secondary, #666666);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}
.bypostauthor {
  display: block;
}

/* ---------- Comment System & Sidebar Card Styling ---------- */
.comments-area {
  margin-top: 3rem;
}

.comments-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  border-bottom: 2px solid var(--brand-red, #cc0000);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.comment-list .children {
  list-style: none !important;
  padding-left: 2rem !important;
  margin-top: 1rem !important;
  border-left: 2px solid #e5e7eb;
}

@media (max-width: 575.98px) {
  .comment-list .children {
    padding-left: 1rem !important;
  }
}

.comment-body {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.comment-reply-link {
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.comment-reply-link:hover {
  color: var(--brand-red, #cc0000) !important;
}
