.header-style-one{
    box-shadow: 0 4px 20px 0 #0000001a;
}
.handbook-list{
    border-radius: 10px;
    position: relative;
    color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
}
.handbook-list a{
    width: 100%;
    height: 226px;
    overflow: hidden;
    display: flex;
}
.handbook-list a img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}
.handbook-list span.position-img-hb{
    position: absolute;
    right: 0;
    top: 0;
}
.handbook-list h3{
    line-height: 30px;
    font-size: 22px;
    color: #fff;
}
.handbook-list p{
    font-size: 12px;
    margin-bottom: 0;
    color: #fff;
}
.btn-detail-cn{
    padding-top: 20px;
}
.btn-detail-cn a{
    padding: 5px 15px;
    border-radius: 30px;
    border: 3px solid #fff;
    color: #fff;
    background-color: #ffc220;
    font-size: 14px;
}
.btn-detail-cn a:hover{
    background: rgba(198 82 149/1);
}
.image-box-custom{
    text-align:center;
}
.image-box-custom img{
    border-radius: 30px;
}
.btn-style-two{
    border: 1px solid rgba(198 82 149/1);
}
.blog-title{
    font-size: 20px;
    line-height: 24px;
}
.truncate-2{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.truncate-3{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.title-blog{
    font-size: 18px;
    line-height: 24px;
}
.title-blog a{
    color: #000;
}
.text-support p{
    margin-bottom: 0;
    color: #fff;
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}
.text-support p a{
    color: #fff;
}
.service-box{
    background-color: #C65295;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.sec-title h2{
    color: #C65295;
}
.title-category-page{
    font-size: 2.5rem;
}
.team-block-custom{
    margin-top: 20px;
    box-shadow: 0 2px 20px 0 #0000001a;
    border-radius: 15px;
}
.team-block-custom img{
    border-radius: 15px 15px 0 0;
}
.team-block-custom .content-box{
    padding: 20px;
}
.team-block-custom .content-box h4{
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
}
.team-block-custom .content-box .desc-handbook{
    color: #000;
    text-align: center;
    margin-bottom: 0;
}
.list-handbook-cat div{
    padding: 10px 0;
}
.list-handbook-cat div a{
    border: 1px solid #C65295;
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    display: block;
    width: 100%;
    font-weight: 600;
}
.list-handbook-cat div a:hover, .list-handbook-cat div a.active{
    background-color: #C65295;
    color: #fff;
}
.list-promotion-page{
    box-shadow: 0 2px 20px 0 #0000001a;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    gap: 20px;
}
.info-promotion{
    padding: 30px;
}
.image-promotion img{
    border-radius: 15px;
}
.btn-view-detail{
    padding-top: 30px;
}
.btn-view-detail a{
    padding: 8px 40px;
    border-radius: 30px;
    background-color: #C65295;
    color: #fff;
    font-weight: 600;
}
.btn-view-detail a:hover{
    background-color: #ffc220;
}
.info-promotion h3{
    line-height: 36px;
}
.separator{
    padding: 0 10px;
}
.detail-promotion{
    padding-top: 20px;
}
.detail-promotion h1{
    font-size: 2.5rem;
}
.related-promotion h3{
    padding-bottom: 20px;
    color: #000;
}
.item-promotion{
    padding-bottom: 20px;
}
.item-promotion a{
    display: block;
    width: 100%;
    padding-bottom: 15px;
}
.item-promotion h4{
    font-size: 18px;
    text-align: center;
    line-height: 22px;
}
.item-promotion h4 a{
    color:#000;
}
.item-promotion h4 a:hover{
    text-decoration: underline;
}
.item-promotion a img{
    border-radius: 10px;
}
.content-service{
    padding-top: 20px;
}
.filter-address{
    padding-top: 30px;
    padding-bottom: 50px;
}
.filter-address .item-filter{
    display: flex;
    justify-content: center;
    gap: 20px;
}
.filter-address .item-filter input[type="text"], .filter-address .item-filter select{
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 5px 10px;
    width: 100%;
    height: 60px;
}
.filter-address .item-filter .input-address{
    min-width: 300px;
    position: relative;
}
.filter-address .item-filter .input-address button{
    position: absolute;
    right: 20px;
    top: 18px;
    background: #fff;
}
.content-location{
    padding: 20px;
}
.content-location .info-location{
    color: #002a8f;
    padding-top: 5px;
    line-height: 22px;
}
.content-location .info-location i{
    padding-right: 10px;
}
.content-system-single{
    padding-top: 20px;
}
.content-system-single h1{
    font-size: 2.5rem;
}
.address-system{
    font-size: 18px;
    color: #0a53be;
}
.img-system{
    padding: 30px 0;
}
.img-system img{
    width: 100%;
    height: auto !important;
    border-radius: 10px;
}
.box-sidebar-sys{
    padding: 20px;
    box-shadow: 0 2px 20px 0 #0000001a;
    border-radius: 10px;
    margin-bottom: 20px;
}
.box-sidebar-sys p{
    font-size: 20px;
    color: #0a53be;
}
.box-sidebar-sys p i{
    padding-right: 10px;
}
.list-customer{
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.desc-member{
    flex: 2;
}
.img-member{
    flex: 1;
}
.img-member img{
    border-radius: 10px;
}
.desc-member h3{
    font-size: 24px;
}
.inner-block-custom{
    padding: 20px 0;
}
.inner-block-custom img{
    border-radius: 10px;
}
.inner-block-custom .img-home-slide{
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}
@media (min-width: 768px) {
    .service-block-layout2 .image-box .image{
        max-height: 500px;
    }
    .blog-block .image a{
        display: block;
        height: 280px;
    }
    .project-block-layout2 .image a{
        display: block;
        height: 600px;
    }
    .list-promotion-page{
        display: flex;
    }
    .info-promotion{
        flex: 2;
    }
    .image-promotion{
        flex: 1;
    }
    .content-system-single{
        padding-right: 50px;
    }
    .title-blog{
      color: #000;
    }
    .blog-title{
        height: 50px;
        overflow: hidden;
    }
    .inner-block-custom .img-home-slide{
        height: 390px;
    }
}

/* =========================================================
   STD-like homepage theme — primary #1f6f00
   ========================================================= */
:root {
    --std-primary: #1f6f00;
    --std-primary-dark: #175400;
    --std-primary-soft: #e8f3e3;
    --std-text: #222;
    --std-muted: #666;
    --std-border: #e5e5e5;
}

body {
    color: var(--std-text);
}

/* Header */
.header-style-std {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
}

.header-top-std {
    background: #ebebeb;
    color: #000;
    font-size: 13px;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 36px;
}

.lang-switch {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-switch li a {
    display: block;
    padding: 8px 14px;
    color: rgba(6, 5, 5, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.lang-switch li a:hover,
.lang-switch li.active a {
    color: #fff;
    background: var(--std-primary);
}

.header-style-std .header-lower {
    padding: 12px 0;
    background: #fff;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-style-std .logo-box {
    flex: 0 0 auto;
}

.header-style-std .logo-box img {
    max-height: 64px;
    width: auto;
}

.header-style-std .nav-outer {
    flex: 1 1 auto;
}

.header-style-std .main-menu .navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-style-std .main-menu .navigation > li > a {
    color: var(--std-text);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 12px;
    text-transform: uppercase;
}

.header-style-std .main-menu .navigation > li > a:hover,
.header-style-std .main-menu .navigation > li.current > a {
    color: var(--std-primary);
}

.header-style-std .main-menu .navigation > li .sub-menu {
    border-top: 3px solid var(--std-primary);
}

.header-style-std .right-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.header-style-std .search-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--std-border);
    border-radius: 50%;
    background: #fff;
    color: var(--std-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.header-style-std .search-btn:hover {
    background: var(--std-primary);
    color: #fff;
    border-color: var(--std-primary);
}

.header-style-std .mobile-nav-toggler {
    color: var(--std-primary);
}

.header-style-std .sticky-header .search-btn {
    margin-left: 10px;
}

.mobile-lang {
    margin: 20px;
    border: 1px solid var(--std-border);
    border-radius: 6px;
    overflow: hidden;
}

.mobile-lang li a {
    color: var(--std-text) !important;
    background: #fff;
}

.mobile-lang li.active a {
    background: var(--std-primary) !important;
    color: #fff !important;
}

/* Banner */
.banner-section-std {
    margin: 0;
}

.banner-section-std .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.banner-section-std .swiper-pagination-bullet-active {
    background: var(--std-primary);
}

/* Home two-column */
.home-section-std {
    padding: 40px 0 60px;
    background: #f7f8f7;
}

.home-block-std {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}

.home-block-head {
    border-bottom: 2px solid var(--std-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
}

.home-block-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--std-primary);
    line-height: 1.3;
}

.intro-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.intro-content img {
    max-width: 100%;
    height: auto;
}
.home-block-std .intro-content img{
    width: 100%;
}
.intro-more {
    margin-top: 16px;
}

.intro-more a {
    color: var(--std-primary);
    font-weight: 600;
    text-decoration: none;
}

.intro-more a:hover {
    color: var(--std-primary-dark);
    text-decoration: underline;
}

.static-pages-grid {
    margin: 0 -10px;
}

.static-page-card {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.static-page-card:hover {
    transform: translateY(-2px);
}

.static-page-thumb {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--std-border);
    background: #f0f0f0;
    aspect-ratio: 16 / 10;
}

.static-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.static-page-card:hover .static-page-thumb img {
    transform: scale(1.04);
}

.static-page-title {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--std-text);
    line-height: 1.4;
    text-transform: uppercase;
}

.static-page-card:hover .static-page-title {
    color: var(--std-primary);
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 12px;
    border: 1px solid var(--std-border);
    border-radius: 4px;
    background: #fff;
}

.partner-item img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

/* Sidebar */
.home-sidebar-std {
    position: sticky;
    top: 100px;
}

.sidebar-widget-std {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-title-std {
    margin: 0 0 16px;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: var(--std-primary);
    margin: -20px -20px 16px;
    padding: 12px 20px;
    border-radius: 4px 4px 0 0;
}

.featured-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.featured-news-list li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--std-border);
}

.featured-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.news-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 64px;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-meta h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--std-text);
}

.featured-news-item:hover .news-meta h4 {
    color: var(--std-primary);
}

.news-date {
    font-size: 12px;
    color: var(--std-muted);
}

.gallery-grid-std {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item-std {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
}

.visit-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visit-stats-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--std-text);
    border-bottom: 1px solid var(--std-border);
}

