/* ============================================================
   TEAM CARD – Premium Layout
   ============================================================ */
.team-card {
  background: #FFFFFF;
  padding: 35px 25px 54px;
  /* extra bottom so ⓘ btn doesn't overlap text */
  border-radius: 18px;
  border: 1px solid rgba(11, 59, 46, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease;
  position: relative;
  z-index: 2;
  text-align: center;
  overflow: hidden;
  /* clips the circular reveal inside */
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(231, 163, 38, 0.4);
  box-shadow:
    0 18px 40px rgba(11, 59, 46, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
}


/* ============================================================
   PROFILE IMAGE
   ============================================================ */
.team-card img.team-img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  outline: 2px solid #0B3B2E;
  transition: outline-color 0.35s ease, transform 0.35s ease;
}

.team-card:hover img.team-img {
  outline-color: #E7A326;
  transform: scale(1.05);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.team-card h5 {
  color: #003427;
  font-weight: 700;
  font-size: 1.12rem;
  margin-top: 14px;
  margin-bottom: 6px;
}

.team-card small.role-text {
  display: inline-block;
  color: #E7A326;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  padding: 4px 12px;
  background: rgba(231, 163, 38, 0.09);
  border-radius: 30px;
  line-height: 1.5;
}

.team-card p.bio-text {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ============================================================
   COL – prevent double translate
   ============================================================ */
.team-col {
  transition: none;
}

.team-col:hover {
  transform: none;
}


/* ============================================================
   ⓘ  INFO BUTTON  –  bottom-right corner
   ============================================================ */
.info-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #0B3B2E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  outline: none;
  animation: infoPulse 2.5s ease-out infinite;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.info-btn:hover {
  background: #E7A326;
  transform: scale(1.2);
  animation: none;
  box-shadow: 0 2px 8px rgba(231, 163, 38, 0.4);
}

.info-btn i {
  font-size: 0.65rem;
  pointer-events: none;
}

/* Recurring expand-and-fade ring */
@keyframes infoPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 59, 46, 0.55);
  }

  65% {
    box-shadow: 0 0 0 12px rgba(11, 59, 46, 0.00);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(11, 59, 46, 0.00);
  }
}


/* When overlay is open — morph ⓘ into ✕ */
.info-btn.open {
  background: #cc3a3a;
  animation: none;
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 4px 14px rgba(204, 58, 58, 0.4);
}

.info-btn.open i::before {
  content: "\F659";
  /* Bootstrap Icons x-lg (\F659) */
  font-style: normal;
}

.info-btn.open:hover {
  background: #a82d2d;
}


/* ============================================================
   BIO OVERLAY  –  circular ripple reveal
   Expands from the bottom-right corner (where ⓘ lives)
   ============================================================ */
.bio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 244, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px;
  box-sizing: border-box;
  text-align: left;
  border-radius: 18px;
  z-index: 15;
  pointer-events: none;

  /* Clipped as a tiny circle at the ⓘ button */
  clip-path: circle(0% at calc(100% - 32px) calc(100% - 32px));
  opacity: 0;

  transition:
    clip-path 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}

/* Fully expanded */
.bio-overlay.active {
  clip-path: circle(170% at calc(100% - 32px) calc(100% - 32px));
  opacity: 1;
  pointer-events: auto;

  transition:
    clip-path 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.1s ease;
}


/* ============================================================
   OVERLAY HEADER (name + role)
   ============================================================ */
.bio-overlay-header {
  padding-right: 30px;
  /* clearance for close button */
  margin-bottom: 6px;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.22s, transform 0.3s ease 0.22s;
}

.bio-overlay.active .bio-overlay-header {
  opacity: 1;
  transform: translateY(0);
}

.bio-ov-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B3B2E;
  margin: 0 0 2px;
  line-height: 1.2;
}

.bio-ov-role {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: #E7A326;
}

.bio-overlay-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(11, 59, 46, 0.15), transparent);
  margin: 8px 0 10px;

  opacity: 0;
  transition: opacity 0.3s ease 0.28s;
}

.bio-overlay.active .bio-overlay-divider {
  opacity: 1;
}


/* ============================================================
   BIO SCROLL AREA  –  staggered fade-up
   ============================================================ */
.bio-content-scroll {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease 0.3s, transform 0.35s ease 0.3s;
}

.bio-overlay.active .bio-content-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Thin scrollbar */
.bio-content-scroll::-webkit-scrollbar {
  width: 3px;
}

.bio-content-scroll::-webkit-scrollbar-track {
  background: rgba(11, 59, 46, 0.05);
  border-radius: 10px;
}

.bio-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(11, 59, 46, 0.25);
  border-radius: 10px;
}

.bio-overlay-text {
  color: #1b3a30;
  font-size: 0.82rem;
  line-height: 1.68;
  margin: 0;
}