/* ============================================================
   AUTHOR ARCHIVE TEMPLATE STYLES
   author.css  —  zeeshanworks theme
   ============================================================ */

/* ============================================================
   1. AUTHOR HERO SECTION
   ============================================================ */

.author-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede8f8 55%, #e4dff5 100%);
    border-bottom: 1px solid rgba(91, 51, 230, 0.1);
    padding: 140px var(--space-18, 2rem) 80px;
}

/* Decorative floating shapes */
.author-hero__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.author-hero__bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--color-brand, #5b33e6);
    animation: author-float 8s ease-in-out infinite;
}

.author-hero__bg-shapes .shape-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

.author-hero__bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 10%;
    animation-delay: -3s;
}

.author-hero__bg-shapes .shape-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 25%;
    opacity: 0.04;
    animation-delay: -5.5s;
}

.author-hero__bg-shapes .shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 30%;
    opacity: 0.05;
    animation-delay: -2s;
}

@keyframes author-float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

.author-hero__inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-8, 2rem);
    flex-wrap: wrap;
}

/* Avatar */
.author-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.author-hero__avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white, #fff);
    box-shadow: 0 20px 40px rgba(91, 51, 230, 0.2);
    transition: transform 0.3s ease;
}

.author-hero__avatar:hover {
    transform: scale(1.02);
}

.author-status-dot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    border: 3px solid var(--color-white);
    border-radius: 50%;
}

/* Hero Content */
.author-hero__content {
    flex: 1;
}

.author-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    font-weight: var(--weight-semibold, 600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand, #5b33e6);
    background: rgba(91, 51, 230, 0.08);
    border: 1px solid rgba(91, 51, 230, 0.18);
    padding: 6px 14px;
    border-radius: var(--radius-pill, 9999px);
    margin-bottom: var(--space-5, 1.25rem);
}

.author-hero__label .label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-brand, #5b33e6);
    animation: author-pulse-dot 2s ease-in-out infinite;
}

@keyframes author-pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.author-hero__title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: var(--weight-black, 900);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink-alt, #1f2937);
    margin-bottom: var(--space-2, 0.5rem);
}

