/* =========================================================
   Team page stylesheet
   Reuses the inner-page hero, breadcrumb and life-strip
   patterns already defined in about.css (which in turn pulls
   in components.css + style.css), then adds:
     - founder spotlight
     - tag chips
     - instructor grid + bio modal
   ========================================================= */

@import url("components.css");
@import url("style.css");
@import url("about.css");


/* =========================================================
   Team page hero image override
   ========================================================= */

.team-hero {
    background: url("/assets/hero/hero-team1.webp") no-repeat center center / cover !important;
}


/* =========================================================
   Tag chips (shared between founder + instructor cards)
   ========================================================= */

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    background: var(--c-primary);
    color: var(--c-secondary-soft);
    font-size: .76rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--c-line);
}

.hero-overlay{
    background-color: #353535dd !important;
}


/* =========================================================
   Founder spotlight
   ========================================================= */

.founder-spotlight {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 56px;
    align-items: center;
}

.founder-credentials {
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-blue-deep);
    margin-bottom: 20px;
}

.founder-bio p {
    color: var(--c-secondary-soft);
    margin-bottom: 16px;
    line-height: 1.75;
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

.founder-bio-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .4s ease;
}

.founder-bio-more.is-open {
    max-height: 2400px;
    opacity: 1;
}

.founder-bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--c-red-deep);
    cursor: pointer;
}

.founder-bio-toggle i {
    font-size: .74rem;
    transition: transform .3s ease;
}

.founder-bio-toggle.is-open i {
    transform: rotate(180deg);
}


/* =========================================================
   Instructor grid
   ========================================================= */

.instructor-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-line);
}

.instructor-photo {
    aspect-ratio: 4/3.4;
    overflow: hidden;
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.instructor-card:hover .instructor-photo img {
    transform: scale(1.05);
}

.instructor-body {
    padding: 26px 26px 28px;
}

.instructor-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.instructor-role {
    font-size: .88rem;
    font-weight: 600;
    color: var(--c-blue-deep);
    margin-bottom: 4px;
}

.instructor-credentials {
    font-size: .8rem;
    color: var(--c-secondary-mute);
    height: 2lh;
}

.instructor-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 18px;
    font-weight: 700;
    font-size: .86rem;
    color: var(--c-red-deep);
    pointer-events: none; /* whole card is clickable; this is a visual cue only */
}

.instructor-more i {
    font-size: .74rem;
    transition: transform .2s ease;
}

.instructor-card:hover .instructor-more i {
    transform: translateX(4px);
}


/* =========================================================
   Bio modal
   ========================================================= */

.team-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-modal .modal-header {
    border-bottom: none;
    padding: 28px 32px 0;
}

.team-modal .modal-body {
    padding: 12px 32px 32px;
}

.team-modal-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

#teamModalName {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

#teamModalRole {
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-blue-deep);
    margin-top: 2px;
}

#teamModalCredentials {
    font-size: .82rem;
    color: var(--c-secondary-mute);
    margin-top: 2px;
}

#teamModalBio p {
    color: var(--c-secondary-soft);
    line-height: 1.7;
    margin-bottom: 14px;
}

#teamModalBio p:last-child {
    margin-bottom: 0;
}

#teamModalTags {
    margin-bottom: 22px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .founder-spotlight {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .founder-spotlight-media .founder-portrait-wrap {
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .team-modal-heading {
        flex-direction: column;
        text-align: center;
    }

    .team-modal .modal-header,
    .team-modal .modal-body {
        padding-left: 22px;
        padding-right: 22px;
    }
}