.hero-section-service {
  background-image: var(--bg-image);
  /* background-size: cover; */
  background-position: center;
  background-repeat: no-repeat;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden; /* Ensure content doesn't spill out */
}
.hero-section-service::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px; /* Height of the white strip */
  background-color: white;
  transform: translateY(100%); /* Start off-screen */
  animation: slideUp 0.5s forwards; /* Animation to slide up */
  animation-delay: 0.5s; /* Delay to appear after image loads */
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}
.hero-text {
  font-size: 3.5rem;
  font-weight: bold;
  z-index: 1; /* Ensure text is above the white strip */
}
.content-section {
  position: relative;
  z-index: 2; /* Ensure this section is above the white strip */
}
.row--gsi {
  display: flex;
  align-items: center;
}
.card-goal {
  background-color: #212529; /* Dark blue/black */
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  min-height: 250px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-strategy {
  background-color: #a08c3d; /* Gold/brown */
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  min-height: 250px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-impact {
  background-color: #dc3545; /* Red */
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  min-height: 250px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}
.card-text {
  font-size: 0.9rem;
  line-height: 1.6;
}
/* Custom max-width for content section on larger screens */
.max-width-container {
  max-width: 1024px; /* Equivalent to Tailwind's max-w-5xl */
  margin-left: auto;
  margin-right: auto;
}
/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-text {
    font-size: 2.5rem;
  }
  .content-section {
    margin-top: 0; /* Remove overlap on small screens if it looks off */
  }
  .gallery-slider-wrapper {
    flex-direction: column; /* Stack on small screens */
    margin: 0; /* Remove horizontal margin */
  }
  .card-goal,
  .card-strategy,
  .card-impact {
    margin-bottom: 1.5rem; /* Add space between cards on small screens */
  }
}

.section--do img {
  width: 100%;
  margin: 40px 0;
}

/* Styles for the new slider/gallery section */

.gallery-section {
  padding: 4rem 0;
  background-color: #f8f9fa; /* Light gray background */
}
.gallery-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.gallery-arrow {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
}
.gallery-arrow:hover {
  background-color: #e9ecef;
}
.gallery-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center; /* Vertically center items */
  margin: 0 20px; /* Add some horizontal padding to prevent arrows from touching edges */
}

.gallery-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%; /* Span the width of the wrapper */
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Allow clicks to pass through to slider if not on buttons */
  padding: 0 10px; /* Padding for arrows inside the wrapper */
  z-index: 10; /* Ensure arrows are above the slider content */
}

.gallery-arrow {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto; /* Re-enable clicks for the buttons themselves */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for visibility */
}
.gallery-arrow:hover {
  background-color: #e9ecef;
}
.gallery-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Slider specific styles */
#gallerySlider {
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-behavior: smooth; /* Smooth scrolling */
  display: flex; /* Use flexbox for the cards inside */
  /* Hide scrollbar for a cleaner look */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  flex-grow: 1; /* Allow slider to take available space */
  padding: 0 50px; /* Add padding to make space for arrows, adjust as needed */
}
#gallerySlider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-card {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 200px; /* Fixed height for consistency */

  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  /* flex-shrink-0 ensures cards don't shrink when scrolling */
  flex-shrink: 0;
  /* Responsive width for cards within the slider */
  width: 100%; /* Default to full width on small screens */
  margin-right: 1.5rem; /* Space between cards */
  text-align: center;
}

/* Adjust card width for different screen sizes for the slider */
@media (min-width: 576px) {
  /* Small devices (sm) */
  .gallery-card {
    width: calc(50% - 0.75rem); /* 2 cards per row, accounting for margin */
  }
}
@media (min-width: 768px) {
  /* Medium devices (md) */
  .gallery-card {
    width: calc(33.333% - 1rem); /* 3 cards per row */
  }
}
@media (min-width: 992px) {
  /* Large devices (lg) */
  .gallery-card {
    width: calc(25% - 1.125rem); /* 4 cards per row */
  }
}

.gallery-card img {
  width: 100%;
  height: 100%; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, crop if necessary */
  border-bottom: 1px solid #eee;
}
.gallery-card-body {
  padding: 1rem;
}
.load-more-btn {
  display: block;
  margin: 2rem auto 0 auto;
  padding: 0.75rem 2rem;
  background-color: #a08c3d; /* Match strategy card color */
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.load-more-btn:hover {
  background-color: #8a7b34; /* Slightly darker on hover */
}
