/* ==========================================================================
   PROFILE BLOCK SECTION - BEM NAMING
   ========================================================================== */

.crb-block-fullwidth.profile-block,
.profile-block {
    position: relative;
    background-color: var(--color-surface, #F7F2EE);
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
}

.profile-block__bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 100%;
    background-color: var(--color-bg, #D2E3DF);
    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: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    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;
}

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

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

.profile-block__name {
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 38px;
    font-weight: 600;
    color: var(--text-primary, #222222);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.profile-block__role {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 20px;
}

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

.profile-block__tag {
    background-color: var(--color-bg, #D2E3DF);
    color: var(--color-primary-second, #456967);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.profile-block__bio-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-block__bio-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #222222;
    margin: 0;
}

@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;
    }
}

/* Triệt tiêu hoàn toàn thẻ <br> rác trong phần Bio */
.profile-block__bio-list br {
    display: none !important;
}

/* Tùy chỉnh khoảng cách giữa các đoạn văn theo ý muốn */
.profile-block__bio-text {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: var(--lh-body-m, 1.6);
}

.profile-block__bio-text:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   DẠNG 2: KRESTON LEADER (ẢNH CHỮ NHẬT & BANNER MŨI TÊN TÊN/CHỨC VỤ)
   ========================================================================== */
.profile-block--style-kreston {
    padding: 70px 0;
    background-color: #FFFFFF;
}

.profile-block--style-kreston .profile-block__bg-split {
    display: none !important;
}

.profile-block--style-kreston .profile-block__container {
    max-width: 1200px;
    padding: 0 24px;
}

.profile-block--style-kreston .profile-block__grid {
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* Avatar chữ nhật đứng */
.profile-block--style-kreston .profile-block__avatar-wrapper--rect {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 4 / 4.8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    background-color: #FFFFFF;
    border: 1px solid #ECEFF1;
}

.profile-block--style-kreston .profile-block__avatar-wrapper--rect .profile-block__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Khối Banner Tên & Chuyên môn (Dùng ảnh nền thuần túy, không chèn màu nền CSS) */
.profile-block--style-kreston .profile-block__header-badge {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 340px;
    max-width: 540px;
    width: 100%;
    padding: 16px 52px 16px 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
    background-color: transparent !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none !important;
}

.profile-block--style-kreston .profile-block__badge-content {
    position: relative;
    z-index: 2;
}

.profile-block--style-kreston .profile-block__name {
    color: #189CD8;
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.profile-block--style-kreston .profile-block__role {
    color: #243746;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Bio chi tiết */
.profile-block--style-kreston .profile-block__bio-list {
    margin-top: 6px;
    gap: 16px;
}

.profile-block--style-kreston .profile-block__bio-text {
    color: #243746;
    font-size: 15px;
    line-height: 1.68;
    margin-bottom: 16px;
}

/* Tags dưới bio */
.profile-block--style-kreston .profile-block__tags {
    margin-top: 20px;
    margin-bottom: 0;
}

.profile-block--style-kreston .profile-block__tag {
    background-color: #EBF8FA;
    color: #189CD8;
    border: 1px solid #D2EFF4;
}

/* Responsive cho Dạng 2 */
@media (max-width: 991px) {
    .profile-block--style-kreston {
        padding: 50px 0;
    }

    .profile-block--style-kreston .profile-block__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-block--style-kreston .profile-block__avatar-wrapper--rect {
        max-width: 280px;
        margin: 0 auto;
    }

    .profile-block--style-kreston .profile-block__header-badge {
        max-width: 100%;
    }
}