.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin-bottom: 30px;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  height: 400px; 
}

.card:hover {
  width: 321px;
  height: 428px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Disable hover effect on smartphones and iPads */
@media only screen and (max-width: 768px) {
  .card:hover {
    width: 300px;
    height: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  }
}

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

.card-content {
  padding: 24px 20px;
  text-align: center;
}

.card-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.card-name a {
  text-decoration: none;
  color: inherit;
}

.card-name a:hover {
  color: #007bff;
}

.card-position {
  display: block;
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 12px;
  font-style: italic;
}

.card-name-display,
.card-age-display {
  margin: 6px 0;
  font-size: 1rem;
  color: #34495e;
}

.section-title-area h5,
.section-title-area h2 {
  text-decoration: none !important;
}

.team-members {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.team-link-button {
  text-align: center;
  margin-top: 15px;
}

.team-link-button a {
  display: inline-block;
  padding: 12px 28px;
  background-color: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-link-button a:hover {
  background-color: #218838;
}
