/* ==========================================================================
   SOLARADVISOR USA — MAIN STYLESHEET
   Design System: Slate Dark Mode, Solar Amber, Eco Emerald
   ========================================================================== */

/* 1. Design System Variables */
:root {
  --bg-dark: #faf9f6; /* Warm Alabaster Cream background */
  --bg-card: #ffffff; /* Premium white card container */
  --primary: #d97706; /* High-contrast Amber Orange */
  --primary-hover: #b45309;
  --secondary: #047857; /* High-contrast Forest Emerald Green */
  --secondary-hover: #065f46;
  --text-light: #1e293b; /* Premium Charcoal Slate dark text */
  --text-muted: #64748b; /* Muted Slate grey */
  --white: #ffffff;
  --border: #e2e8f0; /* Warm light border */
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.08);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Resets & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

/* 3. Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.accent-text { color: var(--primary); }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

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

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

/* 4. Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.85); /* Semi-transparent cream */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  height: 80px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.8rem;
  animation: rotateSun 20s linear infinite;
}

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

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

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary); /* High contrast hover */
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 105;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 10px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    transition: var(--transition);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-cta {
    width: 80%;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* 5. Hero Section */
.hero-section {
  padding: 4rem 0 6rem 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 45%);
}

/* 5b. Hero Search Section */
.hero-search-section {
  padding: 6rem 0 4rem 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 45%), var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.hero-search-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
}
.hero-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.hero-search-input-wrapper i {
  position: absolute;
  left: 1.25rem;
  font-size: 1.1rem;
}
.hero-search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
}
.hero-search-input-wrapper.divider {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .hero-search-form {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    padding: 1rem;
    gap: 1rem;
  }
  .hero-search-input-wrapper.divider {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.zip-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-card);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.zip-form .input-wrapper {
  position: relative;
  flex-grow: 1;
}

.zip-form .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
}

.zip-form input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 1rem 1rem 2.8rem;
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  outline: none;
}

@media (min-width: 576px) {
  .zip-form {
    flex-direction: row;
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 0.4rem;
  }
  .zip-form input {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
  }
  .zip-form .btn {
    border-radius: 50px;
    white-space: nowrap;
    padding: 0.8rem 2rem;
  }
}

.hero-trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.glass-card:hover {
  transform: scale(1.02);
  border-color: rgba(245, 158, 11, 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.shadow-accent {
  box-shadow: var(--shadow-glow);
  border-color: rgba(245, 158, 11, 0.15);
}

/* 6. Benefits Section */
.benefits-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.benefit-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.2);
}

.benefit-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* 7. Calculator Section */
.advisor-section {
  padding: 4rem 0;
}

.advisor-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  accent-color: var(--primary);
  margin: 1.5rem 0;
}

.range-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.results-box {
  background-color: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.result-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-display);
}

/* 8. Blog Feed Section */
.blog-feed-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.feed-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.feed-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.2);
}

.feed-emoji-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  border-bottom: 1px solid var(--border);
}

.feed-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feed-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feed-cat {
  color: var(--primary);
  text-transform: uppercase;
}

.feed-date {
  color: var(--text-muted);
}

.feed-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.feed-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feed-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

.feed-more:hover {
  color: var(--secondary-hover);
}

/* 9. Contact / Lead Page */
.contact-section {
  padding: 6rem 0;
  background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 45%);
}

.contact-container {
  max-width: 1000px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.benefit-bullets {
  list-style: none;
  margin: 2rem 0;
}

.benefit-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.benefit-bullets li i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.secure-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(15, 23, 42, 0.03);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--secondary);
}

.secure-badge i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

.secure-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.contact-form-box {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
}

@media (min-width: 576px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.success-card {
  background-color: var(--bg-card);
  padding: 4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* 10. Legal & Articles */
.legal-section {
  padding: 6rem 0;
}

.legal-container {
  max-width: 800px;
}

.legal-container h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.legal-container h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
}

.legal-container p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-container ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-muted);
}

.legal-container li {
  margin-bottom: 0.5rem;
}

