.news-list-view {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    height: 100%;
}

.news-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(3,57,182,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.news-filter button {
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.news-filter button.active,
.news-filter button:hover {
    background: linear-gradient(135deg, rgba(6,72,201,.9), rgba(3,57,182,.48));
    color: #fff;
}

.news-modal-content {
    min-height: 0;
    padding-right: 34px;
}

.news-modal-head {
    margin-bottom: 28px;
}

.news-modal-head h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.news-modal-head h2 span {
    color: var(--red);
}

.news-modal-head p {
    margin-top: 8px;
    color: var(--blue-dark);
    font-size: 18px;
}

.news-search {
    width: 100%;
    height: 48px;
    margin-bottom: 22px;
    padding: 0 16px;

    border: 1px solid rgba(3,57,182,.16);
    border-radius: 12px;
    outline: 0;

    background: rgba(255,255,255,.72);
    color: var(--blue-dark);

    font: inherit;
}

.news-search::placeholder {
    color: rgba(1,45,116,.58);
}

.news-search:focus {
    border-color: rgba(6,72,201,.72);
    box-shadow: 0 0 0 3px rgba(109,163,255,.18);
}

.news-modal-items {
    display: grid;
    gap: 14px;
}

.news-modal-card {
    cursor: pointer;
}

.news-featured {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
    overflow: hidden;

    border: 1px solid rgba(3,57,182,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.news-featured > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.news-featured h3 {
    margin: 14px 0 12px;
    color: var(--blue-dark);
    font-size: 32px;
    line-height: 1.08;
}

.news-featured p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.55;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.news-card-meta span,
.news-detail-meta span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card-meta small,
.news-detail-meta small {
    color: var(--text-muted);
    font-weight: 800;
}

.news-modal-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(3,57,182,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    cursor: pointer;
}

.news-modal-item img {
    width: 170px;
    height: 105px;
    object-fit: cover;
    border-radius: 12px;
}

.news-modal-item strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-dark);
    font-size: 21px;
    font-weight: 900;
}

.news-modal-item p {
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.45;
}

.news-empty {
    padding: 54px 24px;
    border: 1px dashed rgba(3,57,182,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.5);
    text-align: center;
}

.news-empty strong {
    display: block;
    color: var(--blue-dark);
    font-size: 22px;
}

.news-empty p {
    margin-top: 8px;
    color: var(--text-muted);
}

.news-detail-view {
    display: none;
    height: 100%;
    padding-right: 34px;
}

.news-detail-view.active {
    display: block;
}

.news-list-view.hidden {
    display: none;
}

.news-back {
    margin-bottom: 22px;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 900;
    cursor: pointer;
}

.news-detail-article {
    max-width: 900px;
}

.news-detail-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 24px;
}

.news-detail-content figure.image {
    display: table;
    max-width: 100%;
    margin: 22px 0;
}

.news-detail-content figure.image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

.news-detail-content figure.image-style-align-left {
    float: left;
    max-width: 45%;
    margin: 6px 26px 18px 0;
}

.news-detail-content figure.image-style-align-right {
    float: right;
    max-width: 45%;
    margin: 6px 0 18px 26px;
}

.news-detail-content figure.image-style-align-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.news-detail-content figure.image.image_resized {
    display: block;
    box-sizing: border-box;
}

.news-detail-content::after {
    content: "";
    display: block;
    clear: both;
}

.news-detail-article small {
    color: var(--text-muted);
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.news-detail-article h2 {
    margin: 12px 0 18px;
    color: var(--blue-dark);
    font-size: 44px;
    line-height: 1.05;
}

.news-detail-article p {
    color: var(--blue-dark);
    font-size: 18px;
    line-height: 1.7;
}

.news-detail-article ul,
.news-detail-article ol {
    margin: 18px 0;
    padding-left: 28px;
}

.news-detail-article ul {
    list-style: disc;
}

.news-detail-article ol {
    list-style: decimal;
}

.news-detail-article li {
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: 18px;
    line-height: 1.7;
}

html.dark-mode .news-detail-article li {
    color: #fff;
}

html.dark-mode .news-modal-head h2,
html.dark-mode .news-modal-head p,
html.dark-mode .news-featured h3,
html.dark-mode .news-empty strong,
html.dark-mode .news-detail-article h2,
html.dark-mode .news-detail-article p,
html.dark-mode .news-back {
    color: #fff;
}

html.dark-mode .news-filter,
html.dark-mode .news-search,
html.dark-mode .news-featured,
html.dark-mode .news-empty,
html.dark-mode .news-modal-item {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
}

html.dark-mode .news-search {
    color: #fff;
}

html.dark-mode .news-search::placeholder {
    color: rgba(255,255,255,.55);
}

html.dark-mode .news-filter button,
html.dark-mode .news-modal-item strong {
    color: #fff;
}

@media (max-width: 760px) {
    .news-list-view {
        grid-template-columns: 1fr;
    }

    .news-filter {
        flex-direction: row;
        overflow-x: auto;
    }

    .news-filter button {
        white-space: nowrap;
    }

    .news-modal-head h2 {
        font-size: 32px;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured > img {
        height: 220px;
    }

    .news-featured-content {
        padding: 22px;
    }

    .news-featured h3 {
        font-size: 27px;
    }

    .news-modal-item {
        grid-template-columns: 1fr;
    }

    .news-modal-item img {
        width: 100%;
        height: 190px;
    }

    .news-detail-article h2 {
        font-size: 32px;
    }
}

/* CKEditor 5 image styles */

.news-detail-content figure.image {
    max-width: 100%;
    margin: 22px 0;
}

.news-detail-content figure.image img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

.news-detail-content figure.image-style-side {
    float: right;
    max-width: 45%;
    margin: 6px 0 18px 26px;
}

.news-detail-content figure.image-style-align-left {
    float: left;
    max-width: 45%;
    margin: 6px 26px 18px 0;
}

.news-detail-content figure.image-style-align-right {
    float: right;
    max-width: 45%;
    margin: 6px 0 18px 26px;
}

.news-detail-content figure.image-style-align-center,
.news-detail-content figure.image-style-block {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.news-detail-content .image_resized {
    max-width: 100%;
}

.news-detail-content::after {
    content: "";
    display: block;
    clear: both;
}