/* Simplified team.css with reduced complexity */

.team-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  position: relative;
}

.team-header {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.team-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.team-subtitle {
  font-size: 1.1rem;
  color: #7cb342;
  margin-bottom: 15px;
}

.header-accent {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a7c23 0%, #7cb342 100%);
  border-radius: 2px;
}

.team-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  height: 380px;
}

.team-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.team-card[data-member='1'] {
  border-color: rgba(74, 124, 35, 0.3);
}
.team-card[data-member='2'] {
  border-color: rgba(37, 99, 235, 0.3);
}
.team-card[data-member='3'] {
  border-color: rgba(217, 119, 6, 0.3);
}
.team-card[data-member='4'] {
  border-color: rgba(124, 179, 66, 0.3);
}

.team-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.team-card.expanded {
  flex: 3;
  cursor: default;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.team-card[data-member='1'].expanded {
  border-color: #4a7c23;
}
.team-card[data-member='2'].expanded {
  border-color: #2563eb;
}
.team-card[data-member='3'].expanded {
  border-color: #d97706;
}
.team-card[data-member='4'].expanded {
  border-color: #7cb342;
}

.team-card.collapsed {
  flex: 0.55;
  cursor: pointer;
}

.card-number {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  background: #f3f4f6;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-card.expanded .card-image {
  width: 42%;
}

.team-card.collapsed .card-image {
  width: 100%;
}

.card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
  overflow-y: auto;
  background: #ffffff;
  opacity: 0;
  transform: translateX(16px);
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.team-card.expanded .card-details {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.member-role {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card[data-member='1'] .member-role {
  color: #4a7c23;
}
.team-card[data-member='2'] .member-role {
  color: #2563eb;
}
.team-card[data-member='3'] .member-role {
  color: #d97706;
}
.team-card[data-member='4'] .member-role {
  color: #7cb342;
}

.role-divider {
  width: 36px;
  height: 2px;
  background: #d1d5db;
  margin-bottom: 12px;
}

.member-course {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 0.7rem;
  color: #374151;
  font-weight: 500;
}

.collapse-btn {
  padding: 6px 14px;
  background: transparent;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  font-weight: 600;
  min-width: 80px;
}

.team-card[data-member='1'] .collapse-btn {
  border: 2px solid #4a7c23;
  color: #4a7c23;
}
.team-card[data-member='1'] .collapse-btn:hover {
  background: #4a7c23;
  color: #fff;
}

.team-card[data-member='2'] .collapse-btn {
  border: 2px solid #2563eb;
  color: #2563eb;
}
.team-card[data-member='2'] .collapse-btn:hover {
  background: #2563eb;
  color: #fff;
}

.team-card[data-member='3'] .collapse-btn {
  border: 2px solid #d97706;
  color: #d97706;
}
.team-card[data-member='3'] .collapse-btn:hover {
  background: #d97706;
  color: #fff;
}

.team-card[data-member='4'] .collapse-btn {
  border: 2px solid #7cb342;
  color: #7cb342;
}
.team-card[data-member='4'] .collapse-btn:hover {
  background: #7cb342;
  color: #fff;
}

/* Responsive styles */
@media (max-width: 1100px) {
  .team-grid {
    flex-direction: column;
    height: auto;
    gap: 14px;
  }

  .team-card {
    height: 200px;
    flex: none;
  }

  .team-card.expanded {
    height: auto;
    min-height: 220px;
    flex: none;
  }

  .team-card.collapsed {
    height: 160px;
    flex: none;
  }

  .team-card.expanded .card-image {
    width: 38%;
  }

  .card-details {
    width: 62%;
  }
}

@media (max-width: 640px) {
  .team-header h1 {
    font-size: 2rem;
  }

  .team-card {
    height: 180px;
  }

  .team-card.expanded {
    flex-direction: column;
    height: auto;
  }

  .team-card.expanded .card-image {
    width: 100%;
    height: 200px;
  }

  .card-details {
    position: relative;
    width: 100%;
    transform: translateY(12px);
  }

  .team-card.expanded .card-details {
    transform: translateY(0);
  }

  .member-name {
    font-size: 1.1rem;
  }
}

/* Mission section */
.mission-section {
  background: linear-gradient(135deg, #fef9f0 0%, #e8f5e9 100%);
  padding: 60px 20px;
  margin-top: 40px;
  border-radius: 20px;
}

.mission-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #4a7c23;
  border-radius: 50%;
  margin-bottom: 20px;
}

.mission-icon span {
  color: #fff;
}

.mission-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.mission-statement {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  max-width: 720px;
  margin: 0 auto 30px;
}

.mission-values {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.value-number {
  font-weight: 700;
  color: #4a7c23;
}

.value-text {
  font-size: 0.85rem;
  color: #555;
}

/* Challenges section */
.challenges-section {
  padding: 60px 20px;
  background: #fff;
}

.challenges-container {
  max-width: 1200px;
  margin: 0 auto;
}

.challenges-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.challenge-card {
  background: #fef9f0;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s ease;
}

.challenge-card:hover {
  border-color: #4a7c23;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(74, 124, 35, 0.15);
}

.challenge-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(74, 124, 35, 0.15);
  margin-bottom: 8px;
}

.challenge-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.challenge-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

/* Roadmap section */
.roadmap-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.roadmap-subtitle {
  font-size: 0.95rem;
  color: #7cb342;
  text-align: center;
  margin-bottom: 40px;
}

.roadmap-timeline {
  position: relative;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #4a7c23 0%, #7cb342 100%);
}

.roadmap-phase {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.phase-marker {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-dot {
  width: 12px;
  height: 12px;
  background: #555;
  border-radius: 50%;
  border: 2px solid #777;
}

.roadmap-phase.active .phase-dot {
  background: #7cb342;
  border-color: #7cb342;
  box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.3);
}

.roadmap-phase.active .phase-content {
  opacity: 1;
}

.phase-content {
  padding-bottom: 16px;
  opacity: 0.7;
}

.phase-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #4a7c23;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 6px;
}

.phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.phase-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #aaa;
}

.phase-status {
  color: #7cb342;
  font-weight: 600;
}

/* University section */
.university-section {
  padding: 60px 20px;
  background: #e8f5e9;
}

.university-container {
  max-width: 900px;
  margin: 0 auto;
}

.university-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #4a7c23;
  border-radius: 6px;
  margin-bottom: 20px;
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.university-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 28px;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.university-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7cb342;
}

.item-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.university-signature {
  text-align: center;
  padding-top: 16px;
  border-top: 2px solid rgba(74, 124, 35, 0.2);
}

.signature-text {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
  font-style: italic;
}

.signature-course {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4a7c23;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mission-title,
  .challenges-title,
  .roadmap-title,
  .university-title {
    font-size: 1.4rem;
  }

  .mission-section,
  .challenges-section,
  .roadmap-section,
  .university-section {
    padding: 40px 16px;
  }

  .mission-values {
    flex-direction: column;
    align-items: center;
  }

  .roadmap-timeline::before {
    left: 9px;
  }

  .phase-dot {
    width: 10px;
    height: 10px;
  }
}
