/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/*************** ADD CUSTOM CSS HERE.   ***************/

/* =========================================
   CSS general
   ========================================= */
.container-width, .full-width .ubermenu-nav, .container, .row {
    max-width: 1380px !important;
}
@media only screen and (min-width: 1400px) {
    .row-full-width{
        width: 99% !important;
        max-width: 1360px !important;
    }
}
@media only screen and (min-width: 1600px) {
    .row-full-width{
        width: 99% !important;
        max-width: 1460px !important;
    }
}
/* Chặn việc tràn Slider làm hỏng layout trang (quan trọng) */
.section-content { 
    overflow: hidden; 
}

/* header-box */
.header-box {
    margin-bottom: 2.5rem;
}
.header-box .title {
    color: #40744D;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize !important;
}
.header-box .brief {
    font-size: 16px;
}
.header-box.white {
    background: unset !important;
}
.header-box.white .title {
    color: #fff;
}
.header-box2 {
    margin-bottom: 1.5rem;
}
.header-box2 h3 {
    color: #0291DD;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: unset !important;
}
.header-box2 .viewmore {
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 0 0 100px;
    text-align: right;
}
.header-box2 .viewmore:hover {
    color: #0291DD;
}

/* img-box */
.img-cover,
.object-cover {
    width: auto;
    object-fit: cover;
    min-width: 100%;
    height: 100%;
}
.img-contain {
    width: auto !important;
    max-width: 90%;
    max-height: 90%;
    height: auto;
}

/* Cấu hình chung cho nút mũi tên */
.flickity-slider {
    display: flex !important;
    align-items: center !important;
}
.flickity-prev-next-button {
    background-color: #ffffff !important; /* Nền trắng */
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important; /* Hình tròn */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
    transition: all 0.3s;
    top: 45% !important;
    transform: translateY(-45%) !important;
}
.flickity-prev-next-button .arrow {
    fill: #0291DD !important;
}
.flickity-prev-next-button:focus {
    outline: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}
.flickity-prev-next-button:hover {
    background-color: #0291DD !important;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}
.flickity-prev-next-button:hover .arrow {
    fill: #ffffff !important;
}
.home-slide .flickity-prev-next-button.previous { left: 25px !important; }
.home-slide .flickity-prev-next-button.next { right: 25px !important; }

.flickity-prev-next-button.previous {left: -40px !important; }
.flickity-prev-next-button.next { right: -40px !important; }

.slider-nav-push:not(.slider-nav-reveal) .flickity-prev-next-button {
    margin-top: unset !important;
}
/* Chỉnh hình dạng dấu chấm thành vạch ngang */
.flickity-page-dots .dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 6px !important;
    background: #40744D !important; /* Màu khi chưa chọn */
    margin: 0 5px !important;
    opacity: 1 !important;
}
.flickity-page-dots .dot.is-selected {
    background: #0291DD !important; /* Màu cam thương hiệu */
    width: 48px !important; /* Dài ra thêm một chút khi chọn */
}
/* --- Bắt đầu tùy chỉnh Swiper Pagination --- */
.swiper-pagination {
    position: relative;
    padding: 14px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto !important;
    margin: 0 auto;
    z-index: 10;
    bottom: auto;
    max-width: 250px;
    margin-top: .5rem;
    margin-top: 1.5rem;
}
.swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background-color: #40744D;
    border-radius: 50%;
    opacity: 1;
    margin: 0 4px !important;
    transition:all 0.3s ease;
}
.swiper-pagination-bullet-active {
    width: 60px;
    background-color: #0291DD;
    border-radius: 5px;
}

