/* =========================================================
   NGEYA COMPREHENSIVE SCHOOL — SITE-SPECIFIC FIXES
   This file is loaded only for the Ngeya multisite website.
   ========================================================= */


/* =========================================================
   1. QUICK STATISTICS
   ========================================================= */

.stats-grid {
  align-items: stretch;
}

.stats-grid .stat-card {
  min-height: 240px;
  overflow: hidden;
}

.stats-grid .stat-card h3 {
  max-width: 100%;
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.stats-grid .stat-card:nth-child(2) h3 {
  font-size: clamp(26px, 2.6vw, 38px) !important;
}

.stats-grid .stat-card:nth-child(4) h3 {
  font-size: clamp(20px, 1.8vw, 28px) !important;
  line-height: 1.15 !important;
}

.stats-grid .stat-card p,
.stats-grid .stat-card span {
  font-size: 15px;
}


/* =========================================================
   2. ABOUT PAGE — STAFF GROUP SECTION
   ========================================================= */

.ngeya-staff-group-section {
  margin-top: -12px;
}

.ngeya-staff-group-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
}

.ngeya-staff-group-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dbe4ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}


/* Staff photograph after an image URL is supplied */
.ngeya-staff-group-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}


/* Temporary display before the staff photograph is supplied */
.ngeya-staff-group-placeholder {
  min-height: 360px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid #ffffff;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(94, 234, 212, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at 82% 80%,
      rgba(14, 165, 233, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #0f766e,
      #0f172a
    );
  color: #ffffff;
  text-align: center;
}

.ngeya-staff-placeholder-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 34px;
}

.ngeya-staff-group-placeholder strong {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
}

.ngeya-staff-group-placeholder p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   3. MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 900px) {
  .ngeya-staff-group-image {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .stats-grid .stat-card {
    min-height: auto;
  }

  .ngeya-staff-group-section {
    margin-top: 0;
  }

  .ngeya-staff-group-placeholder {
    min-height: 280px;
    padding: 32px 18px;
  }

  .ngeya-staff-group-image {
    min-height: 240px;
  }

  .ngeya-staff-group-subtitle {
    font-size: 16px;
  }
}