/* style.css */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --accent: #0056FF;
  --accent-hover: #003ECC;
  --cta-text: #ffffff;
  --section-heading: #1F4287;
  --paragraph: #333333;
  --header-bg: #ffffff;
  --header-shadow: rgba(0,0,0,0.05);
  --border-color: #ddd;
  --dropdown-hover-bg-light: #f0f0f0;
  --footer-bg-light: #f8f8f8;
  --footer-text-light: #555;


/* style.css */

/* Ensure HTML and BODY take full viewport width and prevent unintended fixed widths */
html, body {
  width: 100%;
  max-width: 100vw; /* This is crucial: Prevents content from exceeding viewport width */
  overflow-x: hidden; /* Helps prevent horizontal scrollbars */
  margin: 0; /* Ensure no default browser margins affect layout */
}

/* HEADER - Explicitly set width to 100% and use box-sizing */
header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; /* Your existing padding */
  background: var(--header-bg);
  z-index: 1000;
  box-shadow: 0 2px 5px var(--header-shadow);
  transition: background-color 0.3s ease;

  /* --- ADD OR ENSURE THESE TWO LINES ARE PRESENT --- */
  width: 100%; /* Force header to take full available width of the viewport */
  box-sizing: border-box; /* Crucial: Includes padding in the 100% width calculation */
}

/* ... rest of your existing style.css content ... */
  /* Hero Specific Variables (These variables are now overridden by specific hero styles) */
  --hero-heading: #007bff; /* Vibrant Blue */
  --hero-paragraph: #333333; /* Dark grey */
  --text-on-dark: #ffffff; /* Text color for hero content when background is dark (e.g., image) */
}


body.dark {
  --bg: #0d011b;
  --text: #ffffff;
  --accent: #00ffff;
  --accent-hover: #00cccc;
  --cta-text: #000000;
  --section-heading: #ffffff;
  --paragraph: #ffffff;
  --header-bg: #0d011b;
  --header-shadow: rgba(255,255,255,0.05);
  --border-color: #333;
  --card-bg: #1a023b;
  --dropdown-hover-bg-dark: #1a002b;
  --footer-bg-dark: #0a0018;
  --footer-text-dark: #777;

  /* Hero Specific Variables (These variables are now overridden by specific hero styles) */
  --hero-heading: #FF69B4; /* Hot Pink */
  --hero-paragraph: #cccccc; /* Light grey */
  --text-on-dark: #ffffff; /* Text color for hero content when background is dark (e.g., image) */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px;
  background: var(--header-bg);
  z-index: 1000;
  box-shadow: 0 2px 5px var(--header-shadow);
  transition: background-color 0.3s ease;
}
header img { max-height: 65px; width: auto; max-width: 180px; transition: opacity 0.3s ease; }

/* Header right controls (for mobile hamburger + mobile toggle) */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* NAVIGATION LINKS */
.nav-links {
  display: none; /* Hidden by default (for mobile) */
  gap: 16px;
  align-items: center;
}
.footer-gpt-slider {
    position: relative;
    height: 100px;
}