.author-hero__role {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 18px;
    font-weight: var(--weight-semibold, 600);
    color: var(--color-brand, #5b33e6);
    margin-bottom: var(--space-3, 0.75rem);
}

.author-hero__tagline {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-body, #374151);
    max-width: 600px;
    margin-bottom: var(--space-5, 1.25rem);
}

/* Hero Social Links */
.author-hero__social {
    display: flex;
    gap: var(--space-3, 0.75rem);
    flex-wrap: wrap;
}

.hero-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    color: var(--color-brand, #5b33e6);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero-social-link:hover {
    background: var(--color-brand, #5b33e6);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 51, 230, 0.25);
}

/* ============================================================
   2. AUTHOR STATS SECTION
   ============================================================ */

.author-stats {
    background: var(--color-white);
    border-bottom: 1px solid rgba(91, 51, 230, 0.08);
    padding: var(--space-10, 2.5rem) var(--space-18, 2rem);
}

.stats-container {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6, 1.5rem);
}

.stat-card {
    text-align: center;
    padding: var(--space-5, 1.25rem);
    background: rgba(91, 51, 230, 0.03);
    border-radius: var(--radius-xl, 0.875rem);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(91, 51, 230, 0.06);
    transform: translateY(-4px);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand, #5b33e6);
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.stat-number {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 32px;
    font-weight: var(--weight-black, 900);
    color: var(--color-ink-alt, #1f2937);
    margin-bottom: var(--space-1, 0.25rem);
}

.stat-label {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
}

/* ============================================================
   3. MAIN LAYOUT (Grid + Sidebar)
   ============================================================ */

.blog-layout {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: var(--space-12, 3rem) var(--space-18, 2rem) var(--space-20, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: var(--space-12, 3rem);
    align-items: start;
}

/* ============================================================
   4. POST GRID
   ============================================================ */

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-3, 0.75rem);
    margin-bottom: var(--space-8, 2rem);
}

.section-title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 28px;
    font-weight: var(--weight-black, 900);
    color: var(--color-ink-alt, #1f2937);
    letter-spacing: -0.02em;
}

.section-count {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
    background: rgba(91, 51, 230, 0.07);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6, 1.5rem);
}

/* Wide card spans both columns */
.post-card--wide {
    grid-column: 1 / -1;
}

/* Base Card */
.post-card {
    background: var(--color-white, #fff);
    border-radius: var(--radius-xl, 0.875rem);
    border: 1px solid rgba(91, 51, 230, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 12px 40px rgba(91, 51, 230, 0.1);
    transform: translateY(-4px);
}

/* Wide card layout: image left, content right */
.post-card--wide {
    flex-direction: row;
}

.post-card--wide .post-card__image-link {
    width: 45%;
    flex-shrink: 0;
    display: block;
}

.post-card--wide .post-card__image-wrap {
    width: 100%;
    height: 100%;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.post-card--wide .post-card__body {
    padding: var(--space-8, 2rem);
    justify-content: center;
    width: 55%;
}

.post-card--wide .post-card__title {
    font-size: 24px;
}

/* Image */
.post-card__image-link {
    display: block;
}

.post-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.05);
}

.post-card__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #ede8f8, #ddd6f8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 36px;
    color: var(--color-brand);
    opacity: 0.4;
}

/* Card Body */
.post-card__body {
    padding: var(--space-5, 1.25rem) var(--space-5, 1.25rem) var(--space-5, 1.25rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2, 0.5rem);
}

.post-card__cat {
    display: inline-block;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 11px;
    font-weight: var(--weight-semibold, 600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand, #5b33e6);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card__cat:hover {
    color: var(--color-brand-deeper, #3a1fb8);
}

.post-card__title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 18px;
    font-weight: var(--weight-bold, 700);
    line-height: 1.3;
    color: var(--color-ink-alt, #1f2937);
    letter-spacing: -0.01em;
    margin: 0;
}

.post-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.post-card__title a:hover {
    color: var(--color-brand, #5b33e6);
}

.post-card__excerpt {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-body, #374151);
    flex: 1;
}

/* Card Footer */
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-3, 0.75rem);
    padding-top: var(--space-3, 0.75rem);
    border-top: 1px solid rgba(91, 51, 230, 0.07);
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-muted);
    flex-shrink: 0;
}

.post-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(91, 51, 230, 0.08);
    color: var(--color-brand, #5b33e6);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.post-card__arrow:hover {
    background: var(--color-brand);
    color: var(--color-white);
    transform: translateX(3px);
}

/* ============================================================
   5. PAGINATION
   ============================================================ */

.blog-pagination {
    margin-top: var(--space-12, 3rem);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md, 0.5rem);
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    font-weight: var(--weight-medium, 500);
    text-decoration: none;
    background: var(--color-white);
    border: 1px solid rgba(91, 51, 230, 0.15);
    color: var(--color-text-body, #374151);
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-white);
    transform: translateY(-2px);
}

.blog-pagination .page-numbers.current {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(91, 51, 230, 0.3);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* ============================================================
   6. NO POSTS STATE
   ============================================================ */

.no-posts {
    text-align: center;
    padding: var(--space-16, 4rem) var(--space-8, 2rem);
    border: 2px dashed rgba(91, 51, 230, 0.2);
    border-radius: var(--radius-2xl);
}

.no-posts__icon {
    display: block;
    font-size: 48px;
    margin-bottom: var(--space-5, 1.25rem);
}

.no-posts h3 {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 24px;
    font-weight: var(--weight-bold, 700);
    color: var(--color-ink-alt);
    margin-bottom: var(--space-2, 0.5rem);
}

.no-posts p {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6, 1.5rem);
}

