/*
Theme Name: My Wellness Radar
Theme URI: https://mywellnessradar.com
Author: My Wellness Radar
Author URI: https://mywellnessradar.com
Description: A custom health and wellness affiliate marketing theme with radar-inspired branding, honest product reviews, and science-backed content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mywellnessradar
Tags: health, wellness, affiliate, blog, custom-menu, featured-images
*/

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

:root {
  --primary: #2a90a7;
  --primary-dark: #1e7a8f;
  --primary-light: #e8f6f9;
  --accent: #e8494a;
  --text-dark: #1a1a2e;
  --text-medium: #555;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-gray: #efefef;
  --border: #e2e2e2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Red Hat Display', sans-serif;
  --max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--text-dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.affiliate-disclosure {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
}

.top-bar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-top a {
  color: #aaa;
  font-size: 14px;
  transition: color var(--transition);
}

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

/* ===== HEADER / NAVBAR ===== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-dark);
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 48px;
  height: 48px;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(42, 144, 167, 0.35));
  transition: filter var(--transition), transform var(--transition);
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 4px 14px rgba(42, 144, 167, 0.5));
  transform: scale(1.08);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand-name {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.logo-text .brand-name span {
  background: linear-gradient(135deg, #00c9a7, #2a90a7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .brand-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--font-primary);
  margin-top: 2px;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-menu > a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-menu > a:hover,
.nav-menu > a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Nav Search */
.nav-search {
  display: flex;
  align-items: center;
  margin-left: 8px;
  position: relative;
}

.nav-search-toggle {
  background: none;
  border: none;
  color: var(--text-medium);
  font-size: 15px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-search-toggle:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-search input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  width: 0;
  opacity: 0;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  position: absolute;
  right: 40px;
}

.nav-search.active input {
  width: 200px;
  opacity: 1;
  border-color: var(--primary);
}

.nav-search input:focus {
  border-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--text-dark) 0%, #16213e 100%);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 144, 167, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: #b0bec5;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  color: #90a4ae;
  margin-bottom: 28px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42, 144, 167, 0.3);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  gap: 8px;
}

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

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-category.keto { background: #27ae60; }
.card-category.diabetes { background: #e74c3c; }
.card-category.fasting { background: #8e44ad; }
.card-category.lifestyle { background: #f39c12; }
.card-category.sport { background: #e67e22; }
.card-category.gastro { background: #2ecc71; }
.card-category.beauty { background: #e91e8a; }
.card-category.psychology { background: #3498db; }

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--bg-gray);
}

.card-meta-left {
  display: flex;
  gap: 12px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 8px;
}

/* ===== TOP ARTICLES CAROUSEL ===== */
.carousel-section {
  background: var(--bg-white);
  padding: 60px 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.carousel-track .article-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  color: var(--text-dark);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
  padding: 50px 0;
}

.category-section:nth-child(even) {
  background: var(--bg-white);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

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

.category-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
}

.category-featured-overlay .card-category {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.category-featured-overlay h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.category-featured-overlay p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-list-item {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.category-section:nth-child(even) .category-list-item {
  background: var(--bg-light);
}

.category-list-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.category-list-item img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
}

.category-list-item-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-list-item-body h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.category-list-item-body h4 a:hover {
  color: var(--primary);
}

.category-list-item-body .card-meta {
  border: none;
  padding: 0;
  justify-content: flex-start;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.newsletter p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-size: 15px;
  outline: none;
  font-family: var(--font-primary);
}

.newsletter-form button {
  padding: 16px 30px;
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-primary);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #2d2d4a;
}

.newsletter-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.newsletter-success.show {
  display: flex;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: #b0b0b0;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 16px;
  transition: all var(--transition);
}

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

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: #999;
  transition: all var(--transition);
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.footer-bottom a {
  color: var(--primary);
}

/* ===== ARTICLE PAGE ===== */
/* Single post badge — override absolute positioning */
.article-page .card-category {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
}

.article-page {
  padding: 40px 0 60px;
}

.article-page .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.article-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.article-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-dark);
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 8px;
  list-style: disc;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-medium);
}

.affiliate-box {
  background: linear-gradient(135deg, #fef9e7, #fdf2e9);
  border: 2px solid #f0c040;
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}

.affiliate-box h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.affiliate-box p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 14px;
}

.affiliate-box .btn-primary {
  background: #e67e22;
  font-size: 14px;
  padding: 12px 24px;
}

.affiliate-box .btn-primary:hover {
  background: #d35400;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-popular-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-gray);
}

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

.sidebar-popular-item img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-popular-item h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-popular-item h4 a:hover {
  color: var(--primary);
}

.sidebar-popular-item .card-meta {
  border: none;
  padding: 0;
  margin-top: 4px;
  font-size: 11px;
}

.sidebar-categories ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-categories ul li:last-child {
  border-bottom: none;
}

.sidebar-categories ul a {
  font-size: 14px;
  font-weight: 500;
}

.sidebar-categories ul a:hover {
  color: var(--primary);
}

.sidebar-categories .count {
  background: var(--bg-gray);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.sidebar-newsletter {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.sidebar-newsletter h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-newsletter p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 14px;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

.sidebar-newsletter button {
  width: 100%;
  padding: 12px;
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-primary);
}

.sidebar-newsletter button:hover {
  background: #2d2d4a;
}

/* ===== CATEGORY PAGE ===== */
.category-page {
  padding: 40px 0 60px;
}

.category-page-header {
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(135deg, var(--text-dark), #16213e);
  color: white;
  margin-bottom: 40px;
}

.category-page-header h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.category-page-header p {
  color: #90a4ae;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1085px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 24px 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 999;
    gap: 4px;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }

  .nav-search {
    margin-left: 0;
    width: 100%;
    margin-top: 12px;
  }

  .nav-search input {
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .mobile-overlay.show {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

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

  .carousel-track .article-card {
    min-width: calc(50% - 12px);
  }

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

  .article-page .container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .top-bar {
    display: none;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }

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

  .carousel-track .article-card {
    min-width: 100%;
  }

  .newsletter h2 {
    font-size: 24px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 30px;
    width: 100%;
  }

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

  .article-content {
    padding: 24px;
  }

  .article-content h1 {
    font-size: 24px;
  }

  .category-list-item img {
    width: 100px;
    height: 80px;
  }
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00c9a7);
  width: 0%;
  transition: width 0.1s linear;
}
