/* Learning Section */
.learning-section {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  gap: 5%;
}

.learning-image-container {
  width: 50%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
}

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

.learning-content {
  width: 100% !important;
}

.learning-title {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
  color: #03489f;
  line-height: 34px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.learning-description {
  font-size: 16px;
  line-height: 22.4px;
  color: #00243d;
  margin: 0;
}

/* Team Intro */
.team-intro {
  font-size: 24px;
  line-height: 30px;
  color: #03489f;
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-weight: 400;
  margin: 0 0 40px 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background-color: #e6f0f8;
  border-bottom: 2px solid #0066b0;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  text-decoration: none;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.team-card-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #00243d;
  margin-top: 10px;
}

.team-card-name h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #00243d;
  line-height: 1.3;
}

.team-card-name img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.team-card-info p {
  margin: 6px 0 0 0;
  font-size: 14px;
  color: #00243d;
  line-height: 1.4;
  opacity: 0.7;
}

/* Leadership Popup */
.leadership-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 28, 63, 0.5);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.leadership-popup-overlay.active {
  display: flex;
}

.leadership-popup {
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 850px;
  height: 491px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: popupFadeIn 0.25s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leadership-popup-body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* .popup-content {
  padding-right: 30px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
} */

.popup-content {
    padding-right: 30px !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    border-radius: 0 !important;
}

.popup-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.popup-close-btn {
  border-radius: 4px;
  border: none;
  background: var(--Blue-100, #E6F0F8);
  color: #03489F;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.popup-content::-webkit-scrollbar {
  width: 4px;
  height: 5px;
}

.popup-content::-webkit-scrollbar-track {
  background: #E6F0F8;
  width: 4px !important;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #03489F;
  border-radius: 10px;
  border: 4px solid transparent;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #90bfe0;
  border: 4px solid transparent;
  background-clip: padding-box;
}

.popup-name {
  margin: 0 0 4px;
  color: var(--Blue-300, #03489f);
  font-family: "Playfair Display";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
}

.popup-role {
  margin: 0 0 20px;
  color: var(--Blue-400, #00243d);
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.popup-bio p {
  margin: 0 0 14px;
  color: #324c5e;
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.popup-bio p:last-child {
  margin-bottom: 0;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .learning-section {
    flex-direction: row;
    gap: 5%;
  }

  .learning-image-container {
    width: 50%;
    height: 420px;
    border-radius: 20px;
  }

  .learning-content {
    width: 100%;
  }

  .learning-title {
    margin-top: 0;
    font-size: 24px;
    line-height: 34px;
    font-weight: 500;
  }

  .learning-description {
    font-size: 16px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .team-card-name h4 {
    font-size: 16px;
  }

  .team-card-info p {
    font-size: 13px;
  }
}

/* Mobile Styles */
@media (max-width: 820px) {
  .learning-section {
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
  }

  .learning-image-container {
    width: 100%;
    border-radius: 14px;
  }

  .learning-content {
    width: 100%;
  }

  .learning-title {
    /* margin-top: 24px; */
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 28px;
  }

  .learning-description {
    font-size: 14px;
  }

  .team-intro {
    font-size: 24px;
    line-height: 26px;
    margin-bottom: 30px;
    color: #03489f;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .team-card-info {
    padding: 12px 14px;
  }

  .team-card-name h4 {
    font-size: 15px;
  }

  .team-card-info p {
    font-size: 12px;
  }
}

@media screen and (max-width: 640px) {
  .learning-image-container {
    height: 236px;
  }

  .team-intro {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .team-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .team-card-name h4 {
    font-size: 14px;
  }

  .team-card-name img {
    width: 16px;
    height: 16px;
  }

  .team-card-info {
    padding: 10px 12px;
  }

  .team-card-info p {
    font-size: 11px;
  }

  .leadership-popup-overlay {
    padding: 16px;
  }

  .leadership-popup {
    height: 491px;
    max-height: 80vh;
    padding: 6px;
  }

  .leadership-popup-body {
    padding: 20px 18px 24px;
  }

  .popup-name {
    font-size: 16px;
  }

  .popup-bio p {
    font-size: 13px;
  }
}
