/* =========================================
   scroll VM section
   ========================================= */

#vm-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.vm-slide-stack {
  position: absolute;
  inset: 0;
}

.vm-slide-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6vw;
  will-change: transform, opacity;
  z-index: 1;
  pointer-events: none;
}

.vm-slide-heading-wrap {
  position: relative;
  display: inline-block;
  text-align: center;
}

.vm-slide-heading {
  font-family: "Manrope";
  font-weight: 600;
  font-size: 56px;
  line-height: 1.2;
  white-space: nowrap;
  will-change: opacity, transform;
  color: #fff;
}

.vm-slide-body {
  font-family: "Manrope";
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0%;
  text-align: center;
  color: #fff;
  will-change: opacity, transform;
  margin-top: 26px;
  max-width: 705px;
}

.about-scroll-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   helm section
   ========================================= */

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 5px;
  font-size: 24px;
  font-weight: 500;
  color: #484441;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-family: "manrope";
  margin-right: 32px;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a40a1;
  transition: width 0.3s ease;
}

.tab-btn.active {
  color: #0a40a1;
  font-weight: 500;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-btn:hover {
  color: #0d2d6b;
}

/* â”€â”€ Cards Grid â”€â”€ */

.tab-swiper.swiper {
  overflow: visible;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* â”€â”€ Card â”€â”€ */
.member-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  cursor: pointer;
  background:
    radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(180deg, #1d6dd0 0%, #04173b 121.05%);
  background-size:
    22px 22px,
    100% 100%;
  width: 392px;
  height: 422px;
  border-radius: 20px;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  transition: transform 0.5s ease;
}

/* â”€â”€ Bottom gradient (name area) â€” always visible â”€â”€ */
.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(8, 24, 68, 0.98) 0%,
    rgba(8, 24, 68, 0.5) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* â”€â”€ Name + title at bottom (default) â”€â”€ */
.card-identity {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 4;
  transition: opacity 0.25s ease;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.card-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
  line-height: 1.4;
}

/* â”€â”€ FULL CARD OVERLAY â€” hidden by default â”€â”€ */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(160deg, #000 0%, #000 55%, #000 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

/* Dot pattern on overlay */
.card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  border-radius: 20px;
}

/* Overlay content (name + bio) */
.card-overlay-content {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease 0.12s,
    transform 0.35s ease 0.12s;
}

.overlay-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.overlay-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.overlay-bio {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
}

/* â”€â”€ HOVER TRIGGERS (Board Members only) â”€â”€ */
.member-card:hover .card-photo {
  transform: scale(1.04);
}

.member-card:hover .card-gradient {
  opacity: 0;
}

.member-card:hover .card-identity {
  opacity: 0;
}

.member-card:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.member-card:hover .card-overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.playbutton {
  cursor: pointer;
}

.value-card__gif lottie-player {
  mix-blend-mode: soft-light;
}

/* =========================================================
   ABOUT SCROLL VISION / MISSION SECTION
   ========================================================= */

#vm-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.vm-slide-stack {
  position: absolute;
  inset: 0;
}

.vm-slide-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6vw;
  will-change: transform, opacity;
}

.vm-slide-heading-wrap {
  position: relative;
  display: inline-block;
  text-align: center;
}

.vm-slide-heading {
  font-family: "Manrope";
  font-weight: 600;
  font-size: 56px;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  will-change: opacity, transform;
}

.vm-slide-body {
  font-family: "Manrope";
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  color: #fff;
  margin-top: 26px;
  max-width: 705px;
  will-change: opacity, transform;
}

.about-scroll-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   ABOUT LEADERSHIP / HELM SECTION
   ========================================================= */

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 5px;
  font-size: 24px;
  font-weight: 500;
  color: #484441;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-family: "Manrope";
  margin-right: 32px;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a40a1;
  transition: width 0.3s ease;
}

.tab-btn.active {
  color: #0a40a1;
}

.tab-btn.active::after {
  width: 100%;
}

/* =========================================================
   ABOUT MEMBER CARDS / SWIPER
   ========================================================= */

.tab-panel {
  display: none;
}

.member-card {
  position: relative;
  flex-shrink: 0;
  width: 392px;
  height: 422px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background-color: #1d6dd0;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(8, 24, 68, 0.98) 0%,
    rgba(8, 24, 68, 0.5) 60%,
    transparent 100%
  );
}

.card-identity {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 4;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.card-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  background: #000;
  transition: opacity 0.4s ease;
}

.card-overlay-content {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
}

.tab-swiper .swiper-slide {
  max-width: 390px;
}

.marquee-container .member-marquee {
    gap: 24px !important;
    max-height: none !important;
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 1024px) {
  .vm-slide-heading {
    font-size: 42px;
  }

  .member-card {
    width: 100%;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .secondary-hero-overlay h1 {
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
  }

  .vm-slide-heading {
    font-size: 32px;
    white-space: normal;
  }

  .vm-slide-body {
    font-size: 16px;
    padding: 0 20px;
  }

  .tabs {
    overflow-x: auto;
    white-space: nowrap;
    overflow-y: hidden;
    padding: 0px 24px;
    margin: 0px -24px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tab-btn::after {
    bottom: 0;
  }

  .tab-btn {
    font-size: 18px;
  }

  .tab-panel.active {
    padding: 0px 24px;
    margin: 0px -24px;
  }

  .tab-swiper .swiper-slide {
    max-width: 280px;
  }

  .member-card {
    width: 290px;
    height: 440px;
  }
}