/* 11. Blog & Article Details Layout */
.blog-hero {
  padding: 5rem 0 3rem 0;
  background-color: var(--bg-dark); /* Match cream background */
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  color: #0f172a !important;
}
.blog-hero .breadcrumb {
  color: #475569 !important;
}
.blog-hero .breadcrumb a {
  color: var(--primary) !important;
}
.blog-hero .blog-meta-hero {
  color: #475569 !important;
}
.blog-hero .blog-meta-hero span {
  color: #475569 !important;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.blog-meta-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.blog-content {
  padding: 4rem 0;
}

.blog-content-inner {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-card); /* White card container */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .blog-content-inner {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-sm);
    max-width: 100%;
    overflow-x: hidden;
  }
  .blog-content-inner table {
    display: table;
    width: 100%;
    min-width: 650px;
  }
}

.blog-content-inner img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 2rem auto;
}

.blog-content-inner p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: #334155; /* Slate-700 readable dark text */
}

.blog-content-inner h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  color: #0f172a;
}

.blog-content-inner h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  color: #0f172a;
}

.blog-content-inner ul,
.blog-content-inner ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #334155;
}

.blog-content-inner li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.blog-content-inner strong {
  color: #0f172a; /* Slate-900 strong dark text */
}

.blog-content-inner a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 600;
}

.blog-content-inner a:hover {
  color: var(--secondary-hover);
}

/* Premium Light Mode Tables & Callouts for Article Bodies */
.blog-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-content-inner th {
  background-color: #f1f5f9; /* Light grey table head */
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 1.2rem 1rem;
  border-bottom: 2px solid var(--border);
}
.blog-content-inner td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: #334155 !important; /* Force readable dark text */
}
.blog-content-inner tr:nth-child(even) {
  background-color: var(--bg-dark) !important; /* Alternating row matching cream */
}
.blog-content-inner tr:hover {
  background-color: rgba(217, 119, 6, 0.04) !important;
}

/* Table of Contents override */
.toc-container {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
}
.toc-container a {
  color: var(--secondary) !important;
}
.toc-container a:hover {
  color: var(--secondary-hover) !important;
}

/* Override callouts to ensure high contrast against cream/white */
.blog-content-inner div[style*="background"] {
  background: rgba(217, 119, 6, 0.05) !important;
  color: #334155 !important;
  border-left: 4px solid var(--primary) !important;
  padding: 1.5rem !important;
  border-radius: var(--radius-sm) !important;
  margin: 2.5rem 0 !important;
}
.blog-content-inner div[style*="background"] * {
  color: #334155 !important; /* Ensure children like bold text are also dark slate */
}
.blog-content-inner div[style*="background"] strong {
  color: #0f172a !important;
}
.blog-content-inner div[style*="background"] a {
  color: var(--secondary) !important; /* Keep links visible */
  text-decoration: underline !important;
}

/* 12. CTA Panel */
.cta-panel {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-panel h2 {
  margin-bottom: 1rem;
}

.cta-panel p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

/* 13. Footer Section */
.main-footer {
  background-color: #020617;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-desc {
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  background-color: var(--bg-card);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.footer-links h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-bottom-flex p:last-child {
    max-width: 60%;
    text-align: right;
  }
}

/* ==========================================================================
   14. MAGAZINE NEWS / BLOG PORTAL STYLES (TechWorm-Style)
   ========================================================================== */

/* Featured Magazine Grid (Hero Area) */
.magazine-featured-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.magazine-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .magazine-hero-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 220px 220px;
  }
}

.magazine-featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 1;
  min-height: 250px;
}

@media (min-width: 992px) {
  .magazine-featured-card.card-large {
    grid-row: 1 / 3;
    min-height: auto;
  }
}

.magazine-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 20%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  z-index: 2;
  transition: var(--transition);
}

.magazine-featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-glow);
}

.magazine-featured-card:hover::before {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 10%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
}

.magazine-featured-bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}

.magazine-featured-card:hover .magazine-featured-bg-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 0.12;
}

.magazine-featured-content {
  position: relative;
  z-index: 3;
}

.magazine-featured-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.magazine-featured-cat {
  color: var(--primary);
}

.magazine-featured-date {
  color: var(--text-muted);
}

.magazine-featured-card h2,
.magazine-featured-card h3 {
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.magazine-featured-card h2 {
  font-size: 1.8rem;
}

.magazine-featured-card h3 {
  font-size: 1.25rem;
}

.magazine-featured-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Two-Column Grid */
.magazine-layout-section {
  padding: 4rem 0;
}

.magazine-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .magazine-layout-grid {
    grid-template-columns: 2.2fr 1fr;
  }
}

