/** Hero banner */
.banner {
  background-color: #f8f3e6;
  background-position: 100% 50% !important;
  background-size: 54% !important;
}

.banner.fw-bnr.energy-lines-grey.elg-right:after {
  background-color: #f8f3e6;
}

.banner.fw-bnr.energy-lines-grey.elg-right:before {
  background-image: url("/sustainable-finance-solutions/_assets-custom/images/energy-lines-fashion-white-right.png");
  background-position: 50% 80%;
  right: 132px;
}

.banner.fw-bnr.energy-lines-grey .section-inner .banner-wpr .banner-img:before {
  content: none;
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .banner {
    background-position: 100% 100% !important;
    background-size: auto 100% !important;
  }
}

@media (min-width: 821px) and (max-width: 1024px) {
  .banner {
    background-position: 150% 100% !important;
    background-size: auto 100% !important;
  }
}

@media (min-width: 769px) and (max-width: 820px) {
  .banner {
    background-position: 450% 100% !important;
    background-size: auto 100% !important;
  }
}
@media (min-width: 640px) and (max-width: 768px) {
  .banner {
    background-position: 1300% 100% !important;
    background-size: auto 100% !important;
  }
}

/** Section A */
.section-a .section-inner {
  text-align: center;
  max-width: 770px;
  width: 100%;
}

.section-a h2 {
  font-weight: 400;
}

@media screen and (max-width: 639px) {
  .section-a h2 {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
  }

  .section-a .section-inner {
    text-align: left;
    width: 100%;
  }

  .banner.fw-bnr.energy-lines-grey .section-inner .banner-wpr {
    background-color: #f8f3e6;
  }

  .banner.fw-bnr.energy-lines-grey .section-inner .banner-wpr .banner-text {
    padding: 20px 20px 44px 20px;
  }
}

/** Section B */
.section-b {
  background-color: #e6eded;
}

.section-b .section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-b .custom-callout {
  display: grid;
  grid-template-columns: 51.28% 48.72%;
  min-height: 350px;
}

.section-b .custom-callout h2 {
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
}

.section-b .callout__content {
  background-color: #ffffff;
  padding: 60px;
  align-content: center;
}

.section-b .callout__media {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.section-b .callout__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  display: block;
}

.section-b .custom-callout .btn {
  font-size: 14px;
  line-height: 20px;
  padding: 14px 20px;
}

@media screen and (max-width: 639px) {
  .section-b h2 {
    font-size: 20px !important;
    line-height: 25px !important;
  }

  .section-b .custom-callout {
    grid-template-columns: 1fr;
    gap: 0;
    background-color: #ffffff;
    padding: 0;
  }

  .section-b .callout__media {
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }

  .section-b .callout__content {
    padding: 20px;
    grid-row: 2;
  }

  .section-b .custom-callout .btn {
    width: 100%;
  }
}

.section-b .articles.placeholder .card__image {
  border-radius: 0;
  max-height: 210px;
}

.section-b .articles.placeholder .card__content {
  padding: 32px;
  border-radius: 0;
}

.section-b .articles.placeholder .card {
  width: 100%;
}

.section-b .articles.placeholder .card__content h3 > * {
  font-family: "RBCDisplay" !important;
  font-size: 24px !important;
  line-height: 32px !important;
}

.section-b .articles.placeholder {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 639px) {
  .section-b .articles.placeholder .card__content {
    padding: 20px;
  }

  .section-b .articles.placeholder .card__content h3 > * {
    font-family: "Roboto" !important;
    font-size: 18px !important;
    line-height: 27px !important;
  }

  .section-b .articles.placeholder {
    grid-template-columns: auto;
  }

  .section-f.placeholder .articles {
    grid-template-columns: auto;
  }

  .section-b .articles.placeholder .card__image {
    max-height: 150px;
  }

  .section-b .articles.placeholder .card:nth-child(2) .card__image {
    object-position: bottom !important;
  }
}

.diagonal-round {
  border-top-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.custom-grid-wpr {
  display: grid;
  grid-template-columns: 41.8% 58.2%;
}

@media screen and (max-width: 639px) {
  .custom-grid-wpr {
    grid-template-columns: auto;
    gap: 15px;
  }
}

.video-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1170px;
  margin-inline: auto;
}

.video-callout__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  height: 100%;
}

.video-callout__media video,
.video-callout__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-callout__content {
  background-color: #f3f7f8;
  padding: 60px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .video-callout__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .video-callout__media video {
    object-fit: cover;
  }
}

@media (max-width: 639px) {
  .video-callout {
    grid-template-columns: 1fr;
  }

  .video-callout__content {
    padding: 20px;
  }
}

/** Section D */
.section-d {
  background-color: #ece9e4;
}

.section-d h2 {
  font-weight: 400;
  font-size: 36px;
  line-height: 45px;
}

.section-d .btn {
  border: 2px solid #006ac3;
  color: #006ac3;
  padding: 14px 24px;
}

.custom-callout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 350px;
}

.callout__content {
  background-color: #ffffff;
  padding: 60px;
}

.callout__media {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.callout__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  display: block;
}

@media screen and (max-width: 639px) {
  .section-d h2 {
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
  }

  .custom-callout {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 24px;
    background-color: #ffffff;
    padding: 15px;
  }

  .callout__media {
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }

  .callout__content {
    padding: 0;
    grid-row: 2;
  }

  .section-d .btn {
    width: 100%;
  }
}

