.team-section {
  max-width: 1400px;
  margin: 6rem;
}
.team-header h1 {
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0;
}

.team-header i {
  margin-right: 12px;
  font-size: 20px;
}

.team-content {
  padding: 32px;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.member {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

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

.member-profile {
  flex: 0 0 300px;
}

.profile-card {
  border-radius: 16px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
  background: white;
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -3px rgba(0, 0, 0, 0.15);
}

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

.profile-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.member-name {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a33;
  margin: 0;
  text-align: center;
}

.member-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d4af67;
  color: #1e3a33;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.member.coline .member-role {
  background: #1e3a33;
  color: white;
}

.member-content {
  flex: 1;
}

.member-description {
  background: #f7f3e9;
  border-left: 4px solid #d4af67;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.3s ease;
}

.member-description:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-description p {
  color: #374151;
  margin-bottom: 16px;
}

.member-footer {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #1e3a33;
}

.member-footer i {
  margin-right: 8px;
  font-size: 16px;
}

.timeline-content {
  position: relative;
  padding-left: 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 4px;
  background: linear-gradient(to bottom, #d4af67, #e8e4d9);
  border-radius: 2px;
  z-index: 0;
  opacity: 0.95;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  margin: 0;
}

.timeline-circle {
  grid-column: 1;
  justify-self: center;
  align-self: start;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.timeline-circle.primary {
  background: #1e3a33;
  color: #fff;
}

.timeline-circle.secondary {
  background: #d4af67;
  color: #1e3a33;
}

.timeline-step-content {
  grid-column: 2;
  background: #ffffff;
  border: 1px solid #ececec;
  padding: 18px;
  border-radius: 10px;
  transition: box-shadow .25s ease, border-color .25s ease;
  text-align: justify;
}

.timeline-step-content:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
  border-color: #e8d9b2;
}

.timeline-step.highlight .timeline-step-content {
  border: 1px solid #d4af67;
  background: #fffaf3;
}

.timeline-badge {
  display: inline-block;
  border-color: #d4af67;
  border-style: solid;
  border-width: 1px;
  color: #d4af67;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-text {
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .team-section {
    margin: 4rem auto;
  }
  
  .member-profile {
    flex: 0 0 280px;
  }
  
  .member-photo {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .team-section {
    margin: 3rem auto;
    padding: 0 15px;
  }

  .team-header {
    padding: 16px 20px;
  }

  .team-header h1 {
    font-size: 20px;
  }

  .team-content {
    padding: 24px 16px;
  }

  .team-members {
    gap: 40px;
  }

  .member {
    flex-direction: column;
    gap: 24px;
  }

  .member:hover {
    transform: none;
  }

  .member-profile {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .member-description {
    padding: 20px;
  }

  .timeline-line {
    left: 16px;
  }

  .timeline-step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .timeline-circle {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .timeline-step-content {
    padding: 16px;
  }

  .timeline-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .team-section {
    margin: 2rem auto;
    padding: 0 10px;
  }

  .team-header h1 {
    font-size: 18px;
  }

  .team-content {
    padding: 20px 12px;
  }

  .team-members {
    gap: 32px;
  }

  .member-profile {
    max-width: 250px;
  }

  .member-photo {
    height: 250px;
  }

  .card-body {
    padding: 16px;
  }

  .member-name {
    font-size: 18px;
  }

  .member-role {
    font-size: 13px;
    padding: 6px 14px;
  }

  .member-description {
    padding: 16px;
    border-left-width: 3px;
  }

  .member-description p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .member-footer {
    font-size: 13px;
  }

  .timeline-line {
    left: 12px;
    width: 3px;
  }

  .timeline-steps {
    gap: 20px;
  }

  .timeline-step {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }

  .timeline-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .timeline-step-content {
    padding: 14px;
  }

  .timeline-badge {
    font-size: 12px;
    padding: 3px 8px;
  }

  .timeline-text {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .team-section {
    margin: 1.5rem auto;
  }

  .team-content {
    padding: 16px 10px;
  }

  .member-profile {
    max-width: 220px;
  }

  .member-photo {
    height: 220px;
  }

  .member-name {
    font-size: 17px;
  }

  .member-description {
    padding: 14px;
  }

  .timeline-step-content {
    padding: 12px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .team-section {
    margin: 2rem auto;
  }

  .member-photo {
    height: 200px;
  }
}