:root {
  /* Keep your primaries */
  --color-primary:       #14285A;
  --color-secondary:     #1976D2;

  /* Blue accent */
  --color-accent-light:  #63A4FF;

  /* Neutrals */
  --color-bg-light:      #F5F7FA;
  --color-bg-mid:        #ECEFF1;
  --color-text-dark:     #212121;
  --color-text-light:    #FFFFFF;
  --color-lighter-grey:   #d9d9d9;
  --color-light-grey:   #C5C6C7;
  --color-grey: #6B7280;
  --color-dark-grey:     #263238;
  --color-white:     #FFFFFF;
  --color-success:     #66BB6A;
}

.color-primary {
  color: var(--color-primary) !important;
}
.color-secondary {
  color: var(--color-secondary) !important;
}
.color-dark-grey {
  color: var(--color-dark-grey) !important;
}
.color-grey {
  color: var(--color-grey) !important;
}
.color-light-grey {
  color: var(--color-light-grey) !important;
}
.color-lighter-grey {
  color: var(--color-lighter-grey) !important;
}
.color-white{
  color: var(--color-white) !important;
}

/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  /* background-color: #f8f9fa;
  color: #212529; */
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar-brand img {
  max-height: 40px;
}

.logo-wrapper {
  display: inline-block;
  background-color: white;
  padding: 2px;
}

.navbar .navbar-nav .nav-link {
  color: #263238;
  font-weight: 500;
  font-family: 'Lato', sans-serif;
  transition: color 0.2s;
  text-decoration: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: var(--color-secondary) !important;
  /* text-decoration: underline; */
}

/* Hero Section */
.hero-section,
.hero-carousel {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-video.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay,
.hero-content {
  position: absolute;
  z-index: 3;
  color: white;
  text-align: center;
  top: 40%;
  width: 100%;
  padding: 0 20px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-content-bg {
  background: rgba(0,0,0,0.6);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem 2rem;
  display: inline-block;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

#hero-subtext {
  font-size: 22px !important;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}




/* Forms */
form input,
form textarea {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
}

form input:focus,
form textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
  height: 2.5rem;
  border-radius: 1.5rem;
  max-width: 160px;
  padding: 0.4rem 0.6rem;
}

.btn-wide {
  max-width: 240px !important;
  font-size: 16px !important;
}
/* Buttons */
.btn-primary {
  background-color: var(--color-primary) !important;
  border-radius: 2rem !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  /* padding: 0.75rem 1rem; */
  font-family: 'Lato', sans-serif;
  box-shadow: none !important;
  /* transition: background 0.2s, box-shadow 0.2s, transform 0.15s; */
}

a.btn-primary:hover, a.btn-primary:focus, .btn.btn-primary:hover, .btn.btn-primary:focus {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
  /* box-shadow: 0 4px 16px 0 rgba(20,40,90,0.15), 0 1.5px 6px 0 rgba(25,118,210,0.10);
  transform: translateY(-2px) scale(1.03); */
}

/* Prevent fill change on button active/click */
.btn-primary:active, .btn-primary:focus:active {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
}

.btn-secondary {
  background-color:rgba(255,255,255,1);
  border-radius: 2rem !important;
  border: 1px solid var(--color-secondary) !important;
  color: var(--color-secondary) !important;
  font-weight: 600;
  /* padding: 0.75rem 1.5rem; */
  font-family: 'Lato', sans-serif;
  box-shadow: none !important;
  max-width: 160px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

/* .btn-secondary:focus, .btn-outline-primary:active {
  border: 2px solid var(--color-secondary) !important;
  color: var(--color-secondary) !important;
  background: transparent !important;
} */

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary) !important;
  color: #fff !important;
  border-color: var(--color-secondary) !important;
}

/* Fix: btn-secondary.active and active/clicked state should match hover */
.btn-secondary.active,
.btn-secondary:active,
.btn-secondary:focus:active {
  background: var(--color-secondary) !important;
  color: #fff !important;
  border-color: var(--color-secondary) !important;
}

