/* =========================================================
   faculty.css
   Page-specific styles for the Faculty & Leadership page
   ========================================================= */

/* ── PAGE BACKGROUND ── */
body {
  background-color: var(--bg-page);
  overflow-x: clip;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes underlineSlide {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   HERO ENTRANCE — staggered fade-up on page load
   ========================================================= */
.hero-eyebrow,
.hero-left h1,
.hero-left p,
.hero-pills,
.hero-right {
  opacity: 0;
  animation: fadeUp 0.65s ease both;
}
.hero-eyebrow  { animation-delay: 0.05s; }
.hero-left h1  { animation-delay: 0.18s; }
.hero-left p   { animation-delay: 0.30s; }
.hero-pills    { animation-delay: 0.42s; }
.hero-right    { animation-delay: 0.22s; }

/* ---------- HERO SECTION ---------- */
.hero-faculty {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px 0 70px;
    flex-wrap: wrap;
}
.hero-left  { flex: 1; min-width: 300px; }
.hero-eyebrow {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.hero-left h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 18px;
}
.hero-left p {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 14px;
    margin-right: 10px;
    color: var(--text-dark);
    border: 1px solid #eaeaf2;
}
.pill .ico { color: var(--accent-gold); }

.hero-right { flex: 1; min-width: 300px; }
.hero-img {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 31, 63, 0.08);
}
.hero-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-img:hover img { transform: scale(1.03); }

/* =========================================================
   SCROLL REVEAL — cards fade up as they enter viewport
   JS adds .is-visible
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CARD HOVER — lift + image zoom
   ========================================================= */
.leader-card,
.teacher-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: default;
}
.leader-card:hover,
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 31, 63, 0.12);
}
.leader-card img,
.teacher-card img {
  transition: transform 0.45s ease;
}
.leader-card:hover img,
.teacher-card:hover img {
  transform: scale(1.05);
}

/* gold underline slide-in on teacher name hover */
.teacher-info h3,
.leader-info h3 {
  position: relative;
  display: inline-block;
}
.teacher-info h3::after,
.leader-info h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.teacher-card:hover .teacher-info h3::after,
.leader-card:hover .leader-info h3::after {
  transform: scaleX(1);
}

/* =========================================================
   IMAGE SKELETON SHIMMER
   Removed by JS once image loads
   ========================================================= */
.img-skeleton {
  background: linear-gradient(90deg, #e4e4ec 25%, #f0f0f6 50%, #e4e4ec 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* =========================================================
   SECTION TITLE (With Underline)
   ========================================================= */
.section-title-underline {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}
.section-title-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 14px auto 0;
}

/* =========================================================
   LEADERSHIP
   ========================================================= */
.leadership { padding: 30px 0 70px; }
.leader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.leader-card {
    background: #e9e9ec;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}
.leader-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.leader-info { padding: 18px 18px 24px; }
.leader-info h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 8px; }
.leader-role {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.leader-edu { color: var(--text-muted); font-size: 14px; font-style: italic; }

/* =========================================================
   TEACHERS SECTION
   ========================================================= */
.teachers-section {
    background: var(--bg-page);
    padding: 60px 0 70px;
    border-top: 1px solid #eaeaf2;
}
.teachers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}
.teachers-header .section-title { margin-bottom: 0; }

/* ── FILTER TABS ── */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0;
    background: none;
    border: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button {
    border: 2px solid #d0d0e0;
    background: var(--white);
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-body);
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-tabs button:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.filter-tabs button.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* ── CATEGORY BLOCK FADE ── */
.category-block {
    display: none;
    margin-bottom: 48px;
    /* when shown, fade in */
}
.category-block.active {
    display: block;
    animation: fadeIn 0.35s ease both;
}
.category-block:last-child { margin-bottom: 0; }

.category-title {
    font-size: 22px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaf2;
}

/* ── TEACHER GRID ── */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.teacher-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #eaeaf2;
}
.teacher-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.teacher-info { padding: 14px 14px 18px; }
.teacher-info h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 6px; }
.teacher-role {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.teacher-edu { color: var(--text-muted); font-size: 13px; font-style: italic; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .leader-grid  { grid-template-columns: repeat(2, 1fr); }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-faculty { padding: 40px 0; flex-direction: column; }
    .hero-left h1 { font-size: 32px; }
    .hero-img img { height: 320px; }
    .hero-left, .hero-right { min-width: unset; width: 100%; }
}

@media (max-width: 560px) {
    .leader-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .leader-card,
    .teacher-card { padding: 0; }

    .leader-card img,
    .teacher-card img { height: 130px; }

    .leader-info,
    .teacher-info { padding: 10px 10px 14px; }

    .leader-info h3  { font-size: 15px; }
    .teacher-info h3 { font-size: 14px; }

    .leader-role,
    .teacher-role { font-size: 10px; margin-bottom: 6px; }

    .leader-edu,
    .teacher-edu { font-size: 11.5px; }

    .teachers-header { flex-direction: column; align-items: flex-start; gap: 16px; }

    .filter-tabs { width: 100%; gap: 8px; }
    .filter-tabs button { font-size: 13px; padding: 9px 18px; }

    .pill { margin-right: 0; width: 100%; box-sizing: border-box; }
    .hero-left, .hero-right { min-width: unset; width: 100%; }

    section.container,
    .hero.container,
    .leadership.container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 400px) {
    .filter-tabs { gap: 6px; }
    .filter-tabs button { font-size: 12px; padding: 8px 14px; }

    .leader-grid,
    .teacher-grid { gap: 10px; }

    .leader-card img,
    .teacher-card img { height: 110px; }
}