/*=== CUSTOM AUTHOR BOX (Single Post) ===*/
.custom-author-box {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-author-box__label {
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.custom-author-box__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px 24px;
}

.custom-author-box__avatar {
    flex-shrink: 0;
}

.custom-author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #224e40;
    transition: transform 0.3s ease;
}

.custom-author-box__avatar img:hover {
    transform: scale(1.08);
}

.custom-author-box__info {
    flex: 1;
    min-width: 0;
}

.custom-author-box__name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.custom-author-box__name a {
    color: #224e40;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-author-box__desc {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .custom-author-box__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
}

/*=== END CUSTOM AUTHOR BOX ===*/

/*=== AUTHOR PAGE ===*/
.author-page-wrapper {
    padding-top: 30px !important;
    padding-bottom: 60px;
}

.author-hero {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.author-hero__header {
    background: linear-gradient(180deg, var(--fs-color-primary), #1b7d5e);
    padding: 14px 24px;
    text-align: center;
}

.author-hero__header-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.author-hero__body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 40px 36px;
}

.author-hero__avatar-wrap {
    flex-shrink: 0;
}

.author-hero__avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #224e40;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.25);
    transition: transform 0.3s ease;
}

.author-hero__avatar:hover {
    transform: scale(1.05);
}

.author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-hero__info {
    flex: 1;
    min-width: 0;
}

.author-hero__name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.3;
}

.author-hero__desc {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 20px;
}

.author-hero__socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.author-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #333;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-social-icon--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.author-social-icon--zalo:hover {
    background: #0068ff;
    border-color: #0068ff;
    color: #fff;
}

.author-social-icon--globe:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

.author-social-icon--youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.author-social-icon--tiktok:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.author-social-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
    color: #fff;
}

.author-social-icon--twitter:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.author-social-icon--linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

/* Author Full Bio */
.author-bio-full {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.author-bio-full h2,
.author-bio-full h3,
.author-bio-full h4 {
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 12px;
}

.author-bio-full img {
    border-radius: 12px;
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}

.author-bio-full p {
    margin-bottom: 14px;
}

/* Author Posts Section */
.author-posts-section {
    margin-bottom: 30px;
}

.author-posts-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #d4a017;
    display: inline-block;
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.author-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.author-post-card__thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.author-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.author-post-card:hover .author-post-card__thumb img {
    transform: scale(1.06);
}

.author-post-card__no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.author-post-card__content {
    padding: 16px;
}

.author-post-card__date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-post-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 6px 0 0;
    line-height: 1.4;
}

.author-post-card__title a {
    color: #1a1a2e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.author-post-card__title a:hover {
    color: #d4a017;
}

.author-posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 0;
}

.author-pagination {
    text-align: center;
    margin-top: 30px;
}

.author-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.author-pagination .page-numbers.current,
.author-pagination .page-numbers:hover {
    background: #224e40;
    color: #fff;
}

@media (max-width: 768px) {
    .author-hero__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }

    .author-hero__avatar {
        width: 120px;
        height: 120px;
    }

    .author-hero__name {
        font-size: 22px;
    }

    .author-hero__socials {
        justify-content: center;
    }

    .author-bio-full {
        padding: 24px 20px;
    }

    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
}

/*=== END AUTHOR PAGE ===*/
