/* ===== Page-Specific Styles ===== */

/* Override main content area for About page */
main {
  max-width: 1400px; /* Use wider width for About page */
  min-height: 100vh;
}

/* ===== Team Members Grid ===== */
.leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.leader-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  opacity: 0;
  animation: fadeInBanner 0.8s ease-in forwards;
  animation-delay: 1.0s;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(59, 179, 179, 0.15);
}

.leader-card.active {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(59, 179, 179, 0.2);
}

.leader-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.leader-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.leader-info {
  padding: 1.5rem;
  text-align: center;
}

.leader-name {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.3em;
  margin-bottom: 0.5rem;
  color: #111;
  line-height: 1.3;
}

.leader-position {
  color: #3bb3b3;
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 0.5rem;
}

.click-hint {
  color: #999;
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.leader-card:hover .click-hint {
  opacity: 1;
  color: #3bb3b3;
}

/* ===== Detail Display Area ===== */
.leader-details {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  margin-top: 3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-height: 0;
  position: relative;
}

.leader-details.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
  padding: 3rem;
}

.close-details {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(59, 179, 179, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: #3bb3b3;
  transition: all 0.3s ease;
}

.close-details:hover {
  background: #3bb3b3;
  color: white;
  transform: rotate(90deg);
}

.details-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.details-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-text {
  flex: 1;
}

.details-text h2 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 2.2em;
  margin-bottom: 0.5rem;
  color: #111;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.linkedin-icon {
  width: 32px;
  height: 32px;
  background: #0077b5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  flex-shrink: 0;
}

.linkedin-icon:hover {
  background: #005885;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.details-text h3 {
  color: #3bb3b3;
  font-size: 1.3em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.details-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

/* ===== About Page Responsive Design ===== */
@media (max-width: 900px) {
  .details-text h2 {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .leaders {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .details-content {
    flex-direction: column;
    text-align: center;
  }
  
  .details-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem auto;
  }
}

@media (max-width: 600px) {
  .leaders {
    grid-template-columns: 1fr;
  }
  
  .leader-details.active {
    padding: 2rem 1.5rem;
  }
}