.category-page {
    --category-accent: #ef3f45;
    --category-ink: #142033;
    --category-muted: #65758b;
    --category-border: #e4eaf1;
    --category-surface: #ffffff;
    color: var(--category-ink);
    padding-block: 20px 48px;
}

.category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--category-muted);
    font-size: 13px;
    list-style: none;
}

.category-breadcrumb a { color: inherit; text-decoration: none; }
.category-breadcrumb a:hover,
.category-breadcrumb a:focus-visible { color: var(--category-accent); }

.category-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--category-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(239, 63, 69, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    box-shadow: 0 14px 34px rgba(21, 34, 52, .06);
}

.category-header::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--category-accent);
    content: '';
}

.category-header__eyebrow {
    margin-bottom: 8px;
    color: var(--category-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.category-header h1 {
    margin: 0;
    max-width: 900px;
    color: #101828;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.category-header__intro {
    max-width: 920px;
    margin: 14px 0 0;
    color: #475467;
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 500;
    line-height: 1.7;
}

.category-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    color: var(--category-muted);
    font-size: 13px;
    font-weight: 700;
}

.category-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .9fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-lead {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.category-lead > a { display: block; height: 100%; color: #fff; text-decoration: none; }
.category-lead picture,
.category-lead img { display: block; width: 100%; height: 100%; }
.category-lead img { position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.category-lead:hover img,
.category-lead:focus-within img { transform: scale(1.025); }

.category-lead__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 10, 20, .04) 20%, rgba(4, 10, 20, .92) 100%);
}

.category-lead__body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: clamp(22px, 4vw, 38px);
}

.category-lead__label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--category-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.category-lead h2 {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(25px, 3vw, 39px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.category-lead__spot {
    display: -webkit-box;
    max-width: 760px;
    margin: 10px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.category-trending {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--category-border);
    border-radius: 20px;
    background: var(--category-surface);
    box-shadow: 0 14px 34px rgba(21, 34, 52, .06);
}

.category-trending__title,
.category-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-trending__title { margin-bottom: 14px; }
.category-trending__title h2,
.category-section-heading h2 { margin: 0; color: #101828; font-weight: 900; letter-spacing: -.025em; }
.category-trending__title h2 { font-size: 21px; }
.category-trending__title i { color: var(--category-accent); }

.category-trending-list { margin: 0; padding: 0; list-style: none; }
.category-trending-item + .category-trending-item { border-top: 1px solid var(--category-border); }
.category-trending-item a {
    display: grid;
    grid-template-columns: 30px 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: inherit;
    text-decoration: none;
}

.category-trending-item__rank {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f1;
    color: var(--category-accent);
    font-size: 12px;
    font-weight: 900;
}

.category-trending-item img { width: 74px; height: 52px; border-radius: 8px; object-fit: cover; }
.category-trending-item__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #1d2939;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-section-heading {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8edf3;
}

.category-section-heading h2 { font-size: clamp(24px, 3vw, 32px); }
.category-section-heading h2::before {
    display: inline-block;
    width: 4px;
    height: .8em;
    margin-right: 10px;
    border-radius: 99px;
    background: var(--category-accent);
    content: '';
}

.category-section-heading span { color: var(--category-muted); font-size: 13px; font-weight: 700; }

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.category-news-card {
    overflow: hidden;
    border: 1px solid var(--category-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 32, 54, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-news-card:hover,
.category-news-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(239, 63, 69, .35);
    box-shadow: 0 18px 38px rgba(18, 32, 54, .11);
}

.category-news-card > a { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.category-news-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #eef2f6; }
.category-news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-news-card:hover img,
.category-news-card:focus-within img { transform: scale(1.025); }
.category-news-card__video {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    place-items: center;
    border-radius: 50%;
    background: rgba(239, 63, 69, .94);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}

.category-news-card__body { display: flex; min-height: 150px; flex: 1; flex-direction: column; padding: 15px 16px 16px; }
.category-news-card h3 {
    display: -webkit-box;
    min-height: 3.95em;
    margin: 0;
    overflow: hidden;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-news-card .category-date { margin-top: auto; padding-top: 13px; color: var(--category-muted); }

.category-pagination { margin: 32px 0 0; }
.category-pagination .pagination { flex-wrap: wrap; gap: 6px; }
.category-pagination .page-link {
    min-width: 42px;
    border: 1px solid var(--category-border);
    border-radius: 9px !important;
    color: #344054;
    font-weight: 800;
    text-align: center;
}
.category-pagination .page-item.active .page-link { border-color: var(--category-accent); background: var(--category-accent); }

.category-long-copy {
    margin-top: 36px;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--category-border);
    border-radius: 18px;
    background: #fff;
    color: #344054;
    font-size: 16px;
    line-height: 1.75;
    box-shadow: 0 12px 32px rgba(21, 34, 52, .05);
}
.category-long-copy h2 { margin: 0 0 14px; color: #101828; font-size: 28px; font-weight: 900; }
.category-long-copy h3 { margin: 24px 0 10px; color: #1d2939; font-size: 21px; font-weight: 850; }
.category-long-copy a { color: #d92d3a; font-weight: 700; }

.category-empty {
    padding: 44px 20px;
    border: 1px dashed #cfd8e3;
    border-radius: 16px;
    background: #fff;
    color: var(--category-muted);
    text-align: center;
}

.category-page a:focus-visible {
    outline: 3px solid rgba(239, 63, 69, .35);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .category-top-grid { grid-template-columns: 1fr; }
    .category-lead { min-height: 400px; }
    .category-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-trending-item a { grid-template-columns: 30px 84px minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .category-page { padding-block: 14px 34px; }
    .category-header { margin-bottom: 16px; padding: 20px 18px 20px 22px; border-radius: 14px; }
    .category-header__intro { line-height: 1.58; }
    .category-top-grid { gap: 14px; margin-bottom: 24px; }
    .category-lead { min-height: 360px; border-radius: 14px; }
    .category-lead__body { padding: 20px; }
    .category-lead__spot { display: none; }
    .category-trending { padding: 17px; border-radius: 14px; }
    .category-news-grid { grid-template-columns: 1fr; gap: 14px; }
    .category-news-card { border-radius: 13px; }
    .category-news-card__body { min-height: 132px; }
    .category-news-card h3 { min-height: auto; font-size: 18px; -webkit-line-clamp: 2; }
    .category-section-heading { align-items: flex-end; }
    .category-section-heading h2 { font-size: 24px; }
    .category-long-copy { margin-top: 28px; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .category-page *, .category-page *::before, .category-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
