/* ============================================================
   vinapro_b2b — NEWS MODULE NLĐ-style
   File: themes/vinapro_b2b/css/news-nld.css
   Dùng --b2b-* variables từ b2b-theme.css
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   SECTION HEADER (dùng chung cho mọi block)
   ────────────────────────────────────────────────────────── */
.b2b-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--b2b-primary);
    margin-bottom: var(--b2b-sp-4);
    padding-bottom: var(--b2b-sp-2);
}

.b2b-section-hdr-title {
    display: flex;
    align-items: center;
    gap: var(--b2b-sp-2);
    font-family: var(--b2b-font-base);
    font-size: var(--b2b-fs-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
    color: var(--b2b-gray-900);
}

.b2b-section-hdr-title a {
    color: var(--b2b-gray-900);
}

.b2b-section-hdr-title a:hover { color: var(--b2b-accent); }

.b2b-title-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--b2b-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.b2b-section-more {
    font-family: var(--b2b-font-base);
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-accent);
    white-space: nowrap;
    transition: color var(--b2b-trans);
}
.b2b-section-more:hover { color: var(--b2b-accent-dark); }

/* ──────────────────────────────────────────────────────────
   META (thời gian, lượt xem — dùng chung)
   ────────────────────────────────────────────────────────── */
.b2b-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--b2b-sp-3);
    font-family: var(--b2b-font-base);
    font-size: var(--b2b-fs-xs);
    color: var(--b2b-gray-500);
    margin-bottom: var(--b2b-sp-2);
}

.b2b-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ──────────────────────────────────────────────────────────
   BADGE MỚI
   ────────────────────────────────────────────────────────── */
.b2b-badge-new {
    display: inline-block;
    background: var(--b2b-rfq);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 5px;
    vertical-align: middle;
    animation: b2b-pulse 1.6s infinite;
}

@keyframes b2b-pulse { 0%,100%{opacity:1} 50%{opacity:.65} }

/* ──────────────────────────────────────────────────────────
   ADMINLINK
   ────────────────────────────────────────────────────────── */
.b2b-adminlink {
    font-size: var(--b2b-fs-xs);
    margin-top: var(--b2b-sp-1);
    color: var(--b2b-gray-600);
}

/* ──────────────────────────────────────────────────────────
   PAGINATION
   ────────────────────────────────────────────────────────── */
.b2b-pagination {
    display: flex;
    justify-content: center;
    margin: var(--b2b-sp-6) 0 var(--b2b-sp-2);
}

/* ══════════════════════════════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════════════════════════════ */

.b2b-detail-article {
    font-family: var(--b2b-font-base);
    color: var(--b2b-gray-800);
    line-height: 1.75;
}

/* Header */
.b2b-article-header {
    border-bottom: 2px solid var(--b2b-gray-200);
    padding-bottom: var(--b2b-sp-3);
    margin-bottom: var(--b2b-sp-5);
}

.b2b-article-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--b2b-gray-900);
    margin: 0 0 var(--b2b-sp-4);
    letter-spacing: -.2px;
}

@media (max-width: 767px) { .b2b-article-title { font-size: 1.3rem; } }

.b2b-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--b2b-sp-2);
}

.b2b-meta-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-500);
    font-style: italic;
}

.b2b-meta-actions {
    display: flex;
    gap: var(--b2b-sp-2);
}

.b2b-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    color: var(--b2b-gray-600);
    transition: all var(--b2b-trans);
    text-decoration: none;
}

.b2b-action-btn:hover {
    background: var(--b2b-accent);
    border-color: var(--b2b-accent);
    color: #fff;
}

/* Article body */
.b2b-article-body {
    font-size: var(--b2b-fs-md);
    line-height: 1.85;
}

.b2b-hometext {
    font-size: 1rem;
    font-weight: 600;
    color: var(--b2b-gray-800);
    line-height: 1.7;
    border-left: 4px solid var(--b2b-accent);
    padding-left: var(--b2b-sp-3);
    margin-bottom: var(--b2b-sp-5);
}

/* Figures */
.b2b-figure { margin: 0 0 var(--b2b-sp-4); }

.b2b-figure--left {
    float: left;
    margin: 4px var(--b2b-sp-5) var(--b2b-sp-3) 0;
    max-width: 45%;
}

