﻿.banner-contest {
    /*background: linear-gradient(180deg, rgba(182, 0, 2, 0.05) 0%, rgba(182, 0, 2, 0.05) 100%);*/
}

.book-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-releaseTime {
    font-size: 11px;
    color: #6b7385;
    padding: 5px;
    background: #fff;
    border-radius: 10px;
    position: absolute;
    right: 5px;
    bottom: 5px;
}

.book-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .book-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.card-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

    .card-image img {
        width: 100%;
        height: 280px;
        /* object-fit: cover; */
    }

.card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.tag {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    display: block;
    max-width: 100%;
    min-width: 0; /* 🔥 bắt buộc trong flex */

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
}

.book-name {
    font-size: 14px;
    margin: 12px 0 0 0;
    color: #333;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}

.book-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

/*.book-card:hover {
        transform: translateY(-5px);
    }*/

/* Phần ảnh phía trên - kích thước cố định để ảnh đều nhau */
.card-image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    text-align: center;
}

    .card-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.overlay-content {
    position: relative;
    z-index: 1;
}

.author-top {
    font-size: 10px;
    letter-spacing: 1px;
}

.main-title {
    margin-top: 40px;
}

.sub-title {
    font-size: 18px;
    margin: 0;
}

.highlight-title {
    font-size: 28px;
    color: #ff4d4d; /* Màu đỏ nổi bật */
    margin: 5px 0;
    text-shadow: 1px 1px 2px black;
}

.edition {
    font-size: 9px;
    font-style: italic;
}

.publisher-logo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    font-size: 10px;
}

.logo-box {
    background: gold;
    color: black;
    padding: 2px 5px;
    font-weight: bold;
    margin-right: 5px;
}

.bookmark-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 5px;
}


/* ========== author Card ========== */
.author-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}

    .author-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.author-card-link-rank {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 999px;
    background: #F1F3F5;
    color: #495057;
    width: fit-content;
    flex-direction: column;
    text-align: center;
    align-self: center;
}

.author-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.author-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.author-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    box-sizing: content-box;
    padding-bottom: 10px;
    height: 36px;
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.10);*/
}

