/*
Theme Name: Equacom News
Theme URI: https://equacom.com
Author: Equacom Digital
Author URI: https://equacom.com
Description: Modern and fully responsive news magazine theme for WordPress. Features dark/light mode toggle, animated thumbnails with auto-rotation, lazy loading, and full compatibility with Elementor, Kubio, Divi, Gutenberg and other page builders. Optimized for news sites like Africa News and Euronews.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: equacom-news
Tags: news, magazine, blog, responsive, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style, rtl-language-support, dark-mode, elementor-ready
*/

/* ================================================
   EQUACOM News WordPress Theme
   Design System & Global Styles
   MUST match React/Babel design exactly
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ================================================
   CSS Variables - EQUACOM Brand Design System
   ================================================ */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 18%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 18%, 12%);
  --primary: hsl(199, 92%, 56%);
  --primary-dark: hsl(207, 90%, 54%);
  --primary-light: hsl(199, 92%, 66%);
  --primary-glow: hsl(199, 92%, 76%);
  --secondary: hsl(210, 25%, 98%);
  --muted: hsl(215, 16%, 50%);
  --muted-foreground: hsl(215, 16%, 50%);
  --accent: hsl(210, 25%, 98%);
  --border: hsl(214, 20%, 92%);
  --input: hsl(214, 20%, 92%);
  --ring: hsl(199, 92%, 56%);
  --destructive: hsl(0, 84.2%, 60.2%);

  --news-business: hsl(199, 92%, 56%);
  --news-tech: hsl(262, 83%, 58%);
  --news-culture: hsl(340, 75%, 55%);
  --news-community: hsl(142, 71%, 45%);
  --news-economy: hsl(45, 98%, 52%);
  --news-breaking: hsl(0, 84%, 60%);

  --radius: 0.875rem;
  --container-max-width: 1320px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gradient-primary: linear-gradient(135deg, hsl(199, 92%, 56%), hsl(207, 90%, 54%));
  --gradient-accent: linear-gradient(135deg, hsl(199, 92%, 88%), hsl(199, 92%, 92%));
  --gradient-hero: linear-gradient(135deg, hsl(199, 92%, 56%), hsl(207, 90%, 30%));
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(210, 25%, 98%));

  --shadow-elegant: 0 10px 30px -10px hsla(199, 92%, 56%, 0.3);
  --shadow-floating: 0 10px 15px -3px hsla(199, 92%, 56%, 0.12), 0 4px 6px -2px hsla(199, 92%, 56%, 0.08);
  --card-shadow: 0 4px 16px hsla(199, 92%, 56%, 0.15);
  --card-hover-shadow: 0 12px 32px hsla(199, 92%, 56%, 0.28);
}