.b2b-figure--center {
    text-align: center;
    float: none;
    clear: both;
    margin: var(--b2b-sp-5) 0;
}

.b2b-article-img {
    width: 100%;
    height: auto;
    border-radius: var(--b2b-radius-sm);
    display: block;
}

.b2b-figcaption {
    font-size: var(--b2b-fs-xs);
    color: var(--b2b-gray-500);
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

/* Author/Source */
.b2b-author-source {
    margin: var(--b2b-sp-6) 0 var(--b2b-sp-4);
    padding-top: var(--b2b-sp-3);
    border-top: var(--b2b-border);
    text-align: right;
}

.b2b-author-line {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-600);
    margin: 3px 0;
}

/* Copyright */
.b2b-copyright-box {
    background: #eaf3fb;
    border-left: 4px solid var(--b2b-primary-light);
    padding: var(--b2b-sp-3) var(--b2b-sp-4);
    border-radius: var(--b2b-radius-sm);
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-primary);
    margin: var(--b2b-sp-5) 0;
}

/* Files */
.b2b-files-box {
    border: var(--b2b-border);
    border-radius: var(--b2b-radius);
    margin: var(--b2b-sp-5) 0;
    overflow: hidden;
}

.b2b-files-heading {
    background: var(--b2b-gray-100);
    padding: var(--b2b-sp-2) var(--b2b-sp-4);
    font-size: var(--b2b-fs-sm);
    font-weight: 600;
    border-bottom: var(--b2b-border);
    color: var(--b2b-gray-800);
}

.b2b-files-list { padding: 2px 0; }

.b2b-file-item {
    display: flex;
    align-items: center;
    gap: var(--b2b-sp-2);
    padding: var(--b2b-sp-2) var(--b2b-sp-4);
    border-bottom: var(--b2b-border);
    font-size: var(--b2b-fs-sm);
}

.b2b-file-item:last-child { border-bottom: none; }
.b2b-file-eye { color: var(--b2b-gray-500); }
.b2b-file-eye:hover { color: var(--b2b-accent); }
.b2b-file-link { color: var(--b2b-gray-800); }
.b2b-file-link:hover { color: var(--b2b-accent); }

/* Tags */
.b2b-tags-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--b2b-sp-2);
    padding: var(--b2b-sp-4) 0;
    border-top: var(--b2b-border);
    border-bottom: var(--b2b-border);
    margin: var(--b2b-sp-5) 0;
}

.b2b-tags-label {
    font-size: var(--b2b-fs-sm);
    font-weight: 600;
    color: var(--b2b-gray-700);
    white-space: nowrap;
    padding-top: 2px;
}

.b2b-tags-list { display: flex; flex-wrap: wrap; gap: 5px; }

.b2b-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--b2b-gray-100);
    border: var(--b2b-border);
    border-radius: 20px;
    font-size: var(--b2b-fs-xs);
    color: var(--b2b-gray-700);
    text-decoration: none;
    transition: all var(--b2b-trans);
}

.b2b-tag:hover {
    background: var(--b2b-accent);
    border-color: var(--b2b-accent);
    color: #fff;
}

/* Rating */
.b2b-rating-box {
    background: var(--b2b-gray-50);
    border: var(--b2b-border);
    border-radius: var(--b2b-radius);
    padding: var(--b2b-sp-4) var(--b2b-sp-5);
    margin: var(--b2b-sp-5) 0;
}

.b2b-rating-inner { font-size: var(--b2b-fs-sm); }
.b2b-stars-wrap { display: flex; align-items: center; margin-top: var(--b2b-sp-2); }

/* Social */
.b2b-social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--b2b-sp-3);
    padding: var(--b2b-sp-3) 0;
    border-top: var(--b2b-border);
    margin: var(--b2b-sp-4) 0;
}

.b2b-social-label {
    font-size: var(--b2b-fs-sm);
    font-weight: 600;
    color: var(--b2b-gray-700);
}

/* Comments */
.b2b-comments-section { margin: var(--b2b-sp-6) 0; }