/* button */
.more-button {
    display: inline-flex;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    background: rgba(0, 0, 0, 0.21);
    backdrop-filter: blur(7.5px);
    padding: 8px 25px 8px 8px;
    position: relative;
    overflow: hidden;
    background: #40744D;
}
.more-button span {
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
    color: #fff;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button:after {
    position: absolute;
    background: #0291DD;
    width: 0;
    height: 100%;
    content: '';
    left: 0;
    top: 0;
    z-index: 1;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button:hover{
    border: 1px solid #0291DD;
}
.more-button:hover:after {
    width: 100%;
}
.more-button:hover span {
    color: #fff;
}

/* button2 */
.more-button2 {
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    padding: 5px 25px 5px 5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
}
.more-button2 span {
    font-size: 15px;
    line-height: 40px;
    font-weight: 500;
    z-index: 2;
    color: #222;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button2 .arrow {
    width: 40px;
    height: 40px;
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/arrow.svg') no-repeat center;
    background-size: cover;
    margin-right: 10px;
    z-index: 2;
}
.more-button2:after {
    position: absolute;
    background: #0291DD;
    width: 0;
    height: 100%;
    content: '';
    left: 0;
    top: 0;
    z-index: 1;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button2:hover{
    border: 1px solid #0291DD;
}
.more-button2:hover:after {
    width: 100%;
}
.more-button2:hover span {
    color: #fff;
}

/* button3 */
.more-button3 {
    border-radius: 100px;
    background: #0291DD;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    padding: 5px 25px 5px 5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
}
.more-button3 span {
    font-size: 15px;
    line-height: 40px;
    font-weight: 500;
    z-index: 2;
    color: #fff;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button3 .arrow {
    width: 40px;
    height: 40px;
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/arrow.svg') no-repeat center;
    background-size: cover;
    margin-right: 10px;
    z-index: 2;
}
.more-button3:after {
    position: absolute;
    background: #40744D;
    width: 0;
    height: 100%;
    content: '';
    left: 0;
    top: 0;
    z-index: 1;
    -webkit-transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
    transition: all .5s cubic-bezier(0.22,0.61,0.36,1);
}
.more-button3:hover:after {
    width: 100%;
}
.more-button3:hover span {
    color: #fff;
}

/* =========================================
   HEADER > header
   ========================================= */
.header {
    background-color: #D9D9D9 !important;
}
.header .header-top {
    background-color: unset !important;
    height: 60px !important;
    border-bottom: 1px solid rgba(182, 182, 182, .3);
}
.header .header-top .top-box {
    font-size: 15px !important;
    color: #222 !important;
    line-height: 1.1 !important;
}
.header .header-top .top-box .email {
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid #222;
}
.header .header-top .top-box i {
    color: #40744D !important;
    margin-right: 10px !important;
}
.header .header-top .top-box a {
    color: #222 !important;
}
.header .header-top .top-box a:hover {
    color: #0291DD !important;
}
.header .header-top .searchform-wrapper {
    width: 275px !important;
}
.header .header-top .searchform {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid #0291DD;
}
.header .header-top .searchform input {
    height: 35px !important;
    border: unset !important;
    font-size: 14px !important;
}
.header .header-top .searchform .submit-button {
    height: 35px !important;
    width: 35px !important;

}
.header .header-top .header-language-dropdown .nav-top-link {
    font-size: 14px !important;
    color: #222 !important;
    vertical-align: middle !important;
}
.header .header-top .header-language-dropdown .nav-top-link .image-icon {
    height: 25px !important;
    width: 25px !important;
    border-radius: 50% !important;
    overflow: hidden;
    margin-right: unset !important;
}
.header .header-top .header-language-dropdown .nav-top-link .image-icon img {
    vertical-align: middle !important;
    width: auto;
    object-fit: cover;
    min-width: 100%;
    max-width: 25px !important;
    height: 100%;
}
.header .header-top .header-language-dropdown .nav-top-link .icon-angle-down {
    color: #0291DD;
}
.header .header-top .header-language-dropdown .nav-dropdown {
    padding: 10px !important;
    min-width: 180px !important
}
.header .header-top .header-language-dropdown .nav-dropdown>li>a {
    padding: 5px 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
}
.header .header-top .header-language-dropdown .nav-dropdown>li .icon-image>img {
    height: 25px !important;
}
/* header-logo */
.header .header-main {
    position: relative;
    z-index: 12 !important;
    height: 60px !important;
}
.header .header-main .logo {
    position: relative;
}
.header .header-main .logo>a {
    height: 150px !important;
    width: 150px !important;
    padding: 25px !important;
    display: flex !important;
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background: #fff;
    border-radius: 50%;
}
.header .header-main .logo>a>img {
    width: auto;
    object-fit: cover;
    min-width: 100%;
    height: 100%;
    max-height: unset !important;
}

/* header-main */
.header .header-main ul.header-nav-main {
    justify-content: space-between !important;
}
.header .header-main ul.header-nav-main li.menu-item a.nav-top-link {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    line-height: 60px !important;
}
.header .header-main ul.header-nav-main li.menu-item a.nav-top-link:hover {
    color: #40744D;
}
.header .header-main ul.header-nav-main li.menu-item .sub-menu {
    padding: 10px !important;
    border-width: 1px !important;
    border-radius: 5px !important;
}
.header .header-main ul.header-nav-main li.menu-item .sub-menu.nav-dropdown {
    min-width: 300px !important;
}
.header .header-main ul.header-nav-main li.menu-item .sub-menu .menu-item > a {
    margin: 0 !important;
    transition: 0.5s all;
}
.header .header-main ul.header-nav-main li.menu-item .sub-menu .menu-item > a:hover {
    color: #0291DD;
    padding-left: 10px !important;
}

/* stuck */
.header .stuck .header-main {
    height: 60px !important;
}
.header .stuck .header-main .logo>a {
    height: 55px !important;
    width: 55px !important;
    padding: 0 !important;
    display: flex !important;
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background: #fff;
    border-radius: 50%;
}

/* =========================================
   HOME SLIDE > home-slide
   ========================================= */
.home-slide {
    margin-top: -120px !important;
}
.home-slide .slide-item .content-box .text-inner > h2 {
    font-size: 39px !important;
    line-height: 1.3 !important;
}
.home-slide .slide-item .content-box .text-inner > p {
    margin-bottom: 3rem !important;
}
.home-slide .slide-item .banner-layers {
    z-index: 2;
}
.home-slide .slide-item .banner-bg::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    background: rgba(0, 0, 0, .2);
    background: linear-gradient(67deg, rgba(64, 116, 77, 0.82) 35%, rgba(64, 116, 77, 0.00) 65%);;
    /* mix-blend-mode: multiply; */
    right: 0;
    top: 0;
}

/* =========================================
   HOME News
   ========================================= */
.box-image .image-cover,
.box-image .image-zoom {
    padding-top: 0 !important;
    height: auto !important;
    position: relative !important;
}
.box-image .image-cover > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.box-image img {
    position: static !important; /* Bỏ position: absolute gốc của Flatsome */
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important; /* Đổi tỉ lệ tùy ý: 4/3, 16/9, 1/1... */
    object-fit: cover !important;
    object-position: center !important;
}
.blog-post-inner {
    position: relative !important;
}
.box-text .post-title {
    margin: 0 !important;
}
.box-text .cat-label {
    color: #DFDFDF;
    font-size: 14px;
    margin-bottom: 1rem !important;
}
.box-text .post-meta {
    color: #DFDFDF;
    font-size: 14px;
    line-height: 1.2;
    position: absolute;
    top: 0;
    right: 0;
}
.box-text .is-divider {
    display: none !important;
}
/* chung */

.home-news .col.col-header {
    padding-bottom: unset !important;
}
.home-news .col-left>.col-inner ,
.home-news .col-right>.col-inner {
    padding: 22px ;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
}
.home-news .col-left>.col-inner>.row ,
.home-news .col-right>.col-inner>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.item-big .post-item {
    padding-left: 0 !important;
    padding-right: 22px !important;
    padding-bottom: unset !important;
}
.item-big .post-item .box-blog-post {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}
.item-big .post-item .box-blog-post .box-image {
    width: 100% !important;
    position: relative !important;
}
.item-big .post-item .box-blog-post .box-image::before {
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 50%;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(16, 15, 15, 0.04) 10%, rgba(29, 29, 29, 0.87) 99%);
}
.item-big .post-item .box-blog-post .box-image img {
    width: 100% !important;
    aspect-ratio: 445 / 555 !important;
    object-fit: cover !important; 
    object-position: center !important;
}
.item-big .post-item .box-blog-post .box-text {
    padding: 30px !important;
    width: 100% !important;
    position: absolute ;
    left: 0;
    bottom: 0;
    z-index: 2;
}
.item-big .post-item .box-blog-post .box-text .post-title > a {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: inherit;
    margin: 0 !important;
}
/* small */
.item-small .post-item {
    padding: 0 0 15px !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #DFDFDF;
}
.item-small .post-item:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
.col-left .item-small .post-item .box-blog-post .box-image img {
    width: 100% !important;
    aspect-ratio: 190 / 115 !important;
    object-fit: cover !important; 
    object-position: center !important;
}
.item-small .post-item .box-blog-post .box-image img {
    width: 100% !important;
    aspect-ratio: 175 / 115 !important;
    object-fit: cover !important; 
    object-position: center !important;
}
.item-small .post-item .box-blog-post .box-text {
    padding: 0 0 0 20px !important;
}
.item-small .post-item .box-blog-post .box-text .post-title > a {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    color: #363636;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: inherit;
    margin: 0 !important;
}
.item-small .post-item .box-blog-post .box-text .post-title > a:hover {
    color: #0291DD;
}
.item-small .post-item .box-blog-post .box-text .cat-label {
    color: #727272;
    margin-bottom: .5rem !important;
}
.item-small .post-item .box-blog-post .box-text .post-meta {
    color: #727272;
}

/* =========================================
   HOME about
   ========================================= */
.home-about {}
.home-about::after {

}
.home-about .header-box .title {
    font-size: 39px;
    line-height: 1.4;
}
.home-about .content-style {
    font-size: 19px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 3rem;
}
.home-about .col-image .two-image>.col{
    padding: 0 !important;
}
.home-about .col-image .two-image>.col .about-img1 ,
.home-about .col-image .two-image>.col .about-img1 .img-inner ,
.home-about .col-image .two-image>.col .about-img2 ,
.home-about .col-image .two-image>.col .about-img2 .img-inner {
    width: 100% !important;
    height: 100% !important;
}
.home-about .col-image .two-image>.col .about-img2 img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 260 / 570 !important; 
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
}
.home-about .col-image .two-image>.col .about-img1 img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 200 / 435 !important; 
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
}
.home-about .col-image .two-image .col-1 {
    margin-top: 150px;
    margin-right: -70px;
    z-index: 2;
}
@keyframes rotate-infinite {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.home-about .col-image .logo-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 145px !important;
    height: 145px !important;
    border-radius: 50%;
    overflow: hidden;
}
.home-about .col-image .logo-box img {
    animation: rotate-infinite 10s linear infinite;
}

