.author-single-block {
    background: #ebf0fc;
    border-radius: .625rem;
    padding: 25px;
    margin: 40px 0 -20px 0;
    
    @media (max-width: 1024px) {
        padding: 22px;
        margin: 35px 0;
    }

    @media (max-width: 768px) {
        padding: 20px;
        margin: 30px 0;
        border-radius: .5rem;
    }

    @media (max-width: 480px) {
        padding: 18px;
        margin: 25px 0;
        border-radius: .4rem;
    }
}

.author-single-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;

    @media (max-width: 1024px) {
        gap: 18px;
    }

    @media (max-width: 480px) {
        align-items: center;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.author-single-avatar {
    flex-shrink: 0;

    img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 8px solid #dee5f6;

        @media (max-width: 1024px) {
            width: 75px;
            height: 75px;
            border: 6px solid #dee5f6;;
        }

        @media (max-width: 768px) {
            width: 70px;
            height: 70px;
            border: 5px solid #dee5f6;
        }

        @media (max-width: 480px) {
            width: 60px;
            height: 60px;
            border: 4px solid #dee5f6;
        }
    }
}

.author-single-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;

    @media (max-width: 480px) {
        align-items: center;
    }
}

.author-single-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-single-name {
    margin: 0px !important;
    font-size: 18px;
    font-weight: 700;
    color: #1f3057;

    @media (max-width: 1024px) {
        font-size: 17px;
    }

    @media (max-width: 768px) {
        font-size: 16px;
    }

    @media (max-width: 480px) {
        font-size: 15px;
    }

    a {
        color: #1f3057 !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }
}

.author-single-bio {
    font-size: 14px;
    line-height: 1.5;
    color: #00000078;

    @media (max-width: 768px) {
        font-size: 13px;
    }

    @media (max-width: 480px) {
        font-size: 12px;
    }
}


.author-single-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 5px;

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    @media (max-width: 480px) {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }  
}

.author-single-posts-count {
    font-size: 12px;
    font-weight: 400;
    color: #00000078;

    @media (max-width: 480px) {
        font-size: 11px;
    }
}

.author-single-link {
    background: #dee5f6;
    font-size: 12px;
    font-weight: 600;
    color: #00000078 !important;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;

    @media (max-width: 768px) {
        font-size: 11px;
        padding: 3px 10px;
    }

    @media (max-width: 480px) {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* Архив авторов (список), по референсу WP authors.css */
.authors-archive-container {
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.authors-archive-header {
    margin-bottom: 20px;
    margin-top: 40px;
    .archive-title {
        font-size: 32px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 15px;
    }
}

.archive-description {
    color: #babbbf;
    font-size: 16px;
    line-height: 1.5;
}

.authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    height: fit-content;
}

.author-card {
    width: 100%;
    height: 100%;
    background-color: #101b32;
    box-shadow: 0 0 15px 0 rgba(7, 16, 39, 0.4);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.author-card:hover {
    background-color: #192844;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(64, 243, 247, 0.18), 0 0 15px 0 rgba(7, 16, 39, 0.4);
}

.author-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: calc(33% - 15px);
}

.author-card-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-card-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    min-height: 120px;
}

.author-card-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.1);
    display: block;
    flex-shrink: 0;
}

.author-card-avatar-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

.author-card-avatar svg {
    width: 100px;
    height: 100px;
    fill: rgba(255, 255, 255, 0.1);
    display: block;
}

.author-card-info {
    text-align: center;
}

.author-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.author-card-position {
    display: inline-block;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.author-card-bio {
    font-size: 14px;
    line-height: 1.5;
    color: #babbbf;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.author-card-posts-count {
    font-size: 12px;
    font-weight: 400;
    color: #babbbf;
}

.no-authors {
    text-align: center;
    padding: 60px 20px;
    color: #babbbf;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .author-card-link {
        width: calc(50% - 10px);
    }

    .authors-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .author-card-link {
        width: 100%;
    }

    .authors-grid {
        gap: 15px;
    }

    .author-card-content {
        padding: 20px;
    }

    .author-card-avatar {
        min-height: 100px;
    }

    .author-card-avatar-img {
        width: 100px;
        height: 100px;
    }

    .author-card-avatar svg {
        width: 100px;
        height: 100px;
    }

    .author-card-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .authors-grid {
        gap: 15px;
    }

    .archive-description {
        font-size: 14px;
    }

    .author-card-content {
        padding: 18px;
    }

    .author-card-avatar {
        min-height: 80px;
    }

    .author-card-avatar-img {
        width: 80px;
        height: 80px;
    }

    .author-card-avatar svg {
        width: 80px;
        height: 80px;
    }

    .author-card-name {
        font-size: 16px;
    }

    .author-card-bio {
        font-size: 13px;
    }
}