/* Dark Mode */
body.dark-mode {
  --background: hsl(218, 23%, 11%);
  --foreground: hsl(0, 0%, 96%);
  --card: hsl(218, 23%, 15%);
  --card-foreground: hsl(0, 0%, 96%);
  --primary: hsl(199, 92%, 56%);
  --primary-dark: hsl(207, 90%, 54%);
  --primary-light: hsl(199, 92%, 66%);
  --accent: hsl(218, 23%, 16%);
  --border: hsl(218, 23%, 23%);
  --muted: hsl(215, 16%, 65%);
  --muted-foreground: hsl(215, 16%, 65%);
  --secondary: hsl(218, 23%, 16%);
  --input: hsl(218, 23%, 23%);
  --card-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.4);
  --card-hover-shadow: 0 12px 32px hsla(199, 92%, 56%, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ================================================
   WordPress Core Alignment
   ================================================ */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 20px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

/* ================================================
   Layout & Container
   ================================================ */
.site-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================
   HEADER - Sticky, matches React Header exactly
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.dark-mode .site-header {
  background: hsla(218, 23%, 11%, 0.95);
}

/* Top bar - gradient accent like React */
.header-top {
  background: linear-gradient(to right, hsla(210, 25%, 98%, 0.5), hsla(199, 92%, 56%, 0.05));
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

body.dark-mode .header-top {
  background: linear-gradient(to right, hsla(218, 23%, 16%, 0.5), hsla(199, 92%, 56%, 0.05));
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.contact-info span:hover {
  color: var(--primary);
  cursor: pointer;
}

/* Social Icons - matches React ghost buttons */
.social-icons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: var(--transition);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.social-icon:hover {
  transform: scale(1.1);
  background: hsla(199, 92%, 56%, 0.1);
  color: var(--primary);
}

.social-icon.youtube:hover { color: hsl(0, 84%, 60%); background: hsla(0, 84%, 60%, 0.05); }
.social-icon.facebook:hover { color: hsl(220, 60%, 50%); background: hsla(220, 60%, 50%, 0.05); }
.social-icon.tiktok:hover, .social-icon.instagram:hover { color: hsl(340, 75%, 55%); background: hsla(340, 75%, 55%, 0.05); }

.social-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border);
  margin: 0 0.5rem;
}

/* Theme toggle - matches React button */
.theme-toggle,
.search-toggle {
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover,
.search-toggle:hover {
  transform: scale(1.1);
  background: hsla(199, 92%, 56%, 0.1);
}

.notification-btn {
  position: relative;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
  font-size: 1rem;
}

.notification-btn:hover {
  transform: scale(1.1);
  background: hsla(199, 92%, 56%, 0.1);
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.75rem;
  height: 0.75rem;
  background: hsl(0, 84%, 60%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Main header row */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo styling - matches React group hover */
.site-branding {
  flex: 0 0 auto;
}

.site-branding .custom-logo-link {
  position: relative;
  display: inline-block;
}

.site-branding .custom-logo-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--background);
  opacity: 0.8;
  border-radius: 0.5rem;
  transition: opacity 0.3s ease;
}

body.dark-mode .site-branding .custom-logo-link::before {
  background: hsl(218, 23%, 20%);
  opacity: 0.9;
}

.custom-logo-link img {
  position: relative;
  height: 2.5rem;
  width: auto;
  max-width: 240px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.custom-logo-link:hover img {
  transform: scale(1.1);
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.site-title a {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop Navigation - matches React nav exactly */
.main-navigation {
  background: transparent;
  border: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: 0.375rem;
  transition: var(--transition);
}

body.dark-mode .main-navigation a {
  color: var(--foreground);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--primary);
  font-weight: 700;
}

/* Search form hidden by default */
.header-search-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.header-search-form.active {
  max-height: 100px;
  padding: 1rem 0;
}

.header-search-form form {
  display: flex;
  gap: 0.5rem;
}

.header-search-form input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: var(--background);
  color: var(--foreground);
  transition: var(--transition);
}

.header-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(199, 92%, 56%, 0.1);
}

.header-search-form button[type="submit"] {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.header-search-form button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* Tagline bar - matches React bg-gradient-primary */
.tagline {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
  font-size: 1.25rem;
}

/* ================================================
   LIVE TICKER - Matches React LiveTicker exactly
   ================================================ */
.live-ticker {
  background: linear-gradient(to right, hsl(0, 72%, 42%), hsl(0, 72%, 35%), hsl(0, 72%, 30%));
  color: white;
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.live-ticker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.1);
}

.live-ticker-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.live-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(0, 0%, 100%, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.live-ticker-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.live-ticker-time {
  font-size: 0.75rem;
  color: hsl(60, 100%, 80%);
  margin-top: 0.25rem;
}

.live-ticker-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, hsl(48, 100%, 67%), hsl(30, 100%, 50%));
}

/* ================================================
   HERO SLIDER - Matches React HeroSlider exactly
   ================================================ */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--accent);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(0, 0%, 0%, 0.7), hsla(0, 0%, 0%, 0.4), transparent);
}

.hero-slide-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.hero-slide-inner {
  max-width: 42rem;
  color: white;
}

.hero-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-slide h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-slide p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  align-items: center;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.hero-btn-primary {
  background: var(--primary);
  color: white;
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.hero-btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.1);
  transform: translateY(-2px);
}