/* counter */
.home-about .section-content {
    border-bottom: 1px solid rgba(2, 145, 221, 0.8);
}
.home-about .counter .col-counter {
}
.home-about .counter .counter-item {
}
.home-about .counter .col-counter:last-child .counter-item {
    border-right: none !important;
}
.home-about .counter .counter-item .stats-item {
    color: #0291DD; 
    padding: 10px;
    display: flex;
    align-items: start;
    flex-direction: column;
}
.home-about .counter .counter-item .stats-item .count-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.home-about .counter .counter-item .count_to {
    font-size: 45px; 
    line-height: 1;
    font-weight: 800;
    margin-right: 10px;
}
.home-about .counter .counter-item .symbol-box {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.home-about .counter .counter-item .plus-sign {
    font-size: 24px;
    font-weight: bold;
    color: #0291DD; 
}
.home-about .counter .counter-item .unit-text {
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}
.home-about .counter .counter-item .desc-text {
    max-width: 130px;
    color: #363636;
    font-size: 15px;
    margin-top: 5px;
    opacity: 0.8;
    text-transform: capitalize;
    /* text-align: justify; */
}
.home-about .counter .counter-item.counter-big .stats-item .count-wrapper {
    justify-content: space-between;
}
.home-about .counter .counter-item.counter-big .count_to {
    font-size: 160px;
    line-height: .8;
    color: #40744D;
    width: 270px;
}
.home-about .counter .counter-item.counter-big .plus-sign {
    font-size: 50px;
    color: #40744D; 
}
.home-about .counter .counter-item.counter-big .info-text {
    font-size: 30px;
    color: #40744D; 
}
.home-about .counter .counter-item.counter-big .desc-text {
    max-width: unset;
}
.home-about .counter .col-counter::before {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 0;
    z-index: 2;
    width: 60%;
    height: 1px;
    border-bottom: 2px solid #0291DD;
    transition: all .5s ease;
}
.home-about .counter .col-counter:hover::before {
    content: '';
    left: 15px;
    width: 80%;
}
.home-about .counter .col-counter.col-big::before {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 0;
    z-index: 2;
    width: 60%;
    height: 1px;
    border-bottom: 3px solid #40744D;
    transition: all .5s ease;
}
.home-about .counter .col-counter.col-big:hover::before {
    content: '';
    left: 15px;
    width: 80%;
}
.home-about .water-mark {
    position: absolute;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
}
.home-about .water-mark .col-inner ,
.home-about .water-mark .col-inner .water-mark-img ,
.home-about .water-mark .col-inner .water-mark-img .img-inner {
    width: 100% !important;
    height: 100% !important;
}
.home-about .water-mark .water-mark-img img {
    height: 600px !important;
    width: auto !important;
    position: absolute;
    top: 0;
    right: 0;
}

/* =========================================
   HOME field
   ========================================= */
@media (min-width: 992px) {
    .home-field {
        z-index: 1;
        padding-bottom: 600px !important;
        margin-bottom: -500px !important;
    }
}
.home-field {
    background: linear-gradient(to bottom, #014A3F 0%, rgba(64, 116, 77, 0.94) 66%, rgba(0, 115, 172, 0.00) 100%);
}
.home-field .fieldList .field-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.home-field .fieldList .field-item .banner-bg::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #014A3F 0% , rgba(255,255,255, .0) 25% , rgba(255,255,255, .0) 50% , #014A3F 100%);
}
.home-field .fieldList .field-item .banner-layers {
    position: relative;
    z-index: 2;
}
.home-field .fieldList .field-item .info-box ,
.home-field .fieldList .field-item .info-box .text-box-content ,
.home-field .fieldList .field-item .info-box .text-box-content .text-inner {
    width: 100% !important;
    height: 100% !important;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    position: relative;
    z-index: 2;
    transition: all .5s ease;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner::before {
    content: '';
    width: 100%;
    height: 50%;
    position: absolute;
    z-index: 1;
    top: 25%;
    left: 0;
    opacity: .2;
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/field1.jpg') no-repeat center;
    background-size: contain;
}
.home-field .fieldList .field-item.field-item2 .info-box .text-box-content .text-inner::before {
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/field21.jpg') no-repeat center;
    background-size: contain;
}
.home-field .fieldList .field-item.field-item3 .info-box .text-box-content .text-inner::before {
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/field3.jpg') no-repeat center;
    background-size: contain;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-top ,
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-bottom {
    width: 100% !important;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-top {
    padding: 20px 30px;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-top h4{
    font-size: 15px;
    color: #40744D;
    font-weight: 600;
    margin: 0 !important;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-top .sort {
    font-size: 15px;
    color: #0291DD;
    font-weight: 600;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-bottom h3 {
    font-size: 33px;
    font-weight: 700 !important;
    padding: 20px 30px;
    color: #40744D;
    margin: 0 !important;
    border-top: 1px solid #DFDFDF;
    letter-spacing: 0 !important;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-bottom p {
    font-size: 14px;
    padding: 20px 30px;
    color: #0291DD;
    text-transform: uppercase;
    margin: 0 !important;
    border-top: 1px solid #DFDFDF;
}
/* hover */
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover {
    background: unset;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover::before {
    content: unset;
}
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover .box-top h4 ,
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover .box-top .sort ,
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover .box-bottom h3 ,
.home-field .fieldList .field-item .info-box .text-box-content .text-inner:hover .box-bottom p {
    color: #fff;
}

/* =========================================
   HOME member
   ========================================= */
.home-member {}
.home-member .section-bg img {
    height: auto !important;
}
.home-member .memberList {
    position: relative !important;
    height: 1000px;
}
.home-member .memberList .col-item {
    position: relative;
    width: 430px !important;
    height: 430px !important;
    padding: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: unset !important;
    max-width: unset !important;
}
.home-member .memberList .col-item .col-inner {
    width: 100% !important;
    /* height: 100% !important;  */
}
.home-member .memberList .col-item .member-img ,
.home-member .memberList .col-item .member-img .img-inner {
    height: 100% !important;
    width: 100% !important;
    margin: unset !important;
}
.home-member .memberList .col-item .member-img .img-inner {
    position: relative;
    aspect-ratio: 1 / 1; /* Ép luôn thành hình tròn 1:1 */
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 0 4px 20px 0 rgba(1, 94, 142, 0.2);
    transition: all 0.3s ease;
}
.home-member .memberList .col-ite:hover .member-img .img-inner {
    box-shadow: 0 4px 20px 0 rgba(1, 94, 142, 0.5);
}
.home-member .memberList .col-item .member-img .img-inner::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(1, 94, 142, 0.00) 0%, rgba(0, 46, 69, 0.77) 100%);
}
.home-member .memberList .col-item .member-img .img-inner img {
    width: auto !important;
    object-fit: cover !important;
    min-width: 100% !important;
    height: 100% !important;
    transition: all 0.5s ease;
}
.home-member .memberList .col-item:hover .member-img .img-inner img {
    transform: scale(1.05);
}
.home-member .memberList .col-item .info-box {
    text-align: center;
    width: 80%;
    position: absolute;
    z-index: 2;
    transform: translate(-50% , -50%);
    top: unset;
    left: 50%;
    bottom: -5%;
    transition: all 0.5s ease;
}
.home-member .memberList .col-item .info-box > h3 {
    font-size: 19px;
    color: #fff;
    margin: 0;
    transition: all 0.5s ease;
}
.home-member .memberList .col-item .info-box > p {
    transition: all 0.5s ease;
}
.home-member .memberList .col-item .info-box:hover {
}
.home-member .memberList .col-item:hover .info-box> h3 ,
.home-member .memberList .col-item:hover .info-box > p {
    color: #0291DD;
    transform: translateY(-10px);
}
/* ========== */
.home-member .memberList .col-item.col-item2 ,
.home-member .memberList .col-item.col-item3 {
    width: 250px !important;
    height: 250px !important;
}
.home-member .memberList .col-item.col-item4 {
    width: 380px !important;
    height: 380px !important;
}
.home-member .memberList .col-item.col-item5 {
    width: 315px !important;
    height: 315px !important;
}
@media (min-width: 992px) {
    .home-member .header-member {
        position: absolute;
        z-index: 3;
        transform: translate(-50% , -50%);
        top: 50%;
        left: 50%;
    }
    .home-member .header-member .header-box{
        margin-bottom: unset !important;
    }
    /* 1. Tròn to nhất - Góc trên bên trái */
    .home-member .memberList .col-item.col-item1 {
        position: absolute;
        top: 0;
        left: 5%;
    }
    /* 2. Tròn vừa - Góc dưới bên trái */
    .home-member .memberList .col-item.col-item2 {
        position: absolute;
        bottom: 10%;
        left: 2%;
    }
    /* 3. Tròn nhỏ - Góc trên bên phải */
    .home-member .memberList .col-item.col-item3 {
        position: absolute;
        top: 5%;
        right: 22%;
    }
    /* 4. Tròn to vừa - Góc dưới bên phải */
    .home-member .memberList .col-item.col-item4 {
        position: absolute;
        bottom: 5%;
        right: 5%;
    }
    /* 5. Tròn vừa - Chính giữa phía dưới */
    .home-member .memberList .col-item.col-item5 {
        position: absolute;
        bottom: 0;
        left: 38%;
    }
}

/* =========================================
   HOME certi
   ========================================= */
.home-certi {}
.home-certi .tab-certi > h4 {
    color: #40744D;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize !important;
    margin-bottom: 2.5rem !important;
}
.tab-certi .nav-pills,
.tab-certi .nav-tabs {
    width: auto !important;
    display: inline-flex !important;
    background: rgba(86, 203, 245, 0.1);
    padding: 5px;
    border-radius: 50px !important; 
    border: none !important;
    margin-bottom: 35px;
    margin-left: auto;
    margin-right: auto;
}
/* 2. Style cho từng nút Tab */
.tab-certi .nav-pills > li > a,
.tab-certi .nav-tabs > li > a {
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-size: 16px;
    font-weight: 600;
    color: #64748b !important; 
    border: none !important;
    background: transparent;
    transition: all 0.3s ease;
}
/* 3. Style cho Nút Tab Đang Được Chọn (Active) */
.tab-certi .nav-pills > li.active > a,
.tab-certi .nav-tabs > li.active > a {
    background-color: #0088cc !important; 
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3); 
}
.tab-certi .tab-panels {
    background-color: unset !important;
    border: unset !important;
    padding: unset !important;
    min-height: 430px;
}

.home-certi .cert-swiper {
    padding-top: 20px;
}
.home-certi .cert-swiper .swiper-slide {
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.5;
    /* transform: scale(0.85); */
    border-radius: 10px;
}
.home-certi .cert-swiper .swiper-slide-active {
    opacity: 1;
    transform: translateY(-20px);
    /* transform: scale(1.1); */
}
.home-certi .cert-swiper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* =========================================
   HOME commit
   ========================================= */
.home-commit {
    /* height: 890px; */
}
.home-commit .section-content ,
.home-commit .row-commit ,
.home-commit .row-commit .col-left ,
.home-commit .row-commit .col-left .col-inner {
    height: 100% !important;
}
.home-commit .row-commit {
    max-width: unset !important;
    width: 100% !important;
}
.commitList {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.commitList .item-commit {
    position: relative;
    transition: all 0.5s ease-out;
}
.commitList .item-commit::after {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transition-duration: 600ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    background-image: radial-gradient(294.79% 141.42% at 0% 0%, #56CBF5 0%, #FFF 100%);
    width: 100%;
    height: 0;
    pointer-events: none;
    content: '';
}
.commitList .item-commit .info-box {
    height: 100%;
    transition: all 0.5s ease-out;
    border: 1px solid #40744D;
    background: rgba(64, 116, 77, 0.25);
    backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.commitList .item-commit .info-box .info {
    position: relative;
    z-index: 2;
}
.commitList .item-commit .info-box:hover {
    background: rgba(64, 116, 77, 0.8);
    /* transform: translateY(-10px); */
}
.commitList .item-commit .info-box > img {
    align-self: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}
.commitList .item-commit .title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;
    text-transform: capitalize;
    margin-top: auto;
}
.commitList .item-commit .brief {
    opacity: 0;
    visibility: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    height: 0;
    transition: all 0.5s ease-out;
}
.commitList .item-commit .info-box:hover > img {
    opacity: 1;
    visibility: visible;
}
.commitList .item-commit .info-box:hover > .brief {
    opacity: 1;
    visibility: visible;
    height: 63px;
}
@media (min-width: 768px) {
    .home-commit {
        height: 690px;
    }
    .home-commit .row-commit .col-left {
        padding: 0 !important;
    }
    .commitList {
        height: 100%;
        width: 100%;
        gap: 0;
    }
    .commitList .item-commit .title {
        font-size: 25px;
    }
    .commitList .item-commit .brief {
        font-size: 14px;
    }
    .commitList .item-commit:nth-child(1) .info-box {
        border-radius: 0 0 10px 0;
    }
    .commitList .item-commit:nth-child(3) .info-box {
        border-radius: 0 0 10px 10px;
    }
    .commitList .item-commit:nth-child(5) .info-box {
        border-radius: 10px;
    }
    .commitList .item-commit:nth-child(7) .info-box {
        border-radius: 0 10px 0 0;
    }
}
@media (min-width: 1200px) {
    .home-commit {
        height: 790px;
    }
    .commitList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }
}
@media (max-width: 575.98px) {
    .commitList {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    .commitList .item-commit {
        box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
    }
    .commitList .item-commit .info-box {
        padding: 10px !important;
    }
}


/* =========================================
   HOME partner
   ========================================= */
.home-partner {}
.partner-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}
.partner-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Chiều cao cố định của thẻ */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Đổ bóng nhẹ mượt */
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.partner-card img {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: grayscale(100%); /* (Tùy chọn) Làm logo màu xám, hover mới hiện màu */
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   HOME form
   ========================================= */
.home-form .section-content > .row {
    align-items: center !important;
}
.home-form .col-left ,
.home-form .col-right {
    padding-bottom: 0 !important;
}
.home-form .col-left .logo-box img {
    height: 85px;
    width: 85px;
}
.home-form .col-left .logo-box h2 {
    margin-bottom: unset !important;
    font-size: 27px;
    color: #fff;
    text-transform: uppercase;
    margin-left: 1rem;
}
.home-form .col-right .wpcf7-form {
    margin-bottom: 0 !important;
}

.newsletter-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px; /* Bo tròn hoàn toàn */
    padding: 5px 6px 5px 25px; /* Khoảng cách padding bên trong */
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.newsletter-form-wrapper p {
    margin: 0 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Ô nhập Email */
.newsletter-form-wrapper input.newsletter-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 48px !important;
    width: 400px;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    color: #333;
    flex: 1;
}
/* Nút Đăng Ký Ngay màu xanh lá bo tròn */
.newsletter-form-wrapper input.newsletter-submit {
    background-color: #3e7b52 !important; /* Màu xanh lá đậm giống ảnh mẫu */
    color: #ffffff !important;
    border-radius: 50px !important;
    border: none !important;
    height: 46px !important;
    padding: 0 30px !important;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}
.newsletter-form-wrapper input.newsletter-submit:hover {
    background-color: #2d5a3c !important;
    transform: scale(1.02);
}
.newsletter-form-wrapper .wpcf7-spinner ,
.newsletter-form-wrapper br {
    display: none !important;
}
/* Xử lý thông báo thành công / lỗi của CF7 nằm gọn xuống dưới */
.wpcf7 response-output,
div.wpcf7-response-output {
    margin: 10px 0 0 0 !important;
    padding: 8px 15px !important;
    font-size: 13px;
    border-radius: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-container {
    color: #ffffff;
    font-size: 14px;
    background: #40744D;
    padding-top: 70px !important;
}
.footer-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.footer-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
}
.footer-links a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    opacity: 1;
    padding-left: 3px;
}
/* Bo góc cho Bản đồ & Fanpage */
.footer-map iframe,
.footer-fanpage iframe {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.footer-fanpage {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 8px;
    overflow: hidden;
}
.footer-fanpage iframe {
    width: 100% !important;
    height: 180px !important;
    border-radius: 8px;
    background: #fff; 
}
/* --- STYLING THANH CONTACT GRADIENT NHỘNG --- */
.footer-contact-bar {
    background: linear-gradient(90deg, #0088cc 0%, #00bcff 100%);
    border-radius: 50px; /* Bo nhộng tròn 2 đầu */
    padding: 15px 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-item .icon-circle {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-text {
    display: flex;
    flex-direction: column;
}
.contact-text .label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.contact-text .value {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
}
/* Vạch ngăn cách giữa các item */
.contact-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
}

/* --- ABSOLUTE FOOTER STYLING --- */
.absolute-footer {
    background-color: #40744D !important;
    padding: 45px 0 !important;
}
.absolute-footer .container,
.absolute-footer .footer-primary,
.absolute-footer .footer-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.absolute-footer, 
.absolute-footer p, 
.absolute-footer div {
    color: #ffffff !important;
    font-size: 13px !important;
    /* opacity: 0.9; */
}
.footer-social-icons,
.network_social {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}
.footer-social-icons a,
.network_social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    background-color: #ffffff !important; /* Nền trắng */
    color: #3e7b52 !important;            /* Icon màu xanh lá */
    border-radius: 50% !important;        /* Bo tròn 100% */
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.footer-social-icons a:hover,
.network_social a:hover {
    transform: translateY(-3px) !important;
    background-color: #0088cc !important; /* Đổi sang xanh dương nhạt khi hover */
    color: #ffffff !important;
}

/* call-now */
.fab-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.fab-item:hover { transform: scale(1.1); }
.zalo { background: #0084ff; }
.messenger { background: #fff; }
.phone { background: #0291DD; color: #fff; font-size: 24px; animation: ring 2s infinite; }
@keyframes ring {
    0% { transform: scale(1); }
    10% { transform: scale(1.1) rotate(5deg); }
    20% { transform: scale(1.1) rotate(-5deg); }
    30% { transform: scale(1.1) rotate(5deg); }
    40% { transform: scale(1) rotate(0); }
}
.fab-item.quote {
    background-color: #0291DD; 
    color: #fff;
    overflow: visible; 
}
.fab-item.quote i {
    font-size: 20px;
}
.fab-label {
    position: absolute;
    right: 100%; 
    margin-right: 15px;
    background-color: #0291DD;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px); 
    transition: all 0.3s ease;
}
.fab-item.quote:hover {
    border-radius: 25px; 
}
.fab-item.quote:hover .fab-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); 
}
.fab-item.quote {
    animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(235, 140, 55, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(235, 140, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 140, 55, 0); }
}
@media (max-width: 768px) {
    .fab-wrapper { bottom: 90px; right: 10px; }
    .fab-item { width: 45px; height: 45px; }
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

    /* Chung */
    .header-box .title {
        font-size: 30px !important;
    }
    .header-box .brief {
        font-size: 14px;
    }

    /* Logo */
    .header .header-main .logo>a {
        padding: 20px !important;
        transform: translate(-50%, -25%) !important;
    }
    .header .stuck .header-main .logo>a {
        transform: translate(-50%, -50%) !important;
    }

    /* HEADER */
    .header .header-top {
        display: none !important;
    }
    .off-canvas .sidebar-menu {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .off-canvas-right .mfp-content,
    #main-menu {
        background-color: #ffffff !important;
    }
    #main-menu .searchform-wrapper {
        padding: 15px !important;
    }
    #main-menu .searchform {
        border-radius: 50px !important;
        overflow: hidden;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
    }
    #main-menu .searchform input[type="search"] {
        background: transparent !important;
        border: none !important;
        font-size: 13px !important;
        padding-left: 15px !important;
        box-shadow: none !important;
    }
    #main-menu .searchform button[type="submit"] {
        background-color: #0088cc !important; /* Màu xanh thương hiệu */
        border-radius: 0 50px 50px 0 !important;
        padding: 0 15px !important;
    }
    #main-menu .nav-sidebar > li {
        border-bottom: 1px solid #f1f5f9 !important; /* Viền mỏng nhẹ thay vì vạch xám thô */
    }
    #main-menu .nav-sidebar > li > a {
        color: #1e293b !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        padding: 14px 20px !important;
        text-transform: none !important; /* Bỏ in hoa cứng nhắc nếu thích */
        transition: all 0.2s ease;
    }
    #main-menu .nav-sidebar > li > a:hover,
    #main-menu .nav-sidebar > li.active > a {
        color: #0088cc !important;
        background-color: #f0f9ff !important;
        padding-left: 25px !important; /* Đẩy nhẹ chữ sang phải khi chọn */
    }
    #main-menu .nav-sidebar .toggle {
        opacity: 0.6;
    }
    #main-menu .nav-sidebar .children li a {
        font-size: 14px !important;
        color: #64748b !important;
        padding-left: 35px !important;
        font-weight: 400 !important;
    }
    #main-menu .social-icons {
        padding: 20px !important;
        justify-content: center !important;
        gap: 12px !important;
        border-top: 1px dashed #e2e8f0;
    }
    #main-menu .social-icons a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        background: #f1f5f9;
        color: #475569 !important;
        border-radius: 50%;
        text-align: center;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    #main-menu .social-icons a:hover {
        background: #0088cc;
        color: #fff !important;
    }
    .off-canvas .mfp-close {
        color: #333 !important;
        font-size: 24px !important;
        top: 10px !important;
        right: 10px !important;
    }
    #main-menu .top-box {
        flex-direction: column !important;
        line-height: 2.5 !important;
    }

    /* Polylang */
    /* 1. Triệt tiêu chữ Raw Text "Tiếng Việt" bằng font-size: 0 */
    .header-language-dropdown__link {
        font-size: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important; /* Khoảng cách giữa Cờ và Mũi tên */
        padding: 5px !important;
        line-height: 1 !important;
    }
    /* 2. Hiển thị lại Icon Cờ */
    .header-language-dropdown__link i.image-icon {
        display: inline-block !important;
        font-size: 14px !important; /* Trả lại font-size để icon cờ hiển thị */
    }
    /* Nếu cờ bên trong xài thẻ img hoặc background */
    .header-language-dropdown__link i.image-icon img,
    .header-language-dropdown__link i.image-icon :first-child {
        width: 30px !important;
        height: 22px !important;
        object-fit: cover !important;
        display: block !important;
    }
    /* 3. Thu nhỏ Icon Mũi Tên Dropdown (angle-down) */
    .header-language-dropdown__link i.icon-angle-down {
        display: inline-block !important;
        font-size: 10px !important; /* Chỉnh cỡ mũi tên nhỏ xinh */
        line-height: 1 !important;
        opacity: 0.7 !important;
        margin: 0 !important;
    }
    .header-language-dropdown .nav-dropdown {
        padding: 10px !important;
        min-width: 180px !important
    }
    .header-language-dropdown .nav-dropdown>li>a {
        padding: 5px 10px !important;
        margin: 0 !important;
        font-size: 13px !important;
    }
    .header-language-dropdown .nav-dropdown>li .icon-image>img {
        height: 25px !important;
    }

    /* Slide */
    .home-slide {
        margin-top: -60px !important;
    }
    .home-slide .text-box.banner-layer{
        width: 90% !important;
        text-align: center !important;
    }
    .home-slide .slide-item .content-box .text-inner > h2 {
        font-size: 25px !important;
        line-height: 1.3 !important;
    }

    /* home news */
    .home-news ,
    .home-about ,
    .home-field ,
    .home-member ,
    .home-certi ,
    .home-partner {
        padding-top: 30px !important;
        padding-bottom: 0 !important;
    }
    .header-box ,
    .header-box2 {
        margin-bottom: 1rem !important;
    }
    .header-box2 h3 {
        font-size: 22px;
    }
    .home-news .col-left>.col-inner, 
    .home-news .col-right>.col-inner {
        padding: 15px;
    }
    .item-big .post-item {
        padding-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    .item-small .post-item .box-blog-post .box-text {
        padding: 15px 0 0 0 !important;
    }

    /* home about */
    .home-about .header-box .title {
        padding-top: 22px !important;
    }
    .home-about .col-image .two-image .col-1 {
        margin-top: 0 !important;
        margin-right: 0 !important;
        position: absolute;
        top: 150px;
    }
    .home-about .col-image .two-image .col-1 .col-inner {
        width: 70%;
        margin-left: 0;
    }
    .home-about .col-image .two-image .col-2 .col-inner {
        width: 80%;
        margin-right: 15px;
    }
    /* counter */
    .home-about .counter .col-counter {
        padding: 15px !important;
    }
    .home-about .counter .counter-item .stats-item {
        flex-direction: row;
        justify-content: space-between;
    }
    .home-about .counter .counter-item .desc-text{
        max-width: 180px;
        text-align: right;
    }
    .home-about .counter .counter-item .stats-item .count-wrapper {
        flex-direction: column;
    }
    .home-about .counter .counter-item.counter-big .plus-sign , 
    .home-about .counter .counter-item.counter-big .info-text {
        text-align: right;
    }
    .home-about .counter .counter-item.counter-big .count_to {
        font-size: 150px;
    }

    /* home field */
    .home-field .fieldList .field-item {
        padding-top: 480px !important;
    }
    .home-field .fieldList .field-item .info-box .text-box-content .text-inner .box-bottom h3 {
        font-size: 30px;
    }

    /* home member */
    .home-member .memberList {
        height: auto !important;
        width: 100% !important;
        /* display: grid !important; */
        /* gap: 15px; */
    }
    .home-member .memberList .col-item.col-item2 ,
    .home-member .memberList .col-item.col-item3 ,
    .home-member .memberList .col-item.col-item4 ,
    .home-member .memberList .col-item.col-item5 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        height: 195px !important;
    }
    .home-member .memberList .col-item.col-item1 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        height: 390px !important;
    }
    .home-member .memberList .col-item.col-item2 .info-box ,
    .home-member .memberList .col-item.col-item3 .info-box ,
    .home-member .memberList .col-item.col-item4 .info-box ,
    .home-member .memberList .col-item.col-item5 .info-box {
        bottom: -15%;
    }
    .home-member .memberList .col-item.col-item2 .info-box > h3 ,
    .home-member .memberList .col-item.col-item3 .info-box > h3 ,
    .home-member .memberList .col-item.col-item4 .info-box > h3 ,
    .home-member .memberList .col-item.col-item5 .info-box > h3 {
        font-size: 15px;
    }

    /* home certi */
    .home-certi .tab-certi > h4 {
        font-size: 25px;
        margin-bottom: 1rem !important;
    }
    .tab-certi .nav-pills > li > a, 
    .tab-certi .nav-tabs > li > a {
        font-size: 14px;
        font-weight: 500 !important;
    }

    /* home form */
    .home-form .col-left {
        margin-bottom: 1rem;
    }
    .newsletter-form-wrapper {
        border-radius: 10px;
    }
    .newsletter-form-wrapper p {
        flex-direction: column;
    }
    .newsletter-form-wrapper input.newsletter-input {
        width: 100%;
    }



    /* FOOTER */
    .footer-container {
        padding-top: 30px !important;
    }
    .footer-contact-bar {
        flex-direction: column;
        border-radius: 20px;
        gap: 20px;
        padding: 20px;
        align-items: flex-start;
        margin-top: 0 !important;
    }
    .contact-divider {
        display: none;
    }
    .absolute-footer {
        padding: 25px 0 !important;
    }
    .absolute-footer .container {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }



}


