/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Manrope', sans-serif;
  background: #111;
  color: #eee;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}

/* Team Section Container */
.team-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Top and Bottom Rows */
.top-row,
.bottom-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

/* Each Member */
.team-member {
  max-width: 180px;
}

/* Photo Styling */
.photo-wrapper {
  width: 180px;
  height: 220px;
  overflow: hidden;
  border-radius: 8px; /* square corners but slightly rounded */
  background: #222;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name & Role */
.name {
  font-size: 1rem;
  margin-top: 12px;
  font-weight: 600;
  color: #fff;
}

.role {
  font-size: 0.9rem;
  color: #ccc;
}

/* Middle Heading */
.middle-heading {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 30px;
}

/* Footer */
.team-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  padding-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-row,
  .bottom-row {
    gap: 20px;
  }

  .team-member {
    max-width: 140px;
  }

  .photo-wrapper {
    width: 140px;
    height: 180px;
  }

  .name {
    font-size: 0.9rem;
  }

  .role {
    font-size: 0.8rem;
  }
}
