/* ===== FACULTIES PAGE ===== */

/* ── Intro ── */
.faculties-intro {
  padding: 70px 0 40px;
}

.faculties-intro-text {
  max-width: 100%;
  margin-top: 28px;
}

.faculties-intro .headingsec {
  text-align: center;
}

.faculties-intro-text p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
  text-align: justify;
}

.faculties-intro-text p:last-child {
  margin-bottom: 0;
}

/* ── Main Section ── */
.faculties-main {
  padding: 60px 0 80px;
  background: #f4f7fb;
}

/* ── Tabs ── */
.faculty-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 40px;
  margin-top: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.faculty-tabs::-webkit-scrollbar {
  display: none;
}

.faculty-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.faculty-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #053d7a;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.faculty-tab:hover {
  color: #053d7a;
}

.faculty-tab.active {
  color: #053d7a;
  font-weight: 600;
}

.faculty-tab.active::after {
  transform: scaleX(1);
}

/* ── Panels ── */
.faculty-panel {
  display: none;
}

.faculty-panel.active {
  display: block;
}

/* ── Faculty Grid ── */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

/* ── Faculty Card ── */
.faculty-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease;
}

.faculty-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faculty-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-photo img {
  transform: scale(1.04);
}

.faculty-info {
  padding: 16px;
}

.faculty-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #051e30;
  margin-bottom: 4px;
}

.faculty-role {
  font-size: 13px;
  font-weight: 600;
  color: #053d7a;
  margin-bottom: 2px;
}

.faculty-college {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.faculty-bio {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .faculties-intro {
    padding: 50px 0 30px;
  }

  .faculty-tabs {
    gap: 0;
  }

  .faculty-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .faculty-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .headingsec {
    text-align: center;
  }
}
