/* Team Page Specific CSS */

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.animate-on-scroll.animated {
  animation: fadeInUp 1s ease-out;
}

/* Page Header Section (common for all sub-pages) */
.page-header-section {
  background-color: var(--color-background-alt);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

body.dark-mode .page-header-section {
  background-color: var(--dark-color-background-alt);
  border-bottom-color: var(--dark-color-border);
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--color-heading);
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* Team Grid Section (for team.html) */
.team-grid-section {
  background-color: var(--color-background-alt);
  padding: 80px 0;
}

body.dark-mode .team-grid-section {
  background-color: var(--color-background);
}

/* Team Card (reused from homepage, but with more detail for team.html) */
.team-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all var(--transition-normal) ease;
  height: calc(100% - 30px); /* Adjust for margin-bottom */
  display: flex;
  flex-direction: column;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.team-image {
  width: 100%;
  height: 350px; /* Slightly taller for team page */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-normal) ease;
}

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

.team-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--color-heading);
}

.team-title {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.team-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.team-social-links {
  margin-top: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social-links a {
  font-size: 1.2rem;
  color: var(--color-text-light);
  transition: color var(--transition-normal) ease;
}

.team-social-links a:hover {
  color: var(--color-primary);
}

/* Team Detail Section (for team-details.html) */
.team-detail-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.team-detail-image {
  text-align: center;
  margin-bottom: 40px;
}

.team-detail-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.team-detail-content {
  padding-left: 30px;
  .info {
    margin-bottom: 20px;
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      li {
        margin-bottom: 5px;
        a {
          color: var(--color-text);
          font-size: 1.2rem;
          text-decoration: none;
          transition: color 0.3s ease;
          &:hover {
            color: var(--color-secondary);
          }
        }
      }
    }
  }
  p {
    line-height: 1.5;
    color: var(--color-text);
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.team-detail-name {
  font-size: 2.8rem;
  margin-bottom: 5px;
  color: var(--color-text);
}

.team-detail-title {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 20px;
}

.team-detail-social-links {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
}

.team-detail-social-links a {
  font-size: 1.5rem;
  color: var(--color-text-light);
  transition: color var(--transition-normal) ease;
}

.team-detail-social-links a:hover {
  color: var(--color-primary);
}

.team-detail-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}

.team-detail-content h3 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text);
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.expertise-list li {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.expertise-list li::before {
  content: "\F26A"; /* Bootstrap check-circle icon */
  font-family: "bootstrap-icons";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .page-title {
    font-size: 2.5rem;
  }
  .page-subtitle {
    font-size: 1.1rem;
  }
  .team-detail-content {
    padding-left: 0;
    margin-top: 40px;
  }
  .team-detail-name {
    font-size: 2.2rem;
  }
  .team-detail-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .page-header-section,
  .team-grid-section,
  .team-detail-section {
    padding: 60px 0;
  }
  .page-title {
    font-size: 2rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
  .team-detail-image img {
    max-width: 300px;
  }
  .team-detail-name {
    font-size: 1.8rem;
  }
  .team-detail-title {
    font-size: 1rem;
  }
  .team-detail-social-links {
    justify-content: center;
  }
  .team-detail-content h3 {
    font-size: 1.5rem;
  }
}

/* Dark Mode Specific Styles for Team Pages */
body.dark-mode .page-header-section {
  background-color: var(--dark-color-background-alt);
  border-bottom-color: var(--dark-color-border);
}

body.dark-mode .page-title {
  color: var(--dark-color-heading);
}

body.dark-mode .page-subtitle {
  color: var(--dark-color-text-light);
}

/* body.dark-mode .team-card {
  background-color: var(--dark-color-card-bg);
  box-shadow: var(--dark-box-shadow);
}

body.dark-mode .team-card:hover {
  box-shadow: var(--dark-box-shadow-hover);
} */

body.dark-mode .team-name {
  color: var(--color-text);
}

body.dark-mode .team-title {
  color: var(--dark-color-primary);
}

body.dark-mode .team-description {
  color: var(--dark-color-text-light);
}

body.dark-mode .team-social-links a {
  color: var(--dark-color-text-light);
}

body.dark-mode .team-social-links a:hover {
  color: var(--dark-color-primary);
}

body.dark-mode .team-detail-name {
  color: var(--color-text);
}

body.dark-mode .team-detail-title {
  color: var(--dark-color-primary);
}

body.dark-mode .team-detail-social-links a {
  color: var(--dark-color-text-light);
}

body.dark-mode .team-detail-social-links a:hover {
  color: var(--dark-color-primary);
}

body.dark-mode .team-detail-bio {
  color: var(--dark-color-text);
}

body.dark-mode .team-detail-content h3 {
  color: var(--dark-color-heading);
}

body.dark-mode .expertise-list li {
  color: var(--dark-color-text-light);
}

body.dark-mode .expertise-list li::before {
  color: var(--dark-color-primary);
}