.b2b-section-title {
    font-size: var(--b2b-fs-xl);
    font-weight: 700;
    color: var(--b2b-gray-900);
    border-bottom: 2px solid var(--b2b-accent);
    padding-bottom: var(--b2b-sp-2);
    margin-bottom: var(--b2b-sp-4);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Related (Swiper cards) */
.b2b-related-wrap { margin-top: var(--b2b-sp-6); border-top: 3px solid var(--b2b-primary); }

.b2b-related-block {
    padding: var(--b2b-sp-5) 0;
    border-bottom: var(--b2b-border);
}

.b2b-related-block:last-child { border-bottom: none; }

.b2b-related-title {
    display: flex;
    align-items: center;
    gap: var(--b2b-sp-2);
    font-family: var(--b2b-font-base);
    font-size: var(--b2b-fs-sm);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--b2b-gray-600);
    margin-bottom: var(--b2b-sp-3);
}

.b2b-related-title strong { color: var(--b2b-accent); }

.b2b-rel-card { display: flex; flex-direction: column; gap: var(--b2b-sp-2); }

.b2b-rel-imglink {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--b2b-radius-sm);
    aspect-ratio: 16/9;
}

.b2b-rel-imglink img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--b2b-trans-slow);
    display: block;
}

.b2b-rel-imglink:hover img { transform: scale(1.05); }

.b2b-rel-date {
    position: absolute;
    bottom: 5px;
    left: 6px;
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.9);
    padding: 2px 7px;
    border-radius: 2px;
    font-size: .68rem;
    line-height: 1.5;
}

.b2b-rel-date span { font-style: italic; margin-left: 2px; }

.b2b-rel-body h4 {
    font-size: var(--b2b-fs-sm);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px;
}

.b2b-rel-body h4 a { color: var(--b2b-gray-900); }
.b2b-rel-body h4 a:hover { color: var(--b2b-accent); }

.b2b-rel-body p {
    font-size: var(--b2b-fs-xs);
    color: var(--b2b-gray-500);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swiper buttons override cho b2b tone */
.b2b-related-swiper .swiper-button-next,
.b2b-related-swiper .swiper-button-prev {
    width: 28px;
    height: 28px;
    background: var(--b2b-primary);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

.b2b-related-swiper .swiper-button-next::after,
.b2b-related-swiper .swiper-button-prev::after {
    font-size: 12px;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY PAGES (viewcat_page, viewcat_main_left)
   ══════════════════════════════════════════════════════════ */

.b2b-cat-header {
    margin-bottom: var(--b2b-sp-6);
}

.b2b-cat-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b2b-gray-900);
    text-transform: uppercase;
    letter-spacing: .3px;
    border-bottom: 3px solid var(--b2b-accent);
    padding-bottom: var(--b2b-sp-2);
    margin-bottom: var(--b2b-sp-4);
}

.b2b-cat-desc-wrap {
    display: flex;
    gap: var(--b2b-sp-4);
    align-items: flex-start;
    background: var(--b2b-gray-50);
    border: var(--b2b-border);
    border-left: 4px solid var(--b2b-accent);
    border-radius: var(--b2b-radius);
    padding: var(--b2b-sp-4);
}

.b2b-cat-desc-img {
    width: 110px;
    height: auto;
    border-radius: var(--b2b-radius-sm);
    flex-shrink: 0;
}

.b2b-cat-desc-text {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-700);
    line-height: 1.65;
    margin: 0;
}

/* Featured article */
.b2b-featured-row {
    border-bottom: 2px solid var(--b2b-gray-200);
    margin-bottom: var(--b2b-sp-5);
    padding-bottom: var(--b2b-sp-5);
}

.b2b-featured-imglink {
    display: block;
    overflow: hidden;
    border-radius: var(--b2b-radius-sm);
    aspect-ratio: 16/9;
}

.b2b-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--b2b-trans-slow);
    display: block;
}

.b2b-featured-imglink:hover .b2b-featured-img { transform: scale(1.03); }

.b2b-featured-body {
    padding: 0 0 0 var(--b2b-sp-4);
}

@media (max-width: 767px) { .b2b-featured-body { padding: var(--b2b-sp-3) 0 0; } }

.b2b-featured-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 var(--b2b-sp-2);
}

.b2b-featured-title a { color: var(--b2b-gray-900); }
.b2b-featured-title a:hover { color: var(--b2b-accent); }

