.section.section-banner-brand-detail{
    padding:0;
}
.section-banner-brand-detail .banner{
    height:20vh;
}
.section-banner-brand-detail .text-box-banner{
    top:50%;
    left:1%;
    width: 90%;
    transform: translateY(-50%);
    z-index: 1;
}
.section-banner-brand-detail .text-box-banner *{
    color:#fff;
}
.section-banner-brand-detail .banner-bg.fill:before{
    content:"";
    background: linear-gradient(to right, rgba(0,0,0,.7), transparent);
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* section-introduce */
.section.section-introduce{
    padding:56px 0 0;
}
.section-introduce .seperator-custom-box{
    opacity: .5;
}
.section-introduce .custom-box-data .box-title p{
    font-weight: 600;
    font-size: var(--font-body-large);
    margin-bottom:15px;
}
.section-introduce .custom-box-data.box-data-brand-tag .list-product-type-tag{
    display:flex;
    flex-wrap: wrap;
    gap:10px;
}
.section-introduce .custom-box-data.box-data-brand-tag span.type-tag{
    background: #fff;
    padding:2px 10px;
    color:var(--fs-color-primary);
    border-radius:50px;
    cursor: pointer;
}
.section-introduce .custom-box-data.box-data-brand-documents .list-brand-documents .doc-item{
    margin-bottom:10px;
}
.section-introduce .wget-custom-box-brand{
    background: var(--bg-muted);
    padding:30px 20px;
    border-radius:16px;
}
.section-introduce .stack-button{
    flex-direction: column;
}
.section-introduce .stack-button .button{
    margin-right:0;
}
.section-product-list .button-loadmore{
    background: transparent;
    border:none;
    color:var(--fs-color-secondary);
    font-size: var(--font-small);
}
.section-product-list .button-loadmore:hover{
    background: none;
    text-decoration: underline;
    box-shadow: none;
    color: var(--primary-color);
}
.section-introduce .brand-product-banner{
    width: 100%;
    margin: 24px 0 0;
}
.section-introduce .brand-product-banner-link,
.section-introduce .brand-product-banner-frame{
    display: block;
    line-height: 0;
    overflow: hidden;
    border-radius: 10px;
}
.section-introduce .brand-product-banner-link{
    transition: transform .25s ease, box-shadow .25s ease;
}
.section-introduce .brand-product-banner-link:hover{
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.12) 0 8px 24px;
}
.section-introduce .brand-product-banner-img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
/* section-product-list */
.section-product-list .product-small .col-inner{
    padding:0 15px;
}
.section-product-list .product-small {
    margin-bottom:30px;
}
.section-product-list .row-data-product{
    margin:0 auto !important;
}
.section.section-related-brand-posts{
    padding:56px 0;
    background: var(--bg-light);
}
.section-related-brand-posts .row-content-section,
.section-related-brand-posts .posts-loop{
    margin:0 auto !important;
}
.section-related-brand-posts .box-text{
    width:100%;
    margin-bottom:24px;
}
/* ============================================================
   SECTION BANNER
   - Simple gradient banner: padding-based (no fixed height)
   - Image banner (has-slider-bg, banner-single): height-based
   ============================================================ */
.section.section-banner {
    padding: 0;
}

.section-banner .banner {
    background: transparent;
}

/* ------ 1. Simple gradient banner (archive, category, static pages) ------ */
/* No background image → content-driven height via padding */
.section-banner .banner:not(.has-slider-bg):not(.banner-single) {
    height: auto;
}

.section-banner .banner:not(.has-slider-bg):not(.banner-single) > .banner-layers {
    position: relative !important;
    padding: 20px 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-banner .banner:not(.has-slider-bg):not(.banner-single) .text-box-banner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 90%;
    max-width: 1000px;
}

/* Breadcrumb-only pages: left-align */
.section-banner .banner:not(.has-slider-bg):not(.banner-single) .text-box-banner.text-left {
    text-align: left;
    align-self: flex-start;
}

