:root {
    --color-brand: #1e40af;
    --color-cta: #f97316;
    --text-muted: #777;
    --border: #ddd;
    --font-main: Tahoma, Geneva, sans-serif;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

.cat-main {
    max-width: 100%;
}

.cat-hero {
    position: relative;
    background-color: var(--color-brand);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.cat-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.35;
}

.cat-hero__content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 56px;
    text-align: center;
}

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

.cat-hero__subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 32px;
}

.cat-hero__cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cat-hero__cta:hover {
    background-color: #ea6c0a;
}

.cat-stats {
    background-color: var(--color-brand);
    padding: 0;
}

.cat-stats__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.cat-stats__item {
    flex: 1 1 200px;
    text-align: center;
    padding: 36px 20px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.cat-stats__item:last-child {
    border-right: none;
}

.cat-stats__number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
}

.cat-stats__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: #b5b5b5;
    line-height: 1.6;
    margin-top: 4px;
}

.cat-articles {
    background-color: #f8f8f8;
    padding: 56px 0;
}

.cat-articles__inner {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.cat-articles__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

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

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

.cat-masonry {
    columns: 3 300px;
    column-gap: 24px;
}

.cat-card {
    break-inside: avoid;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.cat-card:hover {
    box-shadow: 0 6px 20px rgba(30,64,175,0.12);
}

.cat-card--featured {
    break-inside: avoid;
}

.cat-card__img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
}

.cat-card__img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.cat-card:hover .cat-card__img-wrap img {
    opacity: 0.88;
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-brand);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: #fff;
}

.cat-card:hover .cat-card__overlay {
    opacity: 0.18;
}

.cat-card__body {
    padding: 20px;
}

.cat-card__meta {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.cat-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #222;
}

.cat-card--featured .cat-card__title {
    font-size: 1.25rem;
}

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

.cat-card__title a:hover {
    color: #1a3499;
}

.cat-card__desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
}

.cat-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.cat-empty svg {
    display: block;
    margin: 0 auto 20px;
    color: var(--color-brand);
    opacity: 0.4;
}

.cat-empty p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.cat-table-section {
    background-color: #fff;
    padding: 56px 0;
}

.cat-table-section__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.cat-table-section__note {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 28px;
    border-left: 3px solid var(--color-brand);
    padding-left: 12px;
}

.cat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 560px;
}

.cat-table thead tr {
    background-color: var(--color-brand);
}

.cat-table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.cat-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.cat-table tbody tr:hover {
    background-color: #f0f4ff;
}

.cat-table tbody td {
    padding: 13px 18px;
    color: #333;
    font-weight: 400;
    line-height: 1.6;
    vertical-align: middle;
}

.cat-table tbody td:last-child {
    color: var(--color-brand);
    font-weight: 700;
}

.cat-finder {
    background-color: #f0f4ff;
    padding: 56px 0;
}

.cat-finder__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.cat-finder__intro {
    font-size: 1rem;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 720px;
}

.cat-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cat-criteria__item {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, translateY 0.2s;
}

.cat-criteria__item:hover {
    box-shadow: 0 4px 16px rgba(30,64,175,0.1);
    transform: translateY(-2px);
}

.cat-criteria__icon {
    color: var(--color-brand);
    margin-bottom: 14px;
}

.cat-criteria__icon svg {
    display: block;
}

.cat-criteria__label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cat-criteria__desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.cat-calculator {
    background-color: var(--color-brand);
    padding: 56px 0;
}

.cat-calculator__inner {
    width: 90%;
    max-width: 860px;
    margin: 0 auto;
}

.cat-calculator__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cat-calculator__intro {
    font-size: 0.95rem;
    font-weight: 400;
    color: #b5b5b5;
    line-height: 1.6;
    margin: 0 0 32px;
}

.cat-calculator__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cat-calculator__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-calculator__field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.6;
}

.cat-calculator__field input {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: #222;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px 14px;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.cat-calculator__field input:focus {
    outline: none;
    border-color: var(--color-cta);
}

.cat-calculator__result {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cat-calculator__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.cat-calculator__result-row:last-child {
    border-bottom: none;
}

.cat-calculator__result-row span {
    font-weight: 400;
}

.cat-calculator__result-row strong {
    font-weight: 700;
    color: var(--color-brand);
}

.cat-calculator__result-row--total {
    background-color: #f0f4ff;
}

.cat-calculator__result-row--total strong {
    font-size: 1.15rem;
    color: var(--color-brand);
}

@media (max-width: 768px) {
    .cat-hero {
        min-height: 320px;
        align-items: flex-end;
    }

    .cat-hero__content {
        padding: 40px 16px 40px;
        width: 100%;
    }

    .cat-hero__title {
        font-size: 1.9rem;
    }

    .cat-hero__subtitle {
        font-size: 1rem;
    }

    .cat-stats__inner {
        width: 100%;
        flex-direction: column;
    }

    .cat-stats__item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: 24px 16px;
    }

    .cat-stats__item:last-child {
        border-bottom: none;
    }

    .cat-masonry {
        columns: 1;
        column-gap: 0;
    }

    .cat-articles__inner {
        width: 100%;
        padding: 0 16px;
    }

    .cat-articles__header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cat-table-section__inner,
    .cat-finder__inner,
    .cat-calculator__inner {
        width: 100%;
        padding: 0 16px;
    }

    .cat-table-section__heading,
    .cat-finder__heading,
    .cat-calculator__heading {
        font-size: 1.2rem;
    }

    .cat-criteria {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cat-calculator__form {
        grid-template-columns: 1fr;
    }

    .cat-calculator__result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cat-articles {
        padding: 36px 0;
    }

    .cat-table-section,
    .cat-finder,
    .cat-calculator {
        padding: 36px 0;
    }
}

@media (max-width: 480px) {
    .cat-hero__title {
        font-size: 1.5rem;
    }

    .cat-hero__cta {
        width: 100%;
        text-align: center;
    }

    .cat-stats__number {
        font-size: 1.9rem;
    }

    .cat-card__body {
        padding: 16px;
    }

    .cat-criteria__item {
        padding: 18px;
    }

    .cat-calculator__result-row {
        font-size: 0.88rem;
    }
}