/* ===== FACULTY PAGE SPECIFIC STYLES ===== */

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #801612 0%, #b82c25 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-family: 'Merriweather', serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
}

/* INTRO */
.faculty-intro {
  padding: 50px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.faculty-intro .intro-text {
  font-size: 15.5px;
  line-height: 1.9;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* SECTION */
.faculty-leadership,
.faculty-staff {
  padding: 70px 0;
}

.alt-bg {
  background: var(--light-bg);
}

.title-underline {
  width: 70px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 40px;
  border-radius: 20px;
}

/* GRID */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

/* CARD */
.faculty-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(82, 11, 8, 0.14);
}

/* IMAGE WRAPPER */
.faculty-img-wrapper {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

/* IMAGE */
.faculty-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  border-radius: 12px;
  background: #fff;
}

/* Hover Zoom */
.faculty-card:hover .faculty-img-wrapper img {
  transform: scale(1.03);
}

/* Leadership Images */
.leadership-card .faculty-img-wrapper img {
  object-position: top center;
}

/* CONTENT */
.faculty-info {
  padding: 22px;
  text-align: center;
  flex-grow: 1;
}

.faculty-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.faculty-info .role {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #f39c12;
  margin-bottom: 10px;
}

.faculty-info .qualification {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-img-wrapper {
    height: 300px;
  }
}

@media (max-width: 768px) {

  .page-header h1 {
    font-size: 32px;
  }

  .leadership-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .faculty-img-wrapper {
    height: 320px;
  }

  .leadership-card .faculty-img-wrapper {
    height: 360px;
  }
}

@media (max-width: 500px) {

  .page-header h1 {
    font-size: 26px;
  }

  .faculty-intro .intro-text {
    font-size: 14px;
  }

  .faculty-img-wrapper {
    height: 280px;
  }

  .leadership-card .faculty-img-wrapper {
    height: 320px;
  }

  .faculty-info h3 {
    font-size: 20px;
  }
}

/* ===== FACULTY HOVER OVERLAY ===== */
.faculty-hover-overlay {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  right: 12px;
  border-radius: 12px;
  background: rgba(128, 22, 18, 0.95);
  /* Deep Blue --primary overlay */
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(15px);
  padding: 24px;
  text-align: center;
  z-index: 5;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.faculty-card:hover .faculty-hover-overlay,
.faculty-card.show-exp .faculty-hover-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.faculty-hover-overlay .exp-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.faculty-hover-overlay .exp-val {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  line-height: 1.4;
}

/* Close button for touchscreens */
.faculty-hover-overlay .close-overlay {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: none;
  /* hidden on desktop */
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.faculty-hover-overlay .close-overlay:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

@media (max-width: 1024px) {
  .faculty-hover-overlay .close-overlay {
    display: block;
  }
}

/* ===========================
   FACULTY COMING SOON
=========================== */

.faculty-empty {
  padding: 100px 20px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.empty-content {
  max-width: 650px;
  margin: auto;
  text-align: center;
}

.empty-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon i {
  font-size: 50px;
  color: #8B1538;
}

.empty-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.empty-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  padding: 12px 28px;
  background: #8B1538;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-home:hover {
  background: #6f102c;
  color: #fff;
}

@media(max-width:768px) {

  .faculty-empty {
    padding: 70px 20px;
  }

  .empty-content h2 {
    font-size: 28px;
  }

  .empty-content p {
    font-size: 16px;
  }
}