/* Trang tác giả Cà Mau — fix UI/UX card + ảnh featured */
.cm-author-page{
    background:#f4f8f5;
}

.cm-author-page .cm-article-shell{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:32px 18px 64px;
    box-sizing:border-box;
}

.cm-author-page .cm-article-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0 0 18px;
    font-size:14px;
    line-height:1.5;
    color:#6b7a70;
}

.cm-author-page .cm-article-breadcrumb a{
    color:#37664f;
    text-decoration:none;
}

.cm-author-page .cm-article-breadcrumb a:hover{
    text-decoration:underline;
}

.cm-author-header{
    background:#fff;
    border:1px solid #dfe9e2;
    border-radius:18px;
    padding:30px 28px;
    margin:0 0 24px;
    box-sizing:border-box;
}

.cm-author-header .cm-article-category{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 11px;
    margin:0 0 12px;
    border-radius:999px;
    background:#edf7f0;
    color:#1f7a4d;
    font-size:13px;
    line-height:1;
    font-weight:700;
}

.cm-author-header h1{
    margin:0;
    font-size:38px;
    line-height:1.2;
    letter-spacing:-0.02em;
    color:#183127;
}

.cm-author-bio{
    margin:14px 0 0;
    max-width:900px;
    color:#6b7a70;
    line-height:1.75;
}

.cm-author-posts{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    align-items:stretch;
}

.cm-author-post-card{
    min-width:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
    background:#fff;
    border:1px solid #dfe9e2;
    border-radius:16px;
    box-shadow:0 4px 16px rgba(24,49,39,.05);
    transition:transform .2s ease, box-shadow .2s ease;
}

.cm-author-post-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(24,49,39,.09);
}

/* Quan trọng: khóa khung ảnh theo tỷ lệ ngang, không để ảnh gốc kéo card thành portrait */
.cm-author-post-image{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:1200 / 630;
    overflow:hidden;
    flex:0 0 auto;
    background:#eef5f0;
}

.cm-author-post-image img,
.cm-author-post-thumb{
    position:absolute !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    min-width:100% !important;
    min-height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.cm-author-post-body{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-width:0;
    padding:17px 17px 19px;
}

.cm-author-post-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px 8px;
    margin:0 0 10px;
    font-size:12px;
    line-height:1.5;
    color:#718078;
}

.cm-author-post-meta a{
    color:inherit;
    text-decoration:none;
}

.cm-author-post-title{
    margin:0 0 10px;
    font-size:20px;
    line-height:1.4;
    font-weight:700;
}

.cm-author-post-title a{
    color:#183127;
    text-decoration:none;
}

.cm-author-post-title a:hover,
.cm-author-post-meta a:hover,
.cm-author-post-readmore:hover{
    text-decoration:underline;
}

.cm-author-post-excerpt{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    margin:0 0 14px;
    color:#47594d;
    font-size:15px;
    line-height:1.65;
}

.cm-author-post-readmore{
    margin-top:auto;
    color:#1f7a4d;
    font-weight:700;
    text-decoration:none;
}

.cm-author-pagination{
    margin-top:32px;
}

.cm-author-pagination .nav-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.cm-author-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 12px;
    border:1px solid #cedbd2;
    border-radius:9px;
    background:#fff;
    color:#1f7a4d;
    text-decoration:none;
    box-sizing:border-box;
}

.cm-author-pagination .current{
    background:#183127;
    color:#fff;
    border-color:#183127;
}

.cm-empty{
    padding:24px;
    border:1px solid #dfe9e2;
    border-radius:14px;
    background:#fff;
    color:#47594d;
}

@media(max-width:900px){
    .cm-author-posts{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .cm-author-page .cm-article-shell{
        padding:22px 14px 48px;
    }

    .cm-author-header{
        padding:24px 20px;
        border-radius:14px;
    }

    .cm-author-header h1{
        font-size:30px;
    }

    .cm-author-posts{
        grid-template-columns:1fr;
        gap:18px;
    }

    .cm-author-post-title{
        font-size:19px;
    }
}