.b2b-featured-hometext {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-700);
    line-height: 1.65;
}

/* News list row */
.b2b-news-row {
    padding: var(--b2b-sp-3) 0;
    border-bottom: var(--b2b-border);
}

.b2b-news-row:last-child { border-bottom: none; }

.b2b-list-imglink {
    display: block;
    overflow: hidden;
    border-radius: var(--b2b-radius-sm);
    aspect-ratio: 4/3;
}

.b2b-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--b2b-trans);
    display: block;
}

.b2b-list-imglink:hover .b2b-list-thumb { transform: scale(1.06); }

.b2b-list-title {
    font-size: var(--b2b-fs-md);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 var(--b2b-sp-1);
}

.b2b-list-title a { color: var(--b2b-gray-900); }
.b2b-list-title a:hover { color: var(--b2b-accent); }

.b2b-list-hometext {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Other news list */
.b2b-other-news {
    background: var(--b2b-gray-50);
    border: var(--b2b-border);
    border-radius: var(--b2b-radius);
    padding: var(--b2b-sp-4);
    margin: var(--b2b-sp-5) 0;
}

.b2b-other-title {
    font-size: var(--b2b-fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--b2b-accent);
    margin-bottom: var(--b2b-sp-3);
    padding-bottom: var(--b2b-sp-2);
    border-bottom: var(--b2b-border);
}

.b2b-other-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-other-list li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--b2b-gray-200);
    font-size: var(--b2b-fs-sm);
}

.b2b-other-list li:last-child { border-bottom: none; }
.b2b-other-list li .fa { color: var(--b2b-accent); font-size: .75rem; flex-shrink: 0; }
.b2b-other-list li a { color: var(--b2b-gray-800); flex: 1; line-height: 1.45; }
.b2b-other-list li a:hover { color: var(--b2b-accent); }
.b2b-other-time { color: var(--b2b-gray-500); font-size: var(--b2b-fs-xs); white-space: nowrap; }

/* Cat section (viewcat_main_left) */
.b2b-cat-section {
    margin-bottom: var(--b2b-sp-6);
    border: var(--b2b-border);
    border-radius: var(--b2b-radius);
    overflow: hidden;
    box-shadow: var(--b2b-shadow-sm);
}

.b2b-cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--b2b-primary);
    padding: var(--b2b-sp-2) var(--b2b-sp-4);
}

.b2b-cat-nav { display: flex; align-items: center; gap: var(--b2b-sp-3); flex-wrap: wrap; }

.b2b-cat-nav-title {
    margin: 0;
    font-size: var(--b2b-fs-sm);
    font-weight: 700;
}

.b2b-cat-nav-title a {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.b2b-cat-nav-sub { display: flex; gap: var(--b2b-sp-2); flex-wrap: wrap; }

.b2b-subcat-link {
    color: rgba(255,255,255,.75);
    font-size: var(--b2b-fs-xs);
    transition: color var(--b2b-trans);
}

.b2b-subcat-link:hover { color: #fff; }

.b2b-cat-more {
    color: rgba(255,255,255,.8);
    font-size: var(--b2b-fs-xs);
    white-space: nowrap;
}

.b2b-cat-more:hover { color: #fff; }

.b2b-cat-body { padding: var(--b2b-sp-4); }

.b2b-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    border-right: var(--b2b-border);
    padding-right: var(--b2b-sp-4);
}

@media (max-width: 767px) {
    .b2b-sidebar-links {
        border-right: none;
        border-bottom: var(--b2b-border);
        padding-right: 0;
        padding-bottom: var(--b2b-sp-3);
        margin-bottom: var(--b2b-sp-3);
    }
}

.b2b-sidebar-links li {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--b2b-gray-200);
    font-size: var(--b2b-fs-sm);
}

.b2b-sidebar-links li:last-child { border-bottom: none; }
.b2b-sidebar-links li .fa { color: var(--b2b-accent); font-size: .72rem; }
.b2b-sidebar-links li a { color: var(--b2b-gray-800); }
.b2b-sidebar-links li a:hover { color: var(--b2b-accent); }

.b2b-cat-main-imglink {
    display: block;
    overflow: hidden;
    border-radius: var(--b2b-radius-sm);
    margin-bottom: var(--b2b-sp-2);
}

.b2b-cat-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--b2b-trans);
}

