/* ═══════════════════════════════════════════════════
   pengajar.css — styles specific to pengajar.html
   Shared navbar/footer styles remain in style.css
═══════════════════════════════════════════════════ */

/* ── Staf Pendidik section ── */
.staf {
  background: #ffffff;
  padding: 56px 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.staf__heading {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
}

/* ── Search bar ── */
.staf__search-wrap {
  position: relative;  
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 520px;
}

.staf__search {
  width: 100%;
  padding: 11px 20px 11px 42px;
  border: 1.5px solid #d8dce8;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--navy);
  outline: none;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.staf__search::placeholder {
  color: #aab0c8;
}

.staf__search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}

.staf__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  flex-shrink: 0;
}

/* ── 3-column card grid ── */
.staf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

/* ── Card ── */
.staf__card {
  background: linear-gradient(to bottom right, var(--navy-dark) 0%, var(--orange) 100%);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 160px;
}

/* ── Photo ── */
.staf__card-photo {
  width: 110px;
  align-self: stretch;
  overflow: hidden;
  flex-shrink: 0;
}

.staf__card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Fallback when image missing */
.staf__card-photo img[src=""],
.staf__card-photo img:not([src]) {
  background: #2e3f7a;
}

/* ── Info ── */
.staf__card-info {
  padding: 16px 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staf__card-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.3;
}

.staf__card-email {
  font-family: var(--font-main);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}

.staf__card-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.staf__card-stats p {
  font-family: var(--font-main);
  font-size: 0.8rem;
  color: var(--white);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .staf {
    padding: 48px 32px 64px;
  }
  .staf__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .staf {
    padding: 40px 20px 56px;
  }
  .staf__heading {
    font-size: 1.6rem;
  }
  .staf__grid {
    grid-template-columns: 1fr;
  }
  .staf__card {
    grid-template-columns: 90px 1fr;
  }
  .staf__card-photo {
    width: 90px;
  }
}
/* ── Staf Tendik: extra subheading ── */
.staf__subheading {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #666;
  text-align: center;
  max-width: 560px;
  margin-top: -16px;
}

@media (max-width: 640px) {
  .staf__subheading {
    font-size: 0.85rem;
  }
}
