/* ==========================================================
   IES Lab People page - OU theme
   ========================================================== */

:root {
    --ou-crimson: #841617;
    --ou-dark-crimson: #4e0002;
    --ou-black: #000000;
    --ou-dark-gray: #323232;
    --ou-light-gray: #f0f0f0;
    --ou-white: #ffffff;
    --ou-stone: #beb4a5;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

.people-hero .section-kicker {
    color: rgba(255, 255, 255, 0.78) !important;
}

.bg-light-soft {
    background: #f7f7f5;
}

.section-kicker {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ou-crimson);
    font-weight: 900;
    margin-bottom: 14px;
}

.lab-director-section {
    background: #ffffff;
    padding: 105px 0;
}

.director-image-wrap {
    position: relative;
}

.director-image-wrap:before {
    content: "";
    position: absolute;
    left: -18px;
    top: -18px;
    width: 92%;
    height: 92%;
    border: 3px solid rgba(132, 22, 23, 0.18);
    z-index: 0;
}

.director-profile-image {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 430px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    display: block;
}

.director-content {
    padding-left: 20px;
}

.director-name {
    font-size: clamp(2.4rem, 1vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
    color: #000000;
    letter-spacing: -0.04em;
}

.director-title {
    color: var(--ou-crimson);
    font-weight: 800;
    line-height: 1.75;
    margin-bottom: 26px;
    font-size: 1.05rem;
}

.lead-text {
    font-size: 1.08rem;
    color: #4f4f4f;
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-rich-text p {
    margin-bottom: 1rem;
}

.about-rich-text a {
    color: var(--ou-crimson);
    text-decoration: underline;
}

.director-research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.director-research-tags span {
    display: inline-block;
    padding: 7px 13px;
    background: rgba(132, 22, 23, 0.08);
    color: var(--ou-crimson);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-main {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--ou-crimson);
    color: var(--ou-crimson);
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}

.btn-outline-main:hover {
    background: var(--ou-crimson);
    color: var(--ou-white);
}

/* Team */
.team-section {
    position: relative;
    overflow: hidden;
}

.team-category-section,
.previous-members-section {
    margin-top: 4rem;
}

.team-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(20, 48, 82, 0.14);
}

.team-category-header h3 {
    margin: 0.3rem 0 0.4rem;
    color: #183153;
    font-size: 1.7rem;
    font-weight: 700;
}

.team-category-header p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
}

.team-category-kicker {
    display: inline-block;
    color: #3d27df;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-category-count {
    flex-shrink: 0;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(61, 39, 223, 0.16);
    border-radius: 999px;
    background: rgba(61, 39, 223, 0.06);
    color: #3d27df;
    font-size: 0.8rem;
    font-weight: 700;
}

.researcher-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(20, 48, 82, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(20, 48, 82, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.researcher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(20, 48, 82, 0.13);
}

.researcher-card-photo-wrap {
    position: relative;
    height: 285px;
    overflow: hidden;
    background: #e9eef5;
}

.researcher-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.researcher-card:hover .researcher-card-photo {
    transform: scale(1.035);
}

.researcher-status-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.94);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.researcher-card-body {
    padding: 1.5rem;
}

.researcher-category {
    color: #3d27df;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.researcher-name {
    margin: 0.35rem 0 0.35rem;
    color: #183153;
    font-size: 1.35rem;
    font-weight: 700;
}

.researcher-position {
    margin-bottom: 0.4rem;
    color: #334155;
    font-weight: 600;
}

.researcher-affiliation {
    margin-bottom: 0.85rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.researcher-bio {
    margin-bottom: 1rem;
    color: #526175;
    font-size: 0.92rem;
    line-height: 1.65;
}

.researcher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.researcher-tags span {
    padding: 0.3rem 0.58rem;
    border-radius: 7px;
    background: #f0f3f9;
    color: #435269;
    font-size: 0.72rem;
    font-weight: 600;
}

.researcher-links,
.alumni-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.researcher-links a,
.alumni-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 39, 223, 0.15);
    border-radius: 50%;
    background: rgba(61, 39, 223, 0.05);
    color: #3d27df;
    transition: all 0.2s ease;
}

.researcher-links a:hover,
.alumni-links a:hover {
    border-color: #3d27df;
    background: #3d27df;
    color: #fff;
    transform: translateY(-2px);
}

.researcher-link-text {
    font-size: 0.78rem;
    font-weight: 800;
}

.previous-members-section {
    padding-top: 1rem;
}

.alumni-header {
    border-bottom-color: rgba(15, 118, 110, 0.16);
}

.alumni-card {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 1.1rem;
    padding: 1.2rem;
    border: 1px solid rgba(20, 48, 82, 0.1);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 48, 82, 0.06);
}

.alumni-photo {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 13px;
    object-fit: cover;
    object-position: center top;
}