.visit-stats-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.visit-stats-list li:first-child {
    padding-top: 0;
}

.visit-stats-list strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--std-primary);
}

.visit-stats-list .visit-online {
    color: #c62828;
}

.gallery-item-std img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery-item-std:hover img {
    transform: scale(1.08);
}

.empty-note {
    color: var(--std-muted);
    font-size: 14px;
    margin: 0;
}

/* Footer */
.footer-std {
    background-image: url('../../../frontend/images/bg-footer.png');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    color: #fff;
    padding: 28px 0 18px;
}

.footer-std-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-company {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.footer-social a:hover {
    background: #fff;
    color: var(--std-primary);
    border-color: #fff;
}

.footer-copy {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.9;
}

.search-section-std {
    min-height: 40vh;
}

/* Accent overrides for shared components */
.sec-title h2,
.theme-btn,
.btn-view-detail a,
.list-handbook-cat div a:hover,
.list-handbook-cat div a.active {
    /* keep older pages readable with new brand */
}

.back-to-top-btn {
    background: var(--std-primary) !important;
}

@media (max-width: 991px) {
    .header-style-std .nav-outer {
        display: none;
    }

    .home-sidebar-std {
        position: static;
        margin-top: 10px;
    }

    .header-main-inner {
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    .header-style-std .logo-box img {
        max-height: 48px;
    }

    .home-block-std {
        padding: 16px;
    }

    .home-block-title {
        font-size: 18px;
    }
}

/* =========================================================
   Category page — STD layout
   ========================================================= */
.category-section-std {
    padding: 30px 0 60px;
    background: #f7f8f7;
}

.category-breadcrumb-std {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--std-muted, #666);
}

.category-breadcrumb-std a {
    color: var(--std-primary, #1f6f00);
    text-decoration: none;
}

.category-breadcrumb-std a:hover {
    text-decoration: underline;
}

.category-breadcrumb-std .sep {
    margin: 0 8px;
    color: #aaa;
}

.category-breadcrumb-std .current {
    color: #333;
    font-weight: 600;
}

.category-sidebar-std {
    background: #fff;
    border: 1px solid var(--std-border, #e5e5e5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    position: sticky;
    top: 100px;
}

.category-sidebar-title {
    margin: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--std-primary, #1f6f00);
}

.category-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-child-list li a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid var(--std-border, #e5e5e5);
    font-weight: 500;
    transition: 0.2s;
}

.category-child-list li:last-child a {
    border-bottom: 0;
}

.category-child-list li a:hover,
.category-child-list li.active a {
    background: var(--std-primary-soft, #e8f3e3);
    color: var(--std-primary, #1f6f00);
    padding-left: 22px;
}

.category-child-list li.active a {
    border-left: 3px solid var(--std-primary, #1f6f00);
    font-weight: 700;
}

.category-sidebar-title-link {
    color: inherit;
    text-decoration: none;
}

.category-sidebar-title-link:hover {
    opacity: 0.9;
}

.category-child-list.nested {
    background: #fafafa;
}

.category-child-list.nested li a {
    padding-left: 32px;
    font-size: 13px;
    font-weight: 400;
}

.category-child-list.nested li a:hover,
.category-child-list.nested li.active a {
    padding-left: 36px;
}

.category-child-list > li.has-children > a {
    border-bottom-color: transparent;
}

.category-child-list > li.has-children > .nested li:last-child a {
    border-bottom: 1px solid var(--std-border, #e5e5e5);
}

.category-child-list > li.has-children:last-child > .nested li:last-child a {
    border-bottom: 0;
}

.category-main-std {
    background: #fff;
    border: 1px solid var(--std-border, #e5e5e5);
    border-radius: 4px;
    overflow: hidden;
}

.category-banner-std {
    position: relative;
    background: #ddd;
}

.category-banner-std > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.category-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
}

.category-banner-caption h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.category-banner-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.category-news-list-std {
    padding: 8px 0;
}

.category-news-item-std {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--std-border, #e5e5e5);
}

.category-news-item-std:last-child {
    border-bottom: 0;
}

.news-item-thumb {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.news-item-thumb a {
    display: block;
    height: 150px;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.category-news-item-std:hover .news-item-thumb img {
    transform: scale(1.04);
}

.news-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-item-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.news-item-title a {
    color: #222;
    text-decoration: none;
}

.news-item-title a:hover {
    color: var(--std-primary, #1f6f00);
}

.news-item-date {
    margin: -4px 0 10px;
    font-size: 13px;
    color: var(--std-muted, #777);
}

.news-item-date i {
    margin-right: 4px;
}

.blog-details__published-at {
    margin: -6px 0 18px;
    font-size: 14px;
    color: #666;
}

.blog-details__published-at i {
    margin-right: 6px;
    color: var(--std-primary, #1f6f00);
}

.news-item-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.news-item-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--std-primary, #1f6f00);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.news-item-more:hover {
    color: var(--std-primary-dark, #175400);
    text-decoration: underline;
}

.category-pagination-std {
    padding: 16px 24px 24px;
}

.category-pagination-std .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-pagination-std .pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--std-border, #e5e5e5);
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: #fff;
}

.category-pagination-std .pagination li.active a,
.category-pagination-std .pagination li a:hover {
    background: var(--std-primary, #1f6f00);
    border-color: var(--std-primary, #1f6f00);
    color: #fff;
}

.category-pagination-std .pagination li.disabled a {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 991px) {
    .category-sidebar-std {
        position: static;
    }

    .news-item-thumb {
        flex-basis: 160px;
        width: 160px;
    }

    .news-item-thumb a {
        height: 120px;
    }
}

@media (max-width: 575px) {
    .category-news-item-std {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .news-item-thumb,
    .news-item-thumb a {
        width: 100%;
        flex-basis: auto;
        height: 180px;
    }

    .category-banner-std > img {
        height: 160px;
    }

    .category-banner-caption h1 {
        font-size: 20px;
    }

    .news-item-title {
        font-size: 17px;
    }
}
