/* ===== Author Hero — Figma spec ===== */
.author-hero {
    background: linear-gradient(180deg, #F7F6FF 0%, #FFFFFF 100%);
    padding: 80px 0;
}
.author-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
}
.author-avatar-wrap {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(90deg, #79A9F0 0%, #A22BF6 100%);
    flex-shrink: 0;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.1);
}
.author-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid #fff;
}
.author-hero-text {
    flex: 1;
    min-width: 0;
}
.author-name {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #181818;
    letter-spacing: -0.5px;
    line-height: 68px;
    text-align: left;
}
.author-title {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 20px;
    color: #7A62F0;
    line-height: 32px;
    text-align: left;
}
.author-bio {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    line-height: 24px;
    text-align: left;
    margin: 0;
}

/* ===== Author Articles Section ===== */
.author-articles {
    padding: 80px 0;
    background: #FFFFFF;
}
.articles-header {
    max-width: 1320px;
    margin: 0 auto 40px;
    text-align: center;
    box-sizing: border-box;
}
.articles-title {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    color: #181818;
    line-height: 50px;
    text-align: center;
}
.articles-count {
    display: none;
}

.articles-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1320px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    box-sizing: border-box;
}

/* ===== Article Card (Figma) ===== */
.author-articles .article-card {
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.author-articles .article-card:hover {
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}
.author-articles .article-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.author-articles .card-content {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}
.author-articles .card-text-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.author-articles .article-category {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #7A62F0;
    line-height: 24px;
    margin: 0;
}
.author-articles .article-text-link {
    text-decoration: none;
    display: block;
}
.author-articles .title-two-line {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.2s;
}
.author-articles .article-card:hover .title-two-line {
    color: #7A62F0;
}
.author-articles .content-three-line {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 350;
    color: #666666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}
.author-articles .article-date {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 350;
    color: #999999;
    line-height: 24px;
    margin: 0;
}

/* ===== Empty / loading state ===== */
.author-articles .empty-state,
.author-articles .loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #999999;
    font-size: 0.95rem;
}
.author-articles .loading-state::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E6E6E6;
    border-top-color: #7A62F0;
    border-radius: 50%;
    animation: author-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.6rem;
}
@keyframes author-spin {
    to { transform: rotate(360deg); }
}

/* ===== Pagination ===== */
.author-pagination-wrap {
    max-width: 1320px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
.author-pagination-wrap .pagination {
    margin: 0;
}
.author-pagination-wrap .page-item .page-link {
    color: #7A62F0;
    border: 1px solid #E6E6E6;
    padding: 0.5rem 0.9rem;
    margin: 0 2px;
    border-radius: 8px !important;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.author-pagination-wrap .page-item.active .page-link {
    background: #7A62F0;
    border-color: #7A62F0;
    color: #fff;
}
.author-pagination-wrap .page-item .page-link:hover {
    background: #F7F6FF;
    border-color: #7A62F0;
    color: #7A62F0;
}

/* ===== Single article meta (unchanged) ===== */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.article-meta .meta-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.article-meta .meta-author-name {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}
.article-meta .meta-author-name:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* ===== Newsroom / Guidance meta line (unchanged) ===== */
.article-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.2rem 0.3rem 0;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    color: #939393;
    line-height: 1.4;
}
.article-meta-line .meta-author {
    text-align: left;
    color: #888780;
}
.article-meta-line .meta-date {
    text-align: right;
    color: #b4b2a9;
}

/* ===== Responsive — Figma 4 breakpoints ===== */

/* Desktop S / 1024 — add 80px side padding, fill viewport */
@media (max-width: 1440px) {
    .author-hero-inner,
    .articles-header,
    .articles-grid,
    .author-pagination-wrap {
        max-width: 100%;
        padding: 0 80px;
    }
    .author-hero { padding: 60px 0; }
    .author-avatar { width: 160px; height: 160px; }
    .author-name { font-size: 38px; line-height: 50px; }
    .author-title { font-size: 20px; line-height: 32px; }
    .author-bio { font-size: 16px; line-height: 22px; }
    .articles-title { font-size: 32px; line-height: 42px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Tablet / 768 — 40px side padding */
@media (max-width: 1024px) {
    .author-hero-inner,
    .articles-header,
    .articles-grid,
    .author-pagination-wrap {
        padding: 0 40px;
    }
    .author-hero { padding: 40px 0; }
    .author-avatar { width: 140px; height: 140px; }
    .author-name { font-size: 38px; line-height: 50px; }
    .author-title { font-size: 20px; line-height: 28px; }
    .author-bio { font-size: 14px; line-height: 20px; }
    .articles-title { font-size: 28px; line-height: 38px; }
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .author-articles .card-content { padding: 16px 20px 20px; gap: 12px; }
    .author-articles .title-two-line { font-size: 17px; }
    .author-articles .content-three-line { font-size: 15px; }
}

/* Mobile / 360 — 20px side padding, column hero */
@media (max-width: 640px) {
    .author-hero-inner,
    .articles-header,
    .articles-grid,
    .author-pagination-wrap {
        padding: 0 20px;
    }
    .author-hero-inner { flex-direction: column; text-align: center; gap: 10px; }
    .author-hero-text { text-align: center; }
    .author-name { text-align: center; font-size: 32px; line-height: 42px; }
    .author-title { text-align: center; font-size: 14px; line-height: 20px; }
    .author-bio { text-align: center; font-size: 14px; line-height: 20px; }
    .author-hero { padding: 20px 0; }
    .author-avatar { width: 120px; height: 120px; }
    .articles-title { font-size: 28px; line-height: 38px; }
    .author-articles .card-content { padding: 14px 18px 18px; gap: 10px; }
    .author-articles .title-two-line { font-size: 16px; }
    .author-articles .content-three-line { font-size: 14px; }
}