.btn-primary {
    display: inline-block;
    background: var(--color-brand);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    font-weight: var(--weight-semibold, 600);
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--color-brand-deeper, #3a1fb8);
    transform: translateY(-2px);
}

/* ============================================================
   7. SIDEBAR
   ============================================================ */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6, 1.5rem);
    position: sticky;
    top: 100px;
}

/* Shared Card Base */
.sidebar-card {
    background: var(--color-white);
    border: 1px solid rgba(91, 51, 230, 0.08);
    border-radius: var(--radius-xl, 0.875rem);
    padding: var(--space-6, 1.5rem);
    transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 6px 24px rgba(91, 51, 230, 0.08);
}

.sidebar-title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 17px;
    font-weight: var(--weight-bold, 700);
    color: var(--color-ink-alt, #1f2937);
    margin-bottom: var(--space-5, 1.25rem);
    padding-bottom: var(--space-3, 0.75rem);
    border-bottom: 2px solid var(--color-brand-pale, #e8e4f5);
}

/* About Author Card */
.about-author-card .author-full-bio {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-body, #374151);
    margin-bottom: var(--space-5, 1.25rem);
}

.about-author-card .author-full-bio p {
    margin-bottom: var(--space-3, 0.75rem);
}

.author-bio-placeholder {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-body, #374151);
    margin-bottom: var(--space-5, 1.25rem);
}

.author-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-5, 1.25rem);
    padding-bottom: var(--space-4, 1rem);
    border-bottom: 1px solid rgba(91, 51, 230, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-brand, #5b33e6);
}

