.esg-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-family: "Titillium Web", Sans-serif;
}

.esg-service-card {
  position: relative;
  height: 528px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* .esg-service-card:hover {
  transform: scale(1.02);
} */

.esg-service-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

.esg-title {
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 24px;
  line-height: 110.00000000000001%;
  letter-spacing: 0%;
  max-width: 434px;
  width: 100%;
  height: auto;
  font-family: "Titillium Web", Sans-serif;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.esg-excerpt {
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 0%;
  margin: 0 0 6px;
  max-width: 428px;
  width: 100%;
  height: 100px;
  text-align: justify;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

  

/* .esg-readmore {
  font-size: 14px;
  font-weight: bold;
  color: #ff9900;
} */

.pac-link-service {
  color: #FC6903;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  border-bottom: 1px solid #FC6903;
  display: inline-block;
  line-height: 130%;
  letter-spacing: 0%;
  width: 180px;
  height: 50px;
  padding: 12px 0px 12px 0px;
}

.esg-service-overlay .arrow {
  padding-left: 56px;
  width: 24px;
  height: 24px;
}

/* ✅ Responsive Breakpoints */
@media (max-width: 1024px) {
  .esg-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .esg-services-grid {
    grid-template-columns: 1fr;
  }
  .esg-service-card {
    height: 360px;
  }
  .esg-title {
    font-size: 32px;
    max-width: 290px;
    width: 100%;
  }
  .esg-excerpt {
    font-size: 14px;
    max-width: 270px;
    width: 100%;
  }
  .pac-link-service{
    font-size: 14px;
    padding: 6px 0px 6px 0px;
    width: 137px;
  }
}

@media (max-width: 400px) {
  .esg-service-overlay{
    padding: 20px;
  }
  .esg-title {
    font-size: 30px;
    max-width: 250px;
    width: 100%;
    margin: 40px 0 18px 0px;
  }
  .esg-excerpt {
     max-width: 240px;
     width: 100%;
  }
    .pac-link-service{
        padding: 16px 0px 0px 0px;
    }
}
@media  (min-width: 768px) and (max-width: 1199px) {
  .esg-service-overlay{
    padding: 24px;
  }
  .esg-excerpt{
    max-width: 275px;
    width: 100%;
    height: 150px;
  }
}
@media  (min-width: 768px) and (max-width: 899px) {
  .esg-title{
    font-size: 38px ;
    max-width: 400px;
    width: 100%;
  }

}
@media  (min-width: 1025px) and (max-width: 1400px) {
  .esg-services-grid{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Shared overlay wrap — kept for Services Grid / legacy */
.overlay-wrap{
  max-width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* =========================================================
   Child Grid — independent styles (edit these freely)
   ========================================================= */
.esg-child-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-family: "Titillium Web", Sans-serif;
}

.esg-child-card {
  position: relative;
  height: 528px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

@media (min-width: 1920px) {
  .esg-child-card {
    height: 30vw !important;
  }
}

.esg-child-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .esg-child-overlay   {
   padding: 20px !important;
  }
  .esg-child-overlay-wrap  {
    padding: 20px !important;
   }
}


.esg-child-overlay-wrap {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding: 40px;
  max-height: 800px;
  max-width: 970px;
}
@media (min-width: 1920px) {
  .esg-child-overlay-wrap {
    padding: 60px;
  }
}

.esg-child-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 110.00000000000001%;
  letter-spacing: 0%;
  width: 100%;
  height: auto;
  font-family: "Titillium Web", Sans-serif;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.esg-child-excerpt {
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 0%;
  width: 100%;
  height: 100px;
  /* text-align: justify; */
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.esg-child-readmore {
  color: #FC6903;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  border-bottom: 1px solid #FC6903;
  display: inline-block;
  line-height: 130%;
  letter-spacing: 0%;
  padding: 12px 0;
  margin: 0;
  width: fit-content;
  align-self: flex-start;
}

.esg-child-arrow {
  padding-left: 56px;
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .esg-child-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .esg-child-grid {
    grid-template-columns: 1fr;
  }
  .esg-child-card {
    height: 360px;
  }
  /* .esg-child-title {
    font-size: 32px;
    max-width: 290px;
    width: 100%;
  }
  .esg-child-excerpt {
    font-size: 14px;
    max-width: 270px;
    width: 100%;
  }
  .esg-child-readmore {
    font-size: 14px;
    padding: 6px 0;
    width: 137px;
  } */
}

/* @media (max-width: 400px) {
  .esg-child-overlay {
    padding: 20px;
  }
  .esg-child-title {
    font-size: 30px;
    max-width: 250px;
    width: 100%;
    margin: 40px 0 18px 0;
  }
  .esg-child-excerpt {
    max-width: 240px;
    width: 100%;
  }
  .esg-child-readmore {
    padding: 16px 0 0 0;
  }
} */

@media (min-width: 768px) and (max-width: 1199px) {
  .esg-child-overlay {
    padding: 24px;
  }
  /* .esg-child-excerpt {
    max-width: 275px;
    width: 100%;
    height: 150px;
  } */
}

/* @media (min-width: 768px) and (max-width: 899px) {
  .esg-child-title {
    font-size: 38px;
    max-width: 400px;
    width: 100%;
  }
} */

@media (min-width: 1025px) and (max-width: 1400px) {
  .esg-child-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 764px) {
  /* .esg-child-readmore {
    height: 35px;
  }
  .esg-child-title {
    height: 123px;
  }
  .esg-child-excerpt {
    height: 60px;
  } */
  .global-marine .esg-child-title {
    height: auto !important;
  }
  .global-marine .esg-child-card {
    height: 400px;
  }
}

/* .ship-repair-grid .esg-child-card {
  height: 500px !important;
}
.ship-repair-grid .esg-child-title {
  height: auto !important;
} */

/* @media (min-width: 320px) and (max-width: 352px) {
  .esg-child-excerpt {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
  }
  .esg-child-overlay-wrap {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 50px !important;
    position: relative !important;
  }
} */

/* =========================================================
   Parent Grid — independent styles (edit these freely)
   ========================================================= */
.esg-parent-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  font-family: "Titillium Web", Sans-serif;
}

.esg-parent-card {
  position: relative;
  height: 528px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-height: 1300px;
}
@media (min-width: 1720px) {
  .esg-parent-card {
    height: 35vw !important;
  }
}

.esg-parent-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .esg-parent-overlay {
   padding: 20px !important;
  }
}

.esg-parent-overlay-wrap {
  max-width: 500px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
justify-content: space-between;
align-self: start;
  min-height: 325px;
}


.esg-parent-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 1440px) {
  .esg-parent-overlay-wrap {
    width: 46%;
    height: 70%;
    padding: 34px;
    max-width: 1100px;
   max-height: 650px;
  }
}


.esg-parent-title {
  font-size: 40px;
  font-weight: 500;
  margin: 0;
  line-height: 110%;
  letter-spacing: 0%;
  width: 100%;
  height: auto;
  font-family: "Titillium Web", Sans-serif;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.esg-parent-excerpt {
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 0%;
  margin: 0;
  max-width: 95%;
  width: 100%;
  /* text-align: justify; */
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.esg-parent-readmore {
  color: #FC6903;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  border-bottom: 1px solid #FC6903;
  display: inline-block;
  line-height: 130%;
  letter-spacing: 0%;
  padding: 12px 0;
  margin: 0;
  width: fit-content;
  align-self: flex-start;
}

.esg-parent-arrow {
  padding-left: 56px;
  width: 24px;
  height: 24px;
}



/* @media (max-width: 768px) {
  .esg-parent-grid {
    grid-template-columns: 1fr;
  }
  .esg-parent-card {
    height: 360px;
  }
  .esg-parent-title {
    font-size: 32px;
    max-width: 290px;
    width: 100%;
  }
  .esg-parent-excerpt {
    font-size: 14px;
    max-width: 270px;
    width: 100%;
  }
  .esg-parent-readmore {
    font-size: 14px;
    padding: 6px 0;
    width: 137px;
  }
} */

/* @media (max-width: 400px) {
  .esg-parent-overlay {
    padding: 20px;
  }
  .esg-parent-title {
    font-size: 30px;
    max-width: 250px;
    width: 100%;
    margin: 40px 0 18px 0;
  }
  .esg-parent-excerpt {
    max-width: 240px;
    width: 100%;
  }
  .esg-parent-readmore {
    padding: 16px 0 0 0;
  }
} */

/* @media (min-width: 768px) and (max-width: 1199px) {
  .esg-parent-overlay {
    padding: 24px;
  }
  .esg-parent-excerpt {
    max-width: 275px;
    width: 100%;
    height: 150px;
  }
} */

/* @media (min-width: 768px) and (max-width: 899px) {
  .esg-parent-title {
    font-size: 38px;
    max-width: 400px;
    width: 100%;
  }
} */

/* @media (min-width: 1025px) and (max-width: 1400px) {
  .esg-parent-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
} */

/* @media (max-width: 764px) {
  .esg-parent-readmore {
    height: 35px;
  }
  .esg-parent-title {
    height: 123px;
  }
  .esg-parent-excerpt {
    height: 60px;
  }
} */

/* @media (min-width: 320px) and (max-width: 352px) {
  .esg-parent-excerpt {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
  }
  .esg-parent-overlay-wrap {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 50px !important;
    position: relative !important;
  }
} */


@media  (max-width: 764px) {
  .pac-link-service{
    height:35px;
  }
  .esg-title{
    height: 123px;
  }
  .esg-excerpt{
    height: 60px;
  }
  .global-marine .esg-title {
    height: auto !important;
  }
   .global-marine .esg-service-card {
        height: 400px;
    }
}


/* .ship-repair-grid .esg-service-card{
  height: 500px !important;
}
.ship-repair-grid .esg-title{
  height: auto !important;
} */


@media (min-width: 320px) and (max-width: 352px) {
  .esg-excerpt {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
  }
  .overlay-wrap {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 50px !important; /* reserve space for button */
    position: relative !important;
  }
  .esg-service-overlay a,
  .esg-service-overlay .read-more,
  .esg-service-overlay [class*="read-more"] {
    position: relative !important;
    margin-top: 16px !important;
    display: block !important;
  }
}