/* ============================================
   EmailHelp Hub - Complete Stylesheet
   ============================================ */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --secondary: #4a90d9;
  --accent: #66b2ff;
  --dark: #1a1a2e;
  --text: #4a4a5a;
  --light: #f5f7fa;
  --border: #e0e4ea;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--dark); line-height: 1.3; font-weight: 700; }

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

/* Section */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

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

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: var(--transition); text-align: center; font-family: var(--font); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; display: block; }

/* ============================================
   HEADER - All Variations
   ============================================ */
.header, .sticky-header, .site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header .container, .sticky-header .container, .site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-inner, .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

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

/* Navigation */
.header nav, .sticky-header nav, .site-header nav,
.nav, .main-nav {
  display: flex;
  align-items: center;
}

.nav ul, .main-nav ul, .nav-list, header ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

nav a, .nav a, .main-nav a, .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a:hover, nav a.active, .nav a:hover, .nav a.active,
.main-nav a:hover, .main-nav a.active, .nav-link:hover, .nav-link.active {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle, .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--dark);
  cursor: pointer;
  padding: 5px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,115,232,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid, .hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 1.15rem; margin-bottom: 32px; color: var(--text); max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
}

.illustration-card {
  width: 420px;
  height: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px;
  flex-direction: column;
  gap: 10px;
}

.illustration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.illustration-card i { font-size: 3rem; color: var(--primary); }
.illustration-card h3 { color: var(--primary); font-size: 1.1rem; }
.illustration-card p { color: var(--text); font-size: 0.9rem; }

/* ============================================
   POPULAR TOPICS
   ============================================ */
.popular-topics { padding: 80px 0; }

.popular-topics h2, .why-choose h2, .latest-articles h2,
.secure-email-tips h2, .categories h2, .newsletter h2, .faq h2,
.blog-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.popular-topics .section-subtitle, .why-choose .section-subtitle,
.latest-articles .section-subtitle, .secure-email-tips .section-subtitle,
.categories .section-subtitle, .faq .section-subtitle, .blog-section .section-subtitle {
  text-align: center;
  color: var(--text);
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
  width: 64px;
  height: 64px;
  line-height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--text); }

/* ============================================
   WHY CHOOSE
   ============================================ */
.why-choose { background: var(--light); }

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow-md); }

.feature-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  line-height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* ============================================
   LATEST ARTICLES (Home)
   ============================================ */
.latest-articles { padding: 80px 0; }

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

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