/* =========================================
   INTRO-Page
   ========================================= */

/* breadcrumb */
.breadcrumb {
    margin: 0;
    border: 0;
    padding: 0.6rem 0;
    display: inline-flex;
    background-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
@media (max-width: 575.98px) {
    .breadcrumb {
        padding: 0.3rem 0;
    }
}
.breadcrumb > li i {
    color: #fff;
    margin-right: 0.4rem;
}
.breadcrumb > li a {
    color: #fff;
}
@media (min-width: 992px) {
    .breadcrumb > li a {
        font-size: 16px;
    }
}
.breadcrumb > li {
    list-style: none !important;
}
.breadcrumb > li::after {
    content: "/";
    padding: 0 10px;
    color: #fff;
}
.breadcrumb > li:last-child a {
    font-weight: 600;
}
.breadcrumb > li:last-child::after {
    content: "";
    display: none;
}

/* slide */
.home-slide.intro-slide .slide-item .content-box .text-inner > h2 ,
.home-slide.intro-slide .slide-item h2 {
    font-weight: 400 !important;
    font-size: 40px !important;
}
.home-slide.intro-slide .slide-item .header-box {
    margin-bottom: 1rem !important;
}

/* HISTORY */
.speacial-font {
    font-family: "Barlow", sans-serif;
}
.intro-history {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, #FFF 28%, rgba(159, 185, 146, 0.27) 65%, #40744D 90.25%, #014A3F 99%);
    padding-bottom: 200px !important;
    margin-bottom: -100px !important;
}
.history-item {
    width: 450px;
    height: auto;
    position: relative;
    padding-top: 10px;
}
@media (min-width: 1200px) {
    .intro-history {
        padding-bottom: 500px !important;
        margin-bottom: -400px !important;
    }
    .history-item {
        width: 35vw;
    }
}
.history-item.first {
    margin-left: 30px;
}
.history-item.last {
    margin-right: 30px;
}

@media (min-width: 768px) {
    .history-item.first {
        margin-left: 100px;
    }
    .history-item.last {
        margin-right: 100px;
    }
}
/* --- IMG BOX WRAP --- */
.history-item .img-box-wrap {
    position: relative;
}
.history-item .img-box-wrap::after {
    content: '';
    width: 260px;
    height: 260px;
    border-radius: 100%;
    overflow: hidden;
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 1;
    background: linear-gradient(to bottom, var(--main-color, #2d6a4f), rgba(255, 255, 255, 0));
}
@media (min-width: 1200px) {
    .history-item .img-box-wrap::after {
        width: calc(22vw + 10px);
        height: calc(22vw + 10px);
    }
}
/* --- IMG BOX WRAP MIN --- */
.history-item .img-box-wrap-min .spinning-icon {
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 10px;
    left: 310px;
    z-index: 2;
    animation: spin 9s linear infinite;
    pointer-events: none;
}
@media (min-width: 1200px) {
    .history-item .img-box-wrap-min .spinning-icon {
        width: calc(8vw + 40px);
        height: calc(8vw + 40px);
        left: calc(27vw - 20px);
        bottom: 0;
    }
}
.history-item .img-box-wrap-min .border-box {
    position: absolute;
    width: 118px;
    height: 118px;
    bottom: 11px;
    left: 311px;
    z-index: 1;
    /* border: 1px solid rgba(141, 211, 255, 0.5); */
    border-radius: 100%;
}
@media (min-width: 1200px) {
    .history-item .img-box-wrap-min .border-box {
        width: calc(8vw + 37px);
        height: calc(8vw + 37px);
        left: calc(27vw - 18px);
        bottom: 0;
    }
}
/* --- IMG BOX --- */
.history-item .img-box {
    border-radius: 100%;
    width: 250px;
    height: 250px;
    overflow: hidden;
    position: relative;
}
@media (min-width: 1200px) {
    .history-item .img-box {
        width: 22vw;
        height: 22vw;
    }
}
.history-item .img-box.min {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 320px;
    bottom: 20px;
}
@media (min-width: 1200px) {
    .history-item .img-box.min {
        width: 6vw;
        height: 6vw;
        left: 28vw;
        bottom: 40px;
    }
}
.history-item .img-box img {
  position: relative;
  z-index: 10;
}
/* --- INFO BOX --- */
.history-item .info-box {
    padding-left: 150px;
    padding-right: 10%;
    position: relative;
}
@media (min-width: 1200px) {
    .history-item .info-box {
        padding-left: calc(11vw + 30px);
    }
}
.history-item .info-box::before {
    content: '';
    background: linear-gradient(to bottom, var(--light-color, #a3b18a), rgba(255, 255, 255, 0));
    width: 2px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 125px;
}
@media (min-width: 1200px) {
    .history-item .info-box::before {
        left: 11vw;
    }
}
.history-item .info-box::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--main-color, #2d6a4f);
    border-radius: 10px;
    left: 121px;
    top: -3px;
    position: absolute;
}
@media (min-width: 1200px) {
    .history-item .info-box::after {
        left: calc(11vw - 4px);
    }
}
.history-item .info-box .name {
    font-size: 50px;
    line-height: 50px;
    font-weight: 700;
    color: #2d6a4f;
    opacity: .3;
    margin-bottom: .3em !important;
    /* background: linear-gradient(to right, var(--main-color, #2d6a4f), var(--light-color, #a3b18a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}
/* --- EVEN ITEMS (Đảo vị trí trên/dưới) --- */
.history-item.even .img-box-wrap-min .spinning-icon {
    top: 10px;
    bottom: auto;
    left: 340px;
}
@media (min-width: 1200px) {
    .history-item .info-box .name {
        font-size: 65px;
        line-height: 80px;
    }
    .history-item.even .img-box-wrap-min .spinning-icon {
        left: calc(25vw - 20px);
        top: 0;
    }
}
.history-item.even .img-box-wrap-min .border-box {
    top: 11px;
    bottom: auto;
    left: 341px;
}
@media (min-width: 1200px) {
    .history-item.even .img-box-wrap-min .border-box {
        left: calc(25vw - 18px);
        top: 1px;
    }
}
.history-item.even .img-box.min {
    left: 350px;
    top: 20px;
    bottom: auto;
}
@media (min-width: 1200px) {
    .history-item.even .img-box.min {
        left: 26vw;
        top: 40px;
    }
}
.history-item.even .info-box::before {
    background: linear-gradient(to top, var(--light-color, #a3b18a), rgba(255, 255, 255, 0));
    top: auto;
    bottom: 0;
}
.history-item.even .info-box::after {
    top: auto;
    bottom: -3px;
}

/* view */
.intro-view {
    position: relative;
    z-index: 2;
}
.intro-view .grid-views {}
.intro-view .grid-views .grid-item > .col-inner{
    overflow: hidden;
    border-radius: 20px;
}
.intro-view .grid-views .grid-item > .col-inner .banner-inner .banner-bg::before {
    content: '';
    width: 100%;
    height: 80%;
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(1, 74, 63, 0.93) 0%, rgba(64, 116, 77, 0.00) 90%);
    mix-blend-mode: multiply;
}
.intro-view .grid-views .grid-item > .col-inner .banner-inner .banner-layers {
    position: relative;
    z-index: 2;
}
.intro-view .grid-views .grid-item .info-box {
    padding: 20px;
}
.intro-view .grid-views .grid-item .info-box .text-inner h3 {
    font-size: 25px;
}
.intro-view .grid-views .grid-item .info-box .text-inner p {
    font-size: 14px;
    line-height: 1.5 !important;
    padding-bottom: unset !important;
}
@media (min-width: 768px) {
    .intro-view::before {
        content: '';
        width: 100%;
        height: calc(100% - 400px);
        position: absolute;
        left: 0;
        bottom: 0;
        background: linear-gradient(to top, #FFF 45%, rgba(227, 244, 218, 0.07) 65%, #40744D 90%, #014A3F 99%);
    }
    .intro-view .grid-views .grid-item .info-box {
        padding: 45px !important;
    }
    .intro-view .grid-views .grid-item .info-box .text-inner h3 {
        font-size: 32px !important;
    }
    .intro-view .grid-views .grid-item .info-box .text-inner p {
        font-size: 16px !important;
    }
}
@media (max-width: 768px) {
    .intro-view .grid-views .grid-item2 , 
    .intro-view .grid-views .grid-item3 {
        height: 360px !important;
    } 
}
/* Style Thanh Thumbs bên dưới */
.history-thumbs-wrapper {
    position: relative;
    margin-top: 30px;
}
@media (min-width: 768px) {
    .history-thumbs-wrapper .swiper-wrapper {
        justify-content: center;
        padding-bottom: 20px;
    }
}
.history-thumbs-swiper {
    overflow: visible !important; /* Để vuốt mượt trên mobile */
}
.timeline-line {
    display: none;
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0084ff;
    z-index: 1;
}
.thumb-item {
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    width: auto !important; /* Dàn trang linh hoạt */
    padding: 0 15px;
}
.thumb-item.active {
    opacity: 1;
}
.thumb-year {
    font-size: 14px;
    font-weight: bold;
    color: #475569;
}
.thumb-item.active .thumb-year {
    color: #2d6a4f;
}
.thumb-title {
    font-size: 13px;
    color: #0088cc;
    margin-bottom: 10px;
}
.thumb-dot {
    width: 12px;
    height: 12px;
    background: #94a3b8;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}
.thumb-item.active .thumb-dot {
    background: #00bcff;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.2);
}
.thumb-line {
    width: 80%;
    height: 0;
    border-bottom: 1px solid #00bcff;
    position: absolute;
    left: 60%;
    bottom: 5px;
}
.thumb-item.last .thumb-line {
    display: none !important;
}
@media (min-width: 768px) {
    .thumb-year {
        font-size: 18px;
    }
    .thumb-title {
        font-size: 17px;
    }
}
/* --- TỐI ƯU MOBILE: HIỆN SCROLL VUỐT NGANG --- */
@media (max-width: 849px) {
    .history-thumbs-wrapper {
        overflow-x: auto !important; /* Bật Scroll ngang tự nhiên trên mobile */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }
    .history-thumbs-swiper .swiper-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .history-circle-img img {
        width: 180px;
        height: 180px;
    }
    .history-info .year {
        font-size: 42px !important;
    }
}


/* certi */
.intro-page.home-certi {
    position: relative;
    z-index: 3;
    background: url('https://hapaco.vn/wp-content/uploads/2026/08/map-bg.png') no-repeat center;
    background-size: auto 390px;
}
.intro-page.home-certi .tab-certi > h4 {
    display: none !important;
}

/* chart */
@media (min-width: 768px) {
    .intro-chart .header-box {
        margin-bottom: -200px;
    }
}


/* =========================================
   SUBPAGE
   ========================================= */
.subpage-banner-wrapper {
    position: relative;
    height: 490px; 
    overflow: hidden;
}
.subpage-banner-inner {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}
.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.banner-content {
    position: relative;
    z-index: 2;
    padding-top: 200px !important;
}

/* ========== subpage-banner-wrapper ========== */
.subpage-banner-wrapper {
    position: relative;
    background-color: #0291DD; 
    background-size: cover;
    background-position: center;
    text-align: left; 
    display: flex;
    align-items: center;
}
.subpage-banner-wrapper .subpage-banner-inner {
    width: 100% !important;
}
.subpage-banner-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25); 
    z-index: 1;
}
.subpage-banner-wrapper .page-title {
    font-family: "Barlow", sans-serif;
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 45px !important;
    font-weight: 700 !important;
    text-transform: capitalize;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
}
/* ========== news-page ========== */
.archive-page-header ,
.entry-header .entry-header-text {
    display: none !important;
}
.entry-header .entry-header-text .entry-title {
    font-size: 25px !important;
    color: #0291DD;
}
.entry-header .entry-header-text .entry-title+.is-divider {
    display: none !important;
}
.entry-header .entry-image a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 450px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
.entry-header .entry-image a img {
    width: auto !important;
    object-fit: cover !important;
    min-width: 100% !important;
    height: 100% !important;
}
.page-wrapper .row-large>.col {
    padding: 0 15px 15px !important;
}

/* ========== post-sidebar ========== */
#secondary .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    background: linear-gradient(164deg, rgba(81, 149, 40, 0.1) 11.42%, rgba(182, 130, 25, 0.1) 89.08%);
}
#secondary .widget .is-divider {
    display: none !important;
}
#secondary .widget-title {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid #0291DD; 
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: block;
}
#secondary .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#secondary .widget ul li {
    /* padding: 10px 0; */
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
}
#secondary .widget ul li:last-child {
    border-bottom: none;
}
#secondary .widget ul li a {
    color: #444;
    transition: color 0.3s;
    font-weight: 500;
}
#secondary .widget ul li a:hover {
    color: #0291DD;
}
#secondary .widget_recent_entries ul li a {
    /* text-align: justify !important; */
}
/* Tùy chỉnh ô Tìm kiếm cho hiện đại */
.widget_search .search-form {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.widget_search .search-field {
    border: none !important;
    padding: 10px 15px !important;
    margin: 0 !important;
}
.widget_search .search-submit {
    background-color: #0291DD !important;
    color: #fff !important;
    border: none !important;
    padding: 0 20px !important;
    text-transform: uppercase;
    font-weight: bold;
}
/* product_list_widget */
.product_list_widget li {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}
.product_list_widget li img {
    width: 60px !important; 
    height: 60px !important;
    object-fit: cover;
    margin-right: 15px !important; 
    margin-bottom: 0 !important;
    float: none !important; 
}
.product_list_widget li a {
    margin-bottom: 0 !important;
}
.product_list_widget li a span.product-title {
    display: block;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    font-size: 13px;
}
.product_list_widget li a:hover span.product-title {
    color: #0291DD;
}
.product_list_widget li .amount {
    font-weight: bold;
    color: #3e7b52;
    font-size: 13px;
}
.product_list_widget li del .amount {
    font-weight: normal;
    color: #999;
    font-size: 13px;
}
/* ========== newsList-page ========== */
.blog-archive .col-inner {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-archive .col-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #0291DD;
}
.blog-archive .box-image {
    padding-top: unset !important; 
    position: relative;
    overflow: hidden;
}
.blog-archive .box-image .image-cover {
    height: 200px !important;
}
.blog-archive .box-image .image-cover > a {
    border-radius: 10px 10px 0 0 !important;
}
.blog-archive .box-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-archive .col-inner:hover .box-image img {
    transform: scale(1.1);
}
.blog-archive .box-text {
    padding: 20px 20px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-archive h5.post-title {
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    min-height: 3.2em; 
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    height: inherit;
}
.blog-archive h5.post-title a {
    color: #222 !important;
    font-family: "Barlow", sans-serif;
    font-weight: 600 !important;
    /* min-height: 3.2em;  */
    margin: 0 !important;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    /* height: inherit; */
    height: 96px;
}
.blog-archive h5.post-title a:hover {
    color: #0291DD !important;
}
.blog-archive .is-divider {
    background-color: #0291DD !important;
    height: 3px !important;
    width: 40px !important;
    margin: 10px 0 !important;
}
.blog-archive .from_the_blog_excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* height: inherit; */
    height: 46px;
}
.blog-archive .badge {
    background-color: #0291DD !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 8px !important; 
}
.blog-archive .badge .badge-inner {
    background-color: #0291DD !important;
}
/* ========== related-posts-wrapper ========== */
.related-posts-wrapper {
    margin: unset !important;
}
.related-posts-wrapper .blog-archive .box-image {
    padding-top: 56% !important;
}
.related-posts-wrapper .blog-archive .box-text .box-text-inner {
    padding: unset !important;
}
.related-posts-wrapper .blog-archive h5.post-title {
    margin-bottom: unset !important;
}
.related-posts-wrapper .related-title {
    font-size: 25px !important;
}

/* ========== search-results ========== */
.search-results .type-page ,
.search-results article.page {
    display: none !important;
}
/* Tìm đến h4 chứa chữ Trang và cái Row Slider ngay sau nó để ẩn */
.search-results .shop-container ~ h4.uppercase:nth-of-type(2),
.search-results .shop-container ~ h4.uppercase:nth-of-type(2) + div.row {
    display: none !important;
}
/* Nếu nó vẫn hiện, ta dùng cách "quét" theo thứ tự (Trang thường nằm cuối) */
.search-results .col.large-9 > h4.uppercase:last-of-type,
.search-results .col.large-9 > h4.uppercase:last-of-type + div.row {
    display: none !important;
}

/* Tiêu đề "Bài viết đã tìm thấy" */
.search-results .shop-container ~ h4.uppercase:first-of-type {
    font-size: 1.2rem;
    color: #0291DD;
    border-bottom: 1px solid #C5C5C5;
    padding-bottom: 10px;
    margin-top: 30px;
    letter-spacing: 0 !important;
}
.search-results .shop-container ~ .row .col-inner {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    margin-bottom: 20px;
}
.search-results .shop-container ~ .row .col-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.search-results .shop-container ~ .row .box-image {
    padding-top: unset !important;
}
.search-results .shop-container ~ .row .post-title {
    font-size: 1rem !important;
    padding: 10px 15px !important;
    font-weight: 700;
}
.search-results .shop-container ~ .row .from_the_blog_excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}
.search-results .shop-container ~ .row .flickity-button {
    display: none !important;
}