.b2b-cat-main-imglink:hover .b2b-cat-main-img { transform: scale(1.03); }

.b2b-cat-main-title {
    font-size: var(--b2b-fs-lg);
    font-weight: 700;
    margin: 0 0 var(--b2b-sp-1);
}

.b2b-cat-main-title a { color: var(--b2b-gray-900); }
.b2b-cat-main-title a:hover { color: var(--b2b-accent); }

.b2b-cat-main-hometext { font-size: var(--b2b-fs-sm); color: var(--b2b-gray-600); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   TOPIC PAGE
   ══════════════════════════════════════════════════════════ */

.b2b-breadcrumb { margin-bottom: var(--b2b-sp-3); }

.breadcrumb {
    background: transparent;
    padding: 4px 0;
    margin: 0;
    font-size: var(--b2b-fs-xs);
}

.breadcrumb-item a { color: var(--b2b-accent); }

.b2b-topic-header { margin-bottom: var(--b2b-sp-6); }

.b2b-topic-intro {
    display: flex;
    gap: var(--b2b-sp-5);
    align-items: flex-start;
    background: var(--b2b-gray-50);
    border: var(--b2b-border);
    border-left: 4px solid var(--b2b-accent);
    border-radius: var(--b2b-radius);
    padding: var(--b2b-sp-5);
}

@media (max-width: 767px) { .b2b-topic-intro { flex-direction: column; } }

.b2b-topic-banner-img {
    width: 130px;
    height: auto;
    border-radius: var(--b2b-radius-sm);
    flex-shrink: 0;
    display: block;
}

.b2b-topic-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--b2b-gray-900);
    margin: 0 0 var(--b2b-sp-2);
    text-transform: uppercase;
}

.b2b-topic-desc {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-700);
    line-height: 1.65;
    margin: 0;
}

.b2b-topic-item {
    padding: var(--b2b-sp-4) 0;
    border-bottom: var(--b2b-border);
}

.b2b-topic-item:last-of-type { border-bottom: none; }

.b2b-topic-imglink {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--b2b-radius-sm);
    aspect-ratio: 4/3;
}

.b2b-topic-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--b2b-trans);
}

.b2b-topic-imglink:hover .b2b-topic-thumb { transform: scale(1.04); }

.b2b-topic-time-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    padding: 20px var(--b2b-sp-2) var(--b2b-sp-1);
    font-size: .72rem;
    color: rgba(255,255,255,.9);
    font-style: italic;
}

.b2b-topic-item-title {
    font-size: var(--b2b-fs-lg);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 var(--b2b-sp-2);
}

.b2b-topic-item-title a { color: var(--b2b-gray-900); }
.b2b-topic-item-title a:hover { color: var(--b2b-accent); }
.b2b-topic-hometext { font-size: var(--b2b-fs-sm); color: var(--b2b-gray-700); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   COMPACT LIST (viewcat_list)
   ══════════════════════════════════════════════════════════ */

.b2b-compact-list { display: flex; flex-direction: column; }

.b2b-compact-item {
    display: flex;
    align-items: baseline;
    gap: var(--b2b-sp-2);
    padding: var(--b2b-sp-2) var(--b2b-sp-3);
    border-bottom: var(--b2b-border);
    text-decoration: none;
    transition: background var(--b2b-trans);
}

.b2b-compact-item:hover { background: var(--b2b-gray-50); }

.b2b-compact-num {
    font-size: var(--b2b-fs-xs);
    font-weight: 700;
    color: #fff;
    background: var(--b2b-accent);
    border-radius: 2px;
    padding: 1px 5px;
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
}

.b2b-compact-title {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-800);
    line-height: 1.45;
    flex: 1;
}

.b2b-compact-item:hover .b2b-compact-title { color: var(--b2b-accent); }

/* ══════════════════════════════════════════════════════════
   MAIN.TPL — HOMEPAGE BLOCKS
   ══════════════════════════════════════════════════════════ */

/* Headline block */
.b2b-headline-wrap {
    margin-bottom: var(--b2b-sp-6);
    border-bottom: var(--b2b-border);
    padding-bottom: var(--b2b-sp-5);
}