.section-e .section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-e .sub-heading {
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}

.section-e .custom-callout {
  display: grid;
  grid-template-columns: 51.28% 48.72%;
  min-height: 350px;
}

.section-e .custom-callout h2 {
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
}

.section-e .callout__content {
  background-color: #ece9e4;
  padding: 60px;
}

.section-e .callout__media {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.section-e .callout__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  display: block;
}

.section-e .custom-callout .btn {
  font-size: 14px;
  line-height: 20px;
  padding: 14px 20px;
}

@media screen and (max-width: 639px) {
  .section-e h2 {
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
  }

  .section-e .custom-callout {
    grid-template-columns: 1fr;
    gap: 0;
    background-color: #ffffff;
    padding: 0;
  }

  .section-e .callout__media {
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }

  .section-e .callout__content {
    padding: 20px;
    grid-row: 2;
  }

  .section-e .custom-callout .btn {
    width: 100%;
  }
}
/** Section F */
.section-f {
  background-color: #f3f7f8;
}

.section-f h2 {
  font-weight: 400;
  font-size: 30px;
  line-height: 38px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__image {
  border-radius: 8px 8px 0 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: cover;
  object-position: top center;
}

.card__content {
  flex: 1;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  background-color: #ffffff;
}

.card__link {
  color: #252525;
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
}

@media screen and (max-width: 639px) {
  .articles {
    grid-template-columns: auto;
  }
}

.section-c .cards-container h2 {
  text-align: center;
}

.section-c .flip-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.section-c .card-container {
  min-height: 500px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  perspective: 1000px;

  border-top-left-radius: 48px;
  border-bottom-right-radius: 48px;
  color: #252525;
}

.section-c .card-container:nth-child(1) {
  background: url("/sustainable-finance-solutions/_assets-custom/images/flip-card-bg-1.webp")
    center / cover no-repeat;
}

.section-c .card-container:nth-child(2) {
  background: url("/sustainable-finance-solutions/_assets-custom/images/flip-card-bg-2.webp")
    center / cover no-repeat;
}

.section-c .card-container:nth-child(3) {
  background: url("/sustainable-finance-solutions/_assets-custom/images/flip-card-bg-3.webp")
    center / cover no-repeat;
}

.section-c .card {
  position: relative;

  width: calc(100% - 48px);
  margin-top: 24px;
  margin-bottom: 24px;

  transform-style: preserve-3d;

  flex: 1;
  transition: transform 0.6s ease;
}

.section-c .card-front,
.section-c .card-back {
  position: absolute;
  inset: 0 auto auto 0;

  width: 100%;

  box-sizing: border-box;
  border-radius: 16px;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.section-c .card-front {
  inset: auto auto 0 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;

  min-height: 156px;
  padding: 24px;

  background-color: #ffffff;

  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.section-c .card-front h3 {
  margin: 0;

  font-size: 24px;
  font-weight: 400;
  line-height: 30px;

  overflow-wrap: anywhere;
}

.section-c .card-back {
  inset: 0;
  overflow-y: auto;

  min-height: 264px;
  padding: 19px 17px 15px 24px;

  background-color: #fff;

  transform: rotateY(180deg);
}

  .section-c .card-back-scroll h3 {
    font-size:28px;
    line-height:36px;
    margin-top: 30px;
  }

.section-c .card-back .close-card {
  position: absolute;
  top: 16px;
  right: 16px;

  filter: brightness(0);
}

.section-c .card-back .h5 {
  margin-bottom: 10px;
  padding-right: 26px;
}

.section-c .card.flipped {
  transform: rotateY(180deg);
}

@media only screen and (min-width: 821px) and (max-width: 1200px) {
  .section-c .card-front {
    height: 50%;
  }

  .section-c .card-front,
  .section-c .card-front h3 {
    font-size: clamp(16px, 2.2vw, 24px);
    line-height: 1.35;
  }

  .section-c .card-front h3 {
    display: block;
    height: 75px;
  }
}

@media only screen and (max-width: 820px) {
  .section-c .cards-container {
    /* width: calc(100% - 32px); */
    width: 100%;
    margin-inline: auto;
  }

  .section-c .flip-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-c .card-container {
    min-height: 0;
    aspect-ratio: 1/1;
    border-radius: 16px 0 16px 0!important;
    /* width: 100%; */
  }

  .section-c .card {
    width: calc(100% - 32px);
    margin-bottom: 16px;
  }

  .section-c .card-front h3 {
    margin-top: 30px;
    font-size: 24px;
    line-height: 32px;
  }

  .section-c .card-back {
    min-height: 0;
    padding: 0;
    /* overflow: hidden; */
  }

  .section-c .card-back-scroll {
    height: 100%;
    box-sizing: border-box;
    padding: 15px;

    overflow-y: auto;
    overscroll-behavior: contain;
  }


  @media only screen and (max-width: 639px) {

    .section-c .card-back h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
      margin-top: 20px;
    }

    .section-c .card-back::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 32px;

      background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
      border-radius: 0 0 16px 16px;

      pointer-events: none;
    }
  }

  .section-c .card-back .h5 {
    font-size: 18px;
  }
}