/* Navigation arrows - matches React outline icon buttons */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.hero-nav:hover {
  background: hsla(0, 0%, 100%, 0.2);
}

.hero-nav-prev { left: 1rem; }
.hero-nav-next { right: 1rem; }

/* Slide indicators - matches React dots */
.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.hero-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-indicator.active {
  background: white;
}

/* ================================================
   MAIN CONTENT & NEWS GRID
   ================================================ */
.site-main {
  flex: 1;
}

.news-section {
  padding: 1.5rem 0 2rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 25%;
  gap: 1.5rem 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ================================================
   NEWS CARD - Matches React EnhancedNewsCard exactly
   ================================================ */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out;
  box-shadow: var(--card-shadow);
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: hsla(199, 92%, 56%, 0.3);
}

/* News Card Image */
.news-card-image {
  position: relative;
  width: 100%;
  padding-top: 62%;
  overflow: hidden;
  background: var(--accent);
}

.news-card-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.8s ease;
  opacity: 0;
}

.news-card-image img.active {
  opacity: 1;
}

.news-card-image img:first-child {
  opacity: 1;
}

.news-card:hover .news-card-image img.active {
  transform: scale(1.1);
}

/* Gradient overlay on hover */
.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.6), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-card-image::after {
  opacity: 1;
}

/* Multiple Images Indicator */
.news-card-image .image-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: hsla(0, 0%, 0%, 0.6);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.news-card-image .image-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  z-index: 10;
}

.news-card-image .image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.5);
  transition: all 0.3s ease;
}

.news-card-image .image-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 3px;
}