/* =========================================
   EMPTY CATEGORY + QUAN HỆ CỔ ĐÔNG ARCHIVE
   ========================================= */
/* Dùng thông báo tùy chỉnh thay cho khối "Không tìm thấy gì" của theme ở danh mục rỗng. */
.archive.category .no-results,
.archive.category .nothing-found {
    display: none !important;
}

/* Riêng danh mục Quan hệ cổ đông: danh sách một cột thay cho grid tin tức. */
body.category-quan-he-co-dong #post-list > .row {
    display: block !important;
    height: auto !important;
}

/* Ghi đè tọa độ inline do Masonry của Flatsome tạo ra. */
body.category-quan-he-co-dong #post-list > .row > .post-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 0 !important;
}

body.category-quan-he-co-dong #post-list .post-item .col-inner {
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.category-quan-he-co-dong #post-list .post-item .box {
    position: relative;
    display: block !important;
    min-height: 135px;
    background: #fff;
}

body.category-quan-he-co-dong #post-list .post-item .post-date {
    display: none !important;
}

body.category-quan-he-co-dong #post-list .post-item .box-image {
    display: none !important;
}

body.category-quan-he-co-dong #post-list .post-item .box-text {
    width: 100% !important;
    max-width: none !important;
    padding: 25px 20px !important;
    text-align: left !important;
}

