/* Điều chỉnh nhẹ cho brand MTTQ — giữ skin StyleSheet.css từ Portal */
.dropdown-menu .sub-item {
    padding-left: 2rem;
}

/* Header MTTQ: cân logo + chữ (desktop / tablet / mobile) */
.portal-header-skin.MultiFunctionControl .banner.mttq-header-banner {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem;
    flex-wrap: nowrap;
    padding: 1rem 0.75rem;
    padding-right: 0.75rem; /* không chừa chỗ gallery cũ */
}

.mttq-header-logo-link {
    flex-shrink: 0;
    line-height: 0;
}

.portal-header-skin .mttq-header-logo,
.MultiFunctionControl .banner > a > img.mttq-header-logo {
    width: auto !important;
    height: 110px !important;
    max-height: 110px !important;
    object-fit: contain;
    display: block;
}

.portal-header-skin.MultiFunctionControl .banner .text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Desktop: chữ đủ lớn, cố gắng 1 dòng */
.portal-header-skin .banner .info,
.MultiFunctionControl .banner .info {
    font-size: 1.65rem !important; /* ~26px */
    line-height: 1.35 !important;
    white-space: nowrap;
    margin-bottom: 0.15rem;
}

.portal-header-skin .banner .info2,
.MultiFunctionControl .banner .info2 {
    font-size: 2.5rem !important; /* ~30px — gần Portal nhưng vừa 1 dòng */
    line-height: 1.3 !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet ngang / laptop nhỏ */
@media (max-width: 1199.98px) {
    .portal-header-skin .mttq-header-logo,
    .MultiFunctionControl .banner > a > img.mttq-header-logo {
        height: 96px !important;
        max-height: 96px !important;
    }

    .portal-header-skin .banner .info,
    .MultiFunctionControl .banner .info {
        font-size: 1.4rem !important;
    }

    .portal-header-skin .banner .info2,
    .MultiFunctionControl .banner .info2 {
        font-size: 1.55rem !important;
    }
}

/* Tablet dọc + mobile rộng: xếp dọc như StyleSheet, chữ vẫn rõ */
@media (max-width: 991.98px) {
    .portal-header-skin.MultiFunctionControl .banner.mttq-header-banner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .portal-header-skin .mttq-header-logo,
    .MultiFunctionControl .banner > a > img.mttq-header-logo {
        height: 88px !important;
        max-height: 88px !important;
        margin-bottom: 0.15rem;
    }

    .portal-header-skin.MultiFunctionControl .banner .text {
        width: 100%;
        text-align: center;
    }

    .portal-header-skin .banner .info,
    .MultiFunctionControl .banner .info {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
        text-align: center !important;
        width: 100%;
        white-space: normal;
    }

    .portal-header-skin .banner .info2,
    .MultiFunctionControl .banner .info2 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        text-align: center !important;
        width: 100%;
        white-space: normal; /* tablet cho phép xuống dòng nếu hẹp */
        overflow: visible;
        text-overflow: unset;
    }
}

/* Điện thoại */
@media (max-width: 575.98px) {
    .portal-header-skin .mttq-header-logo,
    .MultiFunctionControl .banner > a > img.mttq-header-logo {
        height: 72px !important;
        max-height: 72px !important;
    }

    .portal-header-skin .banner .info,
    .MultiFunctionControl .banner .info {
        font-size: 1.05rem !important;
    }

    .portal-header-skin .banner .info2,
    .MultiFunctionControl .banner .info2 {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
    }
}