.b2b-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--b2b-radius);
    background: #111;
}

.b2b-slide { position: relative; }

.b2b-slide-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.b2b-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform var(--b2b-trans-slow);
}

.b2b-slide-link:hover .b2b-slide-img { transform: scale(1.03); }

.b2b-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 40px var(--b2b-sp-4) var(--b2b-sp-3);
}

.b2b-slide-title {
    font-size: var(--b2b-fs-md);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tabs */
.b2b-tabs { height: 100%; display: flex; flex-direction: column; }

.b2b-tabs-nav {
    list-style: none !important;
    padding: 0 0 0 var(--b2b-sp-2);
    margin: 0;
    display: flex;
    border-bottom: 2px solid var(--b2b-gray-200);
    flex-wrap: wrap;
}

.b2b-tab-link {
    display: block;
    padding: var(--b2b-sp-2) var(--b2b-sp-3);
    font-size: var(--b2b-fs-xs);
    font-weight: 700;
    color: var(--b2b-gray-600);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--b2b-trans);
    text-transform: uppercase;
    letter-spacing: .2px;
}

.b2b-tab-link:hover,
.b2b-tabs-nav .ui-tabs-active .b2b-tab-link {
    color: var(--b2b-accent);
    border-bottom-color: var(--b2b-accent);
}

.b2b-tab-pane { padding: var(--b2b-sp-2) var(--b2b-sp-2) 0; flex: 1; }

.b2b-latest-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.b2b-latest-list li {
    border-bottom: 1px dashed var(--b2b-gray-200);
    padding: 5px 0;
    list-style: none !important;
}

.b2b-latest-list li:last-child { border-bottom: none; }

.b2b-latest-link {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-800);
    text-decoration: none;
    line-height: 1.45;
    transition: color var(--b2b-trans);
}

.b2b-latest-link .fa { color: var(--b2b-accent); font-size: .7rem; margin-top: 4px; flex-shrink: 0; }
.b2b-latest-link:hover { color: var(--b2b-accent); }

/* Newscenter */
.b2b-newscenter { margin-bottom: var(--b2b-sp-6); }

.b2b-nc-imglink {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--b2b-radius) var(--b2b-radius) 0 0;
    aspect-ratio: 16/9;
}

.b2b-nc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--b2b-trans-slow);
    display: block;
}

.b2b-nc-imglink:hover .b2b-nc-img { transform: scale(1.03); }

.b2b-nc-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(transparent, rgba(0,0,0,.25));
    pointer-events: none;
}

.b2b-nc-body {
    padding: var(--b2b-sp-3) var(--b2b-sp-4) var(--b2b-sp-4);
    border: var(--b2b-border);
    border-top: none;
    border-radius: 0 0 var(--b2b-radius-sm) var(--b2b-radius-sm);
    background: #fff;
}

.b2b-nc-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 var(--b2b-sp-2);
}

.b2b-nc-title a { color: var(--b2b-gray-900); }
.b2b-nc-title a:hover { color: var(--b2b-accent); }

.b2b-nc-hometext {
    font-size: var(--b2b-fs-sm);
    color: var(--b2b-gray-600);
    line-height: 1.65;
    margin-bottom: var(--b2b-sp-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-nc-more {
    font-size: var(--b2b-fs-sm);
    font-weight: 600;
    color: var(--b2b-accent);
}

.b2b-nc-more:hover { text-decoration: underline; }

.b2b-nc-others {
    list-style: none !important;
    padding: 0 0 0 var(--b2b-sp-3);
    margin: 0;
    border-left: var(--b2b-border);
    height: 100%;
}

@media (max-width: 767px) {
    .b2b-nc-others { padding: var(--b2b-sp-3) 0 0; border-left: none; border-top: var(--b2b-border); }
}

.b2b-nc-other-item { border-bottom: 1px dashed var(--b2b-gray-200); padding: var(--b2b-sp-2) 0; list-style: none !important; }
.b2b-nc-other-item:last-child { border-bottom: none; }

.b2b-nc-other-link { display: flex; align-items: flex-start; gap: var(--b2b-sp-2); text-decoration: none; }

.b2b-nc-other-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 52px;
    overflow: hidden;
    border-radius: 3px;
}

.b2b-nc-other-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--b2b-trans);
    display: block;
}