.btn-outline-secondary {
  border-radius: 2rem !important;
  border: 1px solid var(--color-white) !important;
  color: var(--color-white) !important;
  font-weight: 600;
  max-width: 160px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: var(--color-white) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-white) !important;
}

/* Footer */
footer {
  background-color: #212529;
  color: #fff;
  font-size: 0.9rem;
  padding: 2rem 0;
}

.footer-blue {
  background: var(--color-primary, #14285A);
  color: #fff;
}

.footer-blue .fw-bold {
  letter-spacing: 0.03em;
}

.footer-blue ul {
  padding-left: 0;
  margin-bottom: 0;
}

.footer-blue ul li {
  margin-bottom: 0.25rem;
}

.footer-blue svg {
  vertical-align: middle;
}

.footer-blue .small {
  font-size: 0.82rem;
}

.what-we-do-title {
  color: var(--color-secondary) !important;
  font-size: 32px; /* Reduced from 36px */
  font-weight: 700;
}


.what-we-do-paragraph {
  color: var(--color-dark-grey);
  font-size: 18px;
}


.what-we-do-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.what-we-do-card {
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  border: 0.5px solid var(--color-light-grey) !important;
  padding-top: 10px !important;
  position: relative;
  overflow: visible;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(20,40,90,0.10);
}

.what-we-do-card-title {
  color: var(--color-secondary) !important;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.what-we-do-card-paragraph {
  color: var(--color-grey) !important;
  font-size: 15px;
  /* margin-bottom: 20px; */
}

.what-we-do-card .btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.text-title {
  font-size: 32px; /* Reduced from 36px */
  font-weight: 700;
}

.text-header {
  font-size: 32px; /* Reduced from 36px for consistency */
  font-weight: 700;
  margin-bottom: 20px;
}

.text-subheader {
  font-size: 24px;
  font-weight: bold;
}
.text-strong {
  font-size: 18px;
  font-weight: bold;
}

.text-italic {
  font-style: italic;
}

.text-paragraph {
  font-size: 16px;
}

.text-leading-paragraph {
  font-size: 18px;
  line-height: 1.4rem;
  
}

.section-blue {
  background: var(--color-primary, #14285A);
  color: #fff;
}

.section-grey {
  background: #e5e5e5;
  color: var(--color-dark-grey);
}

.section-white {
  background: #fff;
  color: var(--color-dark-grey);
}

.section-blue h2,
.section-blue h1 {
  color: #fff;
}

.section-grey h2,
.section-grey h1 {
  color: var(--color-primary, #14285A);
}

.section-contact {
  background: #fff;
  color: var(--color-dark-grey);
}

.section-contact h1 {
  color: var(--color-primary, #14285A);
  font-weight: 700;
}

.section-contact .btn-primary {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 2rem !important;
  font-weight: 600;
  max-width: 160px;
}

.section-blue .btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 2rem;
  font-weight: 600;
  max-width: 160px;
}

.section-blue .btn-outline-light:hover {
  background: #fff;
  color: var(--color-primary, #14285A);
}

.section-grey .btn-primary {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 2rem !important;
  font-weight: 600;
  max-width: 180px;
}

.section-overlap {
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.what-we-do-cards-overlap {
  position: relative;
  z-index: 3;
  margin-bottom: -60px;
}

.core-value-svg-white {
  width: 32px;
  height: 32px;
}

.services-carousel {
  overflow: hidden;
}
.services-carousel .carousel-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.services-carousel .carousel-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  background: none;
}
.services-carousel .carousel-item img {
  width: 320px;
  max-width: 320px;
  height: 240px;
  min-width: 320px;
  min-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
}
.services-carousel .carousel-control-prev,
.services-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  color: black;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}
.services-carousel .carousel-control-prev {
  left: -24px;
}
.services-carousel .carousel-control-next {
  right: -24px;
}
@media (max-width: 1200px) {
  .services-carousel .carousel-item img {
    max-width: 180px;
    height: 140px;
  }
}
@media (max-width: 900px) {
  .services-carousel .carousel-item img {
    max-width: 120px;
    height: 90px;
  }
  .services-carousel .carousel-item {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .services-carousel .carousel-item img {
    max-width: 80px;
    height: 60px;
  }
  .services-carousel .carousel-item {
    gap: 4px;
  }
}

.alert-success, .contact-success-msg.alert-success {
  background-color: var(--color-success) !important;
  color: #fff !important;
  border-color: var(--color-success) !important;
}

.contact-success-msg {
  max-width: 700px;
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Fix About page Core Values title font size */
.section-white h2[style*="font-size:2.5rem"] {
  font-size: 32px !important; /* Override inline style for consistency */
}

/* Consistent styling for main content images on desktop */
.section-blue img.img-fluid,
.section-grey img.img-fluid,
.section-contact img.img-fluid {
  max-width: 90%;
  min-width: 260px;
  border-radius: 0.5rem; /* Ensure all have rounded corners */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Consistent shadow */
  width: auto;
  height: auto;
}

/* Mobile responsiveness improvements - Extended to cover tablet sizes */
@media (max-width: 991.98px) {
  /* Header adjustments */
  .navbar-brand img {
    max-height: 32px;
  }
  
  .navbar-nav {
    gap: 0 !important;
    text-align: center;
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    text-align: center;
  }
  
  .navbar-collapse {
    justify-content: center !important;
  }
  
  /* Remove hamburger button outline */
  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
  }
  
  .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
  }
  
  /* Custom animated hamburger menu */
  .navbar-toggler-icon {
    display: none; /* Hide default Bootstrap icon */
  }
  
  /* Custom hamburger lines */
  .navbar-toggler::before,
  .navbar-toggler::after,
  .navbar-toggler .hamburger-line {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .navbar-toggler::before {
    top: 8px;
  }
  
  .navbar-toggler .hamburger-line {
    top: 18px;
  }
  
  .navbar-toggler::after {
    top: 28px;
  }
  
  /* Animated state when menu is open (X formation) */
  .navbar-toggler.menu-open::before {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
  }
  
  .navbar-toggler.menu-open .hamburger-line {
    opacity: 0;
  }
  
  .navbar-toggler.menu-open::after {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
  }
  
  /* Hero content mobile adjustments */
  .hero-content {
    padding: 0 30px;
  }
  
  .hero-content-bg {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  #hero-heading {
    font-size: 40px !important; /* Increased from 1.75rem (28px) to 40px */
    margin-bottom: 1rem !important;
    padding: 0 15px;
  }
  
  #hero-subtext {
    font-size: 1.1rem !important;
    padding: 0 15px;
    line-height: 1.5;
  }
  
  /* Main content sections mobile adjustments */
  .what-we-do-paragraph {
    padding: 0 20px;
    font-size: 16px !important; /* Slightly reduced from 18px */
  }
  
  /* Main page titles - consistent 32px on mobile */
  .text-header {
    font-size: 32px !important; /* Match desktop size: About ASRI, Our Services, Get in Touch */
  }
  
  /* Reduce title font sizes on mobile to maintain hierarchy */
  .what-we-do-title {
    font-size: 32px !important; /* Match desktop size: What We Do */
  }
  
  .text-title {
    font-size: 28px !important; /* Secondary hierarchy: Why ASRI */
  }
  
  /* About page specific font size adjustments for consistency */
  .section-white h2[style*="font-size:2.5rem"] {
    font-size: 32px !important; /* Main page title: Core Values (keep as main title) */
  }
  
  /* Services page secondary titles */
  .text-subheader {
    font-size: 28px !important; /* Secondary hierarchy: Planning & Advisory, Traffic Engineering, Emerging Technology */
  }
  
  /* Contact section titles that should be secondary hierarchy */
  .section-contact .text-header {
    font-size: 28px !important; /* Secondary hierarchy: We'd love to hear from you */
  }
  
  /* About page secondary section titles */
  .section-grey .text-header {
    font-size: 28px !important; /* Secondary hierarchy: Our Leaders, Connect with our team */
  }
  
  /* Home page secondary section titles */
  .section-grey .text-header,
  #certification .text-header {
    font-size: 28px !important; /* Secondary hierarchy: Certifications */
  }
  
  /* Certification image margin adjustment */
  .section-grey img.img-fluid {
    margin-bottom: 2rem;
    max-width: 100% !important; /* Override inline style on mobile */
  }
  
  /* Consistent styling for all main images on mobile */
  .section-blue img.img-fluid,
  .section-grey img.img-fluid,
  .section-contact img.img-fluid {
    max-width: 100% !important; /* Override inline styles */
    min-width: unset !important; /* Remove min-width constraint on mobile */
    margin-bottom: 2rem;
    margin-left: 1.5rem; /* Add generous left margin */
    margin-right: 1.5rem; /* Add generous right margin */
    border-radius: 0.5rem !important; /* Ensure all have rounded corners */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Consistent shadow */
    width: calc(100% - 3rem); /* Adjust width to account for left/right margins */
    height: auto;
  }
  
  /* Why ASRI section adjustments */
  .section-blue .text-paragraph,
  .section-blue .text-strong {
    padding: 0 20px;
    margin-bottom: 1rem;
  }
  
  .section-blue h2.text-title {
    padding: 0 20px;
    margin-bottom: 1.5rem;
  }
  
  .section-blue .btn {
    margin: 0 20px;
    margin-top: 1rem;
  }
  
  /* Certifications section adjustments */
  .section-grey .text-paragraph,
  .section-grey .text-strong {
    padding: 0 20px;
  }
  
  .section-grey h2.text-header {
    padding: 0 20px;
    margin-bottom: 1.5rem;
  }
  
  .section-grey .btn {
    margin: 0 20px;
    margin-top: 1rem;
  }
  
  /* Certification list items with better spacing */
  .section-grey ul.list-unstyled {
    padding: 0 20px;
    margin-bottom: 1.5rem;
  }
  
  .section-grey ul.list-unstyled li {
    padding: 0;
    margin-bottom: 1.2rem;
    display: list-item !important; /* Override Bootstrap */
    list-style: none;
    position: relative;
    padding-left: 0;
  }
  
  /* Hide the Bootstrap blue square */
  .section-grey ul.list-unstyled li .me-2 {
    display: none !important;
  }
  
  /* Add our own blue square using CSS */
  .section-grey ul.list-unstyled li::before {
    content: "■";
    color: var(--color-primary, #14285A);
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.4;
  }
  
  /* Indent text content properly */
  .section-grey ul.list-unstyled li .text-paragraph {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4;
    margin-left: 1.5rem;
  }
  
  /* Keep text-strong inline for proper flow */
  .section-grey ul.list-unstyled li .text-paragraph .text-strong {
    display: inline;
    line-height: 1.4;
  }
  
  /* Contact section adjustments */
  .section-contact .text-paragraph,
  .section-contact .text-header {
    padding: 0 20px;
  }
  
  .section-contact .btn {
    margin: 0 20px;
  }
  
  /* About page mobile adjustments */
  .section-blue .text-leading-paragraph,
  .section-blue .text-strong {
    padding: 0 20px;
  }
  
  /* About page hero text font size adjustment */
  .section-blue .text-leading-paragraph {
    font-size: 16px !important;
  }
  
  .section-grey .text-paragraph {
    padding: 0 20px;
  }
  
  /* Leader bio text content */
  .section-grey .text-paragraph.px-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Core values mobile-specific adjustments (mobile only) */
@media (max-width: 767px) {
  /* Core value cards margin adjustment - mobile only */
  .core-value-card {
    margin: 0 15px 0.25rem 15px; /* Further reduced bottom margin from 0.5rem to 0.25rem */
  }
  
  /* Core values description text mobile adjustments */
  .section-white .text-paragraph[style*="font-size:1.25rem"] {
    font-size: 1.1rem !important; /* Reduced from 1.25rem for mobile readability */
    padding: 0 20px; /* Add side margins */
    margin-bottom: 2rem !important; /* Reduce bottom margin */
  }
  
  /* Reduce vertical spacing between core value cards to minimum - mobile only */
  #core-values .row.g-4 {
    gap: 0.25rem !important; /* Further reduced from 0.5rem to 0.25rem */
  }
  
  #core-values .col-md-6.mb-1 {
    margin-bottom: 0.125rem !important; /* Further reduced from 0.25rem to 0.125rem */
  }
  
  /* Override Bootstrap column spacing specifically for core values - mobile only */
  #core-values .col-md-6 {
    padding-bottom: 0.125rem !important; /* Reduced from 0.25rem to 0.125rem */
  }
}
  
  /* Services page mobile adjustments */
  .section-white .text-leading-paragraph {
    padding: 0 20px !important;
  }
  
  .section-white .text-paragraph,
  .section-white .text-strong {
    padding: 0 20px;
  }
  
  /* Services page section headers with icons */
  .section-white .text-subheader {
    padding: 0 4px;
  }
  
  /* Services page content columns */
  .section-white .col-lg-8.col-md-10 {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Services page hero text font size adjustment */
  .section-white .text-leading-paragraph {
    font-size: 16px !important;
  }
  
  /* Contact page text font size adjustment */
  .section-white .text-paragraph[style*="font-size: 1.2rem"] {
    font-size: 16px !important;
  }
  
  /* Footer adjustments */
  .footer-blue .small {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .footer-blue img {
    height: 36px !important;
  }
  
  .footer-blue ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-blue ul li a {
    padding: 0.25rem 0;
    display: block;
    font-size: 0.9rem;
  }
  
  .footer-blue .text-strong {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  /* Better spacing for mobile footer columns */
  .footer-blue .col-md-4,
  .footer-blue .col-md-2 {
    margin-bottom: 1.5rem;
  }


/* TABLET AND DESKTOP: 2x2 grid layout (768px and up) - SIMPLIFIED APPROACH */
@media (min-width: 768px) {
  /* Force 2x2 grid layout */
  #core-values .col-md-6.col-lg-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  /* Ensure proper centering and spacing */
  #core-values .row {
    justify-content: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
  }
  
  /* Reset any conflicting margins */
  #core-values .core-value-card {
    margin: 0 !important;
  }
}

/* Additional adjustments for wider screens (992px+) - keep it simple */
@media (min-width: 992px) {
  /* Maintain 2x2 layout and center the grid */
  #core-values .row {
    max-width: 800px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
  
  /* Ensure 2x2 layout is maintained */
  #core-values .col-md-6.col-lg-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Services buttons responsive layout */
.services-buttons-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
}

.services-btn {
  flex: 0 1 auto !important;
  min-width: 200px !important;
  white-space: nowrap !important;
}

/* Mobile: 3 rows × 1 button (stacked vertically) */
@media (max-width: 767px) {
  .services-buttons-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  
  .services-btn {
    flex: none !important;
    width: 100% !important;
    max-width: 280px !important;
    min-width: 240px !important;
    text-align: center !important;
  }
}

/* Tablet and Desktop: 1 row × 3 buttons (horizontal) */
@media (min-width: 768px) {
  .services-buttons-container {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important; /* Prevent wrapping */
  }
  
  .services-btn {
    flex: 0 1 auto !important;
    min-width: 160px !important;
    max-width: 200px !important;
  }
}

/* Specific tablet adjustments (769px-992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .services-buttons-container {
    gap: 1rem !important; /* Reduce gap for tighter spaces */
    flex-wrap: nowrap !important; /* Force single row */
  }
  
  .services-btn {
    flex: 1 1 0 !important; /* Equal flex distribution */
    min-width: 150px !important;
    max-width: 180px !important;
    font-size: 0.95rem !important; /* Slightly smaller text if needed */
  }
}

/* Large screens: ensure buttons don't get too spread out */
@media (min-width: 993px) {
  .services-buttons-container {
    gap: 2rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
  }
  
  .services-btn {
    min-width: 180px !important;
    max-width: 220px !important;
    font-size: 1rem !important; /* Reset font size */
  }
}