body {
  font-family: 'Raleway', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
/* Banner / Hero Section */
header.home-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(158, 76, 76, 0.877), rgba(216, 41, 29, 0.61)), url('../images/chicago.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
header.home-banner::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 100%;
  height: 20%;
  background: url('wave-divider.svg') repeat-x;
  background-size: contain;
  transform: rotate(180deg);
}
header.home-banner h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}
header.home-banner p.lead {
  font-size: 1.5rem;
  animation: fadeInUp 1s ease-out;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* About Section */
.about-section {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}
.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.about-section h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: #8b0000;
  left: 25%;
  bottom: -10px;
}
.about-section p {
  max-width: 800px;
  margin: 1rem auto;
  line-height: 1.6;
}
/* Mission Section */
.mission-section {
  padding: 4rem 1rem;
  background: #f1f1f1;
}
.mission-section h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.mission-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.mission-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
}
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.mission-card h4 {
  color: #8b0000;
  margin-bottom: 1rem;
}
.mission-card p {
  font-size: 0.95rem;
}
/* Team Section */
.team-section {
  padding: 4rem 1rem;
  background: #fff;
}
.team-section h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.team-member {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.team-member .member-info {
  padding: 1rem;
  text-align: center;
}
.team-member .member-info h5 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}
.team-member .member-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}
/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #2e484e;
  color: #fff;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  header.home-banner h1 {
    font-size: 2.5rem;
  }
  header.home-banner p.lead {
    font-size: 1.2rem;
  }
  .mission-cards, .team-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Modal Popup Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 1rem; /* Added for spacing on smaller screens */
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px 30px;
  width: 400px;
  max-width: 90%;
  max-height: 90vh;  /* Allow modal to take up to 90% of viewport height */
  overflow-y: auto;  /* Enable vertical scroll for long texts */
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: popup 0.3s ease-out;
  position: relative;
  text-align: center;
}

@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.modal .close:hover {
  color: #444;
}

.modal-body h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #8b0000;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0;
  word-wrap: break-word; /* Ensures long words break properly */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 15px 20px;
  }
  .modal-body h2 {
    font-size: 1.5rem;
  }
  .modal-body p {
    font-size: 0.9rem;
  }
}
