/* ========================================
   TEAM PAGE STYLES - ISIGEF
   Using existing CSS variables from style.css
======================================== */

/* ===== TEAM HERO SECTION ===== */
.team-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(12, 74, 154, 0.85), rgba(8, 51, 102, 0.9)),
    url("../Images/oou.jpeg") center 25% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.team-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--copper-light), transparent);
  z-index: 1;
}

.team-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(225, 154, 97, 0.15) 0%,
    transparent 50%
  );
}

.team-hero-content {
  position: relative;
  z-index: 2;
}

.team-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.team-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--space-md);
  line-height: 1.8;
}

.hero-badge {
  display: inline-block;
  background: rgba(225, 154, 97, 0.9);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.team-hero .breadcrumb {
  margin-top: var(--space-md);
}

.team-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.team-hero .breadcrumb-item a:hover {
  color: var(--accent-copper);
}

.team-hero .breadcrumb-item.active {
  color: var(--white);
}

.team-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "›";
  font-size: 1.2rem;
}

/* ===== SECTION HEADER ===== */
.team-section-header {
  margin-bottom: var(--space-xl);
}

.team-section-header .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.team-section-header .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-copper));
  border-radius: 2px;
}

/* ===== LEADERSHIP SECTION ===== */
.leadership-section {
  padding: var(--space-xxl) 0;
  background: var(--white);
}

.leadership-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12, 74, 154, 0.12);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.leadership-card:hover {
  box-shadow: 0 30px 80px rgba(12, 74, 154, 0.18);
  transform: translateY(-5px);
}

.leadership-image {
  height: 600px;
  overflow: hidden;
  position: relative;
}

.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.6s ease;
}

.leadership-card:hover .leadership-image img {
  transform: scale(1.05);
}

.leadership-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(12, 74, 154, 0.9), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  justify-content: center;
}

.leadership-card:hover .leadership-image-overlay {
  opacity: 1;
}

/* .leadership-social {
  display: flex;
  gap: 12px;
}

.leadership-social a {
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.leadership-social a:hover {
  background: var(--accent-copper);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
} */

.leadership-content {
  padding: var(--space-xl);
}

.leadership-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-copper), var(--copper-dark));
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.leadership-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.leadership-position {
  font-size: 1.1rem;
  color: var(--accent-copper);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leadership-bio {
  font-size: 1.05rem;
  color: var(--gray-medium);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.leadership-quote {
  position: relative;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray-dark);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  background: var(--blue-pale);
  border-left: 4px solid var(--accent-copper);
  border-radius: 0 12px 12px 0;
  margin-bottom: var(--space-lg);
}

.leadership-quote .quote-icon {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 2rem;
  color: var(--accent-copper);
  opacity: 0.5;
}

.leadership-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.leader-stat {
  text-align: center;
  padding: var(--space-sm);
  background: var(--gray-pale);
  border-radius: 12px;
  min-width: 100px;
  transition: var(--transition);
}

.leader-stat:hover {
  background: var(--copper-pale);
  transform: translateY(-3px);
}

.leader-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-copper);
  line-height: 1;
  margin-bottom: 4px;
}

.leader-stat-label {
  font-size: 0.8rem;
  color: var(--gray-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TEAM GRID SECTION ===== */
.team-grid-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(
    135deg,
    var(--gray-pale) 0%,
    var(--blue-pale) 50%,
    var(--copper-pale) 100%
  );
  position: relative;
  overflow: hidden;
}

.team-grid-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(225, 154, 97, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBackground 20s ease-in-out infinite;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ===== TEAM CARD ===== */
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-copper));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(12, 74, 154, 0.18);
}

.team-card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-image img {
  transform: scale(1.12);
}

.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(12, 74, 154, 0.95) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-lg);
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-social-links {
  display: flex;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.15s;
}

.team-card:hover .team-social-links {
  transform: translateY(0);
  opacity: 1;
}

.team-social-links a {
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-social-links a:hover {
  background: var(--accent-copper);
  color: var(--white);
  transform: translateY(-3px) rotate(360deg);
}

.team-card-info {
  padding: var(--space-md);
  text-align: center;
  position: relative;
}

.team-card-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-copper));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.team-card:hover .team-card-info::before {
  width: 80px;
}

.team-card-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
  margin-top: 12px;
  transition: var(--transition);
}

.team-card:hover .team-card-name {
  color: var(--accent-copper);
}

.team-card-position {
  font-size: 0.9rem;
  color: var(--accent-copper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.6;
  margin: 0;
}

/* ===== ADVISORY SECTION ===== */
.advisory-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--blue-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.advisory-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(225, 154, 97, 0.1) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.advisory-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
}

.advisory-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: var(--space-md);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.advisory-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.advisory-card:hover::before {
  left: 100%;
}

