/* =========================================
   LEADERSHIP SECTION STYLESHEET
   Location: wp-content/themes/jnscorp-theme/css/leadership.css
========================================= */

.leadership-section {
  margin: 0;
  padding: 84px 78px 40px;
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    rgba(160, 174, 118, 0.2) 3.43%,
    rgba(246, 242, 234, 0.2) 41.25%
  );
  color: var(--jns-text);
  overflow: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1280px;
}

.leadership-header {
  display: block;
  margin-bottom: 62px;
}

.leadership-profiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: flex-start;
  gap: 34px;
  margin-bottom: 36px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.leadership-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s ease;
  z-index: 2;
}

.leadership-profile:hover,
.leadership-profile.is-active {
  box-shadow: none;
}

.leadership-profile.is-active::after {
  position: absolute;
  right: calc(50% - 12px);
  bottom: -47px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-top: 1px solid #d7f230;
  border-left: 1px solid #d7f230;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.leadership-profile__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 166px;
  height: 180px;
  overflow: hidden;
  border-radius: 120px;
  background: #dfe3cb;
}

.leadership-profile__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.leadership-profile__initial {
  color: var(--primary);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
}

.leadership-profile__name {
  display: block;
  width: 100%;
  margin-top: 18px;
  color: var(--jns-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
}

.leadership-profile__designation {
  display: block;
  width: 100%;
  margin-top: 10px;
  color: rgba(103, 105, 92, 0.5);
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leadership-content {
  position: relative;
  border: 1px solid transparent;
  border-bottom: none;
  border-top-color: #d7f230;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.leadership-content__item {
  display: none;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 104px;
  min-height: 650px;
  padding: 72px 86px;
  border: 0;
  border-radius: 20px;
}

.leadership-content__item.is-active {
  display: grid;
}

.leadership-number {
  margin-bottom: 34px;
  color: var(--jns-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 60px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}

.leadership-content__name {
  margin: 0 0 16px;
  color: var(--jns-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 44px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
}

.leadership-content__designation {
  color: var(--jns-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leadership-content__intro {
  color: var(--jns-text);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
}

.leadership-content__bio {
  margin-top: 34px;
  color: #67695c;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0;
}

.leadership-content__intro p,
.leadership-content__bio p {
  margin-bottom: 26px;
}

.leadership-content__intro p:last-child,
.leadership-content__bio p:last-child {
  margin-bottom: 0;
}

.leadership-profile.is-active .leadership-profile__image {
  background: var(--primary);
}

@media (max-width: 1100px) {
  .leadership-section {
    padding: 64px 20px 40px;
  }

  .leadership-profiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 166px);
    gap: 24px 18px;
    scrollbar-width: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .leadership-profile.is-active::after {
    display: none;
  }

  .leadership-profile {
    justify-self: center;
    max-width: 166px;
  }

  .leadership-content__item,
  .leadership-content__item.is-active {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding: 38px 24px 46px;
  }
  .leadership-number {
    margin-bottom: 26px;
    font-size: 52px;
  }

  .leadership-content__name {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .leadership-section {
    padding: 40px 10px;
    margin: 0 10px;
  }

  .leadership-header {
    margin-bottom: 34px;
  }

  .leadership-title {
    font-size: 42px;
  }

  .leadership-profiles {
    gap: 28px 16px;
    margin-bottom: 32px;
  }

  .leadership-profile {
    width: 100%;
    flex-basis: auto;
  }

  .leadership-profile__image {
    width: min(166px, 100%);
    height: 180px;
  }

  .leadership-number {
    margin-bottom: 22px;
    font-size: 52px;
  }

  .leadership-content__name {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .leadership-section {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .leadership-profile {
    max-width: none;
  }

  .leadership-profile__image {
    height: 160px;
  }

  .leadership-profile__name {
    margin-top: 14px;
    font-size: 15px;
  }

  .leadership-profile__designation {
    margin-top: 8px;
    font-size: 14px;
  }

  .leadership-content__item,
  .leadership-content__item.is-active {
    padding: 30px 18px 36px;
    gap: 22px;
    border-radius: 16px;
  }

  .leadership-number {
    margin-bottom: 18px;
    font-size: 44px;
  }

  .leadership-content__name {
    font-size: 30px;
  }

  .leadership-content__intro,
  .leadership-content__bio {
    font-size: 15px;
    line-height: 24px;
  }
}
