.team-page-section {
    position: relative;
    padding: 180px 0 110px;
}

.team-page-section .team-page-cards {
    margin-top: 0;
}

.team-page-section .team-cards-inner {
    width: 100%;
    max-width: none;
}

.team-page-section .team-image {
    cursor: pointer;
}

.team-page-section .team-name {
    font-size: var(--fs-20);
}

.team-member-profile-section {
    position: relative;
    padding: 170px 0 120px;
}

.team-member-profile-image {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(87, 111, 201, 0.18), rgba(69, 208, 189, 0.1));
}

.team-member-profile-image::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18%;
    width: 120%;
    height: 48%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(45px);
    background: linear-gradient(100deg, rgba(87, 111, 201, 0.8), rgba(69, 208, 189, 0.55));
}

.team-member-profile-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.team-member-profile-badge {
    position: absolute;
    right: 20px;
    bottom: 24px;
    color: var(--color-white);
    font-size: var(--fs-50);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.05em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    z-index: 2;
}

.team-member-profile-content {
    max-width: 720px;
    padding-left: 70px;
}

.team-member-profile-designation {
    margin-top: 24px;
    color: var(--gradient-main-color);
    font-size: var(--fs-20);
    line-height: 1.5;
    font-weight: 600;
}

.team-member-profile-intro {
    margin: 28px 0 0;
    color: var(--color-text);
    font-size: var(--fs-20);
    line-height: 1.7;
    font-weight: 500;
}

.dark-mode .team-member-profile-intro {
    color: var(--color-white);
}

.team-member-profile-description {
    margin-top: 24px;
    color: var(--color-text-muted);
}

.dark-mode .team-member-profile-description {
    color: var(--color-text-muted-dark);
}

.team-member-profile-description > *:last-child {
    margin-bottom: 0;
}

.team-member-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 38px 0 0;
    list-style: none;
}

.team-member-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
}

.dark-mode .team-member-contact-list li {
    border-color: var(--color-black-secondary);
}

.team-member-contact-list span {
    color: var(--color-text-muted);
    font-size: var(--fs-14);
    font-weight: 500;
}

.team-member-contact-list a {
    color: var(--color-text);
    font-size: var(--fs-16);
    word-break: break-word;
}

.dark-mode .team-member-contact-list a {
    color: var(--color-white);
}

.team-member-profile-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.team-member-profile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-white);
    background-color: var(--color-text);
    border-radius: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.team-member-profile-socials a:hover {
    color: var(--color-white);
    transform: translateY(-4px);
    background-color: var(--gradient-main-color);
}

.projects-grid-section-heading {
    max-width: 760px;
    margin-bottom: 75px;
}

.team-member-projects-section {
    padding-top: 110px;
}

.team-member-page .project-navigation-section {
    padding-bottom: 120px;
}

@media (max-width: 1200px) {
    .team-member-profile-content {
        padding-left: 35px;
    }

    .team-member-profile-image {
        min-height: 570px;
    }
}

@media (max-width: 992px) {
    .team-page-section {
        padding: 100px 0 70px;
    }

    .team-member-profile-section {
        padding: 100px 0 80px;
    }

    .team-member-profile-image {
        min-height: 680px;
        max-width: 620px;
        margin: 0 auto;
    }

    .team-member-profile-content {
        max-width: 100%;
        padding: 45px 0 0;
    }

    .team-member-projects-section {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .team-member-profile-image {
        min-height: 580px;
    }

    .team-member-contact-list {
        grid-template-columns: 1fr;
    }

    .projects-grid-section-heading {
        margin-bottom: 45px;
    }
}

@media (max-width: 576px) {
    .team-page-section {
        padding: 70px 0 40px;
    }

    .team-member-profile-section {
        padding: 70px 0 55px;
    }

    .team-member-profile-image {
        min-height: 440px;
    }

    .team-member-profile-badge {
        right: 12px;
        bottom: 16px;
        font-size: var(--fs-30);
    }

    .team-member-profile-content {
        padding-top: 30px;
    }
}