.advisory-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-12px);
  border-color: var(--accent-copper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.advisory-image {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  transition: all 0.5s ease;
  position: relative;
}

.advisory-card:hover .advisory-image {
  border-color: var(--accent-copper);
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(225, 154, 97, 0.3);
}

.advisory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.advisory-card:hover .advisory-image img {
  transform: scale(1.1);
}

.advisory-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.advisory-position {
  font-size: 0.9rem;
  color: var(--accent-copper);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advisory-expertise {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

/* ============================================
   MOBILE IMAGE FIX - BOOTSTRAP
   ============================================ */

/* Tablet (2 cards per row) */
@media (max-width: 991px) {
  .advisory-image {
    height: 280px;
  }
}

/* Mobile (1 card per row - full width) */
@media (max-width: 767px) {
  .advisory-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .advisory-image {
    height: 320px;
  }
}

/* Small Mobile */
@media (min-width: 575px) {
  .advisory-card {
    max-width: 100%;
  }

  .advisory-image {
    height: 300px;
  }
}

/* ===== TEAM VALUES SECTION ===== */
.team-values-section {
  padding: var(--space-xxl) 0;
  background: var(--white);
}

.team-value-card {
  background: var(--gray-pale);
  border-radius: 16px;
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.team-value-card:hover {
  background: var(--white);
  border-color: var(--accent-copper);
  box-shadow: 0 15px 40px rgba(12, 74, 154, 0.12);
  transform: translateY(-8px);
}

.team-value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--blue-pale), var(--copper-pale));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-value-card:hover .team-value-icon {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--accent-copper)
  );
  transform: scale(1.1) rotate(10deg);
}

.team-value-icon i {
  font-size: 2rem;
  color: var(--primary-blue);
  transition: var(--transition);
}

.team-value-card:hover .team-value-icon i {
  color: var(--white);
}

.team-value-card h4 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: var(--space-sm);
}

.team-value-card p {
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.7;
  margin: 0;
}

/* ===== JOIN TEAM CTA ===== */
.join-team-section {
  position: relative;
  padding: var(--space-xxl) 0;
  background: linear-gradient(rgba(12, 74, 154, 0.9), rgba(8, 51, 102, 0.95)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat fixed;
  color: var(--white);
  overflow: hidden;
}

.join-team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(225, 154, 97, 0.2) 0%,
    transparent 50%
  );
}

.join-team-content {
  position: relative;
  z-index: 2;
}

.join-badge {
  display: inline-block;
  background: rgba(225, 154, 97, 0.9);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.join-team-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.join-team-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.join-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
  .leadership-image {
    height: 400px;
  }

  .leadership-name {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .team-hero h1 {
    font-size: 2.5rem;
  }

  .leadership-section {
    padding: var(--space-xl) 0;
  }

  .leadership-image {
    height: 350px;
  }

  .leadership-content {
    padding: var(--space-lg);
  }

  .leadership-name {
    font-size: 1.8rem;
  }

  .leadership-stats {
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
  }

  .join-team-section h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .team-hero {
    min-height: 60vh;
    padding-top: 100px;
  }

  .team-hero h1 {
    font-size: 2rem;
  }

  .team-hero p {
    font-size: 1rem;
  }

  .team-grid-section,
  .advisory-section,
  .team-values-section {
    padding: var(--space-xl) 0;
  }

  .team-card-image {
    height: 280px;
  }

  .leadership-content {
    text-align: center;
  }

  .leadership-social {
    justify-content: center;
  }

  .leadership-stats {
    gap: var(--space-md);
  }

  .join-team-section h2 {
    font-size: 2rem;
  }

  .join-team-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .team-hero h1 {
    font-size: 1.75rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-image {
    height: 300px;
  }

  .leadership-name {
    font-size: 1.5rem;
  }

  .leadership-quote {
    padding: var(--space-sm);
    font-size: 1rem;
  }

  .leader-stat {
    min-width: 80px;
  }

  .leader-stat-number {
    font-size: 1.5rem;
  }

  .advisory-image {
    width: 120px;
    height: 120px;
  }

  .join-team-section h2 {
    font-size: 1.75rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes floatBackground {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-30px, 30px) rotate(5deg);
  }
}

/* Card entrance animations */
.team-card {
  animation: fadeInUp 0.8s ease-out backwards;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}
.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.3s;
}
.team-card:nth-child(4) {
  animation-delay: 0.4s;
}
.team-card:nth-child(5) {
  animation-delay: 0.5s;
}
.team-card:nth-child(6) {
  animation-delay: 0.6s;
}
.team-card:nth-child(7) {
  animation-delay: 0.7s;
}
.team-card:nth-child(8) {
  animation-delay: 0.8s;
}
.team-card:nth-child(9) {
  animation-delay: 0.45s;
}
.team-card:nth-child(10) {
  animation-delay: 0.5s;
}
.team-card:nth-child(11) {
  animation-delay: 0.55s;
}
.team-card:nth-child(12) {
  animation-delay: 0.6s;
}
.team-card:nth-child(13) {
  animation-delay: 0.65s;
}
.team-card:nth-child(14) {
  animation-delay: 0.7s;
}
.team-card:nth-child(15) {
  animation-delay: 0.75s;
}
.team-card:nth-child(16) {
  animation-delay: 0.8s;
}
.team-card:nth-child(17) {
  animation-delay: 0.85s;
}

.advisory-card {
  animation: fadeInUp 0.8s ease-out backwards;
}

.col-lg-3:nth-child(1) .advisory-card {
  animation-delay: 0.1s;
}
.col-lg-3:nth-child(2) .advisory-card {
  animation-delay: 0.2s;
}
.col-lg-3:nth-child(3) .advisory-card {
  animation-delay: 0.3s;
}
.col-lg-3:nth-child(4) .advisory-card {
  animation-delay: 0.4s;
}