/* ------ 2. Slider background banner ------ */
.section-banner .banner.has-slider-bg {
    height: 20vh;
    display: flex;
    flex-direction: column;
}

.section-banner .banner.has-slider-bg > .banner-inner {
    flex: 6;
    position: relative;
}

.section-banner .banner.has-slider-bg > .banner-inner .banner-bg,
.section-banner .banner.has-slider-bg > .banner-inner .banner-bg .swiper-container {
    height: 100%;
}

.section-banner .banner.has-slider-bg > .banner-inner .banner-bg .swiper-button .btn-swiper:after {
    display: none;
}

.section-banner .banner.has-slider-bg > .banner-inner .banner-bg .swiper-button .btn-swiper {
    background: var(--bg-light);
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 50%;
    opacity: .5;
    display: none;
}

.section-banner .banner.has-slider-bg > .banner-inner .banner-bg .swiper-pagination-bullet-active {
    background: var(--fs-color-primary);
}

.section-banner .banner.has-slider-bg > .banner-inner .banner-bg:hover .swiper-button .btn-swiper {
    display: block;
}

.section-banner .banner.has-slider-bg img {
    border-radius: 0;
    object-position: top center;
}

.section-banner .banner.has-slider-bg > .banner-layers {
    flex: 1;
}

/* ------ 3. Single post / product banner (gradient, no real image) ------ */
.section-banner .banner.banner-single {
    min-height: 20vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Let banner-layers flow with content instead of being clipped */
.section-banner .banner.banner-single > .banner-layers {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    min-height: 20vh;
    padding: 24px 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.section-banner .banner.banner-single .banner-bg img {
    object-position: center center;
}

/* banner-single: static so long titles push height open */
.section-banner .banner.banner-single .text-box-banner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
}

.section-banner .banner.banner-single .text-box-banner.text-left {
    align-self: center;
}

/* Shared absolute centering for slider-bg banners (image-backed only) */
.section-banner .banner.has-slider-bg .text-box-banner {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.section-banner .banner.has-slider-bg .text-box-banner.text-left {
    left: 1%;
    transform: translateY(-50%);
}

/* H1 sizing */
.section-banner .banner h1 {
    font-size: clamp(1.2rem, 3vw, var(--font-h1)) !important;
    line-height: 1.3;
}
/* ---- Promotion archive cards ---- */
.section-list-promotion-posts {
    padding: 40px 0 50px;
}
.section-list-promotion-posts .promotion-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow .25s ease, transform .25s ease;
}
.section-list-promotion-posts .promotion-item:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}
.section-list-promotion-posts .promotion-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.section-list-promotion-posts .promotion-item .promotion-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}
.section-list-promotion-posts .promotion-item .promotion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .35s ease;
    display: block;
}
.section-list-promotion-posts .promotion-item:hover .promotion-thumb img {
    transform: scale(1.05);
}

/* Content */
.section-list-promotion-posts .promotion-item .promotion-overview {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Meta row: badge + date on same line */
.section-list-promotion-posts .promo-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    position: static !important;
    transform: none !important;
}
.section-list-promotion-posts .promo-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    white-space: nowrap;
}
.section-list-promotion-posts .badge-active   { background: var(--fs-color-primary); }
.section-list-promotion-posts .badge-upcoming { background: #f59e0b; }
.section-list-promotion-posts .badge-expired  { background: #9ca3af; }

.section-list-promotion-posts .promo-date {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    position: static !important;
    transform: none !important;
}

/* Title */
.section-list-promotion-posts .promotion-title {
    font-size: var(--font-body-large) !important;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
}
.section-list-promotion-posts .expired-promo .promotion-title {
    color: #6b7280 !important;
}

/* Footer link */
.section-list-promotion-posts .promo-view-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--fs-color-primary) !important;
    margin-top: 4px;
    transition: gap .2s ease;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
}
.section-list-promotion-posts .promotion-item:hover .promo-view-link {
    gap: 8px;
}
.section-list-promotion-posts .expired-promo .promo-view-link {
    color: #9ca3af !important;
}
@media (max-width:849px) {
    /* Simple gradient banner: reduce padding slightly on mobile */
    .section-banner .banner:not(.has-slider-bg):not(.banner-single) > .banner-layers {
        padding: 14px 0;
        min-height: 60px;
    }

    .section-banner .banner.has-slider-bg {
        height: 30vh;
    }

    /* Single post: min-height only, content drives actual height */
    .section-banner .banner.banner-single {
        min-height: clamp(90px, 22vh, 180px);
        height: auto;
    }

    .section-banner .banner.banner-single > .banner-layers {
        padding: 18px 0;
    }
}

