:root {
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --primary-blue: #1a237e;
  --deep-red: #b81818;
  --maroon: #b81818;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

body {
  background-color: white;
  color: #333;
}

main {
  margin: auto;
  max-width: 1100px;
}

section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 27px 20px;
}

.section-header {
  text-align: center;
  padding: 10px 0 40px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--maroon);
  display: inline-block;
  position: relative;
}

.main-page-title {
  color: var(--maroon);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--primary-blue);
  margin: 5px auto 0;
  border-radius: 2px;
}

.featured-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  border-left: 6px solid var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-left-color: var(--deep-red);
}

.featured-details {
  line-height: 1.5;
}

#redirect {
  color: var(--primary-blue);
  text-decoration: none;
}

.featured-details h1 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: bold;
}

.featured-details h3 {
  color: var(--deep-red);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.email-btn {
  text-decoration: none;
  background: #e8eaf6;
  color: var(--primary-blue);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: 0.3s;
}

.email-btn:hover {
  background: var(--primary-blue);
  color: white;
}

/* Committee Members Logic */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* 1. Container handles the Fade In / Entry */
.member-container {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(var(--delay) * 0.1s);
}

/* 2. Card handles the Hover ONLY */
.member-card-grid {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  border-bottom: 3px solid transparent;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-bottom 0.3s ease;
}

.member-card-grid:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--hover-shadow);
  border-bottom: 3px solid var(--deep-red);
}

.member-card-grid h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--deep-red);
  margin-bottom: 5px;
}

.member-card-grid h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.member-card-grid p {
  font-size: 0.9rem;
  color: #555;
}

/* Animations */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .featured-card {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 6px solid var(--primary-blue);
  }
}
