.btx-news-switcher {
    position: relative;
    z-index: 1;
}

.btx-news-full {
    display: none;
    scroll-margin-top: 96px;
}

html.btx-news-expanded .btx-news-preview {
    display: none !important;
}

html.btx-news-expanded .btx-news-full {
    display: block;
}

.btx-media-feature {
    display: flex;
    width: 84%;
    max-width: 1680px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(34, 58, 94, 0.08);
}

.btx-media-feature__nav {
    flex: 0 0 32%;
    box-sizing: border-box;
    min-width: 0;
    padding: 18px 28px;
}

.btx-media-feature__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: 25%;
    padding: 16px 0;
    border-bottom: 1px solid #e3e7ed;
    text-align: left;
}

.btx-media-feature__item:last-child {
    border-bottom: 0;
}

.btx-media-feature__title {
    display: -webkit-box;
    overflow: hidden;
    color: #283548;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.btx-media-feature__date {
    margin-top: 14px;
    color: #9099a8;
    font-size: 13px;
    line-height: 1.5;
}

.btx-media-feature__item.is-active .btx-media-feature__title,
.btx-media-feature__item:hover .btx-media-feature__title {
    color: #2459e8;
}

.btx-media-feature__visual {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: clamp(360px, 28vw, 540px);
    overflow: hidden;
    background: #eef3fa;
}

.btx-media-feature__slides,
.btx-media-feature__slide,
.btx-media-feature__slide img {
    width: 100%;
    height: 100%;
}

.btx-media-feature__slide {
    position: absolute;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.btx-media-feature__slide.is-active {
    visibility: visible;
    opacity: 1;
}

.btx-media-feature__slide img {
    display: block;
    object-fit: cover;
}

.btx-media-feature__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 43, 78, 0.52);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.btx-media-feature__visual:hover .btx-media-feature__arrow,
.btx-media-feature__arrow:focus-visible {
    opacity: 1;
}

.btx-media-feature__arrow:hover {
    background: rgba(36, 89, 232, 0.85);
}

.btx-media-feature__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
}

.btx-media-feature__arrow--prev {
    left: 18px;
}

.btx-media-feature__arrow--prev::before {
    transform: translate(-35%, -50%) rotate(45deg);
}

.btx-media-feature__arrow--next {
    right: 18px;
}

.btx-media-feature__arrow--next::before {
    transform: translate(-65%, -50%) rotate(225deg);
}

.btx-news-full__layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.btx-news-full__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 28px 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(34, 58, 94, 0.08);
}

.btx-news-row {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e6eaf0;
}

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

.btx-news-row__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background: #f2f5f9;
}

.btx-news-row__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.btx-news-row:hover .btx-news-row__media img {
    transform: scale(1.035);
}

.btx-news-row__body {
    min-width: 0;
    padding: 3px 0;
}

.btx-news-row__title {
    display: -webkit-box;
    overflow: hidden;
    color: #202b3c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.btx-news-row__title:hover {
    color: #2459e8;
}

.btx-news-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    color: #8c96a7;
    font-size: 13px;
    line-height: 1.6;
}

.btx-news-row__summary {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 13px;
    color: #5f6979;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.btx-news-row__summary:empty,
.btx-news-row__meta span:empty {
    display: none;
}

.btx-news-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
    margin-top: 14px;
}

.btx-news-row__tags:empty {
    display: none;
}

.btx-news-row__tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border: 1px solid #dfe5ee;
    border-radius: 3px;
    color: #788396;
    background: #fff;
    font-size: 12px;
    line-height: 1.4;
}

.btx-news-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

.btx-news-sidebar__banner {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 41 / 25;
    border-radius: 6px;
    background: #eaf1fb;
    box-shadow: 0 10px 30px rgba(34, 58, 94, 0.08);
}

.btx-news-sidebar__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.btx-news-sidebar__banner:hover img {
    transform: scale(1.025);
}

.btx-news-sidebar__banner--secondary {
    margin-top: 20px;
}

.btx-news-sidebar__panel {
    margin-top: 20px;
    padding: 24px 22px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(34, 58, 94, 0.08);
}