@media (max-width:549px) {
    /* slider-bg only: text-box is still absolute */
    .section-banner .banner.has-slider-bg .text-box-banner {
        left: 50%;
    }
    /* banner-single text-box is static — no left override needed */
}
/* ── Single Promotion Hero ── */
.promo-single-hero {
    background: linear-gradient(135deg, var(--fs-color-primary) 0%, #1a7a30 100%);
    padding: 48px 0 44px;
    text-align: center;
}
.promo-single-hero__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    opacity: .92;
}
.promo-single-hero__badge--sap-dien-ra  { background: rgba(255,255,255,.25); }
.promo-single-hero__badge--dang-dien-ra { background: rgba(255,255,255,.25); }
.promo-single-hero__badge--da-ket-thuc  { background: rgba(0,0,0,.25); }

.promo-single-hero__title {
    color: #fff;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.25;
    margin: 0 auto 16px;
    max-width: 800px;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.promo-single-hero__dates {
    color: rgba(255,255,255,.88);
    font-size: 15px;
    margin: 0;
}
.promo-single-hero__dates i {
    margin-right: 6px;
    opacity: .8;
}

/* ── Single Promotion Body ── */
.promotion-single-page {
    padding: 40px 0;
}
.promotion-single-page .promotion-share-flatsome {
    text-align: center;
}
.promotion-single-page .promotion-content {
    max-width: 800px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: #333;
}
.promotion-single-page .promotion-content > p,
.promotion-single-page .promotion-content > ul,
.promotion-single-page .promotion-content > ol {
    margin-bottom: 1.25em !important;
    line-height: 1.8 !important;
}
.promotion-single-page .promotion-content h2,
.promotion-single-page .promotion-content h3,
.promotion-single-page .promotion-content h4 {
    margin-top: 1.6em !important;
    margin-bottom: .5em !important;
    line-height: 1.3;
}
.promotion-single-page .promotion-content img:not(.emoji) {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
}
.promotion-single-page .promotion-content img.emoji {
    display: inline !important;
    margin: 0 !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.1em !important;
}
/* ── Promo Featured Image ── */
.promo-single-featured {
    background: #f5f5f5;
}
.promo-single-featured .container {
    max-width: 900px;
    padding: 0;
}
.promo-single-featured img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 0 0 16px 16px;
}

.section.section-list-service-posts{
    padding:50px 0 30px;
}
.section.section-list-service-posts .row .col{
    padding-bottom:30px;
}
.section-list-service-posts .service-item .text-inner{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    height: 270px;
}
.section-list-service-posts .service-item{
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
}

/* Hover nổi + nhẹ */
.section-list-service-posts .service-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Thumbnail */
.section-list-service-posts .service-thumb{
    width: 100%;
    aspect-ratio: 1.35;
    overflow: hidden;
}

.section-list-service-posts .service-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

/* Hover zoom nhẹ */
.section-list-service-posts .service-item:hover .service-thumb img{
    transform: scale(1.06);
}