body.category-quan-he-co-dong #post-list .post-item .post-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    margin: 0 0 14px !important;
    color: #071d5a !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
}

body.category-quan-he-co-dong #post-list .post-item h5.post-title > a {
    display: -webkit-box !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(2em * 1.45) !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    line-height: 1.45 !important;
}

body.category-quan-he-co-dong #post-list .post-item .post-meta,
body.category-quan-he-co-dong #post-list .post-item .is-xsmall {
    color: #475569;
    font-size: 15px;
}

body.category-quan-he-co-dong #post-list .dpl-shareholder-post-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 15px;
    line-height: 1.4;
}

body.category-quan-he-co-dong #post-list .dpl-calendar-icon {
    color: #071d5a;
    font-size: 17px;
    line-height: 1;
}

body.category-quan-he-co-dong #post-list .post-item .from_the_blog_excerpt,
body.category-quan-he-co-dong #post-list .post-item .button {
    display: none !important;
}

@media (max-width: 549px) {
    body.category-quan-he-co-dong #post-list .post-item .box {
        min-height: 110px;
    }

    body.category-quan-he-co-dong #post-list .post-item .box-text {
        padding: 20px 16px !important;
    }

    body.category-quan-he-co-dong #post-list .post-item .post-title {
        font-size: 17px;
    }
}

