/**
 * HelloInsights AI - Shared Styles
 * Brand Color: #ff6b35
 * Mobile-first responsive design
 */

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

:root {
  --brand: #ff6b35;
  --brand-dark: #e55a2b;
  --brand-light: #fff0ea;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand-dark); }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 16px;
}

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--brand); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}
.logo-text span {
  color: var(--brand);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--brand);
  background: var(--brand-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.search-btn:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Search Overlay ========== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay[aria-hidden="true"] {
  pointer-events: none;
}
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 640px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.search-header svg {
  flex-shrink: 0;
  color: var(--text-light);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font);
  color: var(--text);
}
.search-input::placeholder {
  color: var(--text-light);
}
.search-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.search-close:hover {
  background: var(--bg-alt);
}
.search-results {
  min-height: 100px;
}
.search-hint, .search-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ========== Hero Section ========== */
.hero {
  padding: 60px 0 50px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  color: var(--brand);
  position: relative;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 44px;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--brand);
  background: var(--brand-light);
}

/* ========== Section ========== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-title .accent {
  color: var(--brand);
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 500px;
}
.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.section-link:hover {
  gap: 8px;
}

/* ========== Editorial Intro ========== */
.editorial-intro {
  padding: 50px 0;
  border-bottom: 1px solid var(--border-light);
}
.editorial-intro-inner {
  max-width: 720px;
}
.editorial-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.editorial-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-image-wrap {
  display: block;
  overflow: hidden;
}
.card-image-container {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}
.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.card-category:hover { opacity: 0.8; }

.card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
}
.star { color: #fbbf24; }
.star.empty { color: #d1d5db; }
.rating-num {
  margin-left: 4px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-title a {
  color: var(--text);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--brand);
}

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

.card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.card-sep { color: var(--border); }
.card-readtime { white-space: nowrap; }

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Featured card (large) */
.card-featured .card-title {
  font-size: 1.25rem;
}
.card-featured .card-desc {
  -webkit-line-clamp: 3;
}
.card-large .card-image-container {
  padding-top: 50%;
}

/* ========== Advertisement ========== */
.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 40px 0;
}

/* ========== Newsletter ========== */
.newsletter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}
.newsletter h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.newsletter p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder {
  color: rgba(255,255,255,0.6);
}
.newsletter-input:focus {
  border-color: #fff;
}
.newsletter-btn {
  padding: 14px 24px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.newsletter-btn:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 280px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--brand);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: #6b7280;
}
.footer-bottom a {
  color: #6b7280;
  font-size: 0.82rem;
}
.footer-bottom a:hover {
  color: var(--brand);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb-sep {
  color: var(--border);
}

/* ========== Category Page ========== */
.category-hero {
  padding: 50px 0 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}
.category-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.category-hero h1 .cat-icon {
  margin-right: 8px;
}
.category-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Filters */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.sort-select {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text-secondary);
  background: #fff;
  min-height: 44px;
}

/* ========== Article Page ========== */
.article-hero {
  padding: 40px 0 30px;
}
.article-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.article-header {
  max-width: 780px;
  margin: 0 auto;
}
.article-header .card-category {
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.article-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Article Content */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 0 60px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content p {
  margin-bottom: 20px;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Related Articles */
.related-articles {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-light);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.pagination-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.page-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.page-dots {
  padding: 0 8px;
  color: var(--text-light);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

/* ========== Error / Empty State ========== */
.error-state, .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.error-state p, .empty-state p {
  margin: 16px 0;
}
.btn-retry {
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ========== Tool Card Specific ========== */
.tool-card .card-body {
  position: relative;
}
.tool-card .tool-rating-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header */
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.nav-open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-list a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  /* Hero */
  .hero {
    padding: 40px 0 35px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  /* Section */
  .section {
    padding: 40px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title {
    font-size: 1.35rem;
  }

  /* Category */
  .category-hero h1 {
    font-size: 1.7rem;
  }
  .filters-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters-bar::-webkit-scrollbar {
    display: none;
  }

  /* Article */
  .article-header h1 {
    font-size: 1.7rem;
  }
  .article-content {
    font-size: 1rem;
  }

  /* Newsletter */
  .newsletter {
    padding: 35px 20px;
  }
  .newsletter-form {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }
  .container {
    padding: 0 16px;
  }
  .card-body {
    padding: 16px;
  }
}

/* ========== Print ========== */
@media print {
  .site-header, .site-footer, .newsletter, .ad-slot,
  .back-to-top, .search-overlay, .related-articles {
    display: none !important;
  }
  .article-content {
    max-width: 100%;
  }
}
