:root {
    --color-brand: #111827;
    --color-cta: #E84393;
    --text-body: #333;
    --text-muted: #777;
    --border: #ddd;
    --bg-soft: #f7f7f7;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.cat-hero {
    background-color: var(--color-brand);
    padding: 64px 24px;
    text-align: center;
}

.cat-hero__inner {
    max-width: 780px;
    margin: 0 auto;
}

.cat-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.6;
}

.cat-hero p {
    color: #bbb;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.cat-hero a:not(.cat-hero__cta) {
    color: #fff;
}

.cat-hero__cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: var(--color-brand);
    padding: 13px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.6;
    transition: background-color 0.2s;
}

.cat-hero__cta:hover {
    background-color: #cf3787;
    color: var(--color-brand);
}

.cat-articles {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

.cat-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.cat-filters__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-right: 4px;
}

.cat-filters__link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1.6;
}

.cat-filters__link:hover {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}

.cat-filters__link--active {
    color: var(--color-brand);
    font-weight: 700;
    border-bottom-color: var(--color-brand);
}

.cat-articles__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 6px;
    line-height: 1.6;
}

.cat-articles__count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

.cat-articles__empty {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    line-height: 1.6;
}

.timeline {
    position: relative;
    padding-left: 44px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline__item {
    position: relative;
    margin-bottom: 28px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -34px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-brand);
}

.timeline__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.timeline__card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.timeline__card-img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.timeline__card-content {
    flex: 1;
    min-width: 0;
}

.timeline__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.6;
}

.timeline__card-title a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}

.timeline__card-title a:hover {
    text-decoration: underline;
}

.timeline__card-desc {
    font-size: 0.92rem;
    color: var(--text-body);
    margin: 0 0 10px;
    line-height: 1.6;
}

.timeline__card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cat-dashboard {
    background-color: var(--color-brand);
    padding: 48px 24px;
}

.cat-dashboard h2,
.cat-dashboard p,
.cat-dashboard span,
.cat-dashboard strong,
.cat-dashboard a {
    color: #fff;
}

.cat-dashboard__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-dashboard__heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    text-align: center;
    line-height: 1.6;
}

.cat-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-dashboard__item {
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
}

.cat-dashboard__item-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.cat-dashboard .cat-dashboard__item-label {
    display: block;
    font-size: 0.82rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.cat-trends {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 56px;
}

.cat-trends__heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.6;
}

.cat-trends__nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cat-trends__tab {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--text-body);
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    font-family: inherit;
    line-height: 1.6;
}

.cat-trends__tab:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.cat-trends__tab--active {
    background-color: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
}

.cat-trends__tab--active:hover {
    background-color: #1a2340;
    color: #fff;
}

.cat-trends__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cat-trends__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cat-trends__table th {
    background-color: var(--color-brand);
    color: #fff;
    font-weight: 700;
    padding: 13px 16px;
    text-align: left;
    font-size: 0.84rem;
    white-space: nowrap;
}

.cat-trends__table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    vertical-align: top;
}

.cat-trends__table tbody tr:last-child td {
    border-bottom: none;
}

.cat-trends__table tbody tr:nth-child(even) td {
    background-color: var(--bg-soft);
}

.cat-trends__table tbody tr:hover td {
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 44px 16px;
    }

    .cat-hero h1 {
        font-size: 1.55rem;
    }

    .cat-hero p {
        font-size: 0.95rem;
    }

    .cat-hero__cta {
        padding: 11px 24px;
        font-size: 0.92rem;
    }

    .cat-articles {
        padding: 28px 16px 36px;
    }

    .cat-filters {
        gap: 6px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .cat-filters__link {
        font-size: 0.8rem;
    }

    .cat-articles__heading {
        font-size: 1.25rem;
    }

    .timeline {
        padding-left: 34px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline__dot {
        left: -28px;
        top: 22px;
        width: 10px;
        height: 10px;
    }

    .timeline__item {
        margin-bottom: 22px;
    }

    .timeline__card {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
    }

    .timeline__card-img {
        width: 100%;
        height: 180px;
    }

    .cat-dashboard {
        padding: 36px 16px;
    }

    .cat-dashboard__heading {
        font-size: 1.2rem;
    }

    .cat-dashboard__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .cat-dashboard__item {
        padding: 18px 12px;
    }

    .cat-dashboard__item-value {
        font-size: 1.4rem;
    }

    .cat-trends {
        padding: 36px 16px 44px;
    }

    .cat-trends__heading {
        font-size: 1.2rem;
    }

    .cat-trends__tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .cat-trends__table {
        font-size: 0.82rem;
    }

    .cat-trends__table th,
    .cat-trends__table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        padding: 32px 14px;
    }

    .cat-hero h1 {
        font-size: 1.3rem;
    }

    .cat-hero p {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .cat-hero__cta {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    .cat-articles {
        padding: 24px 14px 32px;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline::before {
        left: 9px;
    }

    .timeline__dot {
        left: -24px;
        width: 9px;
        height: 9px;
    }

    .timeline__card {
        padding: 14px;
    }

    .timeline__card-img {
        height: 150px;
    }

    .timeline__card-title {
        font-size: 0.98rem;
    }

    .timeline__card-desc {
        font-size: 0.85rem;
    }

    .cat-dashboard__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cat-dashboard__item-value {
        font-size: 1.5rem;
    }

    .cat-trends__nav {
        gap: 5px;
    }

    .cat-trends__tab {
        padding: 5px 11px;
        font-size: 0.76rem;
    }

    .cat-trends__table th,
    .cat-trends__table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}