/* ============================================================
   AUTHOR HERO  (extends .cat-hero from category.css)
   ============================================================ */

.cat-hero {
    background: var(--color-light);
    border-bottom: 1px solid #e8e8e8;
    padding: 44px 0 40px;
}

.cat-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cat-hero__breadcrumb a {
    color: var(--main);
    text-decoration: none;
    transition: color .2s;
}

.cat-hero__breadcrumb a:hover { color: var(--main-dark); }

.cat-hero__breadcrumb span[aria-hidden] { color: #ddd; }

.cat-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.25;
    margin: 0 0 12px;
}

.cat-hero__desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 0 16px;
}


/* ── Author profile block ───────────────────────────────────── */

.author-hero__profile {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.author-hero__avatar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.author-hero__info {
    flex: 1;
}

.author-hero__name {
    margin-bottom: 8px;
}

.author-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.author-hero__count {
    display: inline-block;
    background: var(--main-focus);
    color: var(--main-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 4px 14px;
    border-radius: 50px;
}

.author-hero__website {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--main);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.author-hero__website:hover { color: var(--main-dark); }


/* ============================================================
   POSTS GRID
   ============================================================ */

.cat-posts {
    padding: 56px 0 72px;
}

.cat-empty {
    text-align: center;
    color: #999;
    font-size: 1rem;
    padding: 48px 0;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 48px;
}

.cat-pagination a,
.cat-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e0e0e0;
    color: var(--color-dark);
    background: #fff;
    transition: background .2s, border-color .2s, color .2s;
}

.cat-pagination a:hover {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
}

.cat-pagination .current {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
}

.cat-pagination .dots {
    border-color: transparent;
    background: transparent;
    color: #aaa;
    cursor: default;
}


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

@media (max-width: 575px) {
    .author-hero__profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .cat-hero__desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cat-hero  { padding: 32px 0 28px; }
    .cat-posts { padding: 36px 0 52px; }
}
