/* ================================================
   CANADA EASY GUIDE - Main Stylesheet
   
   Table of Contents:
   1. CSS Variables (colors, fonts, spacing)
   2. Reset & Base Styles
   3. Layout Components
   4. Header & Navigation
   5. Hero Section
   6. Article Cards & Grid
   7. Article Full Page
   8. Category Page
   9. Sidebar
   10. Footer
   11. Ad Containers & Responsive Rules
   12. Utility Classes
   13. Loading & Error States
   14. Responsive Breakpoints
   ================================================ */

/* ================================================
   1. CSS VARIABLES
   ================================================ */
:root {
  /* Colors - Canadian theme */
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --red-light: #ffebee;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border: #dee2e6;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

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

/* ================================================
   3. LAYOUT COMPONENTS
   ================================================ */

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

/* Main content with sidebar layout */
.main-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
}

.content-area {
  min-width: 0; /* Prevents grid overflow */
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* ================================================
   4. HEADER & NAVIGATION
   ================================================ */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--red);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 200;
  list-style: none;
  padding: var(--space-sm);
}

.dropdown-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}

.dropdown-menu li a:hover {
  background: var(--gray-50);
  color: var(--red);
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: var(--space-sm);
}

/* Ad zones in/near header */
.ad-header-wrapper {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
  text-align: center;
}

/* ================================================
   5. HERO SECTION
   ================================================ */

.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.3);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat strong {
  font-size: 2rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================
   6. BUTTONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-secondary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red-light);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
  color: white;
}

/* ================================================
   7. ARTICLE CARDS
   ================================================ */

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.article-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  padding: 0.15rem var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.article-card-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.article-card-title a {
  color: var(--gray-900);
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--red);
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-md);
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.article-date {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.read-more-btn {
  color: var(--red);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* ================================================
   8. SECTION HEADERS & CATEGORIES
   ================================================ */

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
}

.featured-section,
.categories-section,
.latest-section {
  margin-bottom: var(--space-3xl);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--gray-50);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  gap: var(--space-sm);
}

.category-card:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-icon {
  font-size: 2rem;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

.category-card:hover .category-name {
  color: var(--red);
}

/* ================================================
   9. ARTICLE FULL PAGE
   ================================================ */

.article-page {
  margin-top: var(--space-xl);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.article-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.article-category-badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  padding: 0.25rem var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.featured-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 0.25rem var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  margin-left: var(--space-sm);
}

.article-title {
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  gap: var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Article content styling */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.article-content h2 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--gray-900);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--red-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--gray-800);
}

.article-content p {
  margin-bottom: var(--space-lg);
}

.article-content ul,
.article-content ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

.article-content strong {
  color: var(--gray-900);
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
}

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.article-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.article-disclaimer {
  background: var(--gray-50);
  border-left: 4px solid var(--gray-400);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sponsored content section */
.sponsored-section {
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sponsored-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.smartlink-container a {
  color: var(--red);
  font-size: 0.9375rem;
}

/* ================================================
   10. SIDEBAR
   ================================================ */

.sidebar {
  position: sticky;
  top: 80px; /* Below sticky header */
  height: fit-content;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--red);
}

.quick-links {
  list-style: none;
}

.quick-links li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.quick-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9375rem;
  display: block;
  padding: var(--space-xs) 0;
  transition: color 0.2s;
}

.quick-links a:hover {
  color: var(--red);
}

/* ================================================
   11. AD CONTAINERS & RESPONSIVE RULES
   ================================================ */

/* Ad label */
.ad-label {
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

/* Ad container - base styles */
.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
}

/* Specific ad sizes */
.ad-728x90 { width: 728px; height: 90px; max-width: 100%; }
.ad-468x60 { width: 468px; height: 60px; max-width: 100%; }
.ad-300x250 { width: 300px; height: 250px; max-width: 100%; }
.ad-320x50 { width: 320px; height: 50px; max-width: 100%; }

/* Ad wrappers */
.ad-header-wrapper {
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
}

.ad-footer-wrapper {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.ad-mid-article {
  margin: var(--space-xl) 0;
  text-align: center;
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.ad-native-wrapper {
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.ad-center {
  text-align: center;
  margin: var(--space-lg) 0;
}

/* Mobile sticky ad */
.ad-mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.ad-mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  position: relative;
}

.ad-close-btn {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--gray-600);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ================================================
   RESPONSIVE AD VISIBILITY RULES
   This is the core of the smart ad placement system
   ================================================ */

/* By default, show desktop ads, hide others */
.ad-desktop-only { display: block; }
.ad-tablet-only { display: none; }
.ad-mobile-only { display: none; }

/* Tablet: 481px - 768px */
@media (max-width: 768px) {
  .ad-desktop-only { display: none !important; }
  .ad-tablet-only { display: block; }
  .ad-mobile-only { display: none; }
}

/* Mobile: up to 480px */
@media (max-width: 480px) {
  .ad-desktop-only { display: none !important; }
  .ad-tablet-only { display: none !important; }
  .ad-mobile-only { display: block; }
}

/* ================================================
   12. FOOTER
   ================================================ */

.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-tagline {
  margin-bottom: var(--space-lg);
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ================================================
   13. UTILITY CLASSES
   ================================================ */

.no-content {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-2xl);
  grid-column: 1 / -1;
}

.page-header {
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--text-secondary);
}

/* Alert boxes */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.alert-success {
  background: #d1e7dd;
  color: #0a3622;
  border: 1px solid #a3cfbb;
}

.alert-error {
  background: #f8d7da;
  color: #58151c;
  border: 1px solid #f1aeb5;
}

/* Load more button wrapper */
.load-more-wrapper {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* Error page */
.error-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.error-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.error-page h1 {
  margin-bottom: var(--space-md);
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Loading spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-secondary);
}

.loading-spinner {
  font-size: 3rem;
  animation: spin 2s linear infinite;
  margin-bottom: var(--space-md);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 300px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #198754;
  color: white;
}

.toast-error {
  background: #dc3545;
  color: white;
}

/* ================================================
   14. RESPONSIVE BREAKPOINTS
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links > li > a {
    display: block;
    padding: var(--space-sm) var(--space-md);
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    display: block;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: var(--space-xl);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  /* Article title */
  .article-title {
    font-size: 1.75rem;
  }
  
  /* Main content */
  .main-content-wrapper {
    padding: 0 var(--space-md);
    margin: var(--space-xl) auto;
  }
  
  /* Add body padding for mobile sticky ad */
  body.has-sticky-ad {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .hero-title { font-size: 1.75rem; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  
  .article-title { font-size: 1.5rem; }
  .article-meta { flex-direction: column; gap: var(--space-sm); }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .container,
  .main-content-wrapper {
    padding: 0 var(--space-md);
  }
  
  .article-nav {
    flex-direction: column;
  }
  
  .article-nav .btn {
    text-align: center;
  }
}