/* Magazine List Post Cards */
.magazine-list-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.magazine-list-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

@media (min-width: 576px) {
  .magazine-list-card {
    flex-direction: row;
    padding: 1.25rem;
    gap: 1.5rem;
  }
}

.magazine-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.15);
}

.magazine-list-img-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .magazine-list-img-box {
    width: 160px;
    height: 120px;
    border-radius: var(--radius-sm);
    border-bottom: none;
    font-size: 3.5rem;
  }
}

.magazine-list-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 576px) {
  .magazine-list-body {
    padding: 0;
  }
}

.magazine-list-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.magazine-list-cat {
  color: var(--primary);
  text-transform: uppercase;
}

.magazine-list-date {
  color: var(--text-muted);
}

.magazine-list-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.magazine-list-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.magazine-list-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
}

.magazine-list-more:hover {
  color: var(--secondary-hover);
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Search Widget */
.search-widget-form {
  display: flex;
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-widget-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
}

.search-widget-form button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-widget-form button:hover {
  color: var(--primary);
}

/* Categories List Widget */
.categories-list-widget {
  list-style: none;
}

.categories-list-widget li {
  margin-bottom: 0.75rem;
}

.categories-list-widget li:last-child {
  margin-bottom: 0;
}

.categories-list-widget a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.categories-list-widget a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.category-count-badge {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.categories-list-widget a:hover .category-count-badge {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--primary);
}

/* Ad Placement Widget */
.ad-placement-widget {
  background-color: rgba(15, 23, 42, 0.02);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.ad-slot-mock {
  color: rgba(255, 255, 255, 0.15);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ad-slot-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  max-width: 180px;
}

/* Sidebar Calculator Widget */
.sidebar-calc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-calc-wrapper label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sidebar-range-slider {
  width: 100%;
  accent-color: var(--primary);
  margin-top: 0.5rem;
}

.sidebar-calc-results {
  background-color: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
}

.sidebar-result-item {
  display: flex;
  flex-direction: column;
}

.sidebar-result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sidebar-result-val {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
}

/* Quick About Widget */
.sidebar-about-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Blog Featured Image Banner */
.blog-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

/* 23. Prominent Google-style Search Bar (Light Background) */
.hero-search-form-google {
  display: flex;
  background: #ffffff;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
  align-items: center;
  max-width: 680px;
  margin: 2rem auto 0 auto;
  padding: 4px;
  transition: all 0.3s ease;
}

.hero-search-form-google:focus-within {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(245, 158, 11, 0.05);
  border-color: var(--primary);
}

.google-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.google-search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.9rem 1.5rem;
  color: #0f172a;
  font-size: 1.15rem;
  outline: none;
  font-family: var(--font-body);
}

.google-search-input-wrapper input::placeholder {
  color: #94a3b8;
}

.hero-search-form-google .google-search-btn {
  background: var(--primary);
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
  margin-right: 2px;
}

.hero-search-form-google .google-search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .hero-search-form-google {
    border-radius: 24px;
    flex-direction: column;
    padding: 0.5rem;
  }
  .google-search-input-wrapper input {
    padding: 0.75rem 1.25rem;
    font-size: 1.05rem;
  }
  .hero-search-form-google .google-search-btn {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 16px;
    padding: 0.75rem;
  }
}

/* 24. Directory Results Styles */
.directory-result {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.directory-result:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.directory-result h3.company-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.directory-result p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-light);
}

.directory-result p strong {
  color: var(--text-muted);
  display: inline-block;
  width: 150px; /* Gives nice aligned column layout */
}

.directory-result p em {
  color: var(--text-light);
  font-style: normal;
  opacity: 0.8;
}

.directory-result p a {
  color: var(--secondary);
  text-decoration: underline;
}

.result-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 2rem 0;
}

/* Related Posts Cards styling and transitions */
.related-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary) !important;
  box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.3) !important;
}

/* Custom Scrollbar Styles for Tables */
.table-scroll-top::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  height: 8px; /* Thicker scrollbar so it is easy to grab/see */
}
.table-scroll-top::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-scroll-top::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}
.table-scroll-top::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-hover);
}

