/* ============================================
   faculty.css — EduCoach Faculty Page
   ============================================ */

/* ---------- HERO — centered, no right card ---------- */
.fac-hero {
    background: #f5f0e8;
    padding: 5.5rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.fac-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#0a162810 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.fac-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}
.fac-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2d9cc;
    color: #666;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 1.75rem;
}
.fac-hero-badge span { color: #e8651a; }

.fac-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #0a1628;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -.035em;
}
.fac-hero-title em {
    font-style: italic;
    color: #e8651a;
}
.fac-hero-sub {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats card strip */
.fac-hero-stats {
    display: flex;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 18px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(10,22,40,.07);
    overflow: hidden;
}
.fac-hero-stat {
    flex: 1;
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #f1ece4;
}
.fac-hero-stat:last-child { border-right: none; }
.fac-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1;
    margin-bottom: .3rem;
}
.fac-hero-stat strong em {
    font-style: normal;
    color: #e8651a;
}
.fac-hero-stat span {
    font-size: .68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

/* ---------- FILTER BAR ---------- */
.fac-filter {
    background: #fff;
    border-bottom: 1px solid #e8e0d5;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(10,22,40,.06);
}
.fac-filter-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.fac-filter-label {
    font-size: .72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space: nowrap;
}
.fac-filter-tabs {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    flex: 1;
}
.fac-tab {
    background: #f1f5f9;
    border: 1.5px solid transparent;
    color: #475569;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
    white-space: nowrap;
}
.fac-tab:hover { border-color: #e8651a; color: #e8651a; background: #fff7f0; }
.fac-tab.active {
    background: #e8651a;
    border-color: #e8651a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232,101,26,.25);
}
.fac-search { position: relative; margin-left: auto; }
.fac-search input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px 8px 36px;
    font-size: .83rem;
    font-family: inherit;
    outline: none;
    width: 200px;
    color: #1e293b;
    transition: border-color .18s, box-shadow .18s;
}
.fac-search input:focus {
    border-color: #e8651a;
    box-shadow: 0 0 0 3px rgba(232,101,26,.1);
    background: #fff;
}
.fac-search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

/* ---------- MAIN GRID ---------- */
.fac-main {
    background: #f8fafc;
    padding: 4rem 2rem 5rem;
    min-height: 50vh;
}
.fac-main-inner { max-width: 1100px; margin: 0 auto; }

.fac-main-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.fac-result-count {
    font-size: .8rem;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.fac-result-count strong { color: #0a1628; }

/* 3-col grid */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Card */
.fac-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8e0d5;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: facCardIn .4s ease both;
    display: flex;
    flex-direction: column;
}
.fac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(10,22,40,.13);
}
@keyframes facCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fac-grid .fac-card:nth-child(1) { animation-delay: .04s; }
.fac-grid .fac-card:nth-child(2) { animation-delay: .08s; }
.fac-grid .fac-card:nth-child(3) { animation-delay: .12s; }
.fac-grid .fac-card:nth-child(4) { animation-delay: .16s; }
.fac-grid .fac-card:nth-child(5) { animation-delay: .20s; }
.fac-grid .fac-card:nth-child(6) { animation-delay: .24s; }

/* Photo — fixed height, object-fit cover */
.fac-card-photo {
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #0a1628, #1a3a6b);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fac-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s ease;
}
.fac-card:hover .fac-card-photo img { transform: scale(1.05); }

.fac-card-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 3px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255,255,255,.75);
}

.fac-card-subj-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(10,22,40,.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fac-card-exp-tag {
    position: absolute;
    bottom: 12px; right: 12px;
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
}

/* Card body */
.fac-card-body {
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fac-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: .2rem;
    line-height: 1.3;
}
.fac-card-subject {
    font-size: .7rem;
    font-weight: 700;
    color: #e8651a;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .35rem;
}
.fac-card-desig {
    font-size: .78rem;
    color: #94a3b8;
    margin-bottom: .85rem;
}

/* Info pills */
.fac-card-pills {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}
.fac-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: .68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Push stats to bottom */
.fac-card-spacer { flex: 1; }

.fac-card-line {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 1rem;
}

/* Stats */
.fac-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.fac-card-stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1;
    margin-bottom: 3px;
}
.fac-card-stat strong.orange { color: #e8651a; }
.fac-card-stat span {
    font-size: .58rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

/* Empty */
.fac-empty {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}
.fac-empty.show { display: block; }
.fac-empty-icon { font-size: 3rem; display: block; margin-bottom: .75rem; }

/* ---------- CTA ---------- */
.fac-cta {
    background: #0a1628;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.fac-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(232,101,26,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(13,148,136,.08) 0%, transparent 45%);
    pointer-events: none;
}
.fac-cta-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.fac-cta-eyebrow {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: #e8651a; display: block; margin-bottom: .75rem;
}
.fac-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900; color: #fff;
    line-height: 1.2; margin-bottom: .9rem; letter-spacing: -.02em;
}
.fac-cta-title em { font-style: italic; color: #e8651a; }
.fac-cta-sub { font-size: 1rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 2rem; }
.fac-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.fac-btn-orange {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #e8651a; color: #fff; padding: .9rem 2rem; border-radius: 10px;
    font-size: .92rem; font-weight: 700; text-decoration: none;
    transition: background .18s, transform .18s;
    box-shadow: 0 6px 20px rgba(232,101,26,.35);
}
.fac-btn-orange:hover { background: #c0501a; transform: translateY(-2px); color: #fff; }
.fac-btn-white {
    display: inline-flex; align-items: center; gap: .45rem;
    background: transparent; border: 2px solid rgba(255,255,255,.25);
    color: #fff; padding: .9rem 2rem; border-radius: 10px;
    font-size: .92rem; font-weight: 700; text-decoration: none;
    transition: border-color .18s, background .18s;
}
.fac-btn-white:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) { .fac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .fac-search input { width: 160px; } }
@media (max-width: 560px) {
    .fac-grid { grid-template-columns: 1fr; }
    .fac-tab { padding: 5px 12px; font-size: .76rem; }
    .fac-search { width: 100%; }
    .fac-search input { width: 100%; }
    .fac-hero-stats { flex-wrap: wrap; }
    .fac-hero-stat { min-width: 30%; border-bottom: 1px solid #f1ece4; }
}