/* ======================
   ABOUT TEAM SECTION
   ====================== */

.about-team-section .team {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  text-align: left;
  color: #333f5b;
  font-family: "Avenir Next", sans-serif;
  gap: 80px;
  font-size: 16px;
  max-width: 1680px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .about-team-section .team {
    gap: 32px;
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-team-section .team {
    padding: 0 clamp(24px, 4vw, 48px);
    gap: clamp(60px, 8vw, 80px);
    text-align: center;
  }
}

.about-team-section .teamGroup {
  display: flex;
  align-items: stretch;
  z-index: 2;
  min-height: 400px;
  gap: 32px;
  font-size: 38px;
  font-family: "P22 Mackinac Pro", serif;
}

@media (max-width: 767px) {
  .about-team-section .teamGroup {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
    font-size: 22px;
    min-height: auto;
    align-items: center;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
  }

  .about-team-section .teamGroup::-webkit-scrollbar {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-team-section .teamGroup {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 48px);
    width: 100%;
    align-items: center;
    min-height: auto;
    font-size: clamp(28px, 4vw, 34px);
  }

  .about-team-section .teamGroup > * {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .about-team-section .team {
    text-align: center;
  }

  .about-team-section .teamGroup {
    min-height: auto;
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .about-team-section .teamGroup {
    width: 100%;
    gap: clamp(24px, 2.5vw, 32px);
    justify-content: space-between;
  }
}

@media (min-width: 1022px) and (max-width: 1261px) {
  .about-team-section .teamGroup {
    width: 100%;
    gap: clamp(24px, 2.5vw, 32px);
    justify-content: unset;
  }
}

@media (min-width: 1274px) and (max-width: 1399px) {
  .about-team-section .teamGroup {
    justify-content: unset;
  }
}

/* Header */
.about-team-section .header {
  width: 100%;
  max-width: 1680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  gap: 64px;
}

@media (max-width: 767px) {
  .about-team-section .header {
    gap: 28px;
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-team-section .header {
    gap: clamp(48px, 8vw, 64px);
    align-items: center;
    text-align: center;
    padding: 0 clamp(24px, 4vw, 32px);
  }
}

.about-team-section .heading {
  position: relative;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-family: "P22 Mackinac Pro", serif;
  margin: 0;
  text-align: center;
  max-width: 603px;
  font-size: clamp(48px, 4.2vw, 80px);
  line-height: 110%;
}

@media (min-width: 1025px) and (max-width: 1230px) {
  .about-team-section .heading {
    max-width: 390px;
  }
}

@media (min-width: 1231px) and (max-width: 1366px) {
  .about-team-section .heading {
    max-width: 478px;
  }
}

@media (min-width: 1367px) and (max-width: 1553px) {
  .about-team-section .heading {
    max-width: 500px;
  }
}

@media (max-width: 767px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 400px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 484px) and (max-width: 535px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 304px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 538px) and (max-width: 551px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 325px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 552px) and (max-width: 570px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 335px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 400px) and (max-width: 485px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 280px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 371px) and (max-width: 396px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 250px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 250px) and (max-width: 370px) {
  .about-team-section .heading {
    align-self: center;
    max-width: 210px;
    font-size: clamp(24px, 7.6vw, 52px);
    line-height: 120%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-team-section .heading {
    width: auto;
    max-width: 495px;
    font-size: clamp(48px, 7vw, 64px);
    line-height: 110%;
  }
}

/* Card */
.about-team-section .imageContainer {
  --stat-card-height: 290px;
  width: clamp(350px, 40vw, 445px);
  height: clamp(350px, 60vw, 700px);
  position: relative;
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f9fa;
}

.about-team-section .mainImageWrapper {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.about-team-section .mainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-team-section .statsOverlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 16px;
  min-height: var(--stat-card-height);
  height: var(--stat-card-height);
  align-items: stretch;
}

.about-team-section .statCard {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px;
  position: relative;
  min-height: var(--stat-card-height);
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.about-team-section .statContent {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.about-team-section .statBackground {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background-color: #fef1ec;
}

.about-team-section .statValue {
  position: relative;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 120%;
  font-weight: 500;
  font-family: "P22 Mackinac Pro", serif;
  color: #333f5b;
  z-index: 1;
  margin: 0 0 2px 0;
  text-align: left;
  align-self: flex-start;
}

.about-team-section .statDesignation {
  position: relative;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 140%;
  font-weight: 500;
  font-family: "Avenir Next";
  color: #6d717b;
  z-index: 1;
  margin: 0 0 16px 0;
  text-align: left;
  align-self: flex-start;
}

.about-team-section .statDescription {
  position: relative;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 150%;
  font-weight: 500;
  font-family: "Avenir Next";
  color: #6d717b;
  z-index: 2;
  margin: 0;
  margin-top: auto;
  flex-grow: 1;
  text-align: left;
  align-self: flex-start;
  width: 100%;
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .about-team-section .imageContainer {
    --stat-card-height: 320px;
  }
}

@media (max-width: 767px) {
  .about-team-section .imageContainer {
    --stat-card-height: 197.22px;
    width: 100%;
    height: clamp(600px, 60vw, 600px);
    border-radius: 20px;
  }

  .about-team-section .statsOverlay {
    bottom: 16px;
    left: 16px;
    right: 16px;
    min-height: 197.22px;
    height: auto;
    align-items: stretch;
  }

  .about-team-section .statCard {
    padding: 20px;
    border-radius: 12px;
    min-height: 120px;
    height: auto;
    overflow: hidden;
    text-align: left;
  }

  .about-team-section .statValue {
    font-size: 20px;
    line-height: 120%;
    margin: 0 0 6px 0;
    text-align: left;
  }

  .about-team-section .statDesignation {
    font-size: 14px;
    line-height: 140%;
    margin: 0 0 12px 0;
    text-align: left;
  }

  .about-team-section .statDescription {
    font-size: 15px;
    line-height: 150%;
    text-align: left;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin-top: auto;
  }
}

@media (min-width: 540px) and (max-width: 619px) {
  .about-team-section .imageContainer {
    width: 100%;
    height: clamp(575px, 60vw, 600px);
    border-radius: 20px;
  }
}

@media (min-width: 620px) and (max-width: 766px) {
  .about-team-section .imageContainer {
    width: 100%;
    height: clamp(950px, 80vw, 600px);
    border-radius: 20px;
  }
}

@media (min-width: 1022px) and (max-width: 1024px) {
  .about-team-section .imageContainer {
    width: clamp(300px, 15vw, 445px);
    height: clamp(350px, 56vw, 600px);
  }
}

@media (min-width: 1025px) and (max-width: 1259px) {
  .about-team-section .imageContainer {
    width: clamp(300px, 15vw, 445px);
    height: clamp(350px, 63vw, 636px);
  }
}

@media (min-width: 1252px) and (max-width: 1273px) {
  .about-team-section .imageContainer {
    width: clamp(365px, 15vw, 445px);
    height: clamp(350px, 56vw, 600px);
  }
}

@media (min-width: 1274px) and (max-width: 1274px) {
  .about-team-section .imageContainer {
    width: clamp(356px, 15vw, 445px);
    height: clamp(350px, 56vw, 600px);
  }
}

@media (min-width: 1260px) and (max-width: 1414px) {
  .about-team-section .imageContainer {
    width: clamp(372px, 15vw, 445px);
    height: clamp(350px, 56vw, 662px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .about-team-section .imageContainer {
    --stat-card-height: 240px;
    width: 100%;
    max-width: 500px;
    height: clamp(700px, 60vw, 550px);
    border-radius: 24px;
    margin: 0 auto;
  }

  .about-team-section .statsOverlay {
    bottom: 20px;
    left: 20px;
    right: 20px;
    gap: 14px;
    min-height: 240px;
    height: auto;
  }

  .about-team-section .statCard {
    padding: clamp(24px, 4vw, 32px);
    border-radius: 16px;
    min-height: 180px;
    height: auto;
    text-align: left;
  }

  .about-team-section .statValue {
    font-size: clamp(24px, 3.5vw, 28px);
    line-height: 120%;
    margin: 0 0 8px 0;
    text-align: left;
  }

  .about-team-section .statDesignation {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 140%;
    margin: 0 0 16px 0;
    text-align: left;
  }

  .about-team-section .statDescription {
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 150%;
    text-align: left;
    margin-top: auto;
  }
}
