/**
 * Author Archive Styles
 * Theme: Flatsome Child
 * Brand color: #2B5ACD
 */

/* ========================================
   Variables
   ======================================== */
:root {
    --author-primary: #2B5ACD;
    --author-primary-light: #EEF2FF;
    --author-primary-border: #D6DDFF;
    --author-text: #1B1C1C;
    --author-text-secondary: #666666;
    --author-text-muted: #999999;
    --author-bg: #FFFFFF;
    --author-bg-light: #F5F5F5;
    --author-border: #EEEEEE;
    --author-cat-color: #2B5ACD;
    --author-max-width: 1100px;
}

/* ========================================
   Layout Container
   ======================================== */
.author-archive {
    background: var(--author-bg);
}

.author-container {
    max-width: var(--author-max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ========================================
   Section 1: Breadcrumb
   ======================================== */
.author-breadcrumb {
    background: var(--author-bg-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--author-border);
}

.author-breadcrumb nav,
.author-breadcrumb .rank-math-breadcrumb {
    font-size: 13px;
    color: var(--author-text-secondary);
    line-height: 1;
}

.author-breadcrumb a {
    color: var(--author-text-secondary);
    text-decoration: none;
}

.author-breadcrumb a:hover {
    color: var(--author-primary);
}

.author-breadcrumb .breadcrumb-current,
.author-breadcrumb .current {
    color: var(--author-primary);
    font-weight: 500;
}

/* ========================================
   Section 2: Author Profile Card
   ======================================== */
.author-profile-section {
    padding-top: 32px;
}

.author-card {
    background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
    border: 1px solid var(--author-primary-border);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* -- Top row: avatar + info -- */
.author-card__top {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Avatar */
.author-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.author-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--author-cat-color);
    display: block;
}

.author-card__badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--author-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Info */
.author-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-card__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--author-text);
    margin: 0;
    line-height: 1.3;
}

.author-card__meta {
    font-size: 14px;
    color: var(--author-text-secondary);
}

.author-card__post-count strong {
    color: var(--author-text);
    font-weight: 700;
}

/* Socials */
.author-card__socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.author-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--author-primary);
    border: 1px solid var(--author-primary-border);
    transition: background 0.2s, color 0.2s;
}

.author-card__social-link:hover {
    background: var(--author-primary);
    color: #FFFFFF;
    border-color: var(--author-primary);
}

/* Bio / Quote */
.author-card__bio {
    position: relative;
    padding: 0 28px;
    margin-top: 4px;
}

.author-card__bio p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--author-text);
    margin: 0;
}

.author-card__quote-mark {
    color: var(--author-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    opacity: 0.6;
}

.author-card__quote-mark--open {
    top: -6px;
    left: 0;
}

.author-card__quote-mark--close {
    bottom: -10px;
    right: 4px;
}

/* ========================================
   Section 3: Post List
   ======================================== */
.author-posts-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Heading với underline accent */
.author-posts__heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--author-text);
    margin: 0 0 28px 0;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.author-posts__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--author-primary);
}

/* Post list container */
.author-posts__list {
    display: flex;
    flex-direction: column;
}

/* Single post card */
.author-post-card {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--author-border);
}

.author-post-card:first-child {
    padding-top: 0;
}

.author-post-card:last-child {
    border-bottom: none;
}

/* Thumbnail */
.author-post-card__thumb {
    width: 35%;
    flex-shrink: 0;
}

.author-post-card__thumb a {
    display: block;
    overflow: hidden;
}

.author-post-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;

}

.author-post-card__thumb a:hover .author-post-card__img {
    transform: scale(1.03);
}

.author-post-card__img-placeholder {
    width: 100%;
    height: 180px;
    background: var(--author-bg-light);
}

/* Content */
.author-post-card__content {
    width: 65%;
    display: flex;
    flex-direction: column;
}

/* Category tag */
.author-post-card__cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--author-cat-color);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    display: inline-block;
}

.author-post-card__cat:hover {
    opacity: 0.8;
}

/* Post title */
.author-post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-post-card__title a {
    color: var(--author-text);
    text-decoration: none;
    transition: color 0.2s;
}

.author-post-card__title a:hover {
    color: var(--author-primary);
}

/* Meta: author + date */
.author-post-card__meta {
    font-size: 13px;
    color: var(--author-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.author-post-card__sep {
    color: var(--author-border);
}

/* Excerpt */
.author-post-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--author-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.author-posts__empty {
    text-align: center;
    padding: 48px 0;
    color: var(--author-text-secondary);
    font-size: 15px;
}

/* ========================================
   Pagination
   ======================================== */
.author-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* WordPress pagination output */
.author-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--author-text);
    border: 1px solid #DDD;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.author-pagination .page-numbers:hover {
    border-color: var(--author-primary);
    color: var(--author-primary);
}

.author-pagination .page-numbers.current {
    background: var(--author-primary);
    color: #FFFFFF;
    border-color: var(--author-primary);
}

.author-pagination .page-numbers.dots {
    border: none;
    pointer-events: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .author-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Author Card */
    .author-card {
        padding: 20px;
    }

    .author-card__top {
        gap: 16px;
    }

    .author-card__avatar {
        width: 72px;
        height: 72px;
    }

    .author-card__name {
        font-size: 20px;
    }

    .author-card__bio {
        padding: 0 20px;
    }

    .author-card__bio p {
        font-size: 14px;
    }

    /* Post list */
    .author-posts-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .author-post-card {
        gap: 14px;
        padding: 16px 0;
    }

    .author-post-card__img {
        height: 90px;
    }

    .author-post-card__img-placeholder {
        height: 90px;
    }

    .author-post-card__title {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
}

    .author-post-card__excerpt {
        display: none;
    }

    .author-post-card__meta {
        font-size: 12px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .author-card__top {
        flex-direction: column;
        text-align: center;
    }

    .author-card__bio {
        text-align: center;
    }

    .author-card__socials {
        justify-content: center;
    }

    .author-post-card__thumb {
        width: 30%;
    }

    .author-post-card__content {
        width: 70%;
    }
}