/* =========================================================
   FACULTY PAGE
   ========================================================= */

.faculty-page {
    --faculty-burgundy: #9d2235;
    --faculty-burgundy-dark: #641320;
    --faculty-text: #202020;
    --faculty-muted: #666;
    --faculty-border: #dedede;
    --faculty-surface: #fff;
    --faculty-surface-muted: #f5f5f5;
}

.faculty-page *,
.faculty-page *::before,
.faculty-page *::after {
    box-sizing: border-box;
}

.faculty-page img {
    max-width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.faculty-page .faculty-hero {
    position: relative;
    min-height: 500px;
    padding: 135px 0 80px;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.faculty-page .faculty-hero::before {
    position: absolute;
    inset: 0;
    background: rgba(22, 14, 17, 0.58);
    content: "";
}

.faculty-page .faculty-hero .container {
    position: relative;
    z-index: 1;
}

.faculty-page .faculty-hero .breadcrumb-wrap,
.faculty-page .faculty-hero .breadcrumb-title {
    width: 100%;
    text-align: center !important;
}

.faculty-page .faculty-hero .breadcrumb-title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.15;
    text-align: center !important;
}

.faculty-page .faculty-hero-subtitle {
    max-width: 760px;
    margin: 20px auto 0 !important;
    font-size: 18px;
    line-height: 1.65;
    text-align: center !important;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.faculty-page .faculty-list-section {
    padding: 105px 0 95px;
    background: var(--faculty-surface-muted);
}

.faculty-page .faculty-section-heading {
    max-width: 980px;
    margin-bottom: 48px;
}

.faculty-page .faculty-section-heading h5 {
    margin: 0 0 12px;
    color: var(--faculty-burgundy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.faculty-page .faculty-section-heading h2 {
    margin: 0;
    color: var(--faculty-text);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.faculty-page .faculty-section-heading h2 span {
    color: var(--faculty-burgundy);
}

.faculty-page .faculty-section-subtitle {
    margin: 17px 0 0;
    color: var(--faculty-burgundy-dark);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.55;
}

.faculty-page .faculty-section-description {
    max-width: 930px;
    margin: 14px 0 0;
    color: var(--faculty-muted);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   FACULTY GRID AND CARDS
   ========================================================= */

.faculty-page .team-conter-bg {
    align-items: stretch;
}

.faculty-page .team-conter-bg > [class*="col-"] {
    display: flex;
}

.faculty-page .single-team {
    display: flex;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    background: var(--faculty-surface);
    border: 1px solid var(--faculty-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.faculty-page .single-team:hover {
    transform: translateY(-4px);
    border-color: #d9aab2;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.09);
}

.faculty-page .team-thumb {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--faculty-surface);
}

.faculty-page .team-thumb .brd {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    overflow: hidden;
    background: #ececec;
}

.faculty-page .team-thumb .brd img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
}

.faculty-page .team-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 260px;
    padding: 22px 22px 24px !important;
    background: var(--faculty-surface);
}

.faculty-page .team-info h3 {
    margin: 0 0 10px;
    color: var(--faculty-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.faculty-page .team-info > p {
    min-height: 48px;
    margin: 0 0 13px;
    color: var(--faculty-muted);
    font-size: 13px;
    line-height: 1.55;
}

.faculty-page .team-info h4 {
    margin: 0 0 20px;
    color: var(--faculty-burgundy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.faculty-page .team-info h4 a {
    color: var(--faculty-burgundy);
}

.faculty-page .faculty-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--faculty-burgundy);
    font-size: 13px;
    line-height: 1.4;
}

.faculty-page .faculty-profile-link:hover {
    color: var(--faculty-burgundy-dark);
}

.faculty-page .faculty-profile-link i {
    transition: transform 0.25s ease;
}

.faculty-page .faculty-profile-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER SPACING
   ========================================================= */

.faculty-page #site-footer {
    position: relative;
    clear: both;
}

.faculty-page #site-footer .footer-three,
.faculty-page footer.footer-three {
    margin-top: 0 !important;
    padding-top: 110px !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
    .faculty-page .faculty-list-section {
        padding: 90px 0 80px;
    }

    .faculty-page .team-info {
        min-height: 275px;
        padding: 20px !important;
    }

    .faculty-page .team-info h3 {
        font-size: 19px;
    }
}

@media (max-width: 991px) {
    .faculty-page .faculty-hero {
        min-height: 430px;
        padding: 120px 0 70px;
    }

    .faculty-page .faculty-list-section {
        padding: 80px 0 70px;
    }

    .faculty-page .faculty-section-heading {
        margin-bottom: 38px;
    }

    .faculty-page .team-info {
        min-height: 250px;
    }

    .faculty-page #site-footer .footer-three,
    .faculty-page footer.footer-three {
        padding-top: 90px !important;
    }
}

@media (max-width: 767px) {
    .faculty-page .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .faculty-page .faculty-hero {
        min-height: 360px;
        padding: 105px 0 55px;
    }

    .faculty-page .faculty-hero .breadcrumb-title h2 {
        font-size: 38px;
    }

    .faculty-page .faculty-hero-subtitle {
        max-width: 100%;
        margin-top: 15px !important;
        font-size: 15px;
        line-height: 1.6;
    }

    .faculty-page .faculty-list-section {
        padding: 60px 0 55px;
    }

    .faculty-page .faculty-section-heading {
        margin-bottom: 30px;
    }

    .faculty-page .faculty-section-heading h2 {
        font-size: 31px;
    }

    .faculty-page .faculty-section-subtitle {
        font-size: 17px;
    }

    .faculty-page .faculty-section-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .faculty-page .team-thumb .brd {
        aspect-ratio: 4 / 3;
    }

    .faculty-page .team-info {
        min-height: 0;
        padding: 20px !important;
    }

    .faculty-page .team-info > p {
        min-height: 0;
    }

    .faculty-page #site-footer .footer-three,
    .faculty-page footer.footer-three {
        padding-top: 70px !important;
    }
}

@media (max-width: 575px) {
    .faculty-page .faculty-hero .breadcrumb-title h2 {
        font-size: 34px;
    }

    .faculty-page .faculty-section-heading h2 {
        font-size: 28px;
    }

    .faculty-page .team-thumb .brd {
        aspect-ratio: 1 / 1;
    }
}

/* =========================================================
   FACULTY PAGE — EQUAL CARD HEIGHT & COMPACT PROFILE LINK
   ========================================================= */

/* Cancel theme offsets that move selected cards up or down */
.faculty-page .team-conter-bg {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch !important;
}

.faculty-page .team-conter-bg > [class*="col-"] {
    display: flex !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: auto !important;
    transform: none !important;
}

.faculty-page .team-conter-bg > [class*="col-"] .single-team {
    display: flex !important;
    flex: 1 1 auto;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: auto !important;
    transform: none;
}

/* Use identical image and content rows for every card */
.faculty-page .team-conter-bg .team-thumb {
    display: grid !important;
    grid-template-rows: auto 1fr;
    width: 100%;
    height: 100% !important;
}

.faculty-page .team-conter-bg .team-thumb .brd {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.faculty-page .team-conter-bg .team-thumb .brd img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Equal information panel height on desktop */
.faculty-page .team-conter-bg .team-info {
    display: flex !important;
    flex-direction: column;
    min-height: 250px !important;
    height: 100%;
    padding: 22px 22px 20px !important;
}

/* Keep text blocks compact */
.faculty-page .team-conter-bg .team-info h3 {
    margin-bottom: 9px;
}

.faculty-page .team-conter-bg .team-info > p {
    min-height: 42px;
    margin-bottom: 12px;
}

.faculty-page .team-conter-bg .team-info h4 {
    margin: 0 0 14px !important;
}

/* Reduce the large empty gap before View Profile */
.faculty-page .team-conter-bg .faculty-profile-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 0 !important;
    padding-top: 0;
    color: var(--faculty-burgundy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.faculty-page .team-conter-bg .faculty-profile-link b {
    font-size: inherit;
    font-weight: inherit;
}

.faculty-page .team-conter-bg .faculty-profile-link i {
    font-size: 13px;
}


/* Tablet */
@media (max-width: 1199px) {
    .faculty-page .team-conter-bg .team-info {
        min-height: 255px !important;
        padding: 20px !important;
    }
}


/* Mobile */
@media (max-width: 767px) {
    .faculty-page .team-conter-bg .team-thumb .brd {
        aspect-ratio: 4 / 3 !important;
    }

    .faculty-page .team-conter-bg .team-info {
        min-height: 0 !important;
        height: auto;
    }

    .faculty-page .team-conter-bg .team-info > p {
        min-height: 0;
    }

    .faculty-page .team-conter-bg .faculty-profile-link {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .faculty-page .team-conter-bg .team-thumb .brd {
        aspect-ratio: 1 / 1 !important;
    }
}

/* =========================================================
   FACULTY PAGE — ROW GAP & COMPACT CARD CONTENT
   ========================================================= */

/* Add visible vertical space between faculty-card rows */
.faculty-page .team-conter-bg {
    row-gap: 28px !important;
}

.faculty-page .team-conter-bg > [class*="col-"] {
    margin-bottom: 0 !important;
}


/* Reduce unnecessary empty space inside the card */
.faculty-page .team-conter-bg .team-info {
    min-height: 195px !important;
    padding: 20px 22px 16px !important;
}


/* Keep the faculty area close to the View Profile link */
.faculty-page .team-conter-bg .team-info h4 {
    margin: 0 0 9px !important;
}

.faculty-page .team-conter-bg .faculty-profile-link {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 700;
}


/* Replace the missing Font Awesome square with a reliable arrow */
.faculty-page .team-conter-bg .faculty-profile-link i {
    display: none !important;
}

.faculty-page .team-conter-bg .faculty-profile-link b::after {
    display: inline-block;
    margin-left: 6px;
    content: "→";
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faculty-page .team-conter-bg .faculty-profile-link:hover b::after {
    transform: translateX(4px);
}


/* Tablet */
@media (max-width: 991px) {
    .faculty-page .team-conter-bg {
        row-gap: 24px !important;
    }

    .faculty-page .team-conter-bg .team-info {
        min-height: 190px !important;
        padding: 19px 20px 15px !important;
    }
}


/* Mobile */
@media (max-width: 767px) {
    .faculty-page .team-conter-bg {
        row-gap: 20px !important;
    }

    .faculty-page .team-conter-bg .team-info {
        min-height: 0 !important;
        padding: 18px 18px 15px !important;
    }

    .faculty-page .team-conter-bg .faculty-profile-link {
        margin-top: 6px !important;
    }
}
