/* ============================================
   Teachers Page Styles
   ============================================ */

/* --- Principal Profile --- */
.principal-profile {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  margin-top: 2rem;
}

.principal-profile__image {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary, #2563EB);
}

.principal-profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-profile__body {
  flex: 1;
}

.principal-profile__role {
  display: inline-block;
  background: var(--color-accent, #F59E0B);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.principal-profile__name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-dark, #1B2A4A);
  margin-bottom: 1rem;
}

.principal-profile__name small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  margin-left: 0.5rem;
}

.principal-profile__career {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
  line-height: 1.8;
}

.principal-profile__message p {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text, #333);
  margin-bottom: 0.75rem;
}

/* --- Teacher Cards --- */
.teacher-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.teacher-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.teacher-card__image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2rem auto 0;
  border: 3px solid var(--color-primary-lightest, #eff6ff);
}

.teacher-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__body {
  padding: 1.5rem;
}

.teacher-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark, #1B2A4A);
  margin-bottom: 0.5rem;
}

.teacher-card__subject {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary, #2563EB);
  margin-bottom: 1rem;
}

.teacher-card__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text, #333);
  text-align: left;
}

/* --- Promise List --- */
.promise-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.promise-item:last-child {
  border-bottom: none;
}

.promise-item__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary, #2563EB);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50%;
}

.promise-item__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark, #1B2A4A);
  margin-bottom: 0.5rem;
}

.promise-item__body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text, #333);
}

/* --- Testimonial Cards --- */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  position: relative;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.testimonial-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark, #1B2A4A);
}

.testimonial-card__result {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary, #2563EB);
  margin-top: 0.25rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text, #333);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .principal-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .principal-profile__image {
    width: 180px;
    height: 180px;
  }

  .principal-profile__message p {
    text-align: left;
  }

  .teacher-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .promise-item {
    gap: 1rem;
  }

  .promise-item__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .principal-profile {
    padding: 1.5rem 1rem;
  }

  .principal-profile__image {
    width: 140px;
    height: 140px;
  }

  .principal-profile__name {
    font-size: 1.25rem;
  }

  .promise-item__body h3 {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}