/*
 * Team & About Us Page Design System
 * AusInd Bridge Foundation
 *
 * Clean card layouts, consistent typography, subtle shadows.
 * No decorative top bars or photo rings — minimal and professional.
 */

/* ═══════════════════════════════════════════════════════
   BRAND TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  --aibf-navy: #0C2340;
  --aibf-saffron: #F5A623;
  --aibf-border: #eaecf0;
  --card-radius: 1rem;
  --card-shadow: 0 2px 12px rgba(12, 35, 64, 0.07);
  --card-shadow-hover: 0 8px 32px rgba(12, 35, 64, 0.13);
  --transition: all 0.25s ease;
}

/* ═══════════════════════════════════════════════════════
   TEAM CARDS — clean, shadow-only style
   ═══════════════════════════════════════════════════════ */
.team-card {
  position: relative !important;
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: var(--card-shadow) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.team-card:hover {
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateY(-3px) !important;
}

/* ── Photo ── */
.team-card img.rounded-full {
  background-color: #e8ecf0 !important;
  transition: var(--transition) !important;
  filter: grayscale(100%) !important;
}

.team-card:hover img.rounded-full {
  transform: scale(1.03) !important;
}

/* ── Name heading (works for both h3 and h4 inside cards) ── */
.team-card h3,
.team-card h4 {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--aibf-navy) !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  letter-spacing: -0.01em !important;
}

/* ── Role / title label (first <p> after the heading) ── */
.team-card p.text-sm.text-gray-600:first-of-type,
.team-card>p.text-sm:first-of-type {
  color: var(--aibf-saffron) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-top: 0.35rem !important;
}

/* ── Body description ── */
.team-card p {
  color: #4b5563 !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}

/* ── Keep role label override above body (specificity fix) ── */
.team-card p.text-gray-600.mb-2,
.team-card p.text-gray-600.mb-3 {
  color: var(--aibf-saffron) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* ═══════════════════════════════════════════════════════
   FOUNDER SECTION
   ═══════════════════════════════════════════════════════ */
.founder-photo {
  box-shadow: 0 6px 24px rgba(12, 35, 64, 0.15) !important;
  transition: var(--transition) !important;
  filter: grayscale(100%) !important;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADINGS — consistent with site typography
   ═══════════════════════════════════════════════════════ */
.team-section h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.25rem, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--aibf-navy) !important;
  letter-spacing: -0.015em !important;
}

.team-section h3.text-saffron {
  color: var(--aibf-saffron) !important;
  font-size: clamp(1.15rem, 1.5vw + 0.4rem, 1.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

/* ═══════════════════════════════════════════════════════
   FILTER BUTTONS — clean, minimal toggle
   ═══════════════════════════════════════════════════════ */
.filter-btn {
  background: #ffffff !important;
  color: #374151 !important;
  border: 1.5px solid var(--aibf-border) !important;
  border-radius: 0.625rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.01em !important;
  transition: var(--transition) !important;
}

.filter-btn:hover {
  border-color: var(--aibf-saffron) !important;
  color: var(--aibf-saffron) !important;
}

.filter-btn.active {
  background: var(--aibf-navy) !important;
  color: #ffffff !important;
  border-color: var(--aibf-navy) !important;
  box-shadow: 0 2px 12px rgba(12, 35, 64, 0.25) !important;
}

.filter-btn.active:hover {
  background: #1a3a5c !important;
  border-color: #1a3a5c !important;
}

/* ═══════════════════════════════════════════════════════
   TEAM SECTIONS — tab-controlled show / hide
   ═══════════════════════════════════════════════════════ */
.team-section {
  display: none !important;
}

.team-section.active {
  display: block !important;
}

/* ═══════════════════════════════════════════════════════
   TEAM NAV — sticky floating pill bar
   ═══════════════════════════════════════════════════════ */
#team-nav {
  position: sticky !important;
  top: 80px !important;
  /* sits just below the main nav */
  z-index: 40 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #eaecf0 !important;
  box-shadow: 0 2px 12px rgba(12, 35, 64, 0.08) !important;
}

/* Allow horizontal scroll on tiny screens so all 3 tabs are reachable */
#team-nav .flex {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 0.5rem !important;
  justify-content: flex-start !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

#team-nav .flex::-webkit-scrollbar {
  display: none !important;
}

/* On md+ screens centre the tabs */
@media (min-width: 640px) {
  #team-nav .flex {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
  }
}

/* Shrink tab labels on very small screens */
@media (max-width: 380px) {
  .filter-btn {
    font-size: 0.775rem !important;
    padding: 0.45rem 0.85rem !important;
    white-space: nowrap !important;
  }
}

/* ═══════════════════════════════════════════════════════
   GRID ALIGNMENT — equal-height cards
   ═══════════════════════════════════════════════════════ */
#full-team .grid,
#directors .grid,
#advisory-board .grid {
  align-items: stretch !important;
}

.team-card {
  height: 100% !important;
  justify-content: flex-start !important;
}

/* ═══════════════════════════════════════════════════════
   ABOUT US — CARD HOVER (mission/vision cards)
   ═══════════════════════════════════════════════════════ */
.card-hover {
  transition: var(--transition) !important;
}

.card-hover:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 36px rgba(12, 35, 64, 0.11) !important;
}

/* ═══════════════════════════════════════════════════════
   PARTNER LOGO GRID
   ═══════════════════════════════════════════════════════ */
.partner-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 5rem !important;
  padding: 0.5rem !important;
}

.partner-logo img {
  max-height: 4rem !important;
  max-width: 100% !important;
  object-fit: contain !important;
  filter: grayscale(15%) !important;
  transition: var(--transition) !important;
}

.card-hover:hover .partner-logo img {
  filter: grayscale(0%) !important;
}

/* ═══════════════════════════════════════════════════════
   VALUE CARD SHINE
   ═══════════════════════════════════════════════════════ */
.shine-effect {
  overflow: hidden !important;
  position: relative !important;
}

.shine-effect::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -75% !important;
  width: 50% !important;
  height: 200% !important;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.28) 50%,
      transparent 60%) !important;
  transform: skewX(-20deg) !important;
  transition: left 0.5s ease !important;
  pointer-events: none !important;
}

.shine-effect:hover::after {
  left: 125% !important;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  .team-card {
    padding: 1.5rem 1.25rem !important;
  }

  .filter-btn {
    padding: 0.55rem 1rem !important;
    font-size: 0.825rem !important;
  }

  .team-card img.rounded-full {
    width: 6.5rem !important;
    height: 6.5rem !important;
  }
}