/* --- Global Variables --- */
:root {
  --brand-primary: #0077ff; /* Semrush blue */
  --brand-dark: #003d99; /* Darker blue for accents/hover */
  --bg-light: #f5f7fa; /* Light background for general sections */
  --text-dark: #222; /* Dark text for main content */
  --text-light: #555; /* Lighter text for descriptions/paragraphs */
  --shadow-light: rgba(0,0,0,0.05);
  --shadow-medium: rgba(0,0,0,0.1);
  --shadow-strong: rgba(0,0,0,0.15);
  --success-color: #28a745;
  --error-color: #dc3545;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --light-blue-bg: #e6f0ff; /* Used for sections like tool-cards */
  --lighter-blue-bg: #f7fafd; /* Used for blog section backgrounds */
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1 0 auto;
  width: 100%;
  padding: 0;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 1200px; /* Wider container for main content */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Responsive Base --- */
:root {
  --header-height: 70px;
  --section-padding: 4rem 0;
  --container-padding: 0 1.5rem;
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 2.5rem 0;
    --container-padding: 0 1rem;
  }
}

/* --- Section Titles --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Site Navigation (Header) */
.site-header {
  background-color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  width: 100%;
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  font-family: 'Poppins', sans-serif;
}

.logo-text {
  margin-left: 8px;
  position: relative;
  top: 1px;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230077ff"><path d="M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.8L20 9v6l-8 4-8-4V9l8-4.2z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Navigation Links */
.site-navigation {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-primary);
}

/* Header Social Icons */
.header-socials {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.header-socials a {
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.header-socials a:hover {
  color: var(--brand-primary);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 1001;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }
}

.site-navigation .container { /* Used in blog posts */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Specific to homepage header, but keep general for consistency */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px; /* Slightly narrower than main content */
  margin: 0 auto;
  padding: 15px 20px;
}

.site-navigation .logo,
.site-header .site-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-primary);
  text-decoration: none;
  margin: 0;
}

.site-navigation .nav-links,
.site-header .site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px; /* Space between navigation items */
}

.site-navigation .nav-links li a,
.site-header .site-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark); /* Default link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-navigation .nav-links li a:hover,
.site-header .site-nav a:hover {
  color: var(--brand-primary); /* Brand primary color on hover */
}


/* --- Buttons (Global) --- */
.button,
.btn-primary { /* Consolidate btn-primary into .button.primary-button */
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px; /* Consistent rounded corners */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  font-size: 1em;
  text-align: center;
}

.primary-button,
.btn-primary { /* Main call to action button */
  background-color: var(--brand-primary);
  color: white;
  border: 1px solid var(--brand-primary);
}

.primary-button:hover,
.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: white;
  transform: translateY(-2px); /* Subtle lift effect */
}

.secondary-button { /* Secondary action button */
  background-color: #6c757d; /* Gray */
  color: white;
  border: 1px solid #6c757d;
}

.secondary-button:hover {
  background-color: #5a6268;
  border-color: #5a6268;
  color: white;
  transform: translateY(-2px);
}

.read-more-link { /* Text links for "Read More" */
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}
.read-more-link:hover {
    text-decoration: underline;
    color: var(--brand-dark);
}


