/* ==========================================================================
   SECTION: BLOCK TEAM FEED (TEAM GRID & PROFILE BLOCK)
   Path: light-ui/templates/sections/block-team-feed/style.css
   Refactored using Global Design Tokens from assets/css/global.css
   ========================================================================== */

/* 1. ÉP SECTION TRÀN VIỀN MÀN HÌNH (BREAKOUT FULLWIDTH ĐA THEME) */
.lui-scope {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.team-grid.crb-block-fullwidth,
.crb-block-fullwidth.team-grid,

.lui-scope .team-grid.crb-block-fullwidth,
.lui-scope .crb-block-fullwidth.team-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.crb-block-fullwidth.team-grid,
.team-grid,
.lui-scope .team-grid {
    background-color: var(--color-primary, #FFFFFF);
    padding: 60px 0 70px 0;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    color: var(--text-primary, #333333);
    overflow: hidden;
}

.team-grid__container {
    position: relative;
    max-width: var(--container-max-w, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad-x, 20px);
    box-sizing: border-box;
}

/* Header Section */
.team-grid__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.team-grid__title {
    font-family: var(--font-heading, 'Cormorant SC', serif) !important;
    font-size: var(--fs-h2, 32px) !important;
    line-height: var(--lh-h2, 35px) !important;
    font-weight: var(--fw-h2, 700) !important;
    color: var(--text-title, #456967) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 20px;
}

.team-grid__desc {
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: var(--fs-body-s, 16px);
    line-height: 1.6;
    color: var(--text-primary, #333333);
    margin: 0;
}

/* Grid Layout (2 cột trên desktop) */
.team-grid__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card Member */
.team-grid__card {
    background-color: var(--color-surface, #F7F2EE);
    border-radius: var(--radius-atom, 12px);
    padding: 36px 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-sizing: border-box;
}

/* Avatar Tròn */
.team-grid__media {
    flex-shrink: 0;
}

.team-grid__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Content bên phải */
.team-grid__content {
    flex-grow: 1;
}

.team-grid__name {
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: var(--fs-h4, 22px);
    font-weight: 700;
    color: var(--text-primary, #333333);
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.team-grid__role {
    display: block;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
    font-weight: 500;
}

/* List Tags Chuyên Môn */
.team-grid__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.team-grid__tag {
    background-color: var(--color-bg, #D2E3DF);
    color: var(--color-primary-second, #456967);
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.3;
}

.team-grid__tag--more {
    background-color: var(--color-bg, #D2E3DF);
    color: var(--color-primary-second, #456967);
    font-weight: 700;
}

/* Bio Text */
.team-grid__bio {
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-primary, #333333);
    margin: 0 0 16px 0;
}

/* Link Learn More */
.team-grid__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-second, #456967);
    text-decoration: none;
    transition: color var(--transition-base, all 0.3s ease);
}

.team-grid__link-icon {
    transition: transform var(--transition-base, all 0.3s ease);
}

.team-grid__link:hover {
    color: var(--color-primary-third, #74A59F);
}

.team-grid__link:hover .team-grid__link-icon {
    transform: translate(2px, -2px);
}

/* RESPONSIVE TABLET & MOBILE */
@media (max-width: 991px) {
    .team-grid__list {
        grid-template-columns: 1fr;
    }

    .team-grid__title {
        font-size: var(--fs-h3, 26px) !important;
        margin-bottom: 16px;
    }

    .team-grid__header {
        margin-bottom: 36px;
    }
}

@media (max-width: 576px) {

    .crb-block-fullwidth.team-grid,
    .team-grid,
    .lui-scope .team-grid {
        padding: 45px 0 55px 0;
    }

    .team-grid__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .team-grid__avatar {
        width: 130px;
        height: 130px;
    }

    .team-grid__tags {
        justify-content: center;
    }
}

/* ==========================================================================
   DẠNG 2: PROFILE BLOCK SECTION (HỒ SƠ CÁ NHÂN CHUYÊN GIA)
   ========================================================================== */

.crb-block-fullwidth.profile-block,
.profile-block {
    position: relative;
    background-color: var(--color-surface);
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.profile-block__bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 100%;
    background-color: var(--color-bg);
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: cover !important;
    z-index: 1;
}

.profile-block__container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad-x);
    box-sizing: border-box;
}

.profile-block__grid {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 60px;
    align-items: center;
}

.profile-block__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-block__avatar-wrapper {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.profile-block__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-block__content {
    max-width: 720px;
}

.profile-block__name {
    font-family: var(--ff-h2);
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: var(--fw-h2);
    color: var(--text-title);
    margin: 0 0 6px 0;
}

.profile-block__role {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    line-height: var(--lh-caption);
    font-weight: var(--fw-caption);
    color: var(--color-primary-second);
    margin-bottom: var(--space-text-bottom);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-block__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.profile-block__tag {
    background-color: var(--color-bg);
    color: var(--color-primary-second);
    font-size: var(--fs-btn-s);
    font-weight: var(--fw-btn-s);
    padding: 6px 12px;
    border-radius: var(--radius-atom);
    line-height: 1.3;
    transition: var(--transition-base);
}

.profile-block__bio {
    display: flex;
    flex-direction: column;
}

.profile-block__bio br {
    display: none !important;
}

.profile-block__bio p {
    font-family: var(--ff-body);
    font-size: var(--fs-body-m);
    line-height: var(--lh-body-m);
    font-weight: var(--fw-body-m);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--space-text-bottom);
}

.profile-block__bio p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .profile-block {
        padding: 60px 0;
    }

    .profile-block__bg-split {
        display: none;
    }

    .profile-block__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-block__avatar-wrapper {
        width: 300px;
        height: 300px;
    }

    .profile-block__content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {

    .profile-block__name,
    .profile-block__role {
        text-align: center;
    }

    .profile-block__tags {
        justify-content: center;
    }

    .profile-block__avatar-wrapper {
        width: 250px;
        height: 250px;
    }
}