/* 
   Section: Approved By

/* --------------------------------------------------------------------------
   1. Section frame
   -------------------------------------------------------------------------- */

.section-approved {
  position: relative;
  width: 100%;
  background: var(--color-white);
  padding: 80px 0 150px;
}

/* --------------------------------------------------------------------------
   2. Accreditation row
   -------------------------------------------------------------------------- */

.approved-accred-row {
  max-width: 860px;
  margin: 0 auto 60px;
}

.approved-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.3;
  color: var(--color-black);
  margin: 0 0 50px;
}

.approved-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.approved-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.7;
}

.approved-badge img,
.approved-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.approved-badge svg {
  overflow: visible;
}

/* --------------------------------------------------------------------------
   3. Quote card
   -------------------------------------------------------------------------- */

.approved-quote-row,
.approved-quote-cell {
  position: relative;
}

.approved-quote-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.approved-quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  padding: 40px 65px;
  margin-left: 220px;
  max-width: 861px;
  min-height: 480px;
}

.approved-quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-quote);
  line-height: 1.3;
  color: white;
  margin: 0 0 40px;
}

.approved-quote-attribution {
  position: relative;
  z-index: 1;
  margin-top: auto;
  max-width: calc(100% - 240px);
  padding-left: 160px;
}

.approved-quote-author {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
  color: white;
}

.approved-quote-role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  margin: 0;
  color: white;
}

/* --------------------------------------------------------------------------
   4. Profile picture & quote marks
   -------------------------------------------------------------------------- */

.approved-quote-profile {
  position: absolute;
  bottom: -52px;
  right: 65px;
  width: 226px;
  height: 226px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-profile);
  z-index: 3;
}

.approved-quote-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote marks — images overlap the card corners (centers on the corner) */
.approved-quote-mark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 155px;
  height: auto;
  font-size: 420px;
  line-height: 0.7;
  font-weight: 600;
  color: var(--color-lime);
}

.approved-quote-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.approved-quote-mark-open {
  top: -45px;
  left: 78px;
}
.approved-quote-mark-close {
  bottom: -222px;
  right: -97px;
}

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1199px) {
  .section-approved {
    padding: 70px 0 90px;
  }
  .approved-quote-card {
    margin-left: 100px;
  }
  .approved-quote-mark {
    font-size: 360px;
  }
}

@media screen and (max-width: 1023px) {
  .section-approved {
    padding: 70px 0 80px;
  }
  .approved-title {
    margin-bottom: 40px;
  }
  .approved-quote-card {
    margin-left: 40px;
    padding: 50px 50px 70px;
    min-height: 420px;
  }

  .approved-quote-attribution {
    max-width: calc(100% - 210px);
    padding-left: 100px;
  }
  .approved-quote-profile {
    width: 180px;
    height: 180px;
    right: -20px;
    bottom: -40px;
  }

  .approved-quote-mark {
    width: 115px;
    font-size: 300px;
  }
  .approved-quote-mark-open {
    top: -40px;
    left: -40px;
  }
  .approved-quote-mark-close {
    bottom: -40px;
    right: -40px;
  }
}

@media screen and (max-width: 767px) {
  .section-approved {
    padding: 56px 0 72px;
    overflow-x: clip;
  }
  .approved-accred-row {
    margin-bottom: 40px;
  }
  .approved-title {
    margin-bottom: 28px;
  }

  .approved-badges {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 26px 14px;
    max-width: 380px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 48px;
  }
  .approved-badge {
    grid-column: span 3;
    width: 100%;
    height: 64px;
  }
  .approved-badge:nth-child(-n + 3) {
    grid-column: span 4;
  }
  .approved-badge img,
  .approved-badge svg {
    width: auto;
    max-width: 100%;
    height: 100%;
  }

  .approved-quote-card {
    margin-left: 0;
    padding: 32px 24px 150px;
    min-height: 0;
  }
  .approved-quote-text {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .approved-quote-attribution {
    position: absolute;
    left: 24px;
    right: 140px;
    bottom: 32px;
    max-width: none;
    padding-left: 0;
    margin-top: 0;
  }
  .approved-quote-author {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .approved-quote-role {
    font-size: 13px;
    line-height: 1.35;
  }

  .approved-quote-profile {
    width: 110px;
    height: 110px;
    right: 18px;
    bottom: 18px;
  }

  .approved-quote-mark {
    width: 85px;
    font-size: 180px;
  }
  .approved-quote-mark-open {
    top: -18px;
    left: -8px;
  }
  .approved-quote-mark-close {
    width: 55px;
    font-size: 110px;
    right: -6px;
    bottom: -60px;
  }
}

@media screen and (max-width: 479px) {
  .section-approved {
    padding: 48px 0 60px;
  }
  .approved-accred-row {
    margin-bottom: 32px;
  }
  .approved-badges {
    gap: 26px 10px;
    max-width: 320px;
    margin-bottom: 40px;
  }
  .approved-badge {
    height: 45px;
  }

  .approved-quote-card {
    padding: 46px 18px 90px;
  }
  .approved-quote-text {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .approved-quote-attribution {
    left: 18px;
    right: 114px;
    bottom: 22px;
  }
  .approved-quote-author {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .approved-quote-role {
    font-size: 12px;
    line-height: 1.3;
  }
  .approved-quote-profile {
    width: 90px;
    height: 90px;
    right: 14px;
    bottom: 14px;
  }
  .approved-quote-mark {
    width: 70px;
    font-size: 140px;
  }
  .approved-quote-mark-open {
    top: -14px;
    left: -6px;
  }
  .approved-quote-mark-close {
    width: 44px;
    font-size: 88px;
    right: -4px;
    bottom: -48px;
  }
}