.contact-item a {
    color: var(--color-text-body, #374151);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--color-brand, #5b33e6);
}

.response-time {
    text-align: center;
}

.response-badge {
    display: inline-block;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: var(--radius-pill);
}

/* Author Categories Card */
.author-categories-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    font-weight: var(--weight-medium, 500);
    padding: 5px 12px;
    background: rgba(91, 51, 230, 0.06);
    color: var(--color-text-body, #374151);
    border-radius: var(--radius-pill, 9999px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-category-tag:hover {
    background: var(--color-brand, #5b33e6);
    color: var(--color-white);
    transform: translateY(-2px);
}

.author-category-tag .cat-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 5px;
    border-radius: 99px;
}

.author-category-tag:hover .cat-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Popular Posts */
.popular-post {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4, 1rem);
    padding: var(--space-3, 0.75rem) 0;
    border-bottom: 1px solid rgba(91, 51, 230, 0.06);
    text-decoration: none;
    transition: background 0.2s;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post:hover {
    background: rgba(91, 51, 230, 0.04);
    margin: 0 -4px;
    padding: var(--space-3, 0.75rem) 4px;
    border-radius: var(--radius-md, 0.5rem);
}

.popular-post__num {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 22px;
    font-weight: var(--weight-black, 900);
    color: rgba(91, 51, 230, 0.15);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    margin-top: 2px;
}

.popular-post__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.popular-post__cat {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 10px;
    font-weight: var(--weight-semibold, 600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand, #5b33e6);
}

.popular-post__title {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    font-weight: var(--weight-semibold, 600);
    color: var(--color-ink-alt, #1f2937);
    line-height: 1.4;
}

.popular-post__date {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 11px;
    color: var(--color-text-muted, #6b7280);
}

/* Address Card */
.address-card p {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-body, #374151);
    margin-bottom: var(--space-3, 0.75rem);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    font-weight: var(--weight-semibold, 600);
    color: var(--color-brand, #5b33e6);
    text-decoration: none;
    transition: gap 0.2s;
}

.map-link:hover {
    gap: 10px;
}

/* Newsletter CTA */
.newsletter-card {
    background: linear-gradient(135deg, var(--color-brand, #5b33e6) 0%, #7c52f5 100%);
    border: none;
    text-align: center;
}

.newsletter-icon {
    font-size: 28px;
    margin-bottom: var(--space-3, 0.75rem);
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 19px;
    font-weight: var(--weight-black, 900);
    color: var(--color-white, #fff);
    margin-bottom: var(--space-2, 0.5rem);
}

.newsletter-desc {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-5, 1.25rem);
}

.newsletter-btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-brand, #5b33e6);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    font-weight: var(--weight-semibold, 600);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   8. RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 1024px) {
    .author-hero {
        padding: 120px var(--space-10, 1.5rem) 60px;
    }

    .stats-container {
        gap: var(--space-4, 1rem);
    }

    .blog-layout {
        padding: var(--space-10, 2.5rem) var(--space-10, 1.5rem) var(--space-16, 4rem);
        gap: var(--space-8, 2rem);
    }
}

@media (max-width: 900px) {
    .author-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .author-hero__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .author-hero__social {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    /* Fix for wide card on mobile */
    .post-card--wide {
        flex-direction: column;
    }

    .post-card--wide .post-card__image-link {
        width: 100%;
    }

    .post-card--wide .post-card__image-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: unset;
        position: relative;
    }

    .post-card--wide .post-card__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-card--wide .post-card__body {
        width: 100%;
        padding: var(--space-5, 1.25rem);
    }

    .post-card--wide .post-card__title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: 100px var(--space-6, 1rem) 50px;
    }

    .author-hero__avatar {
        width: 140px;
        height: 140px;
    }

    .author-hero__title {
        font-size: 36px;
    }

    .author-hero__role {
        font-size: 16px;
    }

    .author-hero__tagline {
        font-size: 14px;
    }

    .stats-container {
        gap: var(--space-3, 0.75rem);
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
    }

    .blog-layout {
        padding: var(--space-8, 2rem) var(--space-6, 1rem) var(--space-12, 3rem);
    }

    .post-grid {
        gap: var(--space-5, 1.25rem);
    }

    .post-card__arrow {
        width: 36px;
        height: 36px;
    }

    .post-card__arrow svg {
        width: 16px;
        height: 16px;
    }

    .section-header {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .section-title {
        font-size: 24px;
    }

    .section-count {
        font-size: 12px;
    }
}

@media (max-width: 580px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: var(--space-3, 0.75rem);
    }

    .stat-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-4, 1rem);
        padding: var(--space-4, 1rem);
    }

    .stat-icon {
        margin: 0;
    }

    .stat-info {
        flex: 1;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .author-hero {
        padding: 80px var(--space-4, 0.75rem) 40px;
    }

    .author-hero__avatar {
        width: 110px;
        height: 110px;
    }

    .author-hero__title {
        font-size: 28px;
    }

    .author-hero__label {
        font-size: 11px;
    }

    .blog-layout {
        padding: var(--space-6, 1.5rem) var(--space-4, 0.75rem) var(--space-10, 2.5rem);
    }

    .section-title {
        font-size: 22px;
    }

    .sidebar-card {
        padding: var(--space-5, 1.25rem);
    }

    .post-card--wide .post-card__body {
        padding: var(--space-4, 1rem);
    }

    .post-card--wide .post-card__title {
        font-size: 18px;
    }

    .post-card--wide .post-card__excerpt {
        font-size: 13px;
    }

    .post-card--wide .post-card__meta {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .author-hero__title {
        font-size: 24px;
    }

    .post-card--wide .post-card__body {
        padding: var(--space-3, 0.75rem);
    }

    .post-card--wide .post-card__title {
        font-size: 16px;
    }

    .post-card--wide .post-card__excerpt {
        font-size: 12px;
        line-height: 1.5;
    }

    .post-card--wide .post-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================================
   9. PRINT STYLES
   ============================================================ */

@media print {

    .author-hero::before,
    .author-hero__bg-shapes,
    .author-stats,
    .blog-sidebar,
    .blog-pagination {
        display: none;
    }

    .blog-layout {
        display: block;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   10. FOCUS & ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--color-brand, #5b33e6);
    outline-offset: 3px;
    border-radius: var(--radius-sm, 0.25rem);
}

html {
    scroll-behavior: smooth;
}