/* =============================================
   expert.css
   ============================================= */

.bread-crumb-style1 { background: #f4f4f4; }

.page.page-expert {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

/* =============================================
   PROFILE SECTION
   ============================================= */
.expert-profile {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 2.5rem;
}

.expert-profile__inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 767px) {
    .expert-profile__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Cột trái ---- */
.expert-profile__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Avatar */
.expert-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
}

.expert-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid #f0f0f0;
}

.expert-verified {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #16a679;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.expert-verified svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* Chức danh */
.expert-job {
    font-size: 12px;
    color: #777;
    margin: 0;
    letter-spacing: .01em;
}

/* Tên */
.expert-name {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.25;
}

/* Social */
.expert-social {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.expert-social__btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f2f2;
    border: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, border-color .18s;
    text-decoration: none;
    flex-shrink: 0;
}

.expert-social__btn:hover {
    background: #e6f0fd;
    border-color: #aac4f7;
}

.expert-social__btn svg {
    width: 15px;
    height: 15px;
    fill: #555;
}

/* Intro box (hộp tóm tắt dưới tên) */
.expert-intro-box {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 14px 16px;
    color: #555;
    margin-top: 6px;
    width: 100%;
}

/* ---- Cột phải: Biography ---- */
.expert-profile__right {
    padding-top: 4px;
}

.expert-biography {
    position: relative;
}

.expert-biography__content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #222;
    transition: max-height .4s ease;
}

.expert-biography__content p  { margin-bottom: 14px; }
.expert-biography__content h2,
.expert-biography__content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: #111;
}

/* Lớp mờ fade khi thu gọn */
.expert-biography__fade {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

/* Nút xem thêm */
.expert-biography__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #d0281e;
    cursor: pointer;
    transition: opacity .15s;
}

.expert-biography__toggle:hover { opacity: .75; }

.expert-biography__toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =============================================
   NEWS SECTION
   ============================================= */
.expert-news__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.expert-news__bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: #d0281e;
    flex-shrink: 0;
}

.expert-news__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.expert-news__grid {
    margin-left: -10px;
    margin-right: -10px;
}

.expert-news__grid > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* ---- News card ---- */
.news-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: #d8d8d8;
}

.news-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    background: #f4f4f4;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

.news-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.news-card__cat {
    font-size: 11px;
    font-weight: 600;
    color: #d0281e;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.news-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a {
    color: #111;
    text-decoration: none;
    transition: color .15s;
}

.news-card__title a:hover { color: #d0281e; }

.news-card__desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-card__date {
    font-size: 11px;
    color: #bbb;
    margin-top: auto;
    display: block;
    padding-top: 6px;
}

/* ---- Pagination ---- */
.expert-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.expert-pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.expert-pagination .pagination li a,
.expert-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    background: #fff;
}

.expert-pagination .pagination li a:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.expert-pagination .pagination li.active span,
.expert-pagination .pagination li.active a {
    background: #d0281e;
    border-color: #d0281e;
    color: #fff;
    font-weight: 600;
}

/* =============================================
   NEWS EXPERT CARD — Block chuyên gia trong bài viết
   ============================================= */
.news-expert-card {
    margin: 28px 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.news-expert-card__inner {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.news-expert-card__avatar-col {
    flex-shrink: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #f7f7f7;
    border-right: 1px solid #ebebeb;
}

.news-expert-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: transform .2s;
}

.news-expert-card__avatar:hover {
    transform: scale(1.05);
}

.news-expert-card__body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.news-expert-card__site {
    font-size: 11px;
    color: #999;
    letter-spacing: .02em;
}

.news-expert-card__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-expert-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    transition: color .15s;
}

.news-expert-card__name:hover {
    color: #d0281e;
}

.news-expert-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #16a679;
}

.news-expert-card__verified svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.news-expert-card__intro {
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-expert-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.news-expert-card__more {
    font-size: 14px;
    font-weight: 600;
    color: #d0281e;
    text-decoration: none;
    transition: opacity .15s;
    white-space: nowrap;
}

.news-expert-card__more:hover {
    opacity: .75;
}

.news-expert-card__socials {
    display: flex;
    gap: 6px;
}

.news-expert-card__social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f2f2;
    border: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    text-decoration: none;
    flex-shrink: 0;
}

.news-expert-card__social-btn:hover {
    background: #e8f0fd;
}

.news-expert-card__social-btn svg {
    width: 14px;
    height: 14px;
    fill: #555;
}

@media (max-width: 480px) {
    .news-expert-card__avatar-col {
        width: 80px;
        padding: 16px 12px;
    }

    .news-expert-card__avatar {
        width: 60px;
        height: 60px;
    }

    .news-expert-card__body {
        padding: 14px 14px;
    }

    .news-expert-card__name {
        font-size: 14px;
    }
}