.b2b-nc-other-link:hover .b2b-nc-other-thumb img { transform: scale(1.06); }

.b2b-nc-other-title {
    font-size: var(--b2b-fs-sm);
    font-weight: 600;
    color: var(--b2b-gray-800);
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-nc-other-link:hover .b2b-nc-other-title { color: var(--b2b-accent); }

/* Groups section */
.b2b-groups-section {
    margin-bottom: var(--b2b-sp-6);
    padding-bottom: var(--b2b-sp-5);
    border-bottom: var(--b2b-border);
}

.b2b-group-main {
    border-radius: var(--b2b-radius);
    overflow: hidden;
    box-shadow: var(--b2b-shadow-sm);
    display: flex;
    flex-direction: column;
}

.b2b-group-imglink {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.b2b-group-imglink img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--b2b-trans-slow);
}

.b2b-group-imglink:hover img { transform: scale(1.04); }

.b2b-group-main-body { padding: var(--b2b-sp-3) var(--b2b-sp-3) var(--b2b-sp-4); background: #fff; flex: 1; }

.b2b-group-main-title { font-size: var(--b2b-fs-lg); font-weight: 700; line-height: 1.4; margin: 0 0 var(--b2b-sp-1); }
.b2b-group-main-title a { color: var(--b2b-gray-900); }
.b2b-group-main-title a:hover { color: var(--b2b-accent); }
.b2b-group-main-desc { font-size: var(--b2b-fs-sm); color: var(--b2b-gray-600); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.b2b-group-small-list { display: flex; flex-direction: column; }

.b2b-group-small-item { display: flex; gap: var(--b2b-sp-3); padding: var(--b2b-sp-2) 0; border-bottom: var(--b2b-border); }
.b2b-group-small-item:last-child { border-bottom: none; }

.b2b-group-small-imglink { flex-shrink: 0; display: block; overflow: hidden; border-radius: 3px; width: 96px; height: 64px; }
.b2b-group-small-imglink img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--b2b-trans); display: block; }
.b2b-group-small-imglink:hover img { transform: scale(1.06); }

.b2b-group-small-title { font-size: var(--b2b-fs-sm); font-weight: 700; line-height: 1.4; margin: 0 0 3px; }
.b2b-group-small-title a { color: var(--b2b-gray-900); }
.b2b-group-small-title a:hover { color: var(--b2b-accent); }
.b2b-group-small-desc { font-size: var(--b2b-fs-xs); color: var(--b2b-gray-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Card section (groups_3) */
.b2b-card-section { margin-bottom: var(--b2b-sp-6); }

.b2b-news-card {
    border-radius: var(--b2b-radius);
    overflow: hidden;
    box-shadow: var(--b2b-shadow-sm);
    background: #fff;
    transition: box-shadow var(--b2b-trans), transform var(--b2b-trans);
    margin-bottom: var(--b2b-sp-5);
}

.b2b-news-card:hover { box-shadow: var(--b2b-shadow-lg); transform: translateY(-3px); }

.b2b-card-imglink { display: block; overflow: hidden; aspect-ratio: 16/9; }
.b2b-card-imglink img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--b2b-trans-slow); }
.b2b-news-card:hover .b2b-card-imglink img { transform: scale(1.04); }

.b2b-card-body { padding: var(--b2b-sp-3) var(--b2b-sp-3) var(--b2b-sp-3); }
.b2b-card-title { font-size: var(--b2b-fs-sm); font-weight: 700; line-height: 1.4; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-card-title a { color: var(--b2b-gray-900); }
.b2b-card-title a:hover { color: var(--b2b-accent); }
.b2b-card-desc { font-size: var(--b2b-fs-xs); color: var(--b2b-gray-600); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Catgrid */
.b2b-catgrid-section { margin-bottom: var(--b2b-sp-6); }

.b2b-catgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--b2b-sp-3);
}

@media (max-width: 991px) { .b2b-catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .b2b-catgrid { grid-template-columns: repeat(2, 1fr); } }