.alumni-details h4 {
    margin: 0.2rem 0;
    color: #183153;
    font-size: 1.05rem;
    font-weight: 700;
}

.alumni-details p {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
}

.alumni-category {
    color: #3d27df;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.alumni-status {
    display: block;
    margin-bottom: 0.7rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 600;
}

.team-empty-state {
    padding: 4rem 1rem;
    text-align: center;
}

.team-empty-state i {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 3rem;
}

.team-empty-state h3 {
    color: #183153;
    font-size: 1.4rem;
}

.team-empty-state p {
    color: #64748b;
}

@media screen and (max-width: 768px) {
    .team-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .researcher-card-photo-wrap {
        height: 330px;
    }

    .alumni-card {
        align-items: flex-start;
    }
}

.lab-member-card {
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lab-member-card:hover {
    transform: translateY(-6px);
    border-color: rgba(132, 22, 23, 0.35);
    box-shadow: 0 18px 52px rgba(132, 22, 23, 0.14);
}

.lab-member-image {
    height: 320px;
    overflow: hidden;
    background: #f0f0f0;
}

.lab-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.lab-member-card:hover .lab-member-image img {
    transform: scale(1.035);
}

.lab-member-content {
    padding: 24px;
    text-align: center;
}

.member-role {
    color: var(--ou-crimson);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lab-member-content h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000000;
}

.member-bio {
    color: #616161;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.team-social {
    margin-bottom: 0;
    padding-left: 0;
}

.team-social li a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #323232;
    border-radius: 50%;
    transition: all 0.25s ease;
    padding: 0;
}

.team-social li a:hover {
    background: var(--ou-crimson);
    color: #ffffff;
}

@media (max-width: 1023px) {
    .director-content {
        padding-left: 0;
        margin-top: 35px;
    }

    .director-profile-image {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .lab-director-section,
    .team-section {
        padding: 70px 0;
    }

    .director-name {
        font-size: 2.45rem;
    }

    .director-profile-image {
        min-height: 300px;
    }

    .lab-member-image {
        height: 280px;
    }
}

/* ==========================================================
   OU Team Section Color Overrides
   ========================================================== */

.team-section {
    background: #f7f5f2 !important;
}

.team-section-title .section-kicker,
.team-category-kicker,
.researcher-category,
.alumni-category {
    color: var(--ou-crimson) !important;
}

.team-section-title h2,
.team-category-header h3,
.researcher-name,
.alumni-details h4,
.team-empty-state h3 {
    color: #1f1f1f !important;
}

.team-section-title p,
.team-category-header p,
.researcher-affiliation,
.researcher-bio,
.alumni-details p,
.team-empty-state p {
    color: #625f5b !important;
}

.team-category-header {
    border-bottom-color: rgba(132, 22, 23, 0.18) !important;
}

.team-category-count {
    border-color: rgba(132, 22, 23, 0.22) !important;
    background: rgba(132, 22, 23, 0.07) !important;
    color: var(--ou-crimson) !important;
}

.researcher-card {
    border-color: rgba(132, 22, 23, 0.12) !important;
    box-shadow: 0 14px 38px rgba(78, 0, 2, 0.08) !important;
}

.researcher-card:hover {
    border-color: rgba(132, 22, 23, 0.28) !important;
    box-shadow: 0 22px 48px rgba(78, 0, 2, 0.15) !important;
}

.researcher-card-photo-wrap {
    background: #ebe7e2 !important;
}

.researcher-status-badge {
    background: rgba(132, 22, 23, 0.94) !important;
}

.researcher-position {
    color: var(--ou-dark-crimson) !important;
}

.researcher-tags span {
    background: rgba(132, 22, 23, 0.08) !important;
    color: #641011 !important;
}

.researcher-links a,
.alumni-links a {
    border-color: rgba(132, 22, 23, 0.20) !important;
    background: rgba(132, 22, 23, 0.06) !important;
    color: var(--ou-crimson) !important;
}

.researcher-links a:hover,
.alumni-links a:hover {
    border-color: var(--ou-crimson) !important;
    background: var(--ou-crimson) !important;
    color: var(--ou-white) !important;
}

.alumni-header {
    border-bottom-color: rgba(132, 22, 23, 0.18) !important;
}

.alumni-card {
    border-color: rgba(132, 22, 23, 0.12) !important;
    box-shadow: 0 10px 28px rgba(78, 0, 2, 0.07) !important;
}

.alumni-card:hover {
    border-color: rgba(132, 22, 23, 0.28) !important;
    box-shadow: 0 16px 38px rgba(78, 0, 2, 0.13) !important;
}

.alumni-status {
    color: var(--ou-crimson) !important;
}

.team-empty-state i {
    color: rgba(132, 22, 23, 0.45) !important;
}
