/* ============================================================
   HopeBridge Trust - Our Team Page Styles
   ============================================================ */

/* ----------------------------------------------------------
   Page Hero Background
   ---------------------------------------------------------- */
.page-team .breadcrumb-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
}

/* ----------------------------------------------------------
   Section 2: Team Grid
   ---------------------------------------------------------- */
.team-section {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.team-section-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.team-section-shape.shape-a {
  width: 380px;
  height: 380px;
  background: var(--secondary);
  top: 8%;
  right: -10%;
}

.team-section-shape.shape-b {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: 12%;
  left: -8%;
  animation-delay: -5s;
}

.team-section .section-header {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   Team Member Card
   ---------------------------------------------------------- */
.team-card {
  position: relative;
  height: 100%;
  padding: 3px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  transition: var(--transition);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  filter: blur(18px);
  z-index: -1;
  transition: opacity 0.45s ease;
}

.team-card:hover {
  transform: translateY(-12px);
}

.team-card:hover::before {
  opacity: 0.55;
}

.team-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover .team-card-inner {
  box-shadow: var(--shadow-lg);
}

/* Photo */
.team-card-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
}

.team-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-photo {
  transform: scale(1.1);
}

.team-card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 74, 110, 0.55) 100%);
  opacity: 0.85;
  transition: var(--transition);
}

.team-card:hover .team-card-photo-overlay {
  opacity: 1;
}

.team-verified-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: rgba(20, 184, 166, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35);
  z-index: 2;
}

.team-verified-badge i {
  font-size: 0.75rem;
}

/* Body */
.team-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
}

.team-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.team-card-code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(20, 184, 166, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.team-card-designation {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.team-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.15rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Social Icons */
.team-card-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.team-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 50%;
  transition: var(--transition);
}

.team-social-link:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.25);
}

/* View Profile Button */
.team-view-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.team-view-profile-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.35);
}

.team-view-profile-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.team-view-profile-btn:hover i {
  transform: translateX(3px);
}

/* ----------------------------------------------------------
   Team Profile Modal
   ---------------------------------------------------------- */
.team-profile-modal .modal-dialog {
  max-width: 720px;
}

.team-profile-modal .modal-content {
  border: none;
  border-radius: 28px;
  overflow: hidden;
}

.team-profile-modal .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  border: none;
  padding: 1rem 1.25rem;
  background: transparent;
}

.team-profile-modal .btn-close {
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.team-profile-modal .modal-body {
  padding: 0;
  max-height: none;
  overflow: visible;
}

.team-modal-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.team-modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12, 74, 110, 0.75) 100%);
}

.team-modal-verified {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: rgba(20, 184, 166, 0.95);
  border-radius: 50px;
  z-index: 2;
}

.team-modal-content {
  padding: 1.75rem 2rem 2rem;
}

.team-modal-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.team-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.team-modal-code {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(20, 184, 166, 0.12);
  padding: 5px 12px;
  border-radius: 50px;
}

.team-modal-designation {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.team-modal-experience {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 14px 18px;
  margin-bottom: 1.25rem;
  background: rgba(14, 116, 144, 0.06);
  border: 1px solid rgba(14, 116, 144, 0.1);
  border-radius: var(--radius-sm);
}

.team-modal-experience i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  flex-shrink: 0;
}

.team-modal-experience span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.team-modal-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.team-modal-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.team-modal-contact i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  flex-shrink: 0;
}

.team-modal-contact a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  word-break: break-all;
  transition: var(--transition);
}

.team-modal-contact a:hover {
  color: var(--secondary);
}

.team-modal-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14, 116, 144, 0.1);
}

.team-modal-social .team-social-link {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   Section 3: Join Our Team CTA
   ---------------------------------------------------------- */
.page-team .team-cta-section {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.page-team .team-cta-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1920&q=80') center / cover no-repeat;
  animation: breadcrumbZoom 15s ease-in-out infinite alternate;
}

.page-team .team-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.9) 0%, rgba(14, 116, 144, 0.85) 50%, rgba(12, 99, 120, 0.9) 100%);
}

.page-team .team-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-team .team-cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.page-team .team-cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.page-team .team-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .team-modal-content {
    padding: 1.5rem 1.35rem 1.75rem;
  }

  .team-modal-hero {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  .team-card-body {
    padding: 1.25rem 1.15rem 1.15rem;
  }

  .team-modal-name {
    font-size: 1.35rem;
  }

  .team-modal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-team .team-cta-section {
    padding: 80px 0 100px;
  }

  .page-team .team-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-team .team-cta-buttons .btn-glass,
  .page-team .team-cta-buttons .btn-glass-outline {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
