.bg-inner {
    padding-top: 42px;
}
/* quay lại */
.user-detail .job-more {
    display: block;
    font-weight: 500;
    color: var(--Light-Primary-50); /* blue-600 */
    text-decoration: none;
    margin: 16px 0 42px;
}
.user-detail .job-more:hover {
    color: #1d4ed8;
}
.user-detail_frame .c-button-1 {
    padding: var(--sp-12) 52px;
}
.user-detail_info {
    margin-right: auto;
}
/* ===== Cover ===== */
.user-detail_cover {
    position: relative;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    /* fallback while image loads */
}
.user-detail_cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Góc ruy-băng ở góc phải như ảnh */
.card-detail_tag {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--Gradient-1);
    width: 37px;
    height: 56px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 50% 85%, 0 100%);
    right: 40px;
    top: 0;
}
.card-detail_tag img {
    width: 50%;
    height: auto;
}

/* ===== Card thông tin ===== */
.user-detail_frame {
    position: relative;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 16px;
}
.user-detail_top {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    /* margin-top: 20px; */
    margin-bottom: 16px;
    padding: 26px 18px;
}
.user-detail_thumb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 0;
    background: #ffffff;
    transform: translateY(-135px);
}
.user-detail_thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #ffffff;
}

/* Chức danh & Tên */
.user-detail_job {
    font-size: 16px;
    font-weight: 500;
    /* xanh đậm như ảnh minh hoạ */
    background: var(--Gradient, linear-gradient(180deg, #0071e3 0%, #1235ae 100%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.user-detail_name {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 800;
    color: var(--Light-Primary-20, #1235ae);
}

/* Nhóm chứng chỉ dạng pill */
.card-detail_certi {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.card-detail_certi li {
    display: inline-block;
    border-radius: 100px;
    border: 1px solid var(--Light-Primary-50);
    padding: 4px 16px;
    margin-right: 8px;
    font-weight: 500;
    color: var(--Light-Primary-50);
    background-color: #fff;
}
.card-detail_certi li.active {
    border-radius: 100px;
    border: 2px solid rgba(235, 41, 19, 0.3);
    background: linear-gradient(180deg, #ff7f7e 0%, #eb2813 100%);
    color: #fff;
    display: flex;
    gap: 4px;
}
/* Mô tả */
.user-detail_desc {
    margin: 8px auto 0;
    line-height: 1.6;
    font-weight: 300;
    font-size: 15px;
    color: var(--Light_mode-Gray_Scale-5);
}
.user-detail_other {
    margin-top: 120px;
}
.user-detail_experience,
.user-detail_intro {
    background-color: #fff;
    border-radius: 24px;
    padding: 26px;
}
.user-detail_experience > h4,
.user-detail_intro > h4 {
    color: var(--Light-Primary-20);
    font-size: 20px;
    margin-bottom: 16px;
}
.user-detail_experience li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.user-detail_menu {
    border-top: 1px solid #e6e6e6;
    padding: 20px 26px;
    margin-top: -75px;
}
.user-detail_menu li {
    display: inline-block;
    font-weight: 500;
    cursor: pointer;
}
.user-detail_menu li a {
    padding: 0 20px;
    position: relative;
    transition: 0.5s;
}
.user-detail_menu a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
    background-color: var(--Light-Primary-50);
}
.user-detail_menu li.active a {
    color: var(--Light-Primary-50);
}
.user-detail_menu li.active a::after {
    width: 100%;
}
.modal-info_top {
    text-align: center;
}
.modal-info_top img {
    margin: 0 auto;
}
.modal-info_title {
    color: var(--Light-Primary-50);
    margin-bottom: 8px;
    font-size: 26px;
    margin-top: 16px;
}
.modal-info_desc {
    color: var(--Light_mode-Gray_Scale-5);
    margin-bottom: 32px;
}
.modal-info_subtitle {
    gap: 8px;
    margin-bottom: 8px;
    display: flex;
    font-weight: 300;
    margin-top: 16px;
}
.modal-info_content {
    border-radius: 6px;
    background: #f7f8fd;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.modal-info_content img {
    cursor: pointer;
}
.modal-info_button {
    display: block;
    border-radius: 8px;
    background: var(--Light-Primary-50);
    padding: 14px 12px;
    color: #fff;
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-weight: 300;
}
.modal-info_button:hover {
    opacity: 0.9;
}
@media (max-width: 991px) {
    .card-detail_certi {
        margin-top: 20px;
        justify-content: center;
    }
    .user-detail_thumb {
        width: 150px;
        height: 150px;
        margin: 0 auto -115px;
    }
    .user-detail_top {
        display: block;
        text-align: center;
    }
    .user-detail_frame {
        /* margin: -75px auto 40px; */
    }
    .user-detail_other {
        margin-top: 32px;
    }
    .user-detail_menu {
        margin-top: 0;
    }
    .user-detail_info {
        margin-bottom: 20px;
        text-align: center;
    }
    .user-detail_experience {
        margin-bottom: 16px;
    }
}

/* Card */
.user-detail_post-card {
    border-radius: 12px;
    color: #0f172a;
    background-color: #fff;
    border-radius: 24px;
    padding: 26px;
    margin-top: 16px;
}

/* Header */
.user-detail_post-infor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.user-detail_post-infor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}
.user-detail_post-infor h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.user-detail_post-infor p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
}

/* Detail + See more */
.ht-format-detail-wrap {
    position: relative;
    margin-bottom: 16px;
}
.ht-format-detail {
    line-height: 1.6;
    overflow: hidden;
    max-height: 160px; /* ngưỡng thu gọn */
    transition: max-height 0.35s ease;
    position: relative;
    font-weight: 300;
}
.ht-format-detail p {
    color: #000;
}
/* nút xem thêm */
.see-more-btn {
    margin-top: 8px;
    color: #000;
    border: none;
    padding: 0;
    text-transform: unset;
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
}

/* Ảnh blend */
.user-detail_post-img {
    margin-top: 14px;
    position: relative;
    height: 500px; /* khung ảnh cố định */
    border-radius: 12px;
    overflow: hidden;
}
.user-detail_post-img::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.95) saturate(1.05);
    transform: scale(1.1);
}
.user-detail_post-img > img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
@media (max-width: 560px) {
    .user-detail_post-img {
        height: 420px;
    }
}
.user-detail_img {
    background-color: #fff;
    border-radius: 24px;
    padding: 26px;
}
.user-detail_img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 16px;
}
.user-detail_img .col-md-2-4 {
    padding: 0 8px;
}
.user-tab {
    display: none;
}
.user-tab.active {
    display: block;
}