.author-title {
    display: flex !important;
    flex-direction: column;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

    .author-title a {
        color: #333;
        text-decoration: none;
    }

        .author-title a:hover {
            color: var(--color-primary);
        }

.author-info-similar-body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

    .author-info-similar-body .author-card {
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: 0;
    }

.author-info-similar-footer {
    padding-top: 40px;
    padding-bottom: 40px;
}


.author-info-info-title {
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    padding-top: 6px;
    padding-bottom: 18px;
}

/* ========== author Card ========== */
.author-info-similar {
    background: var(--Theme-Gray-100, #F7F8FC);
}

.author-info-similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

    .author-info-similar-header p {
        color: #003B8E;
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%;
    }

    .author-info-similar-header a {
        color: var(--Alias-Hyperlink, #1A94FF);
        text-align: right;
        /* Inter / medium / 16pt-Medium */
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%; /* 24px */
    }

.author-info-right-bottom p {
    line-height: 30px !important;
    font-size: 16px;
}

.route {
    display: flex;
    padding: 20px 120px 10px;
    column-gap: 4px;
    font-size: 16px;
    line-height: 24px;
}

.route-home,
.route-author-info {
    color: #718096;
}

#pageNumbers {
    flex-direction: row;
    display: flex;
    gap: 10px;
}

.author-info-wrapper {
    width: 100%;
    /*padding: 0 120px 20px;*/
    /*background-color: rgba(0, 0, 0, 0.02);*/
}

.author-info-header-left {
    display: flex;
    column-gap: 24px;
    min-height: 180px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.author-info-header-wrraper {
    flex: 2;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.author-info-header-title {
    font-size: 20px;
    font-weight: 700;
}

.author-info-summary {
    font-size: 14px;
    color: #4A5568;
    margin-bottom: 10px;
}

.author-info-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.author-info-date {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

    .author-info-date > span {
        font-size: 14px;
        font-weight: 600;
        line-height: 16px;
    }

    .author-info-date strong {
        font-size: 16px;
        font-weight: 800;
    }

.post-contest-item {
    flex: 0 0 calc((100% - 40px) / 3);
}

.author-info-date-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 50px;
    padding: 4px 10px;
    text-align: center;
    border-radius: 4px;
    background: rgba(45, 55, 72, 0.10);
}

.author-info-des-list h3,
.author-info-des-list-item li {
    font-size: 14px;
    font-weight: 400;
    color: #1A202C;
}

.author-info-des-list-item {
    padding-left: 15px;
}

    .author-info-des-list-item li {
        list-style: initial;
    }

.author-info-right-image {
    flex: 1;
    /*max-height: 180px;*/
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
}

    .author-info-right-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-info-right-image-title {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0791BF;
    background-color: #E3F2FD;
    z-index: 1;
    background: #fff !important;
}



.see-more img {
    transform: rotate(360deg);
}

.author-info-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.author-info-upcoming-status {
    background-color: rgba(15, 168, 116, 0.10);
    color: #0FA874;
}

.author-info-ongoing-status {
    background-color: rgba(7, 145, 191, 0.10);
    color: #0791BF;
}

.author-info-ended-status {
    color: #CF4655;
    background-color: rgba(207, 70, 85, 0.10);
}

.author-info-list,
.author-info-item {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

    .author-info-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        padding-bottom: 10px;
    }

.author-info-item-header,
.author-info-item-header-right {
    display: flex;
    align-items: center;
}

.author-info-item-header {
    justify-content: space-between;
}

.author-info-item-header-right {
    column-gap: 10px;
}

.author-info-item .author-info-status,
.author-info-item .author-info-date span {
    white-space: nowrap;
}

.author-info-item-header-left {
    max-width: 380px;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
}

.author-info-list .author-info-date > span {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.author-info-list .author-info-date-wrapper {
    min-width: 28px;
    padding: 4px 6px;
}

    .author-info-list .author-info-date-wrapper strong {
        font-size: 14px;
        font-weight: 700;
        line-height: 20px;
    }

.author-info-plus-btn {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.author-info-round,
.author-info-round-small-list {
    padding-left: 15px;
    list-style: initial;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

    .author-info-round li {
        color: #1A202C;
    }

.author-info-register-btn {
    padding: 10px 28px;
    border-radius: 4px;
    color: #fff;
    background-color: #003B8E;
    border-color: #003B8E;
    font-size: 16px;
    font-weight: 400;
    line-height: 162.023%;
    outline: none;
    transition: opacity linear 0.2s;
}

    .author-info-register-btn:hover {
        color: #fff;
        opacity: 0.8;
    }

.author-info-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.author-info-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
}

    .author-info-tab.author-info-tab-active {
        color: #003B8E;
        font-weight: bold;
        border-bottom: 2px solid #003B8E;
    }

.author-info-content-layout {
    display: flex;
    column-gap: 24px;
    /*margin-top: 20px;*/
    margin-bottom: 20px;
}

.author-info-left {
    flex: 2;
}

.author-info-left-content {
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.author-info-reviews-content {
    display: flex;
    column-gap: 20px;
}

.author-info-reviews-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    padding: 20px 30px;
    border-radius: 2px;
    background-color: #FBF2F2;
}

.author-info-reviews-left-text {
    font-size: 12px;
}

.author-info-reviews-rating-number {
    font-size: 30px;
    font-weight: 700;
    color: #EB4E0E;
    line-height: normal;
}

.author-info-reviews-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.author-info-reviews-progress {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.author-info-stars {
    white-space: nowrap;
}

.author-info-reviews-progress-bar {
    flex: 1;
    height: 10px;
    border-radius: 20px;
    background-color: #D8D8D8;
}

    .author-info-reviews-progress-bar.reviews-progress-active {
        background-color: #003B8E;
    }

.author-info-reviews-percent {
    min-width: 36.52px;
    padding: 5px;
    border-radius: 2px;
    background-color: #F5F5F3;
    margin-left: auto;
    text-align: center;
}

.author-info-left-content:not(:first-child) {
    margin-top: 20px;
}

.author-info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.10);*/
}

    .author-info-section-header .author-info-section-title {
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

.author-info-section-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.author-info-section-right {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

    .author-info-section-right span {
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
    }

    .author-info-section-right img {
        width: 16px;
        height: 16px;
    }

.author-info-card,
.author-info-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.author-info-image {
    border-radius: 4px;
}

.author-info-title,
.author-info-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-info-title {
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.author-info-time {
    font-size: 14px;
    line-height: 20px;
}

.author-info-description {
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
}

.interact {
    display: flex;
    justify-content: space-between;
}

.interact-like,
.interact-views {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 14px;
    line-height: 20px;
}

    .interact-like img,
    .interact-views img {
        width: 18px;
    }

.author-info-section-item {
    color: #000;
    font-size: 14px;
    line-height: 23px;
}

.author-info-section-title {
    /*padding-bottom: 10px;*/
    margin-bottom: 10px;
    /*border-bottom: 1px solid #E4E4E4;*/
    font-size: 20px;
    font-weight: 600;
}

.author-info-section-file-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.author-info-section-file-item {
    display: flex;
    column-gap: 16px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #EAEAEA;
}

pre {
    font-size: 14px;
    color: #000;
    font-family: 'Inter';
    margin-bottom: 0;
    padding: 0;
    background: #fff
}

.author-info-section-file-image {
    padding: 0 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(182, 0, 2, 0.05) 0%, rgba(182, 0, 2, 0.05) 100%);
}

    .author-info-section-file-image img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.author-info-section-file-title {
    font-size: 14px;
    font-weight: 400;
}

.author-info-section-file-size {
    padding: 4px;
    border-radius: 2px;
    background-color: #F7F8FC;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.author-info-section-file-download {
    cursor: pointer;
    padding: 7px 8px;
    border-radius: 2px;
    background-color: #F7F8FC;
}

    .author-info-section-file-download img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

.author-info-exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #E4E4E4;
    line-height: 26px;
}

    .author-info-exam-item p,
    .author-info-sub-item p {
        font-size: 16px;
    }

    .author-info-exam-item .left {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

.author-info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 99px;
    background: #F7F8FC;
}

.author-info-sub-item p:first-of-type {
    margin-top: 0;
}

.author-info-heart {
    cursor: pointer;
    display: flex;
    width: 32px;
    height: 32px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: #F7F8FC;
}

.author-info-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.author-info-sub-left {
    display: flex;
    align-items: center;
    padding-left: 40px;
    column-gap: 16px;
}

.author-info-sub-item p {
    margin: 0;
    line-height: 1.5;
}

.author-info-review-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-top: 20px;
}

.author-info-review-item {
    display: flex;
    column-gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8D4CE;
}

.author-info-review-avatar {
    display: block;
    width: 133px;
}

    .author-info-review-avatar img {
        width: 100%;
        object-fit: cover;
    }

.author-info-review-info {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
}

.author-info-review-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info-review-info-left {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

    .author-info-review-info-left span {
        font-size: 14px;
        font-weight: 700;
        line-height: 20px;
        color: #4A5568;
    }

    .author-info-review-info-left time {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

.author-info-review-info-right {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.author-info-review-info-rating {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.author-info-left p:first-of-type {
    margin-top: 0;
}

.author-info-review-info-bottom {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.pagination {
    justify-content: center;
    padding-left: 0;
}

.interact,
.interact-right,
.interact-left,
.interact-wrapper {
    display: flex;
    align-items: center;
}

.interact {
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #E4E4E4;
}

    .interact img {
        width: 18px;
        height: 18px;
    }

    .interact span {
        font-size: 14px;
        line-height: 20px;
    }

.interact-left {
    column-gap: 16px;
}

.interact-wrapper,
.interact-right {
    column-gap: 4px;
}

.author-info-detail-comments {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    /*margin-top: 20px;*/
}

.author-info-detail-comments-title {
    font-size: 20px;
    font-weight: 700;
}

.author-info-detail-comments-form {
    display: flex;
    align-items: flex-start;
    column-gap: 20px;
}

.author-info-detail-comments-form-left {
    flex: 1;
    display: flex;
    min-height: 64px;
    padding: 16px;
    column-gap: 10px;
    border-radius: 4px;
    border: 1px solid #D7D7D7;
}

    .author-info-detail-comments-form-left img {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.20);
    }

    .author-info-detail-comments-form-left textarea {
        min-height: 6px;
        border: none;
        padding: 0 10px 10px 0;
        background-color: transparent;
        box-shadow: none;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
    }

.author-info-detail-comments-btn {
    align-self: flex-start;
    padding: 10px 28px;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #003B8E;
    color: #003B8E;
    font-size: 16px;
    line-height: 162.023%;
    transition: all linear 0.2s;
}

    .author-info-detail-comments-btn:hover {
        background-color: #003B8E;
        color: #fff;
    }

.author-info-detail-comments-list {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.comment-reply-form textarea {
    font-size: 14px;
}

.author-info-detail-comments-item {
    display: flex;
    column-gap: 20px;
    margin-top: 10px;
}

.author-info-detail-comments-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
}

.author-info-detail-comments-content {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    width: 100%;
}

.author-info-detail-comments-info {
    display: flex;
    column-gap: 10px;
}

.author-info-detail-comments-info {
    font-size: 14px;
}

    .author-info-detail-comments-info span {
        line-height: 20px;
    }

.comment-reply-form button {
    font-size: 13px;
}

.author-info-detail-comments-mess {
    font-size: 14px;
    line-height: 20px;
}

.interact-comment,
.interact-wrapper {
    display: flex;
    align-items: center;
}

.interact-comment {
    column-gap: 16px;
}

.interact-wrapper {
    column-gap: 4px;
}

    .interact-wrapper img {
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

.author-info-interact {
    margin-top: 20px;
    border-bottom: 1px solid #E4E4E4;
}

.author-info-right {
    flex: 1;
    align-self: flex-start;
    background-color: #fff;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-top: 51px;
}

.author-info-side-image {
    width: 76px;
}

.author-info-info-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 0;
}

.author-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.author-info-des-list {
    font-size: 14px;
}

    .author-info-des-list ul li {
        color: #000;
    }

    .author-info-des-list p {
        font-size: 14px;
    }

.author-info-pill {
    overflow: hidden;
    color: var(--color-primary);
    text-align: center;
    text-overflow: ellipsis;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 4px;
    /*background: rgba(182, 0, 2, 0.10);*/
    padding: 4px;
}

.author-info-row span {
    font-size: 14px;
}

.author-info-right-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    padding: 16px 30px;
}

    .author-info-right-bottom span,
    .author-info-right-bottom a {
        font-size: 16px;
        font-weight: 400;
        /*line-height: 162.023%;*/
    }

.author-info-right-socials {
    display: flex;
    column-gap: 10px;
}

.author-info-right-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    color: #fff;
    background-color: #003B8E;
    transition: opacity linear 0.2s;
}

    .author-info-right-btn:hover {
        color: #fff;
        opacity: 0.8;
    }

    .author-info-right-btn.disabled,
    .author-info-right-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.author-info-register-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: #003B8E;
    font-weight: 600;
}

.author-info-register-note {
    margin-top: 12px;
    font-size: 14px;
    color: #4A5568;
    text-align: center;
}


.author-info-round-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #4A5568;
    font-style: italic;
}

.round-countdown-label {
    font-weight: 600;
    color: #003B8E;
}

.author-info-date.round-countdown-ended .author-info-date-wrapper,
.author-info-date.round-countdown-ended > strong,
.author-info-date.round-countdown-ended .round-countdown-label {
    display: none;
}

.btn-register-contest {
    height: 40px;
    line-height: 40px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    margin: 0;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

    .empty-state-icon svg {
        width: 120px;
        height: 120px;
    }

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.empty-state-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

#btnContestResultPublication {
    line-height: unset;
    margin-top: 10px;
}

    #btnContestResultPublication img {
        width: 30px;
        margin-right: 10px;
    }

@media (max-width: 1199.98px) {
    .author-info-header-left {
        padding-left: 16px;
        padding-right: 16px;
        flex-direction: column;
        gap: 16px;
    }

    .author-info-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .author-info-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-info-content-layout {
        flex-direction: column;
    }

    .author-info-right {
        width: 100%;
        position: static;
        margin-top: 20px;
    }

    .author-info-left-content {
        padding: 16px;
    }

    .author-info-section-list {
        flex-wrap: wrap;
        row-gap: 20px;
    }

    .author-info-similar-body .author-card {
        flex: 0 0 calc((100% - 16px) / 2); /* 2 thẻ/hàng trên tablet */
    }
}

@media (max-width: 991.98px) {
    .author-info-wrapper,
    .author-info-header-left {
        padding-left: 16px;
        padding-right: 16px;
    }

    .author-info-tabs {
        overflow-x: auto;
        padding-bottom: 14px;
        gap: 8px;
    }

    .author-info-similar-body .author-card {
        flex: 0 0 calc((100% - 16px) / 2); /* 2 thẻ/hàng */
    }

    .author-info-tab {
        flex: none;
        white-space: nowrap;
    }

    .author-info-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-info-item-header-left {
        max-width: 100%;
    }

    .author-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-info-right-bottom {
        padding: 16px;
    }

    .author-info-reviews-content {
        flex-direction: column;
    }

    .author-info-reviews-left {
        width: 100%;
    }

    .author-info-reviews-right {
        width: 100%;
    }

    .author-info-detail-comments-form {
        flex-direction: column;
        row-gap: 10px;
    }

    .author-info-detail-comments-form-left {
        width: 100%;
        min-height: 150px;
    }

    .author-info-detail-comments-btn {
        /*        width: 100%;*/
        text-align: center;
    }

    .author-info-detail-comments-item {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .author-info-similar-body .author-card {
        flex: 0 0 100%; /* 1 thẻ/hàng trên mobile */
    }

    .author-info-header-title {
        font-size: 18px;
    }

    .author-info-summary {
        font-size: 13px;
    }

    .author-info-date {
        flex-wrap: wrap;
    }

    .author-info-date-wrapper {
        min-width: 48px;
    }

    .author-info-section-title {
        font-size: 18px;
    }

    .author-info-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .author-info-section-list {
        flex-direction: column;
    }

    .author-info-card {
        width: 100%;
    }

    .author-info-review-item {
        flex-direction: column;
    }

    .author-info-review-avatar {
        width: 100%;
    }

    .author-info-review-info-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-info-detail-comments-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-info-right-bottom span,
    .author-info-right-bottom a {
        text-align: center;
    }

    .author-info-right-socials {
        width: 100%;
        justify-content: center;
    }

    .author-info-right-btn {
        width: 100%;
    }
}
/* Exam Selection Modal Styles */
#examSelectionModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#examSelectionModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}

#examSelectionModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

#examSelectionModal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
}

#examSelectionModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.round-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

    .round-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.round-header {
    margin-bottom: 0.75rem;
}

    .round-header h6 {
        color: #1a202c;
        font-size: 16px;
    }

.round-meta {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.exams-list {
    margin-top: 1rem;
}

.exam-item {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
}

    .exam-item:hover {
        background-color: #edf2f7;
        border-color: #cbd5e0 !important;
    }

    .exam-item h6 {
        color: #2d3748;
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

.exam-meta {
    color: #718096;
    font-size: 14px;
    margin-top: 0.5rem;
}

.exam-attempt-info {
    font-size: 13px;
    margin-top: 0.25rem;
}

.exam-no-attempt {
    font-size: 13px;
}

.exam-action-wrap {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.exam-status {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.exam-status-completed {
    color: #1a7f37;
    background-color: #e6f4ea;
    border-radius: 999px;
    padding: 4px 10px;
}

    .exam-status-completed i {
        font-size: 14px;
        line-height: 1;
    }

.exam-item .btn {
    white-space: nowrap;
    min-width: 100px;
    font-size: 14px;
}

#examSelectionLoading {
    padding: 3rem 1rem;
}

    #examSelectionLoading .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3rem;
        color: #003B8E;
    }

#examSelectionError {
    margin: 1.5rem 0;
}

@media (max-width: 767.98px) {
    #examSelectionModal .modal-body {
        max-height: 60vh;
        padding: 1rem;
    }

    .exam-item {
        flex-direction: column;
        gap: 0.75rem;
    }

        .exam-item .btn {
            width: 100%;
        }

    .round-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
}