/* Content */
.section-list-service-posts .service-overview{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-list-service-posts .service-item .box-text{
    padding: 12px 8px 8px;
}

 .service-title {
    font-size: var(--font-body-large) !important;
    font-weight: 700;
    color: #222;
    text-transform: capitalize;
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-list-service-posts .service-item .text-inner .service-excerpt {
    font-size: var(--font-body);
    line-height: 1.4;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* giới hạn 5 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 15px;
}


/* Nút cuối item */
.section-list-service-posts .service-item .button{
    margin: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
}

/* Hover màu sắc */
.section-list-service-posts .service-item:hover .button{
    background: var(--primary-color, #007aff);
    color: #fff !important;
}
.service-single-page {
    padding: 40px 0;
}

.service-single-page .service-back .button {
    padding: 0;
    border-radius: 6px;
    background:none;
    border:none;
}
.service-single-page .service-back .button:hover{
    background:none;
    text-decoration: underline;
    color: var(--fs-color-secondary);
}
.blog-wrapper.page-wrapper{
    padding:0;
}
.blog-wrapper .row .post-sidebar>.widget-custom-area{
    background: var(--bg-light);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    border:none;
    border-radius:12px;
    padding:25px 20px 20px;
    height: fit-content;
}

.blog-wrapper .row .post-sidebar ul{
    list-style: none;
}
.blog-wrapper .row .post-sidebar .widget-title {
    font-size: var(--font-h3);
    color: var(--fs-color-secondary);
    display: block;
    text-transform: none;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding:15px 10px 15px 0;
}
.blog-wrapper .row .post-sidebar .is-divider{
    display:none;
}
.blog-wrapper .row .post-sidebar .widget-area > aside:not(:first-child){
    border-top:1px solid #ddd;
    padding-top:20px;
}
.blog-wrapper .row .post-sidebar .widget-area aside li{
    border:none;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_categories li a{
    color:#777;
    width: 100%;
    border-radius:50px;
    padding:5px 10px;
    display: inline-block;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_categories li.active a{
    background: var(--fs-color-primary);
    color:#fff;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_categories li:not(.active) a:hover{
    background: var(--bg-muted);
    color:#000;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item a{
    display: flex;
    align-items: center;
    gap:10px;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item {
    margin-bottom: 10px;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item div.related-thumb{
    width: 50px;
    height: 50px;
    border-radius:8px;
    min-width: 50px;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item div.related-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:8px
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item span{
    color:#000;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item:hover span{
    color:var(--fs-color-primary);
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info{
    display:flex;
    flex-direction: column;
    gap:5px;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info span{
    display: block;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info span.related-title{
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info .related-date{
    font-size: var(--font-small);
}
/* ========== DANH MỤC ACTIVE / HOVER ========== */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_categories li.active a {
    background: var(--fs-color-primary);
    color: #fff;
    transition: all 0.3s ease;
}
.blog-wrapper .row .post-sidebar .widget-area aside.widget_categories li:not(.active) a:hover {
    background: var(--bg-muted);
    color: #000;
    transition: all 0.3s ease;
}

/* ========== RELATED POSTS LAYOUT FLEX ========== */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 5px;
    border-radius: 8px;
    width: 100%;
}

/* Hover effect item */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item a:hover {
    background-color: var(--bg-muted);
    transform: translateX(3px);
}

/* Item margin */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item {
    margin-bottom: 10px;
}

/* Thumbnail */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item div.related-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    min-width: 50px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Hover effect thumbnail */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item a:hover div.related-thumb {
    transform: scale(1.05);
}

/* Thumbnail image fit */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item div.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Title + date info */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info span {
    display: inline-block;
    transition: color 0.3s ease;
}

/* Title hover color */
.blog-wrapper .row .post-sidebar .widget-area aside.widget_related_posts li.related-item .related-info a.related-title:hover {
    color: var(--fs-color-primary);
}
@media (max-width:849px) {
    .blog-wrapper>.row>.col.large-3{
        padding:0 10px 50px;
    }
}
.row-data-slider-history .flickity-slider>.row{
    top:0;
}
.row-data-slider-history .flickity-slider>.row strong{
    color: var(--fs-color-primary);
    font-size: var(--font-body-large);
}
.row-data-slider-history .flickity-slider>.row p{
    margin-bottom:5px;
}
.row-data-slider-history .flickity-page-dots{
    bottom:-25px;
}