.mttq-home-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--site-accent, #b30000);
    border-left: 4px solid var(--site-accent, #b30000);
    padding-left: 0.6rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Nút Về trang chủ — vòng tròn mũi tên lên (kiểu Cổng Tỉnh uỷ #backtotop); chỉ desktop */
.mttq-home-fab {
    display: none;
}
@media (min-width: 992px) {
    .mttq-home-fab {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 99990;
        display: none; /* hiện khi đã cuộn — JS */
        width: 50px;
        height: 50px;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        font-size: 24px;
        font-weight: 700;
        text-decoration: none !important;
        color: #fff !important;
        background: var(--site-accent, #dc3545);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }
    .mttq-home-fab.is-show {
        display: block;
        animation: mttqHomeFabIn 0.45s ease;
    }
    .mttq-home-fab:hover {
        color: #fff !important;
        background: var(--site-nav-hover, #b02a37);
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--site-section-glow, rgba(220, 53, 69, 0.8));
    }
    .mttq-home-fab:focus-visible {
        outline: 2px solid var(--site-accent, #2563eb);
        outline-offset: 3px;
    }
}
@keyframes mttqHomeFabIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* Phân trang tin nhóm (công) — kiểu QT Tin bài, căn giữa */
.tin-pager--public {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
    margin: 1.25rem auto 0.5rem;
    max-width: 100%;
    padding: 0.25rem 0;
}
.tin-pager--public a,
.tin-pager--public span {
    flex: 0 0 auto;
    min-width: 2rem;
    padding: 0.3rem 0.55rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: #1e293b;
    background: #fff;
    white-space: nowrap;
}
.tin-pager--public a:hover {
    border-color: var(--site-accent, #b30000);
    color: var(--site-accent, #b30000);
}
.tin-pager--public .is-on {
    background: var(--site-accent, #b30000);
    color: #fff;
    border-color: var(--site-accent, #b30000);
}
.tin-pager--public .is-disabled {
    opacity: 0.4;
    cursor: default;
    background: #f8fafc;
}
.tin-pager--public .tin-pager__meta {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    margin-right: 0.35rem;
}
.tin-pager--public .tin-pager__dots {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    min-width: 1.25rem !important;
}

.mttq-news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mttq-news-card .title a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.mttq-news-card .summary {
    font-size: 0.95rem;
    color: #6c757d;
}

.mttq-leader-card {
    text-align: center;
    margin-bottom: 1rem;
}

    .mttq-leader-card img {
        width: 120px;
        height: 150px;
        object-fit: cover;
        border: 2px solid var(--site-accent, #b30000);
        border-radius: 4px;
    }

.admin-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Tab nhóm tin trang chủ (kiểu Portal) */
.group-tabs-wrap .nav-tabs {
    border-bottom: 2px solid var(--site-accent, #b30000);
    gap: 0.15rem;
}

    .group-tabs-wrap .nav-tabs .nav-link {
        color: #444;
        font-weight: 600;
        font-size: 0.85rem;
        border: none;
        border-radius: 0;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .group-tabs-wrap .nav-tabs .nav-link.active {
            color: #fff;
            background: var(--site-accent, #b30000);
        }

        .group-tabs-wrap .nav-tabs .nav-link:hover:not(.active) {
            color: var(--site-accent, #b30000);
            background: var(--site-section-tint, #fff5f5);
        }

/* Hàng Tin nổi bật + Liên kết: chiều cao tự nhiên, không cuộn nội bộ */
.mttq-featured-body {
    padding-top: 0.5rem !important;
}

.mttq-featured-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.mttq-featured-caption .featured-main-title {
    font-size: 1.15rem;
}

.mttq-featured-meta {
    font-size: 0.875rem;
    color: #555;
    justify-content: flex-end;
    padding-top: 5px;
    padding-bottom: 5px;
}

.mttq-featured-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.mttq-featured-meta__item > i {
    font-size: 0.95rem;
    width: 1em;
    text-align: center;
}

.mttq-featured-meta .news-share-fb {
    font-size: 0.75rem;
    padding: 3px 8px;
}

.mttq-featured-caption .featured-main-summary {
    font-size: 1.1rem;
}

.mttq-featured-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: justify;
}

.mttq-featured-list .featured-list-item {
    margin-bottom: 0 !important;
}

/* Tin nổi bật: nút nửa vòng tròn giữa ảnh, 2 mép */
.featured-carousel-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.featured-carousel-media > a {
    display: block;
}

.featured-carousel-media .featured-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    margin-bottom: 0;
}

.mttq-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 56px;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mttq-carousel-btn:hover,
.mttq-carousel-btn:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    color: var(--site-accent, #b30000);
    outline: none;
}

.mttq-carousel-btn--prev {
    left: 0;
    border-radius: 0 28px 28px 0; /* nửa vòng phải */
}

.mttq-carousel-btn--next {
    right: 0;
    border-radius: 28px 0 0 28px; /* nửa vòng trái */
}

.featured-list-col {
    padding-left: 0.35rem;
}

.featured-list-col .featured-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.featured-list-col .featured-list-item > i {
    flex: 0 0 auto;
    width: 0.75rem;
    margin-top: 0.2em;
    line-height: 1.4;
    font-size: 0.85rem;
}

.featured-list-col .featured-list-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 400 !important;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.45;
    font-size: 1.05rem;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.featured-list-col .news-item a {
    font-weight: 400 !important;
}

.group-tab-list-item {
    align-items: flex-start !important;
}

.group-tab-list-caption {
    flex: 1;
    min-width: 0;
    font-weight: 400 !important;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.portal-sidebar .vb-list li a {
    font-weight: 400;
    text-align: justify;
}

.portal-banner-row-card {
    min-height: 80px;
}

/* Nhóm 3 Công tác MTTQ — lưới 2 cột chảy trái-phải; ẩn mục thì mục sau lên lấp.
   Cặp cùng hàng cao bằng nhau; tiêu đề ngắn 1 dòng, trống (nếu có) cuối card. */
.mttq-nhom3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}
@media (max-width: 767.98px) {
    .mttq-nhom3-grid { grid-template-columns: 1fr; }
}
.mttq-nhom3-grid > .nhom4-card {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mttq-nhom3-hot-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
}

.nhom4-grid .nhom4-card .card-header .nav-item {
    max-width: 100%;
}
.nhom4-grid .nhom4-card .card-header .nav-link.parent-tab {
    white-space: normal;
    max-width: 100%;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.nhom4-grid .nhom4-card .card-body {
    overflow: hidden;
    min-width: 0;
    flex: 1 1 auto;
}
.nhom4-grid .nhom4-card .card-body h6 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.nhom4-grid .nhom4-card .card-body h6 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    line-height: 1.4;
}
.nhom4-grid .nhom4-card .card-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
    margin-bottom: 0.4rem;
}
.nhom4-grid .nhom4-card .card-body ul li i {
    flex: 0 0 auto;
    margin-top: 0.28em;
}
.nhom4-grid .nhom4-card .card-body ul li a {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* Tab nhóm tin MTTQ: luôn tên ngắn (title/aria-label = tên đầy đủ khi hover) */
.group-tabs-wrap .nav-pills .nav-link:not(.parent-tab) {
    white-space: nowrap;
    max-width: 100%;
}
.group-tabs-wrap .nav-pills .nav-link:not(.parent-tab) .tab-label {
    display: inline;
    white-space: nowrap;
}
.group-tabs-wrap .nav-pills .nav-link:not(.parent-tab) .tab-icon {
    margin-right: 0.35rem;
}
/* Tab phụ thu gọn: chỉ icon; hover vẫn có title đầy đủ */
.group-tabs-wrap .nav-pills .nav-link.tab-collapsed .tab-label {
    display: none;
}

/* Banner ngang (trái/phải): rộng full khung, cao theo ảnh */
.mttq-banner-frame {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

.mttq-banner-track {
    position: relative;
    width: 100%;
    height: auto;
}

.mttq-banner-slide {
    display: none;
    width: 100%;
}

.mttq-banner-slide.is-active {
    display: block;
}

.mttq-banner-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.mttq-banner-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.mttq-banner-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}

/* Banner cột phải (trên / dưới) — xếp dọc, rộng full, cao auto */
.mttq-side-banner-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mttq-side-banner-item {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f7f7;
}

.mttq-side-banner-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Album trang chủ — slide tự chạy, dưới văn bản, trên banner Liên kết */
.mttq-home-album {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--site-section-border-soft, #e8e8e8);
    background: var(--site-section-tint, #f7f7f7);
}
.mttq-home-album-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}
.mttq-home-album-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    color: inherit;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity .65s ease;
}
.mttq-home-album-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.mttq-home-album-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mttq-home-album-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: .55rem .7rem 1.35rem;
    background: linear-gradient(to top, rgba(15,23,42,.82), transparent);
    color: #fff;
    line-height: 1.3;
}
.mttq-home-album-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .82rem;
    font-weight: 700;
}
.mttq-home-album-count {
    display: block;
    margin-top: .15rem;
    font-size: .7rem;
    opacity: .9;
}
.mttq-home-album-dots {
    position: absolute;
    left: 0; right: 0; bottom: .35rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: .28rem;
    pointer-events: none;
}
.mttq-home-album-dot {
    pointer-events: auto;
    width: .42rem;
    height: .42rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    box-shadow: 0 0 0 1px rgba(15,23,42,.15);
}
.mttq-home-album-dot.is-active {
    background: #fff;
    width: .7rem;
}

/* Chữ chạy trang chủ: full chiều ngang khung, chữ hoa, phải → trái */
.chuchay-bar {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
}

.chuchay-bar .date-box {
    flex: 0 0 auto !important; /* không chiếm 27% nữa */
    width: auto !important;
    max-width: none;
    white-space: nowrap;
    padding-right: 0.5rem;
    border-right: 1px solid #ddd;
    margin-right: 0;
}

.chuchay-bar .marquee-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    overflow: hidden;
    white-space: nowrap;
}

.chuchay-bar .marquee-text {
    display: inline-block;
    padding-left: 100%;
    text-transform: uppercase;
    font-weight: 700;
    animation: mttq-marquee 40s linear infinite;
}

.chuchay-bar .marquee-text:hover {
    animation-play-state: paused;
}

@keyframes mttq-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .chuchay-bar {
        flex-wrap: wrap !important;
    }

    .chuchay-bar .date-box {
        flex: 0 0 100% !important;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 0.35rem;
        margin-bottom: 0.35rem;
        text-align: center;
    }

    .chuchay-bar .marquee-box {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Chuyên đề trang chủ — xen kẽ kiểu Nhóm 5 / Nhóm 6 Cổng Tỉnh uỷ, full hàng.
   Hàng .row.align-items-stretch biến col-* thành flex ngang — phải xếp dọc lại. */
.row.align-items-stretch > .mttq-home-alt {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}
.mttq-home-alt > * {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
}

.nhom5-wrap .nhom5-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.nhom5-wrap .nhom5-side {
    background: linear-gradient(165deg, var(--site-section-from, #b91c1c) 0%, var(--site-section-to, #7f1d1d) 55%, var(--site-section-deep, #450a0a) 100%);
    color: #fff;
    min-height: 88px;
    padding: 1rem 0.75rem;
}

.nhom5-wrap .nhom5-side a {
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nhom5-wrap .nhom5-side a:hover {
    color: #fee2e2 !important;
}

.nhom5-wrap .nhom5-side .nhom5-side-icon {
    font-size: 1.35rem;
    opacity: 0.95;
}

.nhom5-wrap .nhom5-body {
    background: #fafafa;
}

.nhom5-wrap .nhom5-mini-card {
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eef2f7;
    padding: 0.65rem 0.6rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nhom5-wrap .nhom5-mini-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
    border-color: rgba(185, 28, 28, 0.25);
}

.nhom5-wrap .nhom5-mini-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.nhom5-wrap .nhom5-mini-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    color: #1f2937;
}

.nhom5-wrap .nhom5-mini-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.35rem;
    text-align: justify;
}

.nhom5-wrap .nhom5-mini-meta {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
}

.nhom6-group-body .nhom6-mini-meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.nhom6-group-body .nhom6-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

.group-tabs-wrap.nhom6-section-head .nav-pills .nav-link.parent-tab {
    clip-path: none;
}

/* Khối 9 lãnh đạo trang chủ: hàng trên 4 (25%), hàng dưới 5 (20% như Tỉnh uỷ) */
.leader-wrapper--9,
.leader-wrapper--8 {
    overflow: visible;
    z-index: 2;
}
.leader-wrapper--9 .leader-home-col,
.leader-wrapper--8 .leader-home-col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 16px 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.leader-wrapper--9 .leader-home-col:nth-child(n + 5) {
    flex: 0 0 20%;
    max-width: 20%;
}
.leader-wrapper--9 .leader-home-col:nth-child(5n + 1) .leader-card__glow,
.leader-wrapper--8 .leader-home-col:nth-child(4n + 1) .leader-card__glow {
    animation-duration: 7.5s;
    background: conic-gradient(from 0deg, #d1d5db 0deg 45deg, #2563eb 45deg 90deg, #d1d5db 90deg 135deg, #22d3ee 135deg 180deg, #d1d5db 180deg 225deg, #60a5fa 225deg 270deg, #d1d5db 270deg 315deg, #1d4ed8 315deg 360deg);
}
.leader-wrapper--9 .leader-home-col:nth-child(5n + 2) .leader-card__glow,
.leader-wrapper--8 .leader-home-col:nth-child(4n + 2) .leader-card__glow {
    animation-duration: 9s;
    background: conic-gradient(from 0deg, #d1d5db 0deg 45deg, #e11d48 45deg 90deg, #d1d5db 90deg 135deg, #a855f7 135deg 180deg, #d1d5db 180deg 225deg, #db0713 225deg 270deg, #d1d5db 270deg 315deg, #c026d3 315deg 360deg);
}
.leader-wrapper--9 .leader-home-col:nth-child(5n + 3) .leader-card__glow,
.leader-wrapper--8 .leader-home-col:nth-child(4n + 3) .leader-card__glow {
    animation-duration: 8.3s;
    background: conic-gradient(from 0deg, #d1d5db 0deg 45deg, #eab308 45deg 90deg, #d1d5db 90deg 135deg, #f59e0b 135deg 180deg, #d1d5db 180deg 225deg, #facc15 225deg 270deg, #d1d5db 270deg 315deg, #d97706 315deg 360deg);
}
.leader-wrapper--9 .leader-home-col:nth-child(5n + 4) .leader-card__glow,
.leader-wrapper--8 .leader-home-col:nth-child(4n + 4) .leader-card__glow {
    animation-duration: 9.5s;
    background: conic-gradient(from 0deg, #d1d5db 0deg 45deg, #14b8a6 45deg 90deg, #d1d5db 90deg 135deg, #059669 135deg 180deg, #d1d5db 180deg 225deg, #2dd4bf 225deg 270deg, #d1d5db 270deg 315deg, #0d9488 315deg 360deg);
}
.leader-wrapper--9 .leader-home-col:nth-child(5n + 5) .leader-card__glow {
    animation-duration: 8.8s;
    background: conic-gradient(from 0deg, #d1d5db 0deg 45deg, #ea580c 45deg 90deg, #d1d5db 90deg 135deg, #fb923c 135deg 180deg, #d1d5db 180deg 225deg, #f97316 225deg 270deg, #d1d5db 270deg 315deg, #dc2626 315deg 360deg);
}
.leader-wrapper--9 .leader-home-col:nth-child(even) .leader-card__glow,
.leader-wrapper--8 .leader-home-col:nth-child(even) .leader-card__glow {
    animation-direction: reverse;
}
.leader-wrapper--9 .leader-card:hover,
.leader-wrapper--8 .leader-card:hover {
    z-index: 6;
}

@media (max-width: 768px) {
    .leader-wrapper--9 .leader-title h3,
    .leader-wrapper--8 .leader-title h3 {
        font-size: 13px;
        line-height: 1.35;
        padding: 6px 8px;
    }
    .leader-wrapper--9 .leader-home-col,
    .leader-wrapper--8 .leader-home-col {
        flex: 0 0 33.333% !important;
        width: 33.333%;
        max-width: 33.333% !important;
        padding: 3px 4px;
        box-sizing: border-box;
        justify-content: center;
    }
    .leader-wrapper--9 .leader-card,
    .leader-wrapper--8 .leader-card {
        width: 100%;
        max-width: 108px;
        border-width: 2px;
        border-radius: 12px;
    }
    .leader-wrapper--9 .leader-card__inner,
    .leader-wrapper--8 .leader-card__inner {
        margin: 2px;
        padding: 5px 5px 6px;
        border-radius: 10px;
    }
    .leader-wrapper--9 .leader-photo-wrap,
    .leader-wrapper--8 .leader-photo-wrap {
        width: 100%;
        max-width: 72px;
        margin: 0 auto 4px;
        border-radius: 8px;
    }
    .leader-wrapper--9 .leader-img,
    .leader-wrapper--8 .leader-img {
        border-radius: 8px;
    }
    .leader-wrapper--9 .leader-name,
    .leader-wrapper--8 .leader-name {
        font-size: 11px;
        line-height: 1.25;
        margin-bottom: 2px;
    }
    .leader-wrapper--9 .leader-role,
    .leader-wrapper--8 .leader-role {
        font-size: 10px;
        line-height: 1.25;
    }
    .leader-wrapper--9 .leader-card:hover,
    .leader-wrapper--8 .leader-card:hover {
        transform: translateY(-3px) scale(1.08);
    }
}

@media (max-width: 480px) {
    .leader-wrapper--9 .leader-home-col,
    .leader-wrapper--8 .leader-home-col {
        padding: 2px 3px;
    }
    .leader-wrapper--9 .leader-card,
    .leader-wrapper--8 .leader-card {
        max-width: 96px;
        border-radius: 10px;
    }
    .leader-wrapper--9 .leader-photo-wrap,
    .leader-wrapper--8 .leader-photo-wrap {
        max-width: 64px;
        margin-bottom: 3px;
    }
    .leader-wrapper--9 .leader-name,
    .leader-wrapper--8 .leader-name {
        font-size: 10px;
    }
    .leader-wrapper--9 .leader-role,
    .leader-wrapper--8 .leader-role {
        font-size: 9px;
    }
}