/* ============================================================
   USTAWI — Team Card: Circular Profile Photo (RELIABLE VERSION)
   Simple inline circle inside the card — no absolute positioning,
   no overflow conflicts. Works on both index.php and team.php.
   ============================================================ */

/* Reset the base .card overflow so circle is not clipped */
.team-card {
  overflow: visible !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 30px 20px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(31,58,31,.15);
}

/* Hide the old rectangular card-img completely */
.team-card .card-img {
  display: none !important;
}

/* ── Circular photo — sits inline at the top of the card ── */
.team-photo-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 4px solid var(--green-dark);
  box-shadow: 0 6px 20px rgba(31,58,31,.2);
  background: var(--beige-dark);
  flex-shrink: 0;
  position: relative;
  display: block;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* show upper body / face */
  display: block;
  border-radius: 50%;
  transition: transform .4s ease;
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.08);
}

/* Decorative green ring */
.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--green-dark);
  opacity: .18;
  pointer-events: none;
}

/* ── Card body ── */
.team-card .card-body {
  padding: 0;
  text-align: center;
}

.team-card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-family: 'Merriweather', serif;
}

/* Green accent line between circle and name */
.team-card .card-body::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.team-card .role {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.team-card .card-body p {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── Social links ── */
.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: .8rem;
  transition: background .25s, color .25s, transform .25s;
  text-decoration: none;
}
.team-social a:hover {
  background: var(--green-dark);
  color: #fff;
  transform: scale(1.15);
}

/* ── Fallback when no photo uploaded ── */
.team-photo-wrap img[src*="team-default"] {
  object-fit: contain;
  padding: 22px;
  background: var(--beige-soft);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-photo-wrap { width: 110px; height: 110px; }
}
@media (max-width: 680px) {
  .team-photo-wrap { width: 120px; height: 120px; }
  .team-card { padding: 24px 16px 20px; }
}
