/* =========================================================
   AUTHOR ARCHIVE: /author/seo/
   ========================================================= */

body.author-seo {
    --author-gold: var(--knc-gold, #b68728);
    --author-gold-light: var(--knc-gold-light, #d9b653);
    --author-gold-dark: var(--knc-gold-dark, #8a641b);
    --author-gold-bg: var(--knc-gold-bg, #fff8e7);
    --author-text: var(--knc-text, #25344a);
    --author-muted: var(--knc-text-light, #667085);
    --author-border: #eadfc7;
    --author-white: #fff;
    --author-radius: 14px;
    --author-shadow: 0 5px 18px rgba(40, 31, 12, 0.08);

    background: #f8f7f4;
    color: var(--author-text);
}

/* Khung nội dung */
body.author-seo .blog-wrapper {
    padding: 28px 16px 60px;
    background: #f8f7f4;
}

body.author-seo .blog-wrapper > .row,
body.author-seo .archive-page-header .row {
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
}

/* Tiêu đề trang tác giả */
body.author-seo .archive-page-header {
    margin: 0 auto 28px;
    padding: 0;
    border: 0;
}

body.author-seo .archive-page-header .col {
    padding-bottom: 0;
}

body.author-seo .archive-page-header .page-title {
    position: relative;
    margin: 0;
    padding: 20px 24px 25px;
    color: var(--author-text);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
}

body.author-seo .archive-page-header .page-title::before {
    content: "✍ Đội ngũ biên tập";
    display: block;
    margin-bottom: 8px;
    color: var(--author-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.author-seo .archive-page-header .page-title::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 60px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        var(--author-gold-dark),
        var(--author-gold-light)
    );
    transform: translateX(-50%);
}

/* Cột nội dung */
body.author-seo .blog-wrapper .row-large {
    align-items: stretch;
}

body.author-seo .blog-wrapper .large-9 {
    padding-right: 22px;
}

/* Card bài viết */
body.author-seo .blog-archive article.post {
    margin: 0 0 24px;
}

body.author-seo .blog-archive article.post .article-inner {
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--author-border);
    border-radius: var(--author-radius);
    background: var(--author-white);
    box-shadow: var(--author-shadow);
}

/* Phần header bài viết */
body.author-seo .entry-header-text {
    padding: 0 0 18px;
}

body.author-seo .entry-category {
    margin-bottom: 8px;
    color: var(--author-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

body.author-seo .entry-category a {
    color: var(--author-gold-dark);
}

body.author-seo .entry-title {
    max-width: 900px;
    margin: 0 auto 10px;
    color: var(--author-text);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    text-transform: none;
}

body.author-seo .entry-title a {
    color: var(--author-text);
    text-decoration: none;
}

body.author-seo .entry-title a:hover {
    color: var(--author-gold-dark);
}

body.author-seo .entry-divider {
    width: 48px;
    height: 3px;
    margin: 14px auto;
    background: var(--author-gold);
    opacity: 1;
}

body.author-seo .entry-meta {
    color: var(--author-muted);
    font-size: 12px;
    font-weight: 600;
}

/* Ảnh đại diện bài viết */
body.author-seo .entry-image {
    overflow: hidden;
    border-radius: 11px;
    background: var(--author-gold-bg);
}

body.author-seo .entry-image a {
    display: block;
}

body.author-seo .entry-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

body.author-seo article.post:hover .entry-image img {
    transform: scale(1.015);
}

/* Huy hiệu ngày tháng */
body.author-seo .post-date {
    top: 14px !important;
    left: 14px !important;
}

body.author-seo .post-date .badge-inner {
    min-width: 52px;
    padding: 7px 8px;
    border: 1px solid var(--author-gold-light);
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        var(--author-gold-dark),
        var(--author-gold-light)
    );
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 3px 10px rgba(138, 100, 27, 0.25);
}

/* Nội dung mô tả bài viết */
body.author-seo .entry-content {
    padding: 20px 0 0;
    color: var(--author-muted);
    font-size: 15px;
    line-height: 1.75;
}

body.author-seo .entry-content p {
    margin: 0 0 16px;
}

/* Nút tiếp tục đọc */
body.author-seo .more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 4px;
    padding: 0 18px;
    border: 1px solid var(--author-gold);
    border-radius: 7px;
    background: linear-gradient(
        120deg,
        var(--author-gold-dark),
        var(--author-gold-light)
    );
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

body.author-seo .more-link:hover {
    border-color: var(--author-gold-dark);
    background: var(--author-gold-dark);
    color: #fff !important;
}

/* Footer của từng bài */
body.author-seo article.post .entry-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--author-border);
    color: var(--author-muted);
    font-size: 12px;
}

body.author-seo article.post .entry-footer a {
    color: var(--author-gold-dark);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

body.author-seo .post-sidebar {
    padding-left: 4px;
    border-left: 0;
}

body.author-seo .post-sidebar .widget {
    margin: 0 0 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--author-border);
    border-radius: 12px;
    background: var(--author-white);
    box-shadow: var(--author-shadow);
}

body.author-seo .post-sidebar .widget-title {
    display: block;
    margin: -18px -18px 16px;
    padding: 12px 16px;
    border: 0;
    background: linear-gradient(
        110deg,
        var(--author-gold-dark),
        var(--author-gold-light) 72%,
        #a47722
    );
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
}

body.author-seo .post-sidebar .is-divider {
    display: none;
}

/* Danh sách sidebar */
body.author-seo .post-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.author-seo .post-sidebar li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0e7d5;
    color: var(--author-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.author-seo .post-sidebar li:first-child {
    padding-top: 0;
}

body.author-seo .post-sidebar li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body.author-seo .post-sidebar a {
    color: var(--author-text);
    text-decoration: none;
}

body.author-seo .post-sidebar a:hover {
    color: var(--author-gold-dark);
}

/* Ô tìm kiếm */
body.author-seo .post-sidebar .searchform .flex-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

body.author-seo .post-sidebar .search-field {
    width: 100%;
    height: 42px;
    margin: 0;
    border: 1px solid var(--author-border);
    border-radius: 7px;
    background: #fff;
    color: var(--author-text);
    box-shadow: none;
}

body.author-seo .post-sidebar .search-field:focus {
    border-color: var(--author-gold);
    box-shadow: 0 0 0 3px rgba(182, 135, 40, 0.12);
}

body.author-seo .post-sidebar .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 72px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--author-gold);
    border-radius: 7px;
    background: var(--author-gold);
    color: #fff;
    line-height: 1;
}

body.author-seo .post-sidebar .submit-button:hover {
    border-color: var(--author-gold-dark);
    background: var(--author-gold-dark);
}

/* Sticky sidebar trên desktop */
@media (min-width: 1101px) {
    body.author-seo .post-sidebar {
        align-self: stretch;
        overflow: visible;
    }

    body.author-seo .post-sidebar > .col-inner {
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: var(--author-gold) transparent;
    }

    body.admin-bar.author-seo .post-sidebar > .col-inner {
        top: 122px;
        max-height: calc(100vh - 142px);
    }
}

/* Phân trang */
body.author-seo .page-numbers.nav-pagination {
    margin-top: 28px;
}

body.author-seo .page-numbers li > a,
body.author-seo .page-numbers li > span {
    border: 1px solid var(--author-gold-light);
    color: var(--author-gold-dark);
    background: #fff;
}

body.author-seo .page-numbers li > a:hover,
body.author-seo .page-numbers li > .current {
    border-color: var(--author-gold);
    background: var(--author-gold);
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 849px) {
    body.author-seo .blog-wrapper {
        padding: 20px 12px 40px;
    }

    body.author-seo .archive-page-header {
        margin-bottom: 18px;
    }

    body.author-seo .archive-page-header .page-title {
        padding: 14px 10px 22px;
        font-size: 23px;
    }

    body.author-seo .blog-wrapper .large-9 {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    body.author-seo .post-sidebar {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        padding-left: 0;
    }

    body.author-seo .post-sidebar > .col-inner {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    body.author-seo .blog-archive article.post .article-inner {
        padding: 16px;
        border-radius: 11px;
    }

    body.author-seo .entry-title {
        font-size: 21px;
    }

    body.author-seo .entry-image img {
        max-height: none;
    }

    body.author-seo .entry-content {
        padding-top: 16px;
        font-size: 14px;
    }
}

@media (max-width: 549px) {
    body.author-seo .archive-page-header .page-title::before {
        font-size: 11px;
    }

    body.author-seo .blog-archive article.post .article-inner {
        padding: 13px;
    }

    body.author-seo .entry-header-text {
        padding-bottom: 14px;
    }

    body.author-seo .entry-title {
        font-size: 19px;
    }

    body.author-seo .post-date {
        top: 8px !important;
        left: 8px !important;
    }

    body.author-seo .post-date .badge-inner {
        min-width: 45px;
        padding: 5px 6px;
        font-size: 11px;
    }
}
/* Ẩn widget tìm kiếm */
body.author-seo .post-sidebar .widget_search {
    display: none !important;
}

/* Ẩn widget bình luận gần đây */
body.author-seo .post-sidebar .widget_recent_comments {
    display: none !important;
}