/* --- Hero Section (Homepage & Blog Headers) --- */
.hero.hero-homepage { /* Specific hero for homepage and main blog page */
  background: url('/assets/images/analytics/analytics-hero.jpg') center/cover no-repeat; /* Default image, can be overridden inline */
  position: relative;
  text-align: center;
  padding: 100px 20px; /* Generous padding for content */
  color: white;
  min-height: 350px; /* Minimum height for visual impact */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* max-height and overflow: hidden removed to allow text to expand */
}
.hero.hero-homepage::after { /* Overlay for readability */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
.hero {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* --- Hero Section Styles --- */
.hero h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}
.hero-cta { /* Button on hero */
  font-size: 1.2em;
  padding: 15px 30px;
}

/* --- Blog Post Specific Hero (If different from main hero) --- */
.hero.blog-post-hero { /* Uniform height for all blog post hero sections */
  height: 390px;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
/*
  BLOG POST HERO HEIGHT:
  Adjust the height for all blog post hero sections here:
  .hero.blog-post-hero { height: 390px; }
*/

.hero.blog-post-hero .hero-content {
  margin-top: 30px; /* Move hero text overlay up by 10px as requested. */
}

.hero.blog-post-hero .hero-content h1 {
  font-size: 2.8rem; /* Adjusted size for blog post titles */
  margin-bottom: 15px;
}
.hero.blog-post-hero .hero-content p {
  font-size: 1.2rem;
}


/* --- SEO & SEM Overview Section --- */
.seo-sem-overview {
  background: var(--bg-light);
  padding: 80px 20px;
  text-align: center;
}
.seo-sem-overview h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.seo-sem-overview .section-description {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}
.overview-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}
.overview-card .icon-card-lg {
  font-size: 3em;
  color: var(--brand-primary);
  margin-bottom: 20px;
}
.overview-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.overview-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  flex-grow: 1;
}

/* --- Deep Dive Content Section (linking to blog articles) --- */
.deep-dive-content {
  background: white;
  padding: 80px 20px;
  text-align: center;
}
.deep-dive-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.deep-dive-content .section-description {
  font-size: 1.15rem;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: var(--text-light);
}
.grid-posts { /* Reusing from blog index, consistent style */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}
.post-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-medium);
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}
.post-preview .post-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  display: block; /* Remove extra space below image */
}
.post-preview h3 {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 20px 20px 10px;
  color: var(--text-dark);
}
.post-preview p {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 20px 15px;
  flex-grow: 1;
  line-height: 1.6;
}
.post-preview .read-more-link { /* Consistent link style */
  align-self: flex-start;
  padding: 0 20px 20px; /* Padding for the link itself */
}

/* --- Tool Cards Section --- */
.tool-cards-section {
    background: var(--light-blue-bg);
    padding: 60px 20px;
    text-align: center;
}
.tool-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Ensure cards are not underlined if they are links */
    color: var(--text-dark); /* Default text color */
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-strong);
    background-color: var(--brand-dark); /* Darker blue on hover */
    color: white; /* Text color change on hover */
}
.tool-card:hover h3,
.tool-card:hover p {
  color: white; /* Ensure text inside card changes color */
}
.tool-card .tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: filter 0.3s;
}
.tool-icon-fa { /* Font Awesome fallback icons */
  font-size: 40px;
  color: var(--brand-primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}
.tool-card:hover .tool-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(249deg) brightness(102%) contrast(101%); /* Invert to white */
}
.tool-card:hover .tool-icon-fa { color: #fff; }
.tool-card h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.tool-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}
.tool-card .tool-card-link {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}
.tool-card:hover .tool-card-link {
  color: white; /* Link color changes to white on hover */
  text-decoration: underline;
}

/* --- Latest Articles Section --- */
.latest-articles-section {
    background: white;
    padding: 80px 20px;
}
.latest-articles-section .section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* --- About Section --- */
.about-section {
  background: var(--bg-light);
  padding: 80px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}
.about-section h2 {
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: var(--text-dark);
}
.about-section p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: var(--text-light);
}
.about-section p:last-of-type {
  margin-bottom: 0;
}

/* --- Blog Post Content Section --- */
/* This section handles the main content within individual blog posts */
.blog-content-section {
  padding: 60px 20px; /* Default for mobile/small screens, adjusted below for larger */
  background: white;
  max-width: 900px; /* Keep content readable width */
  margin: 0 auto; /* Center the content if it's not part of a grid */
  box-shadow: 0 2px 10px var(--shadow-light);
  border-radius: 8px;
  margin-top: -80px; /* Pulls it up into the hero for visual effect */
  position: relative;
  z-index: 50; /* Ensure it's above the hero overlay */
}

.blog-content-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-dark);
}

.blog-content-section h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--text-dark);
  text-align: left; /* Blog post headings should be left-aligned */
}

.blog-content-section h3 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--text-dark);
  text-align: left;
}

