/* Team Hero Section */
.team-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/hero.jpg") no-repeat center center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.team-hero-content {
  padding: 20px;
  max-width: 800px;
}

.team-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.team-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Team Profiles Section */
.team-section {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.team-member {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 580px;
  outline: none;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.member-image-ernest img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 10% 40%;
  transition: transform 0.3s ease;
}

.member-image-colonel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 10% 40%;
  transition: transform 0.3s ease;
}

.member-image-brig img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 10% 5%;
  transition: transform 0.3s ease;
}

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

.member-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-info h3 {
  font-size: 1.2rem;
  color: #011b72;
  margin-bottom: 1rem;
  text-align: center;
}

.member-description {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 1rem 0;
  transition: all 0.3s ease;
}

.member-description ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}

.member-description li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.5rem;
}

.member-description .truncated {
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  line-height: 1.6;
  max-height: none;
}

.member-description .full {
  display: none;
}

.member-description .full[style*="display: block"] + .read-more {
  margin-top: 1rem;
}

.read-more {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: auto;
  background: #011b72;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background: #000d3a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-hero {
    height: 40vh;
  }

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

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

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .team-hero {
    height: 30vh;
  }

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

  .team-section {
    padding: 2rem 1rem;
  }
} 