/* General Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
  }
  a {
    text-decoration: none;
    color: #00427e;
  }
  a:hover {
    text-decoration: underline;
  }
  
  /* Container */
  .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  /* Header */
  .site-header {
    background-color: #002b53;
    padding: 1rem 0;
    color: white;
  }
  .site-header .logo {
    font-size: 1.5rem;
  }
  .site-header nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-top: 0.5rem;
  }
  .site-header .nav-links a {
    color: white;
    font-weight: bold;
  }
  
/* Hero Banner */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    text-align: center;
    background-color: #002b53;
  }
  .hero .hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
  }
  .hero .hero-text {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: rgba(0, 43, 83, 0.3); /* Lightened opacity by 20% */
    width: 100%;
    margin: 0;
  }
  .hero .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }
  .hero .hero-subtitle {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  }
  
  /* Navigation */
  .navbar, .sticky-nav {
    background-color: #002b53;
    padding: 1rem 0;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .navbar-container, .nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-title {
    font-size: 1.5rem;
    margin: 0;
    color: white;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: #b8dcff;
    text-decoration: none;
  }
  
  .sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  /* Sections */
  main section {
    margin: 2rem auto;
    padding: 1.5rem 1rem;
    scroll-margin-top: 80px; /* Add padding for navbar links */
  }
  
  .container-section {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  .section-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1080px;
    margin: 0 auto;
  }
  
  /* State Search */
  .state-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
  }
  
  .state-btn {
    padding: 0.6rem 1rem;
    border: 1px solid #00427e;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    color: #00427e;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .state-btn:hover {
    background-color: #e6f0ff;
  }
  
  .state-btn.active {
    background-color: #00427e;
    color: white;
  }
  
  .state-results {
    margin-top: 2rem;
    min-height: 100px;
  }
  
  .no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* Mock data indicator */
  .mock-data {
    color: #999;
    font-size: 0.7rem;
    font-weight: normal;
    vertical-align: super;
  }
  
  /* State Results Wrapper and See More Container */
  .state-results-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .see-more-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
  }
  
  /* Adjust spacing between sections when no state is selected */
  .state-results:empty {
    margin-bottom: 0;
    min-height: 0;
  }
  
  .state-results:not(:empty) {
    margin-bottom: 2rem;
    min-height: 100px;
  }
  
  /* Adjust spacing between Find Electricians and What Customers sections */
  #states + section {
    margin-top: 1rem;
  }
  
  /* When state results are shown, add more space */
  .state-results:not(:empty) + section {
    margin-top: 3rem;
  }
  
  /* State sections in testimonials page */
  .state-section {
    margin-bottom: 2.5rem;
  }
  
  .state-heading {
    color: #00427e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e6f0ff;
  }
  /* Testimonials */
  .testimonial-grid, .testimonial-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
  }
  