/* =========================================
   CONTACT FORM 7
   ========================================= */
.wpcf7 form {
    width: 100%;
}

.wpcf7 form > p {
    margin-bottom: 18px;
}

.wpcf7 form label {
    display: block;
    width: 100%;
    margin-bottom: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    color: inherit;
    font: inherit;
    background-color: #fff;
    border: 1px solid rgba(64, 116, 77, 0.22);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(64, 116, 77, 0.06);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select {
    min-height: 48px;
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input:not([type="submit"]):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #0291DD;
    box-shadow: 0 0 0 4px rgba(2, 145, 221, 0.12), 0 8px 22px rgba(64, 116, 77, 0.09);
    transform: translateY(-1px);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: inherit;
    opacity: .5;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}

.wpcf7 input[type="submit"] {
    min-height: 48px;
    margin: 0;
    padding: 10px 30px;
    color: #fff;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    background: #40744D;
    border: 1px solid #40744D;
    border-radius: 100px;
    box-shadow: 0 7px 18px rgba(64, 116, 77, 0.22);
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
    color: #fff;
    background: #0291DD;
    border-color: #0291DD;
    box-shadow: 0 10px 24px rgba(2, 145, 221, 0.25);
    transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

.wpcf7 form.submitting input[type="submit"] {
    opacity: .7;
    cursor: wait;
}

.wpcf7 .wpcf7-spinner {
    vertical-align: middle;
}

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-width: 0 0 0 4px;
    border-radius: 8px;
    background: rgba(64, 116, 77, 0.07);
}

@media (max-width: 549px) {
    .wpcf7 form > p {
        margin-bottom: 15px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
    }
}