.article-card .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.article-category {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-date { color: #999; }

.article-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.article-card p { font-size: 0.9rem; margin-bottom: 16px; color: var(--text); }

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

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

/* ============================================
   FAQ / ACCORDION
   ============================================ */
.faq { background: var(--light); padding: 80px 0; }

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

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
}

.accordion-header:hover { color: var(--primary); }
.accordion-header i { transition: var(--transition); color: var(--primary); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body p {
  padding: 0 24px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
}

/* ============================================
   SECURE EMAIL TIPS
   ============================================ */
.secure-email-tips { padding: 80px 0; }

.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.tip-card:hover { box-shadow: var(--shadow-md); }

.tip-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.tip-card h3 { font-size: 1rem; margin-bottom: 6px; }
.tip-card p { font-size: 0.88rem; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories { background: var(--light); padding: 80px 0; }

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.category-card i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: block;
}

.category-card h3 { font-size: 1rem; margin-bottom: 4px; }

.article-count {
  font-size: 0.82rem;
  color: #888;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.newsletter h2 { color: var(--white); }
.newsletter > .container > p { color: rgba(255,255,255,0.9); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-form input:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,0.25); }

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.breadcrumbs a { color: var(--primary); }
.breadcrumbs .separator { color: #ccc; font-size: 0.7rem; }
.breadcrumbs .current { color: var(--text); }
.breadcrumbs li { display: inline; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content { padding: 60px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p { margin-bottom: 16px; font-size: 1rem; }

.disclaimer-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
}

.disclaimer-box p { margin: 0; font-size: 0.9rem; color: #856404; }

.about-illustration { display: flex; justify-content: center; }

.about-illustration .illustration-card {
  width: 100%;
  max-width: 380px;
  height: 300px;
}

.about-illustration .illustration-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-illustration .illustration-icon i { font-size: 3rem; }

.mission-section { background: var(--white); }
.mission-content { max-width: 800px; margin: 0 auto; text-align: center; }
.mission-content p { margin-bottom: 16px; font-size: 1.05rem; }

.values-section { background: var(--light); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
}

.value-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; }

.coverage-section { background: var(--white); }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.coverage-list li i { color: var(--primary); }
.coverage-description p { font-size: 1.05rem; line-height: 1.8; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { padding: 60px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-intro { margin-bottom: 30px; font-size: 1.05rem; }

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-info-content h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-content p { font-size: 0.9rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--dark);
  transition: var(--transition);
  background: var(--light);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-notice {
  background: var(--primary-light);
  border: 1px solid rgba(26,115,232,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  text-align: center;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-section { padding: 60px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.blog-card-content { flex: 1; }

.blog-card-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-content h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-content h2 a { color: var(--dark); }
.blog-card-content h2 a:hover { color: var(--primary); }
.blog-card-content p { font-size: 0.9rem; margin-bottom: 12px; color: var(--text); }

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 12px;
}

.blog-card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-link:hover { gap: 10px; }

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  padding: 50px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-article { min-width: 0; }

.blog-article h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-article p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }

.blog-article li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.blog-article 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(--primary-dark);
}

/* FAQ Section inside blog article */
.faq-section {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-section .faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 12px;
}

.faq-section .faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.faq-section .faq-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Conclusion inside blog article */
.conclusion {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 30px 0;
}

.conclusion h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.conclusion p { margin-bottom: 0; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar, .blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

.sidebar-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list li a {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list li a:hover { color: var(--primary); }
.category-list li a i { color: var(--primary); font-size: 0.85rem; }

.related-posts li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.related-posts li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.related-posts a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-posts a i {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.related-posts a span {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.4;
}

.related-posts a:hover span { color: var(--primary); }

/* ============================================
   FOOTER - All Variations
   ============================================ */
.footer, .site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer .container { max-width: var(--max-width); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand, .footer-about {
  margin-bottom: 20px;
}

.footer-brand .logo, .footer-about .logo {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer-brand p, .footer-about p, .footer-col:first-child p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-col h3, .footer-links h3, .footer-categories h3, .footer-social h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

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

.footer-links ul li a, .footer-col ul li a, .footer-categories ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links ul li a:hover, .footer-col ul li a:hover, .footer-categories ul li a:hover {
  color: var(--white);
}

.social-icons, .social-links {
  display: flex;
  gap: 12px;
}

.social-icons a, .social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover, .social-links a:hover { background: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: var(--transition);
}

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

.footer-legal .separator {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

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

/* Additional footer variations */
.footer-container, .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

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

.footer-section ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary-dark); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-content p { margin-bottom: 14px; font-size: 1rem; }
.legal-content ul { margin-bottom: 14px; padding-left: 24px; list-style: disc; }
.legal-content li { margin-bottom: 6px; font-size: 1rem; }
.legal-content strong { color: var(--dark); }

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content { min-height: 60vh; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { flex-direction: column; text-align: center; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .footer-container, .footer-content { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-grid, .coverage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .main-nav, header ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 16px;
    z-index: 999;
  }

  .nav.active, .main-nav.active, header ul.active { display: flex; }
  .nav-toggle, .mobile-menu-toggle { display: block; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 60px 0; }
  .hero-text h1 { font-size: 2rem; }
  .illustration-card { width: 300px; height: 240px; }

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

  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

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

  .popular-topics, .why-choose, .latest-articles,
  .secure-email-tips, .faq, .newsletter, .blog-section {
    padding: 50px 0;
  }

  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .article-main .article-header h1 { font-size: 1.6rem; }
  .blog-layout { padding: 30px 15px; }
}
