* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.about-header {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-extrabold);
    font-family: var(--font-display);
    color: white;
    background-color: #27548A;
    background: linear-gradient(135deg, #27548A 10%, #4A7BA7 100%);
    padding: 60px 0 30px 0;
    text-align: center;
}

.about-info {
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url('../images/about_us.jpg') center / cover no-repeat;

  min-height: 520px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.about-info h1 {
    align-content: center;
    text-align: center;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-display);
    color: white;
}

.about-info p {
    align-content: center;
    text-align: center;
    margin: 1rem;
    padding: 0 2rem;
    font-size: var(--font-size-large);
    font-family: var(--font-primary);
    line-height: var(--line-height-relaxed);
    color: white;
    max-width: 1250px;
}

.hours-info {
  text-align: center;
  padding: 2rem 1rem;
}

.hours-info h1 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-display);
  margin: 0 0 .5rem;
}

.hours-info p {
  font-size: var(--font-size-h4);
  font-family: var(--font-primary);
  line-height: var(--line-height-relaxed);
  max-width: 900px;
  margin: .25rem auto;
  padding: 0 1rem;
}

.hours-info .hours-subtext {
  color: #5c6b7a;
}

.meet-the-team-header {
  width: 100%;
  background-color: #27548A;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.team-subtitle {
  margin-top: 1rem;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-normal);
  opacity: 0.9;
  text-transform: none;
}

.team-cards-container {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 320px;
  max-width: 320px;
  position: relative;
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-image-container {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-image-container img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(39,84,138,0.9) 0%, rgba(74,123,167,0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .overlay-content {
  transform: translateY(0);
}

.click-hint {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.plus-icon {
  width: 60px;
  height: 60px;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.team-card:hover .plus-icon {
  transform: rotate(90deg);
  background: white;
  color: #27548A;
}

.card-content {
  padding: 2rem;
  text-align: center;
  background: white;
}

.team-member-name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-display);
  color: #27548A;
  margin-bottom: 0.5rem;
}

.team-member-title {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  color: #666;
  margin-bottom: 1.5rem;
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.specialty-tag {
  background: linear-gradient(135deg, #27548A, #4A7BA7);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background: white;
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.popup-overlay.active .popup-container {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.popup-close:hover {
  background: white;
  color: #27548A;
  transform: rotate(90deg);
}

.popup-content {
  display: none;
  padding: 3rem;
}

.popup-content.active {
  display: block;
}

.popup-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.popup-image {
  flex-shrink: 0;
  width: 200px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-info {
  flex: 1;
  padding-left: 1rem;
}

.popup-info h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-display);
  color: #27548A;
  margin-bottom: 0.5rem;
}

.popup-info h3 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  color: #666;
  margin-bottom: 1.5rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.credential-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-primary);
  color: #27548A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credential-value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  color: #333;
}

.popup-description h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-display);
  color: #27548A;
  margin-bottom: 1rem;
  border-bottom: 3px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.popup-description p {
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  line-height: var(--line-height-relaxed);
  color: #555;
  margin-bottom: 1.5rem;
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  background: linear-gradient(135deg, #27548A, #4A7BA7);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(39,84,138,0.3);
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,84,138,0.4);
}

@media (max-width: 768px) {
  .team-cards-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: center;
  }
  
  .team-card {
    max-width: 300px;
    width: 100%;
  }
  
  .card-image-container {
    height: 350px;
  }
  
  .popup-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .popup-content {
    padding: 2rem;
  }
  
  .popup-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .popup-image {
    width: 150px;
    height: 180px;
  }
  
  .popup-info {
    padding-left: 0;
  }
  
  .achievement-badges {
    justify-content: center;
  }
  
  .about-info {
    min-height: 400px;
    padding: 3rem 1rem;
  }
  
  .about-info h1 {
    font-size: var(--font-size-h3);
  }
  
  .about-info p {
    font-size: var(--font-size-base);
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .about-header {
    font-size: var(--font-size-h2);
  }
  
  .hours-info {
    padding: 1.5rem 0.5rem;
  }
  
  .hours-info h1 {
    font-size: var(--font-size-h3);
  }
  
  .hours-info p {
    font-size: var(--font-size-base);
  }
  
  .meet-the-team-header {
    font-size: var(--font-size-h2);
    padding: 1.5rem 0;
  }
  
  .team-subtitle {
    font-size: var(--font-size-base);
    padding: 0 1rem;
  }
  
  .team-card {
    max-width: 280px;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .team-member-name {
    font-size: var(--font-size-h4);
  }
  
  .popup-content {
    padding: 1.5rem;
  }
  
  .popup-info h2 {
    font-size: var(--font-size-h3);
  }
  
  .popup-description h4 {
    font-size: var(--font-size-h5);
  }
  
  .badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 1rem;
  }
}