nav a, nav .dropdown-toggle {
  color: var(--accent); background: none; border: none;
  font-weight: 600; cursor: pointer; text-decoration: none;
  font-size: 1rem; padding: 8px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
nav a:hover, nav .dropdown-toggle:hover { color: var(--accent-hover); }

.dropdown-arrow {
  font-size: 0.8em;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

/* Dark Mode Toggle Button Styling */
.toggle-mode-btn {
  border: 2px solid var(--accent);
  background: none;
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.toggle-mode-btn:hover {
  background: var(--accent);
  color: var(--cta-text);
  border-color: var(--accent);
}

/* DROPDOWNS */
.dropdown { position: relative; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  flex-direction: column; min-width: 160px; z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-content a {
  padding: 10px 15px; color: var(--text); text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-content a:hover { background: var(--dropdown-hover-bg-light); }
body.dark .dropdown-content a:hover { background: var(--dropdown-hover-bg-dark); }

/* Hamburger Menu icons */
.hamburger-menu,
.hamburger-close {
  display: none;
  font-size: 1.8rem;
 width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  cursor: pointer;
  color: var(--accent);
  z-index: 1001;
}

.hamburger-close {
  position: absolute;
  top: 15px;
  right: 20px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.hero {
    height: 100vh; /* exact viewport height */
    width: 100%; /* ensure full width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0; /* remove conflicting padding */
    position: relative;
    overflow: hidden;
    color: var(--text-on-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #d0eaff, #a0e7e5, #f0f0f0, #d0eaff);
    background-size: 300% 300%;
    animation: heroGradientShift 20s ease infinite;
}
.hero-content {
    max-width: 700px;
    padding: 20px; /* apply padding here */
}

body.dark .hero {
    background: linear-gradient(135deg, #4e049b, #300369, #8d05e1, #110534, #e834e0);
    background-size: 400% 400%;
    animation: heroGradientShift 20s ease infinite;
}
.hero {
 position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d0eaff, #a0e7e5, #f0f0f0, #d0eaff);
    background-size: 300% 300%;
    animation: heroGradientShift 10s ease infinite;
    text-align: center;
    padding: 80px 20px;
box-sizing: border-box;

}
.hero-content > * {
  animation: softLiftFade 6s ease-in-out infinite;
 padding: 0 20px; /* Ensure inner padding for content */
  box-sizing: border-box;
}

body.dark .hero {
    background: linear-gradient(135deg, #4e049b, #300369, #8d05e1, #110534, #e834e0);
    background-size: 400% 400%;
    animation: heroGradientShift 20s ease infinite;
}
.gpt-slider {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gpt-slider img {
    position: absolute;
    opacity: 0;
    animation: fadeLogos 9s infinite;
    max-height: 50px;
}

/* Assign different animation delays for sequential fade */
.gpt-slider img:nth-child(1) { animation-delay: 0s; }
.gpt-slider img:nth-child(2) { animation-delay: 3s; }
.gpt-slider img:nth-child(3) { animation-delay: 6s; }

@keyframes fadeLogos {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero H1 and P for Homepage and all Subpages (Consistent Style) */
.hero h1,
.hero-subpage h1 { /* Applies to both main hero and subpage heroes */
  font-family: 'Orbitron', sans-serif; /* Your desired font family */
  font-weight: 700; /* Bold weight */
  font-size: 2.8em; /* Desired size (services page size) */
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--section-heading); /* CORRECTED: Now uses --section-heading */
overflow-wrap: break-word;
}

.hero p,
.hero-subpage p { /* Applies to both main hero and subpage heroes */
  font-family: 'Inter', sans-serif; /* Your desired font family */
  font-weight: 400; /* Regular weight */
  font-size: 1.2em; /* Desired size (services page size) */
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5em auto;
  color: var(--paragraph); /* CORRECTED: Now uses --paragraph */
overflow-wrap: break-word;
}

/* General .hero-subpage container styling (excluding h1/p which are now grouped above) */
.hero-subpage {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px; /* Or whatever height you prefer for your hero section */
  display: flex;
  align-items: center;
  justify-content: center; /* Adjust based on where you want text */
  color: var(--text-on-dark); /* Ensures text is readable on the image (general inheritance) */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  padding: 80px 20px; /* Example padding */
}

/* CTA BUTTON */
.cta-button {
  background: var(--accent); color: var(--cta-text);
  padding: 12px 24px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
  transition: background 0.3s; display: inline-block;
}
.cta-button:hover { background: var(--accent-hover); }

.section-intro-box {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.intro-box {
  display: flex;
  align-items: center;
  background: var(--card-bg, #d0eaff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 12px;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.intro-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.intro-box-image {
  flex: 0 0 250px;
  margin-right: 20px;
}

.intro-box-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.intro-box-content {
  flex: 1;
}

.intro-box-content h2 {
  font-size: 1.8rem;
  color: var(--section-heading);
  margin-bottom: 15px;
}

.intro-box-content p {
  font-size: 1rem;
  color: var(--paragraph);
  line-height: 1.6;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .intro-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .intro-box-image {
    margin: 0 0 15px 0;
    flex: 0 0 auto;
  }
  .intro-box-content h2 {
    font-size: 1.5rem;
  }
}


/* GENERIC SECTION STYLING */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 30px;
}

.section img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.section img:hover { transform: scale(1.02); }

.section-content { max-width: 600px; }

.section h2 {
  color: var(--section-heading); font-size: 1.8rem; margin-bottom: 10px;
  transition: color 0.3s ease;
}
.section p {
  color: var(--paragraph); font-size: 1rem; margin: 10px 0;
  transition: color 0.3s ease;
}

/* By default, hide dark mode images and show light mode images */
.dark-mode-img {
    display: none;
}
.light-mode-img {
    display: block; /* Ensure it's block for proper layout */
}

/* When body has 'dark' class, hide light mode images and show dark mode images */
body.dark .dark-mode-img {
    display: block;
}
body.dark .light-mode-img {
    display: none;
}

/* Styles for the grid container holding audit item cards */
.audit-items-grid {
    display: grid;
    gap: 20px; /* Space between the cards */
    grid-template-columns: 1fr; /* Default: one column on mobile */
    margin-top: 30px; /* Space from the introductory text */
}

/* For larger screens (tablets and desktops), display cards in columns */
@media (min-width: 769px) {
    .audit-items-grid {
        /* auto-fit will create as many columns as fit, each at least 300px wide */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Styles for individual audit item cards */
.audit-item-card {
    background-color: var(--card-bg); /* Use CSS variable for background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color-card); /* Use CSS variable for border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition on hover */
}

/* Hover effect for cards */
.audit-item-card:hover {
    transform: translateY(-5px); /* Slightly lift the card */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Enhance shadow */
}

/* Dark mode specific hover effect */
body.dark .audit-item-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Styling for headings within the cards */
.audit-item-card h3 {
    color: var(--accent); /* Make heading stand out with accent color */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem; /* Slightly larger heading for prominence */
}

/* Styling for icons within card headings */
.audit-item-card h3 i.fas {
    margin-right: 10px;
    color: var(--accent); /* Ensure icon color matches heading accent */
}

/* Styling for paragraphs within cards */
.audit-item-card p {
    font-size: 0.95rem; /* Slightly smaller text for better card fit */
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Styling for lists within cards */
.audit-item-card ul {
    padding-left: 20px; /* Indent lists */
    list-style: none; /* Remove default bullets */
    margin-bottom: 0; /* Remove extra space at the bottom of the list */
}

.audit-item-card ul li {
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
    margin-bottom: 8px; /* Space between list items */
    font-size: 0.9rem;
    line-height: 1.5;
}

.audit-item-card ul li:last-child {
    margin-bottom: 0; /* No margin after the last list item */
}

/* Custom bullet for list items within cards (using a dot for this section) */
.audit-item-card ul li:before {
    content: '•'; /* A simple dot as a bullet point */
    color: var(--accent); /* Color the dot with accent color */
    position: absolute;
    left: 0;
    top: 0.1em; /* Adjust vertical alignment of the dot */
    font-weight: bold;
    font-size: 1.2em;
}
/* General list styling */
.section-content ul {
    list-style: none; /* Remove default bullet */
    padding: 0;
    margin: 20px 0;
}

.section-content ul li {
    margin-bottom: 12px;
    padding-left: 30px; /* Space for custom bullet */
    position: relative;
    line-height: 1.6;
    color: var(--paragraph);
    font-size: 1.1rem;
}

.section-content ul li:before {
    content: "✓"; /* Custom checkmark bullet */
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    font-weight: bold;
    top: 0; /* Align with text top */
}

/* Specific styling for the "SEO vs GEO Box" */
.seo-geo-box {
    background: var(--card-bg, #f5f5f5); /* Use card background for boxes/FAQs */
    border-left: 5px solid var(--accent);
    padding: 25px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: var(--text); /* Ensure text color in card */
}

.seo-geo-box h3 {
    text-align: center;
    color: var(--section-heading);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.seo-geo-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-geo-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--paragraph);
    font-size: 1.1rem;
}

.seo-geo-box ul li:before {
    content: "•"; /* Dot bullet */
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 0.8; /* Adjust vertical alignment */
    top: 5px;
}

/* Numbered list for "How it Works" */
.numbered-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: item; /* Initialize counter */
}

.numbered-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--paragraph);
    counter-increment: item; /* Increment counter for each list item */
}

.numbered-list li:before {
    content: counter(item); /* Use CSS counter */
    background: var(--accent);
    color: var(--cta-text);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section Styling */
.section-faq {
    background: var(--card-bg, #f5f5f5); /* Use card background for the whole FAQ section */
    padding: 60px 20px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg); /* Use main background for individual FAQ items */
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: var(--text);
}
body.dark .faq-item {
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    box-shadow: 0 2px 4px rgba(255,255,255,0.05);
}

/* New: Left-side visual panel for desktop */
.geo-section-visual {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none; /* Hidden by default on mobile */
    min-height: 300px; /* Default height, can be adjusted by content on desktop */
}

/* CTA container for multiple buttons */
.cta-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 30px;
}

/* MEDIA QUERIES */

/* MOBILE Specific Styles (max-width: 768px) */
@media (max-width: 768px) {
  .hero {
    /* Mobile font sizes for hero */
    padding-top: 80px; /* Adjusted for smaller header on mobile */
  }
  
  /* Mobile font sizes for all hero H1s and Ps */
  .hero h1,
  .hero-subpage h1 {
    font-size: 2em; /* Mobile font size for all hero H1s */
  }
  .hero p,
  .hero-subpage p {
    font-size: 1em; /* Mobile font size for all hero Ps */
  }

  /* Hide desktop nav and show hamburger controls */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: var(--header-bg);
    padding-top: 80px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    display: flex;
  }

  /* Show hamburger/close icons on mobile */
  .hamburger-menu {
    display: block;
  }
  .hamburger-close {
    display: none;
  }

  /* Mobile Nav Links Styling (flush left) */
  .nav-links a, .nav-links .dropdown-toggle {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  body.dark .nav-links a, body.dark .nav-links .dropdown-toggle {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Mobile Dark Mode Toggle button positioning */
  .header-right-controls .toggle-mode-btn {
    display: block;
  }
  .nav-links .toggle-mode-btn {
    display: none;
  }

  /* Dropdown content for mobile */
  .dropdown-content {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown-content a {
    padding: 10px 20px;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }

  /* Mobile specific ordering for ALL sections: Image, then Text, then CTA */
  .section {
    flex-direction: column; /* Stacks vertically */
    text-align: center; /* Center text on mobile */
  }
  .section-content {
      text-align: left; /* Keep content text left-aligned for readability */
  }
  .section-content h2 {
      text-align: center; /* Ensure headings are centered */
  }
  .section-content ul, .numbered-list {
      text-align: left; /* Keep list items left-aligned */
  }

  /* Mobile specific text sizes */
  .section-content h2 { font-size: 1.7rem; }
  .section-content p, .section-content ul li, .seo-geo-box ul li, .numbered-list li {
      font-size: 1rem;
  }
  .faq-item h3 { font-size: 1.2rem; }
  .faq-item p { font-size: 0.95rem; }

 /* Mobile CTA Button Enhancements (Refined for better mobile responsiveness) */
.cta-button {
    /* General mobile styling for all CTA buttons */
    padding: 12px 20px; /* Reduced horizontal padding for better fit on small screens */
    font-size: 1rem; /* Standard mobile font size */
    display: block; /* Make the button a block element so it takes full width */
    width: 100%; /* Ensure it always tries to take 100% of its direct parent's available space */
    max-width: 320px; /* A reasonable maximum width for a single button on mobile. Adjust if needed. */
    margin-left: auto; /* Center the block button horizontally */
    margin-right: auto; /* Center the block button horizontally */
    box-sizing: border-box; /* Ensures padding/border are included in the 100% width calculation */
}

.cta-container {
    display: flex; /* Keep flex for potential multiple buttons */
    flex-direction: column; /* Stack buttons vertically if there are multiple */
    gap: 15px; /* Space between stacked buttons */
    margin-top: 25px;
    justify-content: center; /* Center the stacked buttons within the container */
    align-items: center; /* Center each individual button (which is already 100% width) */
    width: 100%; /* Ensure the container itself takes full width */
    max-width: 320px; /* Match max-width of button for consistency if single button */
    margin-left: auto; /* Center the container itself */
    margin-right: auto;
}

/* Ensure the specific resource block containers also behave well on mobile */
/* These rules are already in your provided CSS but are crucial for the fix */
.resource-feature-block {
    flex-direction: column; /* Stacks content vertically */
    gap: 20px; /* Reduced gap when stacked */
    padding: 20px 15px; /* Adjusted padding: 20px top/bottom, 15px left/right */
    width: auto; /* Allow it to adapt naturally to its parent's width */
    max-width: 100%; /* Ensure it never overflows its parent */
    margin-left: 0; /* Remove any horizontal margins */
    margin-right: 0;
}
/* Inside your @media (max-width: 768px) block */

/* Ensure all resource feature blocks stack with image first, then content */
.resource-feature-block .resource-image {
    order: 1; /* Make the image container appear first */
}

.resource-feature-block .resource-content {
    order: 2; /* Make the content container appear second */
}

/* You might also want to ensure the .cta-container is ordered last within the content if it's not already */
.resource-feature-block .resource-content .cta-container {
    order: 3; /* This ensures the CTA button always comes after the text content */
}

.resource-feature-block .resource-content {
    width: 100%; /* Take full width of the padded parent block */
    padding-left: 0; /* Remove any inherited/default horizontal padding */
    padding-right: 0; /* Remove any inherited/default horizontal padding */
}

/* Center the CTA container's content on mobile within the resource block */
.resource-feature-block .cta-container {
    text-align: center;
}

  /* Show image in its own block on mobile for the reverse section */
  .geo-section-visual {
      display: block; /* Make it visible on mobile */
      width: 100%; /* Take full width on mobile */
      height: 200px; /* Give it a specific height for the background image */
      margin-bottom: 30px; /* Space below the image */
      background-size: contain; /* Adjust to 'contain' or 'cover' as desired for mobile */
      background-position: center; /* Centers the image */
      background-repeat: no-repeat; /* Ensure it doesn't repeat */
  }
  /* Ensure images in reversed sections appear first on mobile */
  .section.reverse {
      flex-direction: column; /* Revert to column for mobile */
  }
  .section.reverse .geo-section-visual {
      order: 1; /* Image first */
  }
  .section.reverse .section-content {
      order: 2; /* Content second */
  }

  .hero-subpage {
    min-height: 250px; /* Even shorter on mobile */
    padding-top: 80px; /* Adjust for mobile header */
  }
}

/* DESKTOP Specific Styles (min-width: 769px) */
@media (min-width: 769px) {
  header {
    justify-content: space-between;
  }

  .hamburger-menu, .hamburger-close {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    height: auto;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: translateX(0);
    flex-grow: 1;
    justify-content: flex-end; /* Pushes nav items and toggle to the right */
    gap: 16px;
  }

  /* Desktop Dark Mode Toggle within nav */
  .header-right-controls .toggle-mode-btn {
    display: none;
  }
  .nav-links .toggle-mode-btn {
    display: block;
  }

  /* Desktop dropdown hover */
  .dropdown:hover .dropdown-content { display: flex; }
  .dropdown:hover .dropdown-toggle .dropdown-arrow { transform: rotate(180deg); }


  /* Section layout for desktop */
  .section {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 40px;
  }
  .section.reverse {
    flex-direction: row-reverse;
  }
  .section .section-content {
    order: unset;
    width: 40%;
  }
  .section img {
    order: unset;
    width: 40%;
    max-width: 400px;
    margin: 0;
  }
  .section .cta-button {
    order: unset;
  }

  /* Desktop specific sections and image alignments */
  /* Common styling for content within sections */
  .section-content {
      width: 50%; /* Content takes half width */
      order: unset; /* Reset order for desktop */
      margin: 0; /* Remove auto margin */
  }
  .section.reverse .section-content { /* For reverse, content is on right */
      order: 2;
  }

  .geo-section-visual {
      display: block; /* Show on desktop */
      width: 50%; /* Visual takes half width */
      min-height: 300px; /* Ensure desktop visual has height */
      order: 1; /* Visual on left for reverse section on desktop */
      background-size: cover; /* Image scales to cover container */
      background-position: center; /* Centers the image */
      background-repeat: no-repeat; /* Ensures no tiling */
  }

  .section-left-aligned {
      /* Override centering for this specific section on desktop */
      justify-content: flex-start; /* Aligns content to the left */
      padding-left: 5%; /* Optional: Add some padding for a visual "indent" */
      padding-right: 5%; /* Optional: Keep some padding on the right as well */
  }

  .section-left-aligned .section-content {
      /* Adjust width for the content if necessary to prevent it from being too wide */
      width: 95%; /* You might want it wider if there's no image */
      max-width: 1200px; /* Or a specific max-width for readability */
      margin: 0; /* Ensure no auto margins are centering it */
  }
}

/* Form styling */
.hero-subpage form {
  background: rgba(255,255,255,0.85); /* Light mode form bg */
  padding: 20px; border-radius: 8px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px; width: 100%;
}

body.dark .hero-subpage form {
  background: rgba(0,0,0,0.5); /* Dark mode form bg */
}

/* Form specific styles */
form {
  background: rgba(255,255,255,0.85);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  width: 100%;
  position: relative; /* Ensure form is above hero image content */
  z-index: 1;
}

body.dark form {
  background: rgba(0,0,0,0.5);
}

/* Input styles */
input[type="text"],
input[type="email"],
input[type="url"] {
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text); /* Ensures text color changes with theme */
  background: var(--bg); /* Ensures input background changes with theme */
  border: 1px solid var(--border-color, #ccc); /* Add a subtle border */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Submit Button styles */
button[type="submit"] {
  background: var(--accent);
  color: var(--cta-text);
  padding: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

#status-message {
  margin-top: 12px;
  font-weight: 500;
  text-align: center;
}
/* --- New Feature Block Styling for Resources Page --- */

/* Variables for the new resource blocks */
:root {
    --resource-block-bg: #f9f9f9; /* Light grey for light mode */
    --resource-block-shadow: rgba(0,0,0,0.08);
}
body.dark {
    --resource-block-bg: #1e0730; /* Darker purple for dark mode */
    --resource-block-shadow: rgba(0,0,0,0.4);
}

.resource-feature-block {
    display: flex; /* Use flexbox for two columns */
    align-items: stretch; /* CRUCIAL: Makes flex items stretch to match the height of the tallest sibling */
    gap: 40px; /* Space between text and image columns */
    margin-bottom: 60px; /* Space between each feature block */
    padding: 30px; /* Padding inside the block */
    border-radius: 12px;
    background-color: var(--resource-block-bg); /* Block background color */
    box-shadow: 0 5px 15px var(--resource-block-shadow); /* Block shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-feature-block .resource-content,
.resource-feature-block .resource-image {
    flex: 1; /* Both columns take equal width */
    min-width: 0; /* Prevents content from causing overflow */
    /* No explicit height here, they will stretch naturally as flex items */
}

.resource-feature-block .resource-image {
    display: flex; /* Make the image container itself a flex container */
    align-items: center; /* Center the image vertically if it doesn't quite fill */
    justify-content: center; /* Center the image horizontally if it doesn't quite fill */
}

.resource-feature-block .resource-image img {
    width: 100%; /* Image fills its container horizontally */
    height: 100%; /* Image fills its container vertically */
    object-fit: cover; /* CRUCIAL: Image covers its container, cropping if necessary, maintaining aspect ratio */
    display: block; /* Removes extra space below image */
    border-radius: 8px; /* Rounded corners for images */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow on images */
}

/* Specific ordering for alternating layout (Image Left, Text Right) */
.resource-feature-block.image-left-text-right {
    flex-direction: row-reverse; /* Swaps the visual order of columns */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .resource-feature-block {
        flex-direction: column; /* Stack columns vertically on small screens */
        gap: 20px; /* Smaller gap when stacked */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    /* Ensure the stacking order is consistent regardless of initial desktop order */
    .resource-feature-block.image-left-text-right {
        flex-direction: column;
    }
}

/* --- Styling for Content within Resource Feature Blocks --- */
.resource-feature-block .resource-content h3 {
    color: var(--header-text); /* Uses theme's header text color */
    font-size: 1.8rem; /* Slightly larger heading for feature blocks */
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.resource-feature-block .resource-content p {
    color: var(--text); /* Uses theme's main text color */
    line-height: 1.6;
    margin-bottom: 10px;
}

.resource-feature-block .resource-content ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin-bottom: 20px;
}

.resource-feature-block .resource-content ul li {
    position: relative;
    padding-left: 30px; /* Space for custom bullet/icon */
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.5;
}

.resource-feature-block .resource-content ul li::before {
    content: '✨'; /* Using a sparkle emoji as a bullet */
    position: absolute;
    left: 0;
    color: var(--accent); /* Uses theme's accent color for the bullet */
    font-size: 1.2em;
}

/* CTA button within the resource content */
.resource-feature-block .cta-container {
    margin-top: 25px;
    text-align: left;
}


