/* ============================================================
   CATEGORY ARCHIVE TEMPLATE STYLES
   category.css  —  zeeshanworks theme
   ============================================================ */

/* ============================================================
   1. CATEGORY HERO SECTION
   ============================================================ */

.category-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) 64px;
}

/* Decorative floating shapes - more specific selectors */
.category-hero__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.category-hero__bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--color-brand, #5b33e6);
    animation: category-float 8s ease-in-out infinite;
}

.category-hero__bg-shapes .shape-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

.category-hero__bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 10%;
    animation-delay: -3s;
}

.category-hero__bg-shapes .shape-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 25%;
    opacity: 0.04;
    animation-delay: -5.5s;
}

@keyframes category-float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

.category-hero__inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Label / eyebrow */
.category-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);
}

.category-hero__label .label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-brand, #5b33e6);
    animation: category-pulse-dot 2s ease-in-out infinite;
}

@keyframes category-pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

/* Title */
.category-hero__title {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: var(--weight-black, 900);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-ink-alt, #1f2937);
    margin-bottom: var(--space-5, 1.25rem);
}

.category-hero__title em {
    font-style: italic;
    color: var(--color-brand, #5b33e6);
    position: relative;
    display: inline-block;
}

.category-hero__title em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand, #5b33e6), #9b6df5);
    border-radius: 2px;
    opacity: 0.4;
}

/* Description */
.category-hero__description {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text-body, #374151);
    max-width: 540px;
    margin-bottom: var(--space-8, 2rem);
}

.category-hero__description strong {
    color: var(--color-brand, #5b33e6);
    font-weight: var(--weight-semibold, 600);
}

/* Category Filter Pills */
.category-hero__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    position: relative;
    z-index: 2;
}

.category-hero__filters .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill, 9999px);
    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, #ffffff);
    color: var(--color-text-body, #374151);
    border: 1px solid rgba(91, 51, 230, 0.15);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.category-hero__filters .filter-pill:hover {
    background: var(--color-brand, #5b33e6);
    color: var(--color-white);
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 51, 230, 0.25);
}

.category-hero__filters .filter-pill.is-active {
    background: var(--color-brand, #5b33e6);
    color: var(--color-white);
    border-color: var(--color-brand);
    box-shadow: 0 4px 12px rgba(91, 51, 230, 0.25);
}

.category-hero__filters .filter-pill__count {
    font-size: 11px;
    font-weight: var(--weight-semibold, 600);
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 6px;
    border-radius: 99px;
    line-height: 1.5;
}

.category-hero__filters .filter-pill:not(.is-active) .filter-pill__count {
    background: rgba(91, 51, 230, 0.1);
    color: var(--color-brand);
}

/* ============================================================
   2. CATEGORY INFO CARD (Sidebar addition)
   ============================================================ */

.category-info-card {
    text-align: center;
}

.category-info-card .category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4, 1rem);
    background: rgba(91, 51, 230, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info-card .category-icon svg {
    color: var(--color-brand, #5b33e6);
    stroke: var(--color-brand, #5b33e6);
}

.category-info-card .category-info-desc {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.65;
    color: var(--color-text-body, #374151);
    margin-bottom: var(--space-5, 1.25rem);
}

.category-info-card .category-stats {
    display: flex;
    justify-content: space-around;
    gap: var(--space-4, 1rem);
    padding-top: var(--space-4, 1rem);
    border-top: 1px solid rgba(91, 51, 230, 0.08);
}

.category-info-card .category-stats .stat {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
}

.category-info-card .category-stats .stat strong {
    font-size: 18px;
    font-weight: var(--weight-black, 900);
    color: var(--color-brand, #5b33e6);
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   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);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-brand, #5b33e6);
    padding: 2px;
    margin-bottom: var(--space-3, 0.75rem);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.author-name {
    font-family: var(--secondary-font, Georgia, serif);
    font-size: 19px;
    font-weight: var(--weight-black, 900);
    color: var(--color-ink-alt);
    margin-bottom: var(--space-1, 0.25rem);
}

.author-role {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 12px;
    font-weight: var(--weight-semibold, 600);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-brand, #5b33e6);
    margin-bottom: var(--space-3, 0.75rem);
}

.author-bio {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.65;
    color: var(--color-text-body, #374151);
    margin-bottom: var(--space-5, 1.25rem);
}

.hire-btn {
    display: inline-block;
    background: var(--color-brand, #5b33e6);
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 26px;
    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 ease, transform 0.2s ease;
}

.hire-btn:hover {
    background: var(--color-brand-deeper, #3a1fb8);
    transform: translateY(-2px);
}

/* Social Card */
.social-links-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-pale, #e8e4f5);
    border-radius: var(--radius-base, 0.5rem);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-brand);
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(1236%) hue-rotate(231deg) brightness(94%) contrast(96%);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* 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);
}

/* Categories Card */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-md, 0.5rem);
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-link:hover {
    background: rgba(91, 51, 230, 0.07);
}

.category-name {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    font-weight: var(--weight-medium, 500);
    color: var(--color-text-body, #374151);
    transition: color 0.2s;
}

.category-link:hover .category-name {
    color: var(--color-brand, #5b33e6);
}

.category-count {
    font-family: var(--primary-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 11px;
    font-weight: var(--weight-semibold, 600);
    color: var(--color-text-muted);
    background: rgba(91, 51, 230, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* 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) {
    .category-hero {
        padding: 120px var(--space-10, 1.5rem) 52px;
    }

    .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) {
    .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) {
    .category-hero {
        padding: 100px var(--space-6, 1rem) 44px;
    }

    .category-hero__title {
        font-size: 48px;
    }

    .category-hero__description {
        font-size: 16px;
    }

    .blog-layout {
        padding: var(--space-8, 2rem) var(--space-6, 1rem) var(--space-12, 3rem);
    }

    .post-grid {
        grid-template-columns: 1fr;
        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: 480px) {
    .category-hero {
        padding: 90px var(--space-4, 0.75rem) 36px;
    }

    .category-hero__title {
        font-size: 38px;
    }

    .category-hero__label {
        font-size: 11px;
    }

    .category-hero__description {
        font-size: 15px;
    }

    .category-hero__filters .filter-pill {
        font-size: 12px;
        padding: 6px 14px;
    }

    .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;
    }

    .category-stats {
        flex-direction: column;
        gap: var(--space-2, 0.5rem);
    }
}

@media (max-width: 360px) {
    .category-hero__title {
        font-size: 32px;
    }

    .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 {

    .category-hero::before,
    .category-hero__bg-shapes,
    .category-hero__filters,
    .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;
}