/* =========================================================
   AFW ESG Timeline (Elementor Widget)
   Classes match user CSS: esg-timeline, esg-line, esg-item...
   ========================================================= */

.afw-esg-wrap{
  --esg-accent: #18C96A;
  --esg-title: #123B87;
}

.afw-esg-main-title{
  text-align:center;
  font-weight:800;
  font-size:56px;
  line-height:1.05;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

/* wrapper */
.esg-timeline{
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 10px 30px;
}

/* center line */
.esg-timeline .esg-line{
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--esg-accent);
  opacity: 1;
}

/* each row */
.esg-item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;  /* left | middle | right */
  align-items: start;
  margin: 44px 0;
}

/* dot */
.esg-dot{
  grid-column: 2;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(24,201,106,.55);
  border: 3px solid #000;
  justify-self: center;
  position: relative;
  top: 10px;
  box-shadow: 0 0 0 4px var(--esg-accent);
}

/* titles */
.esg-title{
  font-size: 46px;
  font-weight: 800;
  line-height: 1.02;
  color: var(--esg-title);
  letter-spacing: -0.02em;
}

/* BOX with fading borders (no inner fade) */
.esg-box{
  position: relative;
  padding: 20px 22px;
  width: 430px;
  border: 0;
  background: transparent;
}

/* fading borders */
.esg-box::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    /* TOP border */
    linear-gradient(var(--esg-accent), var(--esg-accent)) top left / 100% 2px no-repeat,

    /* LEFT border fade down */
    linear-gradient(to bottom,
      rgba(24,201,106,1) 0%,
      rgba(24,201,106,1) 55%,
      rgba(24,201,106,.35) 85%,
      rgba(24,201,106,0) 100%
    ) top left / 2px 100% no-repeat,

    /* RIGHT border fade down */
    linear-gradient(to bottom,
      rgba(24,201,106,1) 0%,
      rgba(24,201,106,1) 55%,
      rgba(24,201,106,.35) 85%,
      rgba(24,201,106,0) 100%
    ) top right / 2px 100% no-repeat;
}

/* box text */
.esg-box p{
  margin: 0 0 10px 0;
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.65;
}
.esg-box p:last-child{ margin-bottom: 0; }
.esg-box b{ font-weight: 700; }

/* ===== OPPOSITE PLACEMENT (match reference) ===== */
/* RIGHT item: Title RIGHT, Box LEFT */
.esg-right .esg-title{
  grid-column: 3;
  justify-self: start;
  text-align: left;
  margin-bottom: 0;
}
.esg-right .esg-box{
  grid-column: 1;
  justify-self: end;
  margin-top: 10px;
}

/* LEFT item: Title LEFT, Box RIGHT */
@media(min-width:770){
    .esg-left .esg-title{
  grid-column: 1;
  justify-self: end;
  text-align: right;
  margin-bottom: 0;
}
}
.esg-left .esg-box{
  grid-column: 3;
  justify-self: start;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px){
  .afw-esg-main-title{ font-size: 42px; }
  .esg-title{ font-size: 38px; }
  .esg-box{ width: 100%; max-width: 520px; }
}

@media (max-width: 900px){
  .esg-timeline{ padding: 25px 8px; }

  /* line shifts left on mobile */
  .esg-timeline .esg-line{
    left: 18px;
    transform: none;
    top: 0;
    bottom: 0;
  }

  .esg-item{
    grid-template-columns: 40px 1fr;
    margin: 28px 0;
  }

  .esg-dot{
    grid-column: 1;
    justify-self: start;
    top: 6px;
  }

  .esg-left .esg-title,
  .esg-right .esg-title{
    margin-bottom: 10px;
    font-size: 30px;
  }

  .esg-left .esg-box,
  .esg-right .esg-box{
    grid-column: 2;
    justify-self: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}
@media(max-width:768px){
    .afw-esg-main-title{ font-size: 30px; }
    .esg-left .esg-title {
    text-align: start !important;
    justify-self: start !important;
}
    .esg-timeline .esg-line, .esg-dot{
        display: none;
    }
    .esg-item{
        display: flex !important;
        flex-direction: column !important;
    }
    .esg-right .esg-title, .esg-left .esg-title{
grid-column: 1 !important;
text-align: start !important;
    }
}