.blog-content-section p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text-light);
}

.blog-content-section ul,
.blog-content-section ol {
  margin-bottom: 20px;
  padding-left: 30px;
  color: var(--text-light);
}

.blog-content-section ul li,
.blog-content-section ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.blog-content-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* NEW: Blog Article Layout for Quick Nav and Main Content */
.blog-content-wrapper { /* This wraps quick nav and blog content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Quick nav fixed width, content fills rest */
    gap: 60px; /* Space between quick nav and content */
    padding-top: 40px; /* Space above the layout */
    padding-bottom: 40px; /* Space below the layout */
    align-items: start; /* Aligns content to the top */
    /* Ensure this is within .container or has its own max-width/centering */
}

/* Quick Navigation specific styling */
.quick-navigation {
    padding: 20px; /* Padding inside the quick nav box */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky; /* Makes it stick when scrolling */
    top: 100px; /* Adjust based on header height */
    align-self: start; /* Ensures it starts at the top of its grid cell */
    height: fit-content; /* Prevents it from taking full height if content is short */
    margin-top: -80px; /* Align with blog-content-section's margin-top */
    z-index: 50; /* Keep it above other elements if needed */
}

.quick-navigation h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--brand-dark);
    text-align: center;
}

.quick-navigation ul {
    list-style: none;
    padding: 0;
}

.quick-navigation ul li {
    margin-bottom: 10px;
}

.quick-navigation ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.05rem;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.quick-navigation ul li a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}


/* --- Comparison Section (Table) --- */
.comparison-section {
  padding: 80px 20px;
  background: var(--brand-dark); /* Dark blue background */
}
.comparison-section h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: white;
}
.comparison-section p { /* This was a title in original, now standard p */
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #c0c0c0; /* Lighter color for description */
  font-size: 1.15rem;
  line-height: 1.7;
}
.comparison-section table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  margin: 0 auto;
  box-shadow: 0 8px 30px var(--shadow-medium);
  border-radius: 12px;
  overflow: hidden;
}
.comparison-section th, .comparison-section td {
  padding: 18px;
  border: 1px solid #444; /* Darker border for dark background */
  vertical-align: middle;
  text-align: center;
  font-size: 1rem;
}
.comparison-section th {
  background-color: #002a66; /* Slightly lighter dark blue for headers */
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.95rem;
}
.comparison-section tbody tr:nth-child(odd) {
  background-color: #f7fafd;
}
.comparison-section tbody tr:nth-child(even) {
  background-color: #ffffff;
}
.comparison-section tbody tr:hover {
  background-color: #e3f1ff;
}
.comparison-section td strong {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}
.comparison-section td small {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
}
.comparison-section .check-icon {
    color: var(--success-color); /* Green checkmark */
    font-size: 1.5em;
}
.comparison-section .minus-icon {
    color: var(--error-color); /* Red minus icon */
    font-size: 1.5em;
}

/* Global CTA Section */
.global-cta-section {
  background:
    linear-gradient(135deg, #007bff 0%, #3399ff 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230066cc' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-blend-mode: overlay;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 30px 10px;
  border-radius: 12px;
  margin-top: -60px; /* Pull up into section above */
  margin-bottom: 0; /* Avoid overlapping footer */
  position: relative;
  z-index: 20;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.global-cta-section h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: white; /* Explicitly set heading color to white */
}

.global-cta-section p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: white; /* Explicitly set paragraph color to white */
  opacity: 0.9; /* Slightly reduce opacity for a softer look */
}

.global-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--accent-color, #ffc107); /* Use an accent color for the button */
  color: #333; /* Darker text for the button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.global-cta-button:hover {
  background-color: #e0a800; /* Darker accent on hover */
  transform: translateY(-2px);
}

/* Ensure these CSS variables are defined, perhaps at the top of your styles.css */
/* Example:
:root {
  --primary-color: #007bff;
  --accent-color: #ffc107;
  --text-dark: #333;
  --text-light: #666;
  --background-light: #f8f9fa;
  --background-dark: #343a40;
}
*/

