.team-hero {

    min-height: 55vh;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: var(--white);

}

.team-hero .hero-content {

    max-width: 900px;

}

.team-hero .hero-tag {

    display: inline-block;

    padding: 10px 18px;

    margin-bottom: 25px;

    background: rgba(255,255,255,0.15);

    border: 1px solid rgba(255,255,255,0.25);

    color: var(--white);

}

.team-hero h1 {

    color: var(--white);

}

.team-hero p {

    color: rgba(255,255,255,0.95);

}

.team-grid {

    display: grid;

    gap: 52px;

}

.team-group {

    padding: clamp(26px, 4vw, 38px);

    border: 3px solid rgba(15, 23, 42, 0.92);

    border-radius: 28px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);

}

.team-group-heading {

    margin-bottom: 28px;

    padding-bottom: 18px;

    border-bottom: 2px solid rgba(0, 91, 150, 0.14);

    text-align: center;

}

.team-group-heading h2 {

    margin: 0;

    color: #0f172a;

    font-size: clamp(1.45rem, 2.5vw, 2.15rem);

    font-weight: 900;

    line-height: 1.22;

}

.team-section-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 24px;

}

.team-group--table {
    width: min(100%, 1080px);
    margin-inline: auto;
    border-color: rgba(0, 91, 150, 0.32);
    background: #ffffff;
}

.team-group--table .team-group-heading h2 {
    white-space: nowrap;
    font-size: clamp(0.58rem, 3vw, calc(1.65rem + 5px));
    letter-spacing: -0.02em;
}

.team-group--long-title .team-group-heading h2 {
    max-width: 100%;
    white-space: normal;
}

.team-title-location {
    white-space: nowrap;
}

.team-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.team-table {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed;
}

.team-table-photo-column {
    width: 225px;
}

.team-table-name-column {
    width: 32%;
}

.team-table th,
.team-table td {
    border: 0;
}

.team-table tbody tr {
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 63, 107, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 63, 107, 0.12);
}

.team-table .team-table-member-row,
.team-table .team-table-member-row:hover,
.team-table .team-table-member-row > td {
    background: #ffffff;
}

.team-table .team-table-subheading-row,
.team-table .team-table-subheading-row:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.team-table-subheading-row th {
    padding: 22px 20px 8px;
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.team-table-subheading-row:first-child th {
    padding-top: 4px;
}

.team-table td {
    padding: 14px 20px;
    color: #0f172a;
    text-align: left;
    vertical-align: middle;
}

.team-table td:first-child {
    border-radius: 14px 0 0 14px;
    text-align: center;
}

.team-table td:last-child {
    border-radius: 0 14px 14px 0;
}

.team-table-photo {
    width: 155px;
    height: 183px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.team-table-photo img,
.team-table-photo .team-image-placeholder {
    width: 100%;
    height: 100%;
}

.team-table-photo img {
    display: block;
    object-fit: cover;
    object-position: center top;
}

.team-table-photo .team-initials {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    font-size: 1.25rem;
    box-shadow: none;
}

.team-table-name {
    color: #0f172a;
    font-size: calc(1.08rem + 5px);
    font-weight: 800;
    line-height: 1.35;
}

.team-table-designation {
    color: #334155;
    font-size: calc(1rem + 5px);
    font-weight: 600;
    line-height: 1.5;
}

.team-card {

    min-height: 430px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 2px solid rgba(15, 23, 42, 0.85);

    border-radius: 18px;

    background: #ffffff;

    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;

}

.team-image {

    position: relative;

    width: 100%;

    height: 250px;

    flex: 0 0 250px;

    overflow: hidden;

    background: #ffffff;

}

.team-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    transition: transform 0.4s ease;

}

.team-image-placeholder {

    width: 100%;

    height: 100%;

    display: grid;

    place-items: center;

}

.team-initials {

    width: 118px;

    height: 118px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 3px solid rgba(15, 23, 42, 0.9);

    border-radius: 50%;

    background: #ffffff;

    color: #003f6b;

    font-size: 2.2rem;

    font-weight: 900;

    letter-spacing: 0.03em;

    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);

    z-index: 1;

}

.team-card:hover .team-image img {

    transform: scale(1.04);

}

.team-card:hover {

    transform: translateY(-7px);

    border-color: rgba(15, 23, 42, 1);

    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.15);

}

.team-content {

    min-height: 180px;

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 24px 22px;

    text-align: center;

}

.team-name {

    margin-bottom: 12px;

    color: #0f172a;

    font-size: 1.22rem;

    font-weight: 900;

    line-height: 1.28;

}

.team-designation {

    margin: 0;

    color: #0f172a;

    font-size: 1.22rem;

    font-weight: 900;

    line-height: 1.28;

}

@media (max-width: 767px) {

    .team-group {

        padding: 22px;

        border-radius: 24px;

    }

    .team-card {

        min-height: 400px;

    }

    .team-image {

        height: 220px;

        flex-basis: 220px;

    }

    .team-group--table {

        padding: 18px 14px;

    }

    .team-table {

        min-width: 620px;

    }

    .team-table-photo-column {

        width: 193px;

    }

    .team-table-boxed-member {

        grid-template-columns: 173px minmax(0, 32%) minmax(0, 1fr);

        padding-right: 14px;

        padding-left: 14px;

    }

    .team-table td {

        padding-right: 14px;

        padding-left: 14px;

    }

    .team-table-photo {

        width: 145px;

        height: 171px;

    }

}