/* Страница автора (single-authors.php + author-header) */
.author-container {
    width: 100%;
    box-sizing: border-box;
}

.author-posts-heading {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
}

.author-header {
    border-radius: 0.625rem;
    background: #fff;
    overflow: hidden;
    margin-bottom: 40px;

    .author-bg {
        background-image: url("../img/authors/3d-abstraktnyi-fon-s-kiber-casticami.jpg");
        background-size: cover;
        background-position: bottom;
        background-repeat: no-repeat;
        width: 100%;
        height: 180px;
    }

    .author-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .author-avatar img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 50%;
        border: 12px solid #ffffff;
        box-sizing: border-box;
    }

    .author-avatar svg {
        width: 100px;
        height: 100px;
        fill: rgb(235, 241, 252);
        border-radius: 50%;
        background-color: #ffffff;
        padding: 20px;
    }

    .author-info {
        padding: 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        color: #000;
    }

    .author-info .left {
        width: 200px;
        transform: translateY(-50%);
        margin-bottom: -40px;
    }

    .author-info .right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .author-name {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }

    .author-position {
        font-size: 14px;
        font-weight: 400;
        padding: 2px 8px;
        border-radius: 4px;
        background-color: #ebf1ff;
        color: #00000078;
        display: inline-block;
    }

    .author-description {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
    }

    .author-post-count {
        font-size: 14px;
        font-weight: 400;
        color: #00000078;
        text-align: center;
    }

    @media (max-width: 1024px) {
        margin-bottom: 30px;

        .author-bg {
            height: 160px;
        }

        .author-avatar img {
            width: 180px;
            height: 180px;
            border: 10px solid #ffffff;
        }

        .author-info {
            padding: 18px;
            gap: 15px;
        }

        .author-info .left {
            width: 180px;
            margin-bottom: -35px;
        }

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

    @media (max-width: 768px) {
        margin-bottom: 25px;

        .author-bg {
            height: 140px;
        }

        .author-avatar img {
            width: 150px;
            height: 150px;
            border: 8px solid #ffffff;
        }

        .author-avatar svg {
            width: 80px;
            height: 80px;
            padding: 15px;
        }

        .author-info {
            padding: 15px;
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }

        .author-info .left {
            width: 100%;
            transform: none;
            margin-bottom: 0;
        }

        .author-info .right {
            align-items: center;
        }

        .author-name {
            font-size: 20px;
        }

        .author-position {
            font-size: 13px;
        }

        .author-description {
            font-size: 13px;
        }
    }

    @media (max-width: 480px) {
        margin-bottom: 20px;
        border-radius: 0.5rem;

        .author-bg {
            height: 120px;
        }

        .author-avatar img {
            width: 120px;
            height: 120px;
            border: 6px solid #ffffff;
        }

        .author-avatar svg {
            width: 60px;
            height: 60px;
            padding: 12px;
        }

        .author-info {
            padding: 12px;
            gap: 12px;
        }

        .author-name {
            font-size: 18px;
        }

        .author-position {
            font-size: 12px;
            padding: 1px 6px;
        }

        .author-description {
            font-size: 12px;
        }

        .author-post-count {
            font-size: 12px;
        }
    }
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #babbbf;
    font-size: 16px;
}

.pagination-wrapper {
    width: 100%;
}

.pagination-wrapper ul.page-numbers {
    display: flex;
    justify-content: center;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    padding: 0;
}

.pagination-wrapper ul.page-numbers > li {
    margin: 0;
}

.pagination-wrapper ul.page-numbers > li .page-numbers {
    display: inline-block;
    min-width: 23px;
    height: 23px;
    padding: 7px 12px;
    margin: 0 2px;
    border-radius: 4px;
    border: none;
    background: rgba(15, 27, 50, 0.5);
    color: #fff;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    width: auto;
    box-sizing: content-box;
}

.pagination-wrapper ul.page-numbers > li .page-numbers.current,
.pagination-wrapper ul.page-numbers > li a.page-numbers:hover {
    background: #fcb900;
    color: #0f1b32;
}

.pagination-wrapper ul.page-numbers > li .page-numbers.dots {
    background: none;
    color: #aaa;
    cursor: default;
}

/* Ссылка категории в карточке (item_wrap) */
a.item_cat {
    text-decoration: none;
    color: inherit;
}

a.item_cat:hover {
    color: #40f3f7;
}

@media (max-width: 480px) {
    .author-posts-heading {
        font-size: 1.125rem;
    }
}