.frontend-news-page {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 26%),
        linear-gradient(180deg, #f8fdff 0%, #f2fafc 100%);
}

.news-page-hero {
    padding: 30px 0 26px;
}

.news-page-hero__inner {
    padding: 34px 36px;
    border: 1px solid #d9edf2;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.news-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eaf8fc;
    color: #0891b2;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.news-page-hero h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.news-page-hero p {
    margin: 0;
    max-width: 780px;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.news-page-section {
    padding: 0 0 56px;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 28px;
    align-items: start;
}

.news-layout__main,
.news-layout__sidebar {
    min-width: 0;
}

.news-layout__main {
    display: grid;
    gap: 22px;
}

.news-list {
    display: grid;
    gap: 22px;
}

.news-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid #d9edf2;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.news-card__image-link {
    display: block;
}

.news-card__image {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

.news-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card__meta {
    margin-bottom: 10px;
    color: #0891b2;
    font-size: 13px;
    font-weight: 700;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.news-card__title a {
    color: #0f172a;
    text-decoration: none;
}

.news-card__title a:hover {
    color: #0891b2;
}

.news-card__excerpt {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.75;
}

.news-card__more {
    display: inline-flex;
    align-items: center;
    color: #0891b2;
    font-weight: 700;
    text-decoration: none;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-pagination__link {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d9edf2;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

.news-pagination__link.is-active {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
}

/* =========================
   NEWS SIDEBAR
========================= */

.news-layout__sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.news-sidebar-card {
    position: relative;
    padding: 0;
    border: 1px solid rgba(217, 237, 242, 0.95);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 253, 255, 0.98) 100%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.news-sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0f766e 0%, #0891b2 55%, #38bdf8 100%);
}

.news-sidebar-card h3 {
    position: relative;
    margin: 0;
    padding: 22px 22px 16px 56px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-sidebar-card h3::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 35% 35%, #ffffff 0 18%, transparent 20%),
        linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.22);
}

.news-sidebar-card p {
    margin: 0;
    padding: 0 22px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.news-sidebar-list {
    margin: 0;
    padding: 0 18px 20px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.news-sidebar-list li {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 14px 14px 14px 16px;
    border: 1px solid #e4f2f6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-sidebar-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, 0.28);
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.11);
}

.news-sidebar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #0891b2 0%, #38bdf8 100%);
    opacity: 0.85;
}

.news-sidebar-list a {
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.news-sidebar-list a:hover {
    color: #0891b2;
}

.news-sidebar-list span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef9fd;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.news-sidebar-card__email {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0 22px 22px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    word-break: break-word;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-sidebar-card__email:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.24);
}

.news-empty {
    padding: 28px 24px;
    border: 1px solid #d9edf2;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.news-empty h2 {
    margin: 0 0 10px;
    color: #0f172a;
}

.news-empty p {
    margin: 0;
    color: #475569;
}

@media (max-width: 1300px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 24px;
    }

    .news-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .news-card__image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-page-hero {
        padding: 22px 0 20px;
    }

    .news-page-hero__inner {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .news-page-hero p {
        font-size: 16px;
    }

    .news-card {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 20px;
    }

    .news-card__image {
        height: auto;
        max-height: 260px;
        border-radius: 18px;
    }

    .news-card__title {
        font-size: 24px;
    }

    .news-sidebar-card {
        border-radius: 20px;
    }

    .news-sidebar-card h3 {
        padding: 20px 18px 14px 52px;
        font-size: 19px;
    }

    .news-sidebar-card h3::before {
        left: 18px;
        top: 18px;
    }

    .news-sidebar-card p {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .news-sidebar-list {
        padding: 0 14px 18px;
    }

    .news-sidebar-list li {
        padding: 13px 13px 13px 15px;
    }

    .news-sidebar-card__email {
        margin: 0 18px 18px;
        min-height: 44px;
        font-size: 14px;
    }
}

.news-single-card {
    padding: 24px;
    border: 1px solid #d9edf2;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.news-single-card__image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-bottom: 22px;
}

.news-single-card__content {
    min-width: 0;
}

.news-single-card__intro {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
}

.news-single-card__text {
    color: #475569;
    line-height: 1.85;
    font-size: 17px;
}

.news-single-card__text p {
    margin: 0 0 16px;
}

.news-single-card__text p:last-child {
    margin-bottom: 0;
}

.news-single-card__text ul,
.news-single-card__text ol {
    margin: 0 0 16px 22px;
    padding: 0;
    list-style: revert;
}

.news-single-card__text li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .news-single-card {
        padding: 18px;
        border-radius: 20px;
    }

    .news-single-card__image {
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .news-single-card__intro {
        font-size: 17px;
    }

    .news-single-card__text {
        font-size: 16px;
    }
}

.news-extra-section {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #d9edf2;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.news-extra-section__head {
    margin-bottom: 18px;
}

.news-extra-section__head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.news-extra-section__head p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.news-gallery-grid__item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.news-gallery-grid__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.news-gallery-grid__item:hover .news-gallery-grid__image {
    transform: scale(1.03);
}

.news-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.news-document-card {
    border: 1px solid #d9edf2;
    border-radius: 20px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.news-document-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.news-document-card__icon {
    min-width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.news-document-card__icon--pdf {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.news-document-card__icon--doc {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.news-document-card__icon--xls {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.news-document-card__icon--txt {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.news-document-card__icon--file {
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.news-document-card__meta h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.news-document-card__meta span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.news-document-card__desc {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.75;
}

.news-document-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-document-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #0891b2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.news-document-card__btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

.news-document-card__btn--secondary {
    background: #eef9fd;
    color: #0891b2;
}

.news-document-card__btn--secondary:hover {
    color: #0891b2;
}

@media (max-width: 992px) {
    .news-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .news-documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news-extra-section {
        padding: 18px;
        border-radius: 20px;
    }

    .news-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .news-document-card__top {
        align-items: center;
    }

    .news-document-card__icon {
        min-width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 12px;
    }
}

.news-document-card__icon--zip {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.news-document-files-list {
    display: grid;
    gap: 10px;
}

.news-document-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5eef3;
    border-radius: 14px;
    background: #fbfeff;
}

.news-document-file-row__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.news-document-file-row__badge {
    flex: 0 0 auto;
    min-width: 52px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
}

.news-document-file-row__badge--pdf {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.news-document-file-row__badge--doc {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.news-document-file-row__badge--xls {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.news-document-file-row__badge--txt {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.news-document-file-row__badge--zip {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.news-document-file-row__badge--file {
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.news-document-file-row__name {
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.news-document-file-row__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .news-document-file-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-document-file-row__actions {
        width: 100%;
    }
}