.b2b-catgrid-card { border-radius: var(--b2b-radius-sm); overflow: hidden; box-shadow: var(--b2b-shadow-sm); transition: box-shadow var(--b2b-trans), transform var(--b2b-trans); }
.b2b-catgrid-card:hover { box-shadow: var(--b2b-shadow); transform: translateY(-2px); }

.b2b-catgrid-imglink { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; }
.b2b-catgrid-imglink img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--b2b-trans-slow); }
.b2b-catgrid-card:hover .b2b-catgrid-imglink img { transform: scale(1.05); }

.b2b-catgrid-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.45)); pointer-events: none; }

.b2b-catgrid-title { padding: 6px var(--b2b-sp-2); font-size: var(--b2b-fs-xs); font-weight: 700; line-height: 1.35; background: #fff; }
.b2b-catgrid-title a { color: var(--b2b-gray-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-catgrid-title a:hover { color: var(--b2b-accent); }

/* Tophits */
.b2b-tophits-list { list-style: none !important; padding: 0; margin: 0; counter-reset: th; }

.b2b-tophits-item {
    display: flex;
    align-items: flex-start;
    gap: var(--b2b-sp-2);
    padding: 8px 0;
    border-bottom: 1px dashed var(--b2b-gray-200);
    counter-increment: th;
    list-style: none !important;
}

.b2b-tophits-item:last-child { border-bottom: none; }

.b2b-tophits-item::before {
    content: counter(th);
    font-size: var(--b2b-fs-xs);
    font-weight: 700;
    color: #fff;
    background: var(--b2b-accent);
    min-width: 20px;
    height: 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.b2b-tophits-item:nth-child(n+4)::before { background: var(--b2b-gray-400); }

.b2b-tophits-thumb { flex-shrink: 0; display: block; overflow: hidden; border-radius: 3px; width: 64px; height: 44px; }
.b2b-tophits-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--b2b-trans); }
.b2b-tophits-thumb:hover img { transform: scale(1.07); }

.b2b-tophits-title { font-size: var(--b2b-fs-sm); font-weight: 600; color: var(--b2b-gray-800); line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-tophits-title:hover { color: var(--b2b-accent); }

/* Block news list */
.b2b-blocknews-list { list-style: none !important; padding: 0; margin: 0; }

.b2b-blocknews-item { display: flex; align-items: flex-start; gap: var(--b2b-sp-2); padding: 7px 0; border-bottom: 1px dashed var(--b2b-gray-200); list-style: none !important; }
.b2b-blocknews-item:last-child { border-bottom: none; }

.b2b-blocknews-thumb { flex-shrink: 0; width: 64px; height: 44px; overflow: hidden; border-radius: 3px; display: block; }
.b2b-blocknews-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--b2b-trans); }
.b2b-blocknews-thumb:hover img { transform: scale(1.07); }

.b2b-blocknews-title { font-size: var(--b2b-fs-sm); font-weight: 600; color: var(--b2b-gray-800); line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-blocknews-title:hover { color: var(--b2b-accent); }

/* Generic list */
.b2b-generic-list { list-style: none !important; padding: 0; margin: 0; }

.b2b-generic-item { display: flex; align-items: flex-start; gap: var(--b2b-sp-2); padding: 7px 0; border-bottom: 1px dashed var(--b2b-gray-200); list-style: none !important; }
.b2b-generic-item:last-child { border-bottom: none; }

.b2b-generic-thumb { flex-shrink: 0; display: block; overflow: hidden; border-radius: 3px; width: 60px; height: 42px; }
.b2b-generic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--b2b-trans); }
.b2b-generic-thumb:hover img { transform: scale(1.08); }

.b2b-generic-title { font-size: var(--b2b-fs-sm); font-weight: 600; color: var(--b2b-gray-800); line-height: 1.45; flex: 1; }
.b2b-generic-title:hover { color: var(--b2b-accent); }

/* ── Reading progress bar ── */
#b2b-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--b2b-accent);
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* ── Back to top ── */
#b2b-back-top {
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--b2b-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--b2b-shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    z-index: 1000;
    font-size: 16px;
}

#b2b-back-top.visible { opacity: 1; transform: translateY(0); }
#b2b-back-top:hover { background: var(--b2b-accent); }
