.team-messages {
  padding: 12px 20px;
}

.team-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-alert--success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.team-alert__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}

/* =============================================
   KABPC Section
   ============================================= */
.kabpc-section {
  padding: 40px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.kabpc-section__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 32px;
}

.kabpc-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a3d1f;
  text-align: center;
  margin-bottom: 24px;
}

.kabpc-section__body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.kabpc-section__image-col {
  flex: 0 0 auto;
  width: 280px;
}

.kabpc-section__img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #d4edda, 0 0 20px rgba(0, 100, 0, 0.25);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #d4edda, 0 0 10px rgba(0, 100, 0, 0.2); }
  50%       { box-shadow: 0 0 0 4px #d4edda, 0 0 24px rgba(0, 100, 0, 0.45); }
}

.kabpc-section__text-col {
  flex: 1;
}

.kabpc-section__para {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: justify;
}

.kabpc-section__list {
  padding-left: 1.2rem;
  margin-bottom: 6px;
}

.kabpc-section__list li {
  font-size: 15px;
  color: #2e7d32;
  list-style-type: disc;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* =============================================
   Meet Our Team Section
   ============================================= */
.team-section {
  background-color: #165247;
  padding: 40px 20px 48px;
}

.team-section__header {
  max-width: 1200px;
  margin: 0 auto 36px;
  text-align: center;
}

.team-section__title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.team-section__desc {
  font-size: 15px;
  line-height: 1.8;
  color: #ffffff;
  text-align: justify;
}

/* --- Expert card grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 90%;
  margin: 0 auto;
}

/* --- Individual expert card --- */
.expert-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.expert-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border: 3px solid #d4edda;
}

.expert-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #1a3d1f;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.expert-card__desig {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* =============================================
   Expert Modal
   ============================================= */
.expert-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.expert-modal__box {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.expert-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: #333;
  z-index: 1;
}

.expert-modal__close:hover {
  background-color: #e0e0e0;
}

/* --- Modal top (photo + bio) --- */
.expert-modal__top {
  display: flex;
  gap: 28px;
  padding: 28px 28px 16px;
  align-items: flex-start;
  border-bottom: 1px solid #ececec;
}

.expert-modal__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #d4edda;
}

.expert-modal__bio {
  flex: 1;
}

.expert-modal__name {
  font-size: 18px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 4px;
}

.expert-modal__desig {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.expert-modal__qual {
  padding-left: 16px;
}

.expert-modal__qual h4 {
  font-size: 14px;
  color: #2e7d32;
  margin-bottom: 6px;
  padding-left: 0;
  list-style: none;
}

.expert-modal__qual li {
  font-size: 13px;
  list-style-type: disc;
  color: #444;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* --- Modal bottom (experience + summary) --- */
.expert-modal__bottom {
  padding: 20px 28px 24px;
}

.expert-modal__block {
  margin-bottom: 18px;
}

.expert-modal__block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
}

#exp-experience li {
  font-size: 13px;
  list-style: disc outside none;
  display: list-item;
  margin-left: 1.2em;
  margin-bottom: 4px;
  text-align: justify;
  line-height: 1.5;
  color: #333;
}

#exp-achievement {
  font-size: 13px;
  color: #333;
  text-align: justify;
  line-height: 1.6;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kabpc-section__body {
    flex-direction: column;
  }

  .kabpc-section__image-col {
    width: 100%;
  }

  .kabpc-section__img {
    max-width: 200px;
    margin: 0 auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 95%;
  }

  .expert-modal__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .expert-modal__qual {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .team-section__title {
    font-size: 20px;
  }

  .expert-modal__box {
    max-height: 95vh;
  }
}