/* ============================================================
   OChEGS — Research Groups (Faculty repeater) — v2.2
   ============================================================ */

/* Hero (shared with research.css patterns) */
.al-research-hero { background: var(--uh-red); padding: 5rem 0 3rem; color: #fff; }
.al-research-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.al-research-hero .al-eyebrow {
    font-size: .72rem; text-transform: uppercase; letter-spacing: 3px;
    color: rgba(255,255,255,.7); margin-bottom: 1rem;
}
.al-research-hero .al-eyebrow a { color: inherit; text-decoration: none; }
.al-research-hero__title {
    font-family: var(--font-display, inherit) !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5.5vw, 4rem) !important;
    margin: 0 0 1rem !important;
    line-height: .98;
}
.al-research-hero__sub {
    color: rgba(255,255,255,.85); font-size: 1.05rem;
    max-width: 720px; line-height: 1.7; margin: 0;
}

.ochegs-rg-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.ochegs-rg-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dm-text, #444);
    margin-bottom: 2.5rem;
    max-width: 880px;
}

.ochegs-rg-diagram { text-align: center; margin: 2rem 0 3rem; }
.ochegs-rg-diagram img {
    max-width: 100%; height: auto; border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

/* Section heading */
.ochegs-rg-section-heading {
    background: var(--uh-red, #C8102E);
    color: #fff;
    padding: .9rem 1.4rem;
    font-family: var(--font-display, inherit);
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 0 2.25rem;
    border-radius: 4px;
}

/* ── Faculty card ── */
.ochegs-faculty-card {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--dm-border, #e5e5e5);
}
.ochegs-faculty-card:last-of-type {
    border-bottom: none;
}

.ochegs-faculty-name {
    font-family: var(--font-display, inherit);
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--dm-heading, #212121);
    letter-spacing: .3px;
}
.ochegs-faculty-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.ochegs-faculty-name a:hover {
    color: var(--uh-red, #C8102E);
    border-bottom-color: var(--uh-red, #C8102E);
}
.ochegs-faculty-title {
    display: block;
    font-weight: 400;
    color: var(--dm-text-muted, #666);
    font-size: .95rem;
    margin-left: 0;
    margin-top: .15rem;
}

/* 3-column desktop layout */
.ochegs-faculty-row {
    display: grid;
    grid-template-columns: var(--faculty-photo-size, 150px) 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

.ochegs-faculty-photo img,
.ochegs-faculty-photo-placeholder {
    width: var(--faculty-photo-size, 150px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.ochegs-faculty-photo-placeholder {
    background: linear-gradient(135deg, var(--uh-slate, #54585A), #333);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ochegs-faculty-info {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--dm-text, #333);
}
.ochegs-faculty-lab {
    font-family: var(--font-display, inherit);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .8rem;
    color: var(--uh-red, #C8102E);
    margin-bottom: .35rem;
}
.ochegs-faculty-research {
    margin: 0 0 .8rem;
    color: var(--dm-text, #444);
    font-size: .95rem;
}
.ochegs-faculty-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .88rem;
    line-height: 1.55;
}
.ochegs-faculty-contact li {
    margin-bottom: .35rem;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: var(--dm-text, #555);
}
.ochegs-faculty-contact li i {
    color: var(--uh-red, #C8102E);
    margin-top: 3px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.ochegs-faculty-contact a {
    color: var(--uh-red, #C8102E);
    text-decoration: none;
    border-bottom: 1px solid rgba(200,16,46,.3);
}
.ochegs-faculty-contact a:hover {
    border-bottom-color: var(--uh-red, #C8102E);
}

/* Students column */
.ochegs-faculty-students h4 {
    color: var(--uh-red, #C8102E);
    font-family: var(--font-display, inherit);
    font-size: 1.02rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin: 0 0 .55rem;
    padding-left: .85rem;
    border-left: 3px solid var(--uh-red, #C8102E);
}
.ochegs-faculty-students h4:not(:first-child) {
    margin-top: 1.2rem;
}
.ochegs-faculty-students ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--dm-text, #333);
}
.ochegs-faculty-students li {
    margin-bottom: .25rem;
}
.ochegs-faculty-students ul li em,
.ochegs-faculty-students ul li i {
    color: var(--dm-text-muted, #888);
    font-size: .9em;
}

/* ── Mobile ── */

/* Stacked layout (default): photo on top, info, then students */
@media (max-width: 900px) {
    .ochegs-rg-wrap--mobile-stacked .ochegs-faculty-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .ochegs-rg-wrap--mobile-stacked .ochegs-faculty-photo {
        text-align: left;
    }
    .ochegs-rg-wrap--mobile-stacked .ochegs-faculty-photo img,
    .ochegs-rg-wrap--mobile-stacked .ochegs-faculty-photo-placeholder {
        margin: 0;
    }
}

/* Photo+info two-column (Customizer option): photo + info side-by-side, students full width below */
@media (max-width: 900px) and (min-width: 521px) {
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-row {
        grid-template-columns: var(--faculty-photo-size, 150px) 1fr;
    }
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-students {
        grid-column: 1 / -1;
        padding-top: .5rem;
    }
}
@media (max-width: 520px) {
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-photo { text-align: left; }
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-photo img,
    .ochegs-rg-wrap--mobile-photo-info .ochegs-faculty-photo-placeholder { margin: 0; }
}

@media (max-width: 600px) {
    .ochegs-rg-wrap { padding: 1.5rem 1rem 3rem; }
    .ochegs-rg-section-heading { font-size: 1.3rem; padding: .75rem 1rem; }
    .ochegs-faculty-name { font-size: 1.3rem; }
    .ochegs-faculty-title { display: block; margin-left: 0; font-size: .88rem; }
    .ochegs-faculty-card { margin-bottom: 2rem; padding-bottom: 2rem; }
    .ochegs-faculty-photo img,
    .ochegs-faculty-photo-placeholder {
        width: 130px;
    }
}

/* ════════════════════════════════════════════════════════════════
   Research layout styles (Customize → Research → Layout Style)
   Base markup = .ochegs-faculty-card containing a .ochegs-faculty-row.
   ════════════════════════════════════════════════════════════════ */

/* ---- CARDS: boxed, elevated faculty cards ---- */
.ochegs-rg-wrap--cards .ochegs-faculty-card {
    background: var(--dm-card-bg, #fff);
    border: 1px solid var(--dm-border, #e8e8e8);
    border-left: 4px solid var(--uh-red, #C8102E);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.ochegs-rg-wrap--cards .ochegs-faculty-card:last-of-type { border-bottom: 1px solid var(--dm-border, #e8e8e8); }

/* ---- TIMELINE: vertical connecting line with markers ---- */
.ochegs-rg-wrap--timeline {
    position: relative;
    padding-left: 2.5rem;
}
.ochegs-rg-wrap--timeline::before {
    content: "";
    position: absolute;
    left: .65rem; top: .5rem; bottom: .5rem;
    width: 2px;
    background: linear-gradient(var(--uh-red, #C8102E), var(--uh-gold, #C4953B));
}
.ochegs-rg-wrap--timeline .ochegs-faculty-card {
    position: relative;
    border: none;
    border-bottom: 1px solid var(--dm-border, #e8e8e8);
    padding: 0 0 2rem;
    margin-bottom: 2rem;
}
.ochegs-rg-wrap--timeline .ochegs-faculty-card::before {
    content: "";
    position: absolute;
    left: -2.5rem; top: .35rem;
    width: 14px; height: 14px;
    background: var(--uh-red, #C8102E);
    border: 3px solid var(--dm-bg, #fff);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--uh-red, #C8102E);
}

/* ---- MINIMAL: typographic list, no photos, no boxes ---- */
.ochegs-rg-wrap--minimal .ochegs-faculty-photo,
.ochegs-rg-wrap--minimal .ochegs-rg-diagram { display: none; }
.ochegs-rg-wrap--minimal .ochegs-faculty-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.ochegs-rg-wrap--minimal .ochegs-faculty-card {
    border: none;
    border-bottom: 1px solid var(--dm-border, #e8e8e8);
    padding: 1.25rem 0 2rem;
    margin-bottom: 1.5rem;
}
.ochegs-rg-wrap--minimal .ochegs-faculty-name { font-size: 1.75rem; }
.ochegs-rg-wrap--minimal .ochegs-faculty-title { color: var(--uh-red, #C8102E); }

@media (max-width: 700px) {
    .ochegs-rg-wrap--timeline { padding-left: 1.75rem; }
    .ochegs-rg-wrap--timeline .ochegs-faculty-card::before { left: -1.75rem; }
    .ochegs-rg-wrap--minimal .ochegs-faculty-row { grid-template-columns: 1fr; gap: 1.25rem; }
}
