/* Global overflow prevention */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  overflow-x: hidden;
}

/* What We Offer Section */
.what-we-offer {
  width: 100%;
  max-width: 100vw;
  min-height: auto; /* Remove fixed height */
  background: #fff;
  padding: 80px 0 60px 0; /* Reduced padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden; /* Prevent horizontal scrolling */
  box-sizing: border-box;
}
.what-we-offer__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* Slightly reduced opacity */
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.what-we-offer__title,
.what-we-offer__subtitle,
.what-we-offer__grid {
  position: relative;
  z-index: 1;
}
.what-we-offer__title {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 60px); /* Responsive font size */
  color: #274472;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 16px 0;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}
.what-we-offer__subtitle {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 32px); /* Responsive font size */
  color: #333;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 40px 0;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}
.what-we-offer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Force exactly 4 columns */
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
  justify-items: center;
}
.what-we-offer__card {
  background: transparent; /* Changed to transparent */
  border-radius: 0; /* Removed border radius */
  box-shadow: none; /* Removed box shadow */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 280px;
  padding: 0; /* Removed padding */
  transition: transform 0.2s ease;
  box-sizing: border-box;
}
.what-we-offer__card:hover {
  transform: translateY(-5px);
}
.what-we-offer__img {
  width: 100%;
  max-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.what-we-offer__desc {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: black;
  width: 100%;
  margin: 0;
  padding: 0;
}
@media (max-width: 1200px) {
  .what-we-offer {
    padding: 60px 0 40px 0;
  }
  .what-we-offer__grid {
    grid-template-columns: repeat(4, 1fr); /* Keep 4 columns */
    gap: 20px;
    padding: 0 16px;
  }
  .what-we-offer__card {
    max-width: 250px;
    padding: 16px;
  }
  .what-we-offer__img {
    height: 160px;
  }
}

@media (max-width: 800px) {
  .what-we-offer {
    padding: 40px 0 30px 0;
  }
  .what-we-offer__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 16px;
    padding: 0 12px;
  }
  .what-we-offer__card {
    max-width: 220px;
    padding: 12px;
  }
  .what-we-offer__img {
    height: 140px;
  }
  .what-we-offer__desc {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .what-we-offer {
    padding: 30px 0 20px 0;
  }
  .what-we-offer__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px;
  }
  .what-we-offer__card {
    max-width: 100%;
    padding: 12px;
  }
  .what-we-offer__img {
    height: 120px;
  }
  .what-we-offer__desc {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .what-we-offer {
    padding: 80px 0 60px 0;
  }
  .what-we-offer__grid {
    grid-template-columns: repeat(4, 1fr); /* Ensure exactly 4 columns */
    gap: 30px;
    max-width: 1400px;
  }
}

/* Rest of the styles continue here */

@media (min-width: 2000px) {
  .what-we-offer__grid {
    width: 100%;
    max-width: 1800px;
    gap: 40px;
    row-gap: 50px;
    margin-bottom: 80px;
  }
  .what-we-offer__card {
    width: 100%;
    max-width: 400px;
  }
  .what-we-offer__desc {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    font-size: 32px;
    line-height: 38px;
  }
  .what-we-offer__img {
    width: 100%;
    max-width: 350px;
    height: 280px;
    object-fit: cover;
  }
  .what-we-offer__title {
    font-size: 80px;
    width: auto;
    max-width: 700px;
  }
  .what-we-offer__subtitle {
    font-size: 40px;
    max-width: 1800px;
  }
  .navbar__link,
  .navbar__brand,
  .navbar__cta,
  #navbar,
  #navbar * {
    font-size: 22px !important;
  }
  #footer, #footer * {
    font-size: 28px !important;
  }
}

@media (min-width: 2400px) {
  .what-we-offer__grid {
    width: 100%;
    max-width: 2200px;
    gap: 50px;
    row-gap: 60px;
    margin-bottom: 96px;
  }
  .what-we-offer__card {
    width: 100%;
    max-width: 480px;
    min-width: auto;
  }
  .what-we-offer__desc {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    font-size: 36px;
    line-height: 42px;
  }
  .what-we-offer__img {
    width: 100%;
    max-width: 420px;
    height: 320px;
    object-fit: cover;
  }
  .what-we-offer__title {
    font-size: 90px;
    width: auto;
    max-width: 800px;
  }
  .what-we-offer__subtitle {
    font-size: 45px;
    max-width: 2000px;
  }
  .navbar__link,
  .navbar__brand,
  .navbar__cta,
  #navbar,
  #navbar * {
    font-size: 34px !important;
  }
  #footer, #footer * {
    font-size: 32px !important;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media (min-width: 2800px) {
  .what-we-offer {
    padding: 120px 0 100px 0;
  }
  .what-we-offer__grid {
    width: 100%;
    max-width: 2500px;
    gap: 60px;
    row-gap: 80px;
    margin-bottom: 120px;
  }
  .what-we-offer__card {
    width: 100%;
    max-width: 550px;
    min-width: auto;
  }
  .what-we-offer__desc {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    font-size: 42px;
    line-height: 50px;
  }
  .what-we-offer__img {
    width: 100%;
    max-width: 480px;
    min-width: auto;
    height: 380px;
    object-fit: cover;
  }
  .what-we-offer__title {
    font-size: 110px;
    width: auto;
    max-width: 1000px;
  }
  .what-we-offer__subtitle {
    font-size: 52px;
    max-width: 2400px;
  }
}

/* Impact Snapshot text overflow fix */
.impact-snapshot__desc {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  text-overflow: ellipsis;
  max-width: 90vw;
}
@media (max-width: 1000px) {
  .impact-snapshot__desc {
    max-width: 95vw;
  }
}
@media (max-width: 700px) {
  .impact-snapshot__desc {
    max-width: 98vw;
  }
}

/* What We Offer Section */

@media (max-width: 480px) {
  /* What We Offer Section for very small screens */
  .what-we-offer__card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Ultra small mobile devices (350px and below) */
@media (max-width: 350px) {
  /* What We Offer Section */
  .what-we-offer {
    padding: 40px 0 20px 0;
  }
  
  .what-we-offer__title {
    font-size: 28px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
    padding: 0 10px;
    line-height: 1.1;
  }
  
  .what-we-offer__subtitle {
    font-size: 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    padding: 0 10px;
    line-height: 1.3;
  }
  
  .what-we-offer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    padding: 0 10px;
  }
  
  .what-we-offer__card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .what-we-offer__img {
    width: 200px;
    height: 168px;
  }
  
  .what-we-offer__desc {
    font-size: 18px;
    line-height: 22px;
    margin-top: 12px;
    text-align: center;
  }
}
