.news-page {
    --news-blue: #0069ed;
    --news-ink: #20365a;
    --news-muted: #647794;
    padding: 0 24px 24px;
    color: var(--news-ink);
}

.news-page [hidden] {
    display: none !important;
}

.news-search-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.news-search {
    max-width: 350px;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(245px, 285px) minmax(0, 1fr);
    gap: 20px;
}

.news-sidebar,
.news-main {
    min-width: 0;
}

.news-panel {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 6px;
    box-shadow: 0 3px 16px rgba(32, 54, 90, .04);
    overflow: hidden;
}

.news-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-panel-heading i {
    font-size: 1.25rem;
}

.news-category-list {
    margin: 0;
    padding: 0 0 12px;
    list-style: none;
}

.news-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 39px;
    padding: 8px 12px 8px 16px;
    border-left: 3px solid transparent;
    color: var(--news-muted);
    font-size: .875rem;
    line-height: 1.3;
}

.news-category-item > i {
    flex: 0 0 20px;
    font-size: 1.1rem;
    text-align: center;
}

.news-category-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-category-count {
    min-width: 24px;
    padding: 2px 5px;
    border-radius: 12px;
    background: #edf1f6;
    font-size: .75rem;
    text-align: center;
}

.news-category-item:hover,
.news-category-item:focus-visible,
.news-category-item.active {
    background: #e4f0ff;
    color: var(--news-blue);
    text-decoration: none;
}

.news-category-item.active {
    border-left-color: var(--news-blue);
    font-weight: 700;
}

.news-category-item.active .news-category-count {
    background: var(--news-blue);
    color: #fff;
}

.news-filters {
    margin-top: 18px;
    padding-bottom: 16px;
}

.news-filters .news-panel-heading i {
    color: var(--news-blue);
}

.news-filters form {
    padding: 0 16px;
}

.news-filters .form-group {
    margin-bottom: 12px;
}

.news-filters label {
    margin-bottom: 4px;
    font-size: .8125rem;
    font-weight: 600;
}

.news-page .custom-select,
.news-page .form-control {
    border-color: #dbe3ef;
    color: var(--news-ink);
    font-size: .8125rem;
}

.news-page .custom-select:disabled,
.news-page .form-control:disabled {
    background-color: #f5f7fa;
    color: var(--news-muted);
    opacity: 1;
}

.news-pending-note {
    display: block;
    margin-top: 4px;
    color: var(--news-muted);
    font-size: .75rem;
}

.news-page .btn-primary {
    background: var(--news-blue);
    border-color: var(--news-blue);
    font-weight: 600;
}

.news-page .btn-primary:hover {
    background: #0058c8;
    border-color: #0058c8;
}

.news-apply-filters {
    padding: 9px;
}

.news-apply-filters i {
    margin-right: 10px;
}

.news-reset-filters {
    display: block;
    margin-top: 10px;
    color: var(--news-blue);
    font-size: .8125rem;
    text-align: center;
    text-decoration: underline;
}

.news-hero {
    position: relative;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: #243955;
}

.news-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 280px;
    background: linear-gradient(120deg, #152841, #48657d);
}

.news-hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
}

.news-hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(8, 16, 27, .88), rgba(8, 16, 27, .58) 55%, rgba(8, 16, 27, .08));
}

.news-hero-content {
    position: relative;
    z-index: 1;
    width: 65%;
    padding: 24px 26px 30px;
    color: #fff;
}

.news-category-pill {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 20px;
    background: #64a703;
    color: #fff;
    font-size: .75rem;
    line-height: 1.25;
}

.news-hero .news-category-pill {
    background: #ef4050;
}

.news-hero-title {
    display: -webkit-box;
    margin: 10px 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.news-hero-title a {
    color: inherit;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--news-muted);
    font-size: .75rem;
    line-height: 1.4;
}

.news-meta i {
    margin-right: 5px;
}

.news-meta span + span {
    border-left: 1px solid #d7dee8;
    padding-left: 12px;
}

.news-hero .news-meta {
    color: #e1e5eb;
}

.news-hero-text {
    display: -webkit-box;
    margin: 12px 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: .9375rem;
    line-height: 1.4;
}

.news-hero .btn {
    padding: 8px 24px;
}

.news-hero-navigation {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.news-hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: #afb7bf;
    cursor: pointer;
}

.news-hero-dot.active {
    background: var(--news-blue);
    border-color: var(--news-blue);
}

.news-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f6;
}

.news-results-toolbar h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.news-results-toolbar h1 span {
    color: var(--news-muted);
    font-size: 1rem;
    font-weight: 400;
}

.news-list-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-list-tools label {
    margin: 0;
    color: var(--news-muted);
    font-size: .8125rem;
    white-space: nowrap;
}

.news-list-tools select {
    width: 140px;
}

.news-view-switch {
    display: flex;
    gap: 3px;
}

.news-view-switch .btn {
    color: var(--news-muted);
    background: #f5f7fa;
}

.news-view-switch .btn.active {
    background: var(--news-blue);
    color: #fff;
}

.news-card {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    border-bottom: 1px solid #edf1f6;
}

.news-card:last-child {
    border-bottom: 0;
}

.news-card-image {
    position: relative;
    display: block;
    flex: 0 0 25%;
    min-width: 0;
    height: 125px;
    overflow: hidden;
    border-radius: 5px;
    background: #edf1f6;
}

.news-card-image img,
.news-image-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 125px;
    object-fit: cover;
}

.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3ebf4, #f4f7fa);
    color: #97a9bd;
    font-size: 2rem;
}

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

.news-card-title {
    display: -webkit-box;
    margin: 5px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-card-title a {
    color: var(--news-ink);
}

.news-card-title a:hover,
.news-card-title a:focus-visible {
    color: var(--news-blue);
}

.news-text {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--news-muted);
    font-size: .875rem;
    line-height: 1.35;
}

.news-link {
    display: block;
    margin-top: 3px;
    color: var(--news-blue);
    font-size: .8125rem;
    font-weight: 700;
    text-align: right;
}

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

.news-card-list.is-grid .news-card {
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #edf1f6;
}

.news-card-list.is-grid .news-card-image {
    flex: none;
    height: 180px;
}

.news-empty {
    margin: 0;
    padding: 32px 16px;
    color: var(--news-muted);
}

.news-pagination {
    margin-top: 16px;
}

@media (min-width: 768px) {
    .news-search-bar {
        position: fixed;
        top: 102px;
        right: 24px;
        z-index: 100001;
        width: 350px;
    }

    .news-layout {
        margin-top: 16px;
    }
}

@media (max-width: 1199.98px) {
    .news-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 16px;
    }

    .news-hero-content {
        width: 80%;
    }

    .news-card {
        gap: 14px;
    }
}

@media (max-width: 767.98px) {
    .news-page {
        padding: 12px;
    }

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

    .news-search {
        max-width: none;
    }

    .news-hero-content {
        width: 100%;
        padding: 20px 20px 32px;
    }

    .news-hero-title {
        font-size: 1.4rem;
    }

    .news-category-name {
        white-space: normal;
    }

    .news-card-list.is-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 479.98px) {
    .news-card {
        flex-direction: column;
        gap: 10px;
    }

    .news-card-image {
        flex: none;
        height: 180px;
    }

    .news-list-tools {
        flex-wrap: wrap;
    }
}