.testimonial-card {
    flex: 1 1 300px;
    max-width: 350px;
    min-height: 220px; /* Minimum height instead of fixed height */
    background: white;
    padding: 1.25rem;
    border-left: 4px solid #0073e6;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow content */
  }
  
  .testimonial-card p {
    margin-bottom: 0.75rem;
  }
  
  .testimonial-author, .testimonial-snippet {
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
  }
  
  .read-more {
    color: #0073e6;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
  }
  
  .testimonial-business {
    margin-bottom: 0.5rem;
    color: #00427e;
  }
  
  .testimonial-city {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
  }
  
  /* Clickable testimonial cards */
  a.testimonial-card {
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  a.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
  }
  
  .testimonial-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  /* Blog Cards */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .blog-card {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    color: inherit;
    text-decoration: none;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
  }
  
  .blog-card h3 {
    margin-bottom: 0.75rem;
    color: #00427e;
  }
  
  .blog-card p {
    color: #555;
    font-size: 0.95rem;
  }
  
  /* Buttons & Links */
  .btn, .btn-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #00427e;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .btn:hover, .btn-link:hover {
    background-color: #0066cc;
    text-decoration: none;
    color: white;
  }
  
  .center, .centered-link {
    text-align: center;
    margin: 1.5rem 0;
  }
  
  .back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #00427e;
    font-weight: 500;
  }
  
  /* Footer */
  .footer, footer {
    background-color: #002b53;
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
  }
  
  .footer a, footer a {
    color: #b8dcff;
  }
  
  .footer-content {
    max-width: 1080px;
    margin: 0 auto;
  }
  
  /* Article Styles */
  .blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .article-body {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
  }
  
  .article-heading {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
  }
  
  .article-body h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #00427e;
  }
  
  .article-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .related-articles {
    margin-top: 2rem;
  }
  
  .related-articles h3 {
    margin-bottom: 1rem;
    color: #00427e;
  }
  
  .related-articles ul {
    list-style: none;
    padding: 0;
  }
  
  .related-articles li {
    margin-bottom: 0.5rem;
  }
  
  /* Business Details Page */
  .details-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .business-name {
    margin: 1rem 0;
    color: #00427e;
  }
  
  .business-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }
  
  .business-info p {
    margin-bottom: 0.75rem;
  }
  
  .reviews-section, .map-section {
    margin-bottom: 2rem;
  }
  
  .review-list {
    list-style: none;
    padding: 0;
  }
  
  .review-list li {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-style: italic;
  }
  
  /* FAQ Styles */
  .faq-container {
    max-width: 800px;
    margin: 2rem auto;
  }
  
  .faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .faq-question {
    width: 100%;
    background-color: white;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00427e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
  }
  
  .faq-question:hover {
    background-color: #f8f9fa;
  }
  
  .faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
  }
  
  .faq-question.active .faq-icon {
    transform: rotate(45deg);
  }
  
  .faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
  }
  
  .faq-answer.active {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
  }
  
  .faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
  }

  /* Scroll Margin for Headings */
  #client-testimonials {
    scroll-margin-top: 80px; /* Add padding for navbar when scrolling to this element */
  }

  /* Responsive Styles */
  @media (max-width: 768px) {
    .hero .hero-title {
      font-size: 1.5rem;
    }
    
    .hero .hero-subtitle {
      font-size: 1rem;
    }
    
    .hero .hero-text {
      width: 100%;
      padding: 1.5rem;
    }
    
    .nav-container {
      flex-direction: column;
      padding: 0.5rem 1rem;
    }
    
    .nav-links {
      margin-top: 0.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .state-search {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .state-dropdown {
      width: 100%;
    }
    
    .blog-grid {
      grid-template-columns: 1fr;
    }
    
    .testimonial-card {
      flex: 1 1 100%;
      max-width: 100%;
    }
    
    .faq-question {
      font-size: 1rem;
      padding: 1rem;
    }
  }
  
    @media (max-width: 480px) {
      .hero {
        height: 300px;
      }
    
      .section-title {
        font-size: 1.5rem;
      }
    
      .container-section {
        padding: 1rem;
      }
    
      .blog-card h3 {
        font-size: 1.2rem;
      }
    
      .faq-container {
        margin: 1rem auto;
      }
    
    }
    
    .affiliate-btn {
      background-color: #ffc107;
      color: #000;
      padding: 12px 28px;
      font-weight: bold;
      font-size: 1.1rem;
      border-radius: 8px;
      text-decoration: none;
      display: inline-block;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .affiliate-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
      filter: brightness(1.1);
    }

    /* Outbound Card Styling */
    .outbound-card {
      background: linear-gradient(135deg, #0a2342, #1e3c72);
      color: white;
      padding: 2.5rem;
      border-radius: 12px;
      text-align: center;
      width: 90%;
      max-width: 900px;
      margin: 0 auto;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }
    
    /* Add subtle pattern overlay */
    .outbound-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%);
      background-size: 10px 10px;
      pointer-events: none;
    }
    
    .outbound-card .section-title {
      color: #fff;
    }
    
    .outbound-card p {
      max-width: 700px;
      margin: 0 auto 20px;
      font-size: 1.1rem;
    }
