:root {
  --ink: #1F2933;
  --cream: #FFFBF0;
  --navy: #111827;
  --yellow: #F4C10F;
  --yellow-soft: #FCE9A8;
  --red: #B3282D;
  --red-hover: #8F1F23;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'PT Serif', serif;
}

/* ===== NAVBAR (same as site) ===== */
.navbar{
  display:flex;
  align-items:center;
  justify-content:center;
  background-color:var(--navy);
  color:white;
  min-height:85px;
  width:100%;
  gap:clamp(24px, 8vw, 300px);
  border-bottom:1px solid var(--yellow);
  flex-wrap:wrap;
  padding:10px 20px;
}

.mini-nav{
  width: 620px;
  display:flex;
  align-items:center;
  font-family:'Roboto Slab', serif;
  font-size:18px;
  font-weight:600;
  letter-spacing:0.02em;
}

.comp{
  padding:0 22px;
  height:60px;
  display:flex;
  align-items:center;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
  border: 1px solid white;
}

.comp:hover,
.comp.active{
  background-color:var(--yellow);
  color:var(--navy);
}

.logo-slot{
  border: 1px solid var(--yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  width:260px;
  height:60px;
}

.logo-slot img{
  height:60px;
  width:130px;
  object-fit:contain;
}

/* ===== HEADER ===== */
.teachers-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--red);
  background: var(--yellow-soft);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.teachers-header h1 {
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  color: var(--navy);
  margin-bottom: 18px;
}

.teachers-intro {
  font-family: 'PT Serif', serif;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

/* ===== TEACHERS GRID ===== */
.teachers-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 90px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.teacher-card {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: 20px 0 20px 0;
  overflow: hidden;
  cursor: pointer;
}

.teacher-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.teacher-card:hover img {
  transform: scale(1.06);
}

.teacher-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.15) 70%, transparent 100%);
}

.teacher-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.teacher-role {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--yellow-soft);
}

/* ===== TEACHER DETAIL MODAL ===== */
.teacher-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.teacher-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  max-width: 640px;
  width: 92%;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 24px 0 24px 0;
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.teacher-modal.open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--yellow);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-media {
  /* height: 100px; */
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-content {
  padding: 32px 36px 40px;
}

.modal-content h2 {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-role {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 18px;
}

.modal-bio {
  font-family: 'PT Serif', serif;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .navbar { gap: 20px; }
  .mini-nav { width: auto; flex-wrap: wrap; }
  .teachers-grid { grid-template-columns: 1fr; }
  .teachers-header h1 { font-size: 34px; }
  .modal-content { padding: 24px 22px 32px; }
}