/* --- Footer --- */
footer {
    background: #333; /* Darker footer background */
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 -2px 10px var(--shadow-medium);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-nav {
    margin-bottom: 5px;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
/* Footer Styles */
.site-footer {
  background-color: #0c0c0c;
  color: #fff;
  padding: 40px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  width: 100%;
}

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

/* Footer Container */
.footer-container {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 0 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 16px;
}

/* Footer Sections */
.footer-social,
.footer-nav,
.footer-newsletter {
  flex: 1;
  min-width: 200px;
  padding: 0 15px;
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--brand-primary);
}

/* Footer Navigation */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-link {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #fff;
}

/* Newsletter Form */
.newsletter-text {
  color: #a0a0a0;
  margin-bottom: 15px;
}

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

.newsletter-input {
  padding: 10px 15px;
  border: 1px solid #333;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.newsletter-button {
  background-color: var(--brand-primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.newsletter-button:hover {
  background-color: var(--brand-dark);
}

/* Footer Bottom */
.footer-bottom {
  background-color: #080808;
  padding: 20px 0;
  margin-top: 30px;
  width: 100%;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  font-size: 0.9rem;
  color: #666;
  width: 100%;
}

/* Full width footer container */
.site-footer {
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a; /* Match your footer background color */
}

/* Full width header and footer on desktop */
@media (min-width: 1025px) {
  .site-header {
    padding: 15px 0;
  }
  
  .header-container {
    padding: 0 5%;
  }
  
  .footer-container {
    padding: 0 5%;
  }
}

/* Adjust container for medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-container,
  .footer-container {
    padding: 0 4%;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .header-container,
  .footer-container {
    padding: 0 20px;
  }
  .footer-main { grid-template-columns: 1fr; }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

.footer-logo a {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-affiliate-disclaimer {
  flex-basis: 100%;
  font-size: 13px;
  color: #bbb;
  margin-top: 10px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-socials a {
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0077ff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background-color: #005bb5;
  transform: scale(1.1);
}

.footer-copy {
  flex-basis: 100%;
  text-align: center;
  margin-top: 30px;
}


/* --- Responsive Adjustments --- */
@media (min-width: 769px) { /* Apply larger padding for blog content on bigger screens */
    .blog-content-section {
        padding: 60px 40px; /* More padding for main article content */
    }
}

@media (max-width: 1024px) {
    .overview-grid, .grid-posts, .tool-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted slightly */
    }
    .hero.hero-homepage h1 {
        font-size: 3rem;
    }
    .hero.hero-homepage p {
        font-size: 1.3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .blog-content-wrapper {
        grid-template-columns: 200px 1fr; /* Smaller quick nav on mid-size screens */
        gap: 40px;
    }
}
/* Mobile Jump Button & Menu */
.mobile-jump-button {
  display: none; /* Hidden by default, shown on mobile */
  width: 100%;
  padding: 12px 16px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 15px 0;
  align-items: center;
  justify-content: space-between;
}

.mobile-jump-button svg {
  transition: transform 0.3s ease;
}

.mobile-jump-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-jump-menu {
  display: none;
  width: 100%;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}

.mobile-jump-menu[aria-hidden="false"] {
  display: block;
  max-height: 500px; /* Adjust based on content */
  opacity: 1;
  padding: 10px 0;
}

.mobile-jump-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-jump-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-jump-menu li:last-child {
  border-bottom: none;
}

.mobile-jump-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-jump-menu a:hover,
.mobile-jump-menu a:focus {
  background-color: #f8f9fa;
  color: var(--brand-primary);
}

/* Show mobile jump button only on mobile */
@media (max-width: 768px) {
  .mobile-jump-button {
    display: flex;
  }
}

/* Quick Navigation for Glossary Page */
.quick-navigation {
  position: sticky;
  top: 100px; /* Below header */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 15px;
}

.blog-content-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Hide quick navigation on mobile */
@media (max-width: 1024px) {
  .blog-content-wrapper {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .quick-navigation {
    display: none;
  }
  
  .blog-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .site-navigation .nav-links,
  .site-header .site-nav ul {
    flex-direction: column; /* Stack nav links */
    gap: 10px;
        align-items: flex-end; /* Align to right */
    }
    .site-navigation .container,
    .site-header .container {
        flex-direction: column;
        align-items: center;
    }
    .site-navigation .logo,
    .site-header .site-logo {
        margin-bottom: 15px;
    }
    .hero.hero-homepage {
        min-height: 300px;
        padding: 60px 15px;
    }
    .hero.hero-homepage h1 {
        font-size: 2.2rem;
    }
    .hero.hero-homepage p {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 2rem;
    }
    .overview-grid, .grid-posts, .tool-card-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }
    .comparison-section table {
        display: block;
        overflow-x: auto; /* Enable horizontal scrolling for table */
        white-space: nowrap; /* Prevent cell content from wrapping */
    }
    .comparison-section th, .comparison-section td {
        padding: 12px;
        font-size: 0.9rem;
    }
    .global-cta-section {
        background: linear-gradient(135deg, #007bff 0%, #3399ff 100%);
        padding: 40px 10px;
        margin-top: -40px;
        margin-bottom: 0;
        transform: none;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
    .global-cta-section h2 {
        font-size: 2.2rem;
    }
    .global-cta-section p {
        font-size: 1.1rem;
    }
    .global-cta-section .global-cta-button {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    /* Stack blog content and quick nav on mobile */
    .blog-content-wrapper {
        grid-template-columns: 1fr; /* Single column */
        gap: 30px;
        padding: 20px 0; /* Adjusted padding for stacked layout */
    }
    .quick-navigation {
        position: static; /* Don't stick on mobile */
        margin-top: 0; /* Remove negative margin on mobile */
    }
}
@media (max-width: 480px) {
    .site-navigation .logo,
    .site-header .site-logo {
        font-size: 1.3rem;
    }
    .site-navigation .nav-links li a,
    .site-header .site-nav a {
        font-size: 0.9em;
    }
    .hero.hero-homepage h1 {
        font-size: 1.8rem;
    }
    .hero.hero-homepage p {
        font-size: 0.95rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Remove dark overlay on blog index hero --- */
.blog-index-hero.hero-image-section::before {
  display: none !important;
  background: none !important;
  content: none !important;
  opacity: 0 !important;
}
/* Classy mobile sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  background: rgba(12,12,12,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  padding: 10px 16px;
  z-index: 1100;
}
.sticky-cta .sticky-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cta .sticky-cta-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.sticky-cta .sticky-cta-button {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 64px; }
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* --- Force uniform spacing after header across all pages --- */
header + .hero,
header + .hero-image-section,
header + section.hero,
header + .blog-index-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.blog-index-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* --- Footer compact layout tweaks --- */
.site-footer { padding: 28px 0 0; }
.footer-container { padding: 10px 16px 0; }
.footer-main { gap: 24px; margin: 6px 0 4px; }
.footer-heading { margin-bottom: 10px; font-size: 1rem; }
.footer-social .newsletter-text { margin: 6px 0 8px; }
.footer-newsletter .newsletter-text { font-size: 0.95rem; line-height: 1.5; }
.footer-newsletter .disclosure-text { max-width: 520px; margin: 8px auto 0; text-align: center; color: #a0a0a0; line-height: 1.5; }
.footer-newsletter .newsletter-form { flex-direction: row; align-items: center; }
.footer-newsletter .newsletter-input { flex: 1; }
.footer-newsletter .newsletter-button { padding: 10px 16px; }
.footer-bottom { padding: 12px 0; margin-top: 12px; }
/* Full-width disclosure spanning ~3/4 of footer width */
.footer-disclosure { max-width: 900px; margin: 0 auto 0; text-align: center; }
.footer-disclosure p { color: #a0a0a0; line-height: 1.6; }
@media (max-width: 768px) {
  .site-footer { padding: 20px 0 0; }
  .footer-newsletter .newsletter-form { flex-direction: column; align-items: stretch; }
}