.btx-news-sidebar__title {
    color: #202b3c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.btx-news-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 20px;
}

.btx-news-product {
    min-width: 0;
    text-align: center;
}

.btx-news-product__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border: 1px solid #e1e6ee;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btx-news-product__icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.btx-news-product__name {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: #4d5868;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.btx-news-product:hover .btx-news-product__icon {
    border-color: #2459e8;
    background: #f2f6ff;
}

.btx-news-product:hover .btx-news-product__name {
    color: #2459e8;
}

.btx-news-hot {
    margin-top: 12px;
}

.btx-news-hot__item {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
}

.btx-news-hot__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.btx-news-hot__name {
    display: -webkit-box;
    overflow: hidden;
    color: #4d5868;
    font-size: 13px;
    line-height: 1.6;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.btx-news-hot__date {
    display: block;
    margin-top: 5px;
    color: #9aa3b1;
    font-size: 12px;
    line-height: 1.4;
}

.btx-news-hot__item:hover .btx-news-hot__name {
    color: #2459e8;
}

.btx-news-pagination {
    margin-top: 28px;
    text-align: center;
}

.btx-news-pagination:empty {
    display: none;
}

.btx-news-pagination.is-single-page {
    display: none !important;
}

.btx-news-pagination a,
.btx-news-pagination button,
.btx-news-pagination input {
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    margin: 0 3px;
    border: 1px solid #dfe5ee;
    border-radius: 3px;
    color: #596579;
    background: #fff;
    line-height: 34px;
    vertical-align: middle;
}

.btx-news-pagination input {
    width: 44px;
    padding: 0 6px;
    text-align: center;
}

.btx-news-pagination button {
    padding: 0 10px;
    border-color: #2459e8;
    color: #fff;
    background: #2459e8;
    line-height: 34px;
    cursor: pointer;
}

.btx-news-pagination .page-num-current,
.btx-news-pagination a:hover {
    border-color: #2459e8;
    color: #fff;
    background: #2459e8;
}

@media screen and (max-width: 1180px) {
    .btx-news-full__layout {
        gap: 20px;
    }

    .btx-news-sidebar {
        flex-basis: 280px;
        width: 280px;
    }

    .btx-news-row {
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .btx-media-feature {
        display: block;
        width: 100%;
        margin-top: 10px;
        border-radius: 0;
        box-shadow: none;
    }

    .btx-media-feature__nav {
        padding: 0 14px;
    }

    .btx-media-feature__item {
        min-height: 0;
        padding: 12px 0;
    }

    .btx-media-feature__title {
        font-size: 14px;
        line-height: 1.55;
    }

    .btx-media-feature__date {
        margin-top: 5px;
        font-size: 12px;
    }

    .btx-media-feature__visual {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .btx-media-feature__arrow {
        width: 34px;
        height: 34px;
        margin-top: -17px;
        opacity: 1;
    }

    .btx-news-full__layout {
        display: block;
    }

    .btx-news-full__main {
        padding: 0 12px 18px;
        border-radius: 0;
        box-shadow: none;
    }

    .btx-news-row {
        display: block;
        padding: 16px 0;
    }

    .btx-news-row__media {
        width: 100%;
    }

    .btx-news-row__body {
        padding-top: 12px;
    }

    .btx-news-row__title {
        font-size: 16px;
    }

    .btx-news-row__meta {
        margin-top: 8px;
        font-size: 12px;
    }

    .btx-news-row__summary {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

    .btx-news-row__tags {
        margin-top: 10px;
    }

    .btx-news-sidebar {
        width: auto;
        margin-top: 18px;
    }

    .btx-news-sidebar__panel {
        margin-top: 12px;
        padding: 18px 14px;
        border-radius: 0;
        box-shadow: none;
    }

    .btx-news-pagination {
        margin-top: 18px;
    }

    .btx-news-pagination a,
    .btx-news-pagination button,
    .btx-news-pagination input {
        min-width: 32px;
        height: 32px;
        margin: 2px;
        line-height: 30px;
    }
}
