:root {
    --news-blue: #155fa9;
    --news-blue-dark: #0d477f;
    --news-ink: #182436;
    --news-text: #46566a;
    --news-muted: #718096;
    --news-line: #dfe7ef;
    --news-soft: #f3f7fb;
    --news-white: #fff;
}

.news-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.news-page {
    min-height: 65vh;
    background: var(--news-white);
}

.news-page-header {
    padding: 24px 0 40px;
    border-bottom: 1px solid #d9e8f5;
    background: #eef6fd;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 28px;
    color: var(--news-muted);
    font-size: .82rem;
}

.news-breadcrumb a {
    color: var(--news-blue);
    text-decoration: none;
    white-space: nowrap;
}

.news-breadcrumb i {
    color: #9aa8b8;
    font-size: .6rem;
}

.news-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-page-header h1 {
    margin: 0;
    color: var(--news-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}

.news-page-header p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #536277;
    font-size: 1rem;
    line-height: 1.7;
}

.news-page-content {
    padding-top: 32px;
    padding-bottom: 64px;
}

.news-category-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 42px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.news-category-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--news-line);
    border-radius: 6px;
    background: #fff;
    color: #5d6b7e;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.news-category-tabs a:hover,
.news-category-tabs a.active {
    border-color: var(--news-blue);
    background: var(--news-blue);
    color: #fff;
}

.news-category-tabs a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--news-soft);
    color: var(--news-muted);
    font-size: .7rem;
}

.news-category-tabs a.active span,
.news-category-tabs a:hover span {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.news-featured-section,
.news-list-section {
    margin-bottom: 54px;
}

.news-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.news-section-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--news-blue);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-section-heading h2 {
    margin: 0;
    color: var(--news-ink);
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0;
}

.news-section-heading small {
    color: var(--news-muted);
    font-size: .78rem;
}

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

.news-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: #bfd5e8;
    box-shadow: 0 10px 24px rgba(26, 57, 92, .08);
}

.news-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--news-line);
    background: var(--news-soft);
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.025);
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9cb2c8;
    font-size: 2.15rem;
}

.news-card-body {
    padding: 18px;
}

.news-card-category {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--news-blue);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

.news-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--news-ink);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card h3 a:hover {
    color: var(--news-blue);
}

.news-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: var(--news-text);
    font-size: .82rem;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    color: var(--news-muted);
    font-size: .72rem;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-meta i {
    color: #8aa5be;
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.news-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    border-top: 1px solid var(--news-line);
    border-bottom: 1px solid var(--news-line);
    color: var(--news-muted);
    text-align: center;
}

.news-empty i {
    margin-bottom: 12px;
    color: #9cb2c8;
    font-size: 2rem;
}

.news-empty strong {
    color: var(--news-ink);
}

.news-empty p {
    margin: 6px 0 0;
    font-size: .85rem;
}

.home-news-section {
    padding: 22px 0 50px;
    background: #fff;
}

.home-news-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.home-news-heading h2 {
    margin: 0;
    color: var(--news-ink);
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: 0;
}

.home-news-heading p {
    margin: 5px 0 0;
    color: var(--news-muted);
    font-size: .82rem;
}

.home-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--news-blue);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr);
    gap: 20px;
}

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

.home-news-side-grid-1 {
    grid-template-columns: 1fr;
}

.home-news-side-grid-3 > :last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr);
}

.home-news-side-grid-3 > :last-child .news-card-media {
    height: 100%;
    border-right: 1px solid var(--news-line);
    border-bottom: 0;
}

.home-news-featured .news-card-media {
    aspect-ratio: 16 / 8.8;
}

.home-news-featured .news-card-body {
    padding: 20px;
}

.home-news-featured h3 {
    font-size: 1.18rem;
}

.home-news-compact .news-card-body {
    padding: 14px;
}

.home-news-compact .news-card-category {
    margin-bottom: 6px;
}

.home-news-compact h3 {
    font-size: .9rem;
    line-height: 1.4;
}

.home-news-compact p {
    margin-top: 7px;
    font-size: .76rem;
    -webkit-line-clamp: 2;
}

.home-news-compact .news-card-meta {
    margin-top: 10px;
}

.blog-preview-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 20px;
    background: #fff4d6;
    color: #7a5810;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

.blog-article-category {
    width: fit-content;
    text-decoration: none;
}

.related-news {
    margin-top: 56px;
    padding-top: 38px;
    border-top: 1px solid var(--news-line);
}

.news-grid-related {
    gap: 18px;
}

.news-grid-related .news-card-body {
    padding: 14px;
}

.news-grid-related .news-card h3 {
    font-size: .9rem;
}

.news-grid-related .news-card p {
    display: none;
}

@media (max-width: 991.98px) {
    .news-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-news-layout {
        grid-template-columns: 1fr;
    }

    .home-news-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .news-container {
        width: min(100% - 28px, 720px);
    }

    .news-page-header {
        padding: 18px 0 30px;
    }

    .news-breadcrumb {
        margin-bottom: 22px;
        font-size: .76rem;
    }

    .news-page-header h1 {
        font-size: 1.8rem;
    }

    .news-page-header p {
        font-size: .9rem;
        line-height: 1.6;
    }

    .news-page-content {
        padding-top: 22px;
        padding-bottom: 44px;
    }

    .news-category-tabs {
        margin-bottom: 32px;
    }

    .news-section-heading {
        align-items: start;
        margin-bottom: 16px;
    }

    .news-section-heading h2 {
        font-size: 1.22rem;
    }

    .news-featured-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-news-layout,
    .home-news-side-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-news-side-grid-3 > :last-child {
        grid-column: auto;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .news-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .home-news-featured .news-card-media {
        aspect-ratio: auto;
    }

    .home-news-featured .news-card-body {
        padding: 13px;
    }

    .home-news-featured h3 {
        font-size: .88rem;
    }

    .news-card-media {
        height: 100%;
        min-height: 150px;
        border-right: 1px solid var(--news-line);
        border-bottom: 0;
    }

    .news-card-body {
        padding: 13px;
    }

    .news-card-category {
        margin-bottom: 6px;
        font-size: .64rem;
    }

    .news-card h3 {
        font-size: .88rem;
        line-height: 1.4;
    }

    .news-card p {
        margin-top: 7px;
        font-size: .75rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .news-card-meta {
        gap: 9px;
        margin-top: 10px;
        font-size: .66rem;
    }

    .home-news-section {
        padding: 12px 0 38px;
    }

    .home-news-heading {
        align-items: center;
    }

    .home-news-heading h2 {
        font-size: 1.16rem;
    }

    .home-news-heading p {
        display: none;
    }

    .home-news-all span {
        display: none;
    }

    .news-grid-related .news-card p,
    .news-grid-related .news-card-meta span:last-child {
        display: none;
    }
}

@media (max-width: 374.98px) {
    .news-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .news-card p {
        display: none;
    }
}