/* Featured badge - matches React */
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  box-shadow: 0 0 20px hsla(199, 92%, 56%, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

.news-card-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.entry-header {
  margin-bottom: 0.75rem;
}

.entry-header .category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.category-badge.cat-actualidad { background: var(--news-breaking); }
.category-badge.cat-noticia { background: var(--news-tech); }
.category-badge.cat-economia { background: var(--news-economy); }
.category-badge.cat-tecnologia { background: var(--news-tech); }
.category-badge.cat-cultura { background: var(--news-culture); }
.category-badge.cat-comunidad, .category-badge.cat-sociedad { background: var(--news-community); }
.category-badge.cat-deporte { background: var(--news-community); }
.category-badge.cat-entretenimiento { background: var(--news-culture); }
.category-badge.cat-default { background: var(--primary); }

.read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.entry-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.entry-title a {
  color: inherit;
}

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

.entry-content {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.meta .author {
  font-weight: 500;
  color: var(--primary);
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  background: hsla(210, 25%, 98%, 0.5);
  margin: 0 -1.5rem -1.5rem;
  padding: 0.75rem 1.5rem;
}

body.dark-mode .entry-footer {
  background: hsla(218, 23%, 16%, 0.5);
}

.entry-footer .post-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.entry-footer .post-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: white;
  background: var(--gradient-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.75rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.read-more:hover {
  color: white;
  box-shadow: var(--shadow-elegant);
  transform: translateY(-2px);
}

/* ================================================
   SIDEBAR - Matches React Sidebar exactly
   ================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Breaking News Alert card */
.sidebar-alert {
  background: linear-gradient(to right, hsl(0, 86%, 97%), hsl(0, 86%, 95%));
  border: 1px solid hsl(0, 60%, 85%);
  border-radius: var(--radius);
  padding: 1rem;
}

body.dark-mode .sidebar-alert {
  background: linear-gradient(to right, hsla(0, 84%, 60%, 0.08), hsla(0, 84%, 60%, 0.04));
  border-color: hsl(0, 40%, 30%);
}

.sidebar-alert .alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-alert .alert-icon {
  color: hsl(0, 84%, 45%);
  animation: pulse 2s ease-in-out infinite;
}

.sidebar-alert .alert-label {
  color: hsl(0, 84%, 45%);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-alert h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(0, 50%, 30%);
  line-height: 1.4;
}

body.dark-mode .sidebar-alert h4 {
  color: hsl(0, 50%, 80%);
}

.sidebar-alert .alert-time {
  font-size: 0.75rem;
  color: hsl(0, 40%, 50%);
  margin-top: 0.25rem;
}

/* Widget / Card */
.widget,
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}

.widget-title i,
.widget-title .icon {
  color: var(--primary);
}

.widget-content,
.widget ul {
  padding: 0 1.25rem 1.25rem;
  list-style: none;
  margin: 0;
}

.widget li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.widget li:last-child {
  border-bottom: none;
}

.widget li:hover {
  padding-left: 0.25rem;
}

.widget a {
  color: var(--foreground);
  transition: var(--transition);
}

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

/* Trending item */
.trending-item,
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

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

.trending-item:hover,
.popular-item:hover {
  background: var(--accent);
}

.trending-rank {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: hsla(199, 92%, 56%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.popular-rank {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: hsla(340, 75%, 55%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--news-culture);
  font-weight: 700;
  font-size: 0.75rem;
}

.trending-title,
.popular-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--foreground);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-title a,
.popular-title a {
  color: inherit;
}

.trending-item:hover .trending-title,
.popular-item:hover .popular-title {
  color: var(--primary);
}

.trending-meta,
.popular-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trending-meta .badge {
  display: inline-block;
  padding: 0.0625rem 0.375rem;
  background: var(--secondary);
  border-radius: var(--radius);
  font-size: 0.6875rem;
}

/* Newsletter widget */
.sidebar-newsletter {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-newsletter .widget-title {
  color: white;
}

.sidebar-newsletter p {
  padding: 0 1.25rem;
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-newsletter .newsletter-form {
  padding: 0 1.25rem 1.25rem;
}

.sidebar-newsletter input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  color: white;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.sidebar-newsletter input[type="email"]::placeholder {
  color: hsla(0, 0%, 100%, 0.6);
}

.sidebar-newsletter input[type="email"]:focus {
  outline: none;
  border-color: hsla(0, 0%, 100%, 0.4);
}

.sidebar-newsletter button {
  width: 100%;
  padding: 0.5rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-newsletter button:hover {
  background: hsla(0, 0%, 100%, 0.9);
}

/* Events widget */
.event-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

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

.event-item:hover {
  background: var(--accent);
}

.event-date {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: hsla(340, 75%, 55%, 0.1);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--news-culture);
}

.event-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.event-item:hover .event-title {
  color: var(--primary);
}

.event-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* View all button */
.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: var(--accent);
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-numbers.current {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
}

/* ================================================
   SINGLE POST - Matches React NewsDetail
   ================================================ */
.single-post .entry-header {
  margin-bottom: 2rem;
}

.single-post .entry-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single-post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  align-items: center;
}

.single-post .entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.single-post .post-thumbnail {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.single-post .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
  -webkit-line-clamp: unset;
  display: block;
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.single-post .entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.single-post .entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted-foreground);
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.author-box .author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-box .author-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-box .author-bio {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: white;
}

.share-btn.facebook { background: hsl(220, 46%, 48%); }
.share-btn.twitter { background: hsl(0, 0%, 15%); }
.share-btn.whatsapp { background: hsl(142, 70%, 49%); }
.share-btn.linkedin { background: hsl(210, 80%, 40%); }

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-navigation a {
  font-weight: 500;
  color: var(--foreground);
  transition: var(--transition);
}

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

/* Comments */
.comments-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-area h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.comment-body {
  padding: 1.25rem;
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.comment-form textarea:focus,
.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(199, 92%, 56%, 0.1);
}

.comment-form .submit {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

/* ================================================
   FOOTER - Matches React Footer exactly
   ================================================ */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--background);
}

.footer-section .tagline-text {
  opacity: 0.8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section .contact-details {
  margin-top: 1rem;
}

.footer-section .contact-details p {
  font-size: 0.875rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-section .contact-details .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-section .contact-details span {
  opacity: 0.8;
}

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

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

.footer-section a {
  color: var(--background);
  opacity: 0.8;
  transition: var(--transition);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--primary);
  opacity: 1;
}

/* Social links in footer */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 2rem;
  height: 2rem;
  background: hsla(199, 92%, 56%, 0.1);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 1;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

/* Bottom bar */
.site-info {
  border-top: 1px solid hsla(0, 0%, 100%, 0.2);
  padding: 1rem 0 1.5rem;
}

.site-info-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.site-info p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.6;
}

.site-info .dev-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ================================================
   WHATSAPP FLOAT - Matches React WhatsAppFloat
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(142, 70%, 49%);
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 12px hsla(142, 70%, 49%, 0.4);
  transition: var(--transition);
  animation: bounce-subtle 2s ease-in-out infinite;
}

.whatsapp-button:hover {
  background: hsl(142, 70%, 42%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px hsla(142, 70%, 49%, 0.5);
  color: white;
}

.whatsapp-notification {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: hsl(0, 84%, 60%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-notification span {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ================================================
   SEARCH & 404 PAGES
   ================================================ */
.search-results-header,
.error-404-content {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
}

.search-results-header h1,
.error-404-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.no-posts h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ================================================
   ANIMATIONS - Matches React framer-motion
   ================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px hsla(199, 92%, 56%, 0.5); }
  50% { box-shadow: 0 0 40px hsla(199, 92%, 56%, 0.8); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }

/* ================================================
   RESPONSIVE - Matches React responsive exactly
   ================================================ */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-slider { height: 500px; }
  .hero-slide h2 { font-size: 2.5rem; }
  .hero-slide p { font-size: 1rem; }
  .single-post .entry-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .header-top-content {
    flex-direction: column;
    text-align: center;
  }
  .contact-info {
    flex-direction: column;
    gap: 0.25rem;
  }
  .header-main {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .mobile-menu-toggle { display: flex; }
  .main-navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    border-top: 1px solid var(--border);
  }
  .main-navigation.mobile-active {
    max-height: 500px;
    padding: 1rem 0;
  }
  .main-navigation ul {
    flex-direction: column;
    text-align: center;
  }
  .hero-slider { height: 450px; }
  .hero-slide h2 { font-size: 2rem; }
  .hero-slide p { font-size: 0.9375rem; }
  .hero-nav { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; }
  .hero-nav-prev { left: 0.75rem; }
  .hero-nav-next { right: 0.75rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .site-info-inner { flex-direction: column; text-align: center; }
  .single-post .entry-title { font-size: 1.75rem; }
  .share-buttons { justify-content: center; }
  .author-box { flex-direction: column; text-align: center; }
  .related-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-slider { height: 350px; }
  .hero-slide h2 { font-size: 1.5rem; }
  .hero-slide p { font-size: 0.875rem; }
  .hero-btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
  .entry-title { font-size: 1rem; }
  .single-post .entry-title { font-size: 1.5rem; }
}

/* ================================================
   HEADER UPDATES - Logo + Slogan Layout
   ================================================ */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo {
  height: 3.5rem;
  width: auto;
  transition: transform 0.3s ease;
}
.site-branding:hover .site-logo { transform: scale(1.05); }
.site-slogan {
  border-left: 2px solid hsl(199, 92%, 56%, 0.3);
  padding-left: 0.75rem;
}
.site-slogan p {
  font-size: 0.625rem;
  font-style: italic;
  color: var(--muted-foreground);
  line-height: 1.4;
  margin: 0;
}
.magazine-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-slow 3s ease-in-out infinite;
}
.magazine-cta:hover { transform: scale(1.05); box-shadow: var(--shadow-elegant); color: white; }

.nav-bar {
  background: hsl(0, 0%, 0%, 0.03);
  border-top: 1px solid var(--border);
}
.nav-bar .main-navigation ul {
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-bar .main-navigation ul li a {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.nav-bar .main-navigation ul li.current-menu-item a,
.nav-bar .main-navigation ul li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: hsl(199, 92%, 56%, 0.05);
}

/* ================================================
   DIGITAL MAGAZINE SECTION
   ================================================ */
.digital-magazine-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, hsl(199, 92%, 56%, 0.05), var(--background), hsl(199, 92%, 56%, 0.1));
  position: relative;
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.magazine-icon { background: var(--gradient-primary); box-shadow: var(--shadow-elegant); }
.bulletin-icon { background: linear-gradient(135deg, hsl(38, 92%, 50%), hsl(25, 95%, 53%)); }
.section-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.section-subtitle { font-size: 0.75rem; color: var(--muted-foreground); margin: 0; }
.new-badge {
  margin-left: auto;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse-slow 3s ease-in-out infinite;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.magazine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
}
.magazine-card:hover { border-color: hsl(199, 92%, 56%, 0.3); }
.magazine-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(199, 92%, 56%, 0.2), hsl(199, 92%, 56%, 0.05));
}
.magazine-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.magazine-card:hover .magazine-cover img { transform: scale(1.05); }
.magazine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.magazine-card:hover .magazine-overlay { opacity: 1; }
.btn-read-magazine {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.magazine-info { padding: 1rem; }
.magazine-date { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.magazine-info h3 { font-size: 0.875rem; font-weight: 700; margin: 0.25rem 0; line-clamp: 1; }
.magazine-info p { font-size: 0.75rem; color: var(--muted-foreground); margin: 0; }
.magazine-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-download, .btn-read {
  flex: 1;
  text-align: center;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-download { border: 1px solid var(--border); color: var(--foreground); background: var(--background); }
.btn-download:hover { background: var(--muted); }
.btn-read { background: var(--gradient-primary); color: white; }
.btn-read:hover { opacity: 0.9; }
.btn-download.disabled, .btn-read.disabled { opacity: 0.4; pointer-events: none; }

.placeholder-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-magazine-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}
.placeholder-magazine-inner i { font-size: 2rem; opacity: 0.5; }
.placeholder-date { font-size: 0.75rem; opacity: 0.7; }

/* ================================================
   EVENT BULLETINS SECTION
   ================================================ */
.bulletins-section { padding: 2.5rem 0; background: var(--background); }
.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.bulletin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.3s ease;
}
.bulletin-card:hover { border-color: hsl(199, 92%, 56%, 0.3); }
.bulletin-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.bulletin-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(199, 92%, 56%, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: background 0.3s ease;
}
.bulletin-card:hover .bulletin-icon-wrap { background: hsl(199, 92%, 56%, 0.2); }
.bulletin-type {
  font-size: 0.625rem;
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.bulletin-header h3 { font-size: 0.875rem; font-weight: 700; margin: 0; line-height: 1.3; }
.bulletin-header h3 a { color: var(--foreground); text-decoration: none; transition: color 0.3s ease; }
.bulletin-header h3 a:hover { color: var(--primary); }
.bulletin-excerpt { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.bulletin-footer { display: flex; align-items: center; justify-content: space-between; }
.bulletin-date { font-size: 0.625rem; color: var(--muted-foreground); }
.bulletin-link {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.bulletin-link:hover { text-decoration: underline; }

/* ================================================
   WHATSAPP BUBBLE
   ================================================ */
.whatsapp-bubble {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: fadeInUp 0.3s ease-out;
}
.bubble-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}
.bubble-close:hover { background: hsl(0, 84%, 60%); color: white; }
.whatsapp-bubble p { font-size: 0.75rem; font-weight: 600; margin: 0 0 0.5rem; }
.bubble-cta {
  display: block;
  background: hsl(142, 71%, 45%);
  color: white;
  text-align: center;
  padding: 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.bubble-cta:hover { opacity: 0.9; color: white; }

/* Footer Logo */
.footer-brand { margin-bottom: 0.75rem; }
.footer-logo { height: 2.5rem; width: auto; filter: brightness(0) invert(1); }

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .site-header, .site-footer, .whatsapp-float, .live-ticker,
  .hero-slider, .sidebar, .share-buttons, .digital-magazine-section,
  .bulletins-section { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; }
  .site-main { padding: 0; }
}

@media (max-width: 768px) {
  .magazine-cta { display: none; }
  .site-slogan { display: none; }
  .site-logo { height: 2.5rem; }
}

/* ================================================
   NEW SECTIONS - Matching React redesign
   ================================================ */

/* Quick Access Bar */
.quick-access-bar {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: var(--foreground);
}
.quick-access-item:hover {
  background: var(--accent);
  transform: scale(1.05);
}
.quick-access-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}
.quick-access-item:hover .quick-access-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.quick-access-item span {
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Revista Digital Section */
.revista-digital-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, hsl(199 92% 56% / 0.05), var(--background), hsl(199 92% 56% / 0.1));
  position: relative;
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.section-header p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.section-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.revista-icon { background: var(--gradient-primary); }
.boletines-icon { background: linear-gradient(135deg, hsl(45 98% 52%), hsl(30 95% 55%)); }
.news-icon { background: var(--gradient-primary); }
.youtube-icon { background: hsl(0 84% 50%); }
.badge-new {
  margin-left: auto;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.revista-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.revista-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.revista-card:hover {
  border-color: hsl(199 92% 56% / 0.3);
  box-shadow: var(--shadow-floating);
}
.revista-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.revista-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.revista-card:hover .revista-cover img {
  transform: scale(1.05);
}
.revista-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.revista-card:hover .revista-overlay { opacity: 1; }
.revista-btn {
  width: 100%;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}
.revista-info {
  padding: 1rem;
}
.revista-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}
.revista-info h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.revista-info p {
  font-size: 0.75rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.revista-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-outline-sm, .btn-primary-sm {
  flex: 1;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}
.btn-outline-sm {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}
.btn-outline-sm:hover { background: var(--accent); }
.btn-primary-sm {
  background: var(--gradient-primary);
  color: white;
  border: none;
}
.placeholder-cover {
  background: linear-gradient(135deg, hsl(199 92% 56% / 0.2), hsl(199 92% 56% / 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 2rem;
}
.placeholder-text span { font-size: 0.875rem; font-weight: 600; }

/* Boletines Section */
.boletines-section {
  padding: 2.5rem 0;
}
.boletines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.boletin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem;
  transition: var(--transition-smooth);
}
.boletin-card:hover {
  border-color: hsl(199 92% 56% / 0.3);
  box-shadow: var(--shadow-floating);
}
.boletin-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.boletin-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(199 92% 56% / 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.boletin-card:hover .boletin-icon {
  background: hsl(199 92% 56% / 0.2);
}
.boletin-type {
  display: inline-block;
  font-size: 0.625rem;
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}
.boletin-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.boletin-card:hover .boletin-header h3 { color: var(--primary); }
.boletin-card > p {
  font-size: 0.75rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.75rem;
}
.boletin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.boletin-date { font-size: 0.625rem; color: var(--muted); }
.boletin-link {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* News Slider Section */
.news-slider-section {
  padding: 2.5rem 0;
}
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Breaking News Sidebar */
.breaking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.breaking-card {
  background: linear-gradient(135deg, hsl(0 80% 97%), hsl(0 80% 95%));
  border: 1px solid hsl(0 70% 85%);
  border-radius: 0.875rem;
  padding: 1rem;
}
.dark .breaking-card {
  background: linear-gradient(135deg, hsl(0 40% 12%), hsl(0 30% 10%));
  border-color: hsl(0 40% 25%);
}
.breaking-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(0 84% 50%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.breaking-dot {
  width: 0.625rem;
  height: 0.625rem;
  background: hsl(0 84% 50%);
  border-radius: 50%;
  animation: pulse-slow 2s ease-in-out infinite;
}
.breaking-item {
  border-bottom: 1px solid hsl(0 70% 85% / 0.5);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.breaking-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.breaking-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 0.125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breaking-item h4 a { color: var(--foreground); text-decoration: none; }
.breaking-item h4 a:hover { color: var(--primary); }
.breaking-item span { font-size: 0.625rem; color: var(--muted); }

.newsletter-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: 0.875rem;
  padding: 1rem;
}
.newsletter-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.newsletter-card p {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0 0 0.75rem;
}
.newsletter-card input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.newsletter-card input::placeholder { color: rgba(255,255,255,0.5); }
.btn-subscribe {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: white;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-subscribe:hover { background: rgba(255,255,255,0.9); }

/* YouTube Section */
.youtube-section {
  padding: 2.5rem 0;
  background: var(--foreground);
  color: var(--background);
  position: relative;
  overflow: hidden;
}
.section-header-dark h2, .section-header-dark p { color: var(--background); }
.section-header-dark p { opacity: 0.6; }
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--background);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: white; }
.youtube-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.youtube-featured { grid-column: 1; }
.youtube-player {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.youtube-thumb {
  display: block;
  position: relative;
}
.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.5s ease;
}
.youtube-thumb:hover img { opacity: 1; transform: scale(1.05); }
.youtube-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}
.youtube-play-btn {
  width: 4rem;
  height: 4rem;
  background: hsl(0 84% 50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.youtube-thumb:hover .youtube-play-btn { transform: scale(1.1); }
.youtube-info {
  padding: 1rem 0;
}
.youtube-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.youtube-info h3 a { color: var(--background); text-decoration: none; }
.youtube-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  display: block;
}
.youtube-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 31rem;
  overflow-y: auto;
}
.youtube-list-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.youtube-list-item:hover { background: rgba(255,255,255,0.05); }
.youtube-list-thumb {
  position: relative;
  width: 7rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}
.youtube-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.youtube-play-sm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  color: white;
  font-size: 0.75rem;
}
.youtube-list-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--background);
}
.youtube-list-info h4 a { color: var(--background); text-decoration: none; }
.youtube-list-info span {
  font-size: 0.625rem;
  opacity: 0.5;
}

/* ================================================
   SINGLE POST - Full-width Responsive Layout
   ================================================ */
.single-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 300px;
  overflow: hidden;
}
.single-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
}
.single-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
}
.single-hero-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin: 0.75rem 0;
  line-height: 1.2;
  max-width: 50rem;
}
.single-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}
.single-hero-meta i { margin-right: 0.25rem; }

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.share-bar-bottom {
  border-bottom: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
  margin-bottom: 0;
}
.share-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.single-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
.single-article .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.single-article .entry-content p {
  margin-bottom: 1.25rem;
}
.single-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  margin: 2rem 0;
}
.author-avatar-wrap {
  flex-shrink: 0;
}
.author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}
.author-label {
  font-size: 0.75rem;
  color: var(--muted);
}
.author-name {
  font-weight: 700;
  font-size: 1rem;
}
.author-bio {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.single-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
}
.sticky-sidebar { position: sticky; top: 6rem; }
.sidebar-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 1rem; }
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}
.related-item:hover h4 { color: var(--primary); }
.related-thumb {
  width: 5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-item:hover .related-thumb img { transform: scale(1.1); }
.related-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.related-info span {
  font-size: 0.625rem;
  color: var(--muted);
}

.newsletter-sidebar {
  background: var(--gradient-primary);
  color: white;
}
.newsletter-sidebar h3 { color: white; }
.newsletter-sidebar p { font-size: 0.75rem; opacity: 0.8; }
.newsletter-sidebar input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.newsletter-sidebar input::placeholder { color: rgba(255,255,255,0.5); }

.back-nav {
  padding: 2rem 0;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

.post-tags {
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.post-tags a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive overrides for new sections */
@media (max-width: 1024px) {
  .single-content-grid { grid-template-columns: 1fr; }
  .youtube-grid { grid-template-columns: 1fr; }
  .revista-grid { grid-template-columns: repeat(2, 1fr); }
  .boletines-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
  .revista-grid { grid-template-columns: 1fr; }
  .boletines-grid { grid-template-columns: 1fr; }
  .news-cards-grid { grid-template-columns: 1fr; }
  .single-hero { height: 35vh; min-height: 250px; }
  .single-hero-title { font-size: 1.5rem; }
  .single-hero-meta { font-size: 0.75rem; gap: 0.5rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .badge-new, .btn-outline-light { margin-left: 0; }
}
