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

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

.header .flex-row{
    height: auto;
}

#logo img {
    max-height: 60px;
}

.header-main{
    height: auto !important;
    background-color: #f6f8f4;
    padding: 10px 0px;
}


.nav-left {
    justify-content: center;
}   

.header-nav .nav>li {
    margin: 0px;
}

.header-main .nav > li > a {
    padding: 0px 10px;
}

.header-main .nav a{
    color: #000000;
    text-transform: uppercase;
}

.nav-dropdown-has-arrow li.has-dropdown:after, .nav-dropdown-has-arrow li.has-dropdown:before {
    content: none;
}

.nav-dropdown-default {
    padding: 10px 0px;
}

.nav-dropdown-default li a {
    font-size: 12px;
    padding-left: 30px !important;
    padding-right: 30px !important;
    text-transform: capitalize;
}

.nav-dropdown-default li a::before {
    content: "\f105" !important;
    font-family: "fl-icons" !important;
    font-size: 12px;
    color: #000000;
    margin-right: 10px !important;
    display: inline-block;
}

.nav-dropdown-default li{
    border-bottom: 1px solid rgba(242, 244, 248, .7);
}

.nav-dropdown-has-border .nav-dropdown{
    border: none;
    border-radius: 5px;
}

.icon-angle-down:before {
    color: #fc6060;
}

.home-slider {
    position: relative;
}

.home-slider .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 30px;
}

.home-slider .owl-nav button {
    pointer-events: auto;
}

.home-slider .owl-nav .owl-prev,
.home-slider .owl-nav .owl-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.home-slider .owl-nav .owl-prev:hover,
.home-slider .owl-nav .owl-next:hover {
    background-color: #ff6b6b;
}

.home-slider .owl-nav .owl-prev::after {
    content: '\2190';
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.home-slider .owl-nav .owl-next::after {
    content: '\2192';
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.home-slider .owl-nav .owl-prev span,
.home-slider .owl-nav .owl-next span {
    display: none;
}

.home-slider .owl-dots {
    display: none !important;
}

.module-title {
    font-size: 1em;
    width: 100%;
    position: relative;
    margin: 0px;
}

.libra-health___title-index {
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
}

.libra-health___title-index::before {
    content: "";
    position: absolute;
    bottom: 30%;
    border-bottom: 4px double rgb(21, 137, 12);
}

.libra-health___title-index::before {
    left: 25%;
    width: 50%;
}


.module-title > a, .module-title > span {
    font-size: 14px;
    position: relative;
    color: rgb(0, 0, 0);
    text-transform: uppercase;
}

.libra-health___title-index > a, .libra-health___title-index > span {
    color: rgb(0, 0, 0);
    font-weight: 700;
    font-size: 16px;
    display: block;
    transform: skew(-22.5deg);
    padding: 7px 20px;
    background: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255));
    border-width: 1px;
    border-style: solid;
    border-color: rgb(21, 137, 12);
    border-image: initial;
}

.libra-health___title-index > a > span, .libra-health___title-index > span > span {
    transform: skew(22.5deg);
}

.BoxSanPham, .Boxdichvu, .Boxtintuc{
    margin: 30px 0px;
}

/* Tin tức layout */
.tintuc-list {
    margin-top: 15px;
}

.tintuc-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}
.tintuc-item .tintuc-link {
    display: block;
    text-decoration: none;
    color: #fff;
}
.tintuc-item .tintuc-image {
    overflow: hidden;
    position: relative;
    padding-bottom: 76%;
}

.tintuc-item .tintuc-image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tintuc-item:hover .tintuc-image img {
    transform: scale(1.05);
}
.tintuc-item .tintuc-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.tintuc-item--large .tintuc-content {
    padding: 20px;
}
.tintuc-item .tintuc-date {
    display: inline-block;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.95;
}
.tintuc-item .tintuc-date i {
    margin-right: 5px;
}
.tintuc-item .tintuc-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff;
}
.tintuc-item--large .tintuc-title {
    font-size: 18px;
    -webkit-line-clamp: 3;
}

.tintuc-grid-2x2 .tintuc-item--small .tintuc-image {
    padding-bottom: 75%;
}
@media (max-width: 849px) {
   
}

.BoxSanPham .product-list{
    margin-top: 15px;
}
 

.BoxSanPham .product-item{
     border: 1px solid #e0e0e0;
     padding: 3px;
}


.BoxSanPham .product-content{
    background: #f2f5f2;
    padding: 3px;
}

.BoxSanPham .product-content h3.product-name{
    font-size: 16px;
    font-weight: 700;
    margin: 0px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0px;
}

.BoxSanPham .product-item:hover{
    box-shadow: 0 0 15px 0 #809bac;
    border: 1px solid #aab8c1;
    background-color: #fff;
}

.BoxSanPham .product-item .product-image{
    overflow: hidden;
}

.BoxSanPham .product-item img {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), -webkit-transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.BoxSanPham .product-item:hover img {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.BoxSanPham .product-content .product-Summary{
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* chỉ cho xuất hiện 4 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

}

.BoxSanPham .product-content .product-xem-chi-tiet a{
    text-align: center;
    background: #158f0f;
    color: #ffffff;
    padding: 4px 20px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    
}

.Boxdichvu .news-Summary{
    font-size: 14px;
    margin-top: 10px;
}

.dichvu-item-list{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.dichvu-item-list:last-child{
   border-bottom: none;
}

.dichvu-list{
    margin-top: 20px;
}

.dichvu-item-list .news-Summary{
    margin-top: 0px;
}

.dichvu-item-list h3{
    margin: 0px;
}

.pb-0{
    padding-bottom: 0px ;
}

.custom-breadcrumb-style {
    font-size: 14px;
    color: #0073aa; /* Màu xanh giống trong ảnh của bạn */
    padding: 10px 0;
}
.custom-breadcrumb-style a {
    color: #0073aa;
}
.custom-breadcrumb-style .divider {
    margin: 0 5px;
    color: #e67e22; /* Màu cam cho mũi tên/dấu phân cách nếu muốn */
}
.custom-breadcrumb-style .active {
    color: #333;
    font-weight: normal;
}


.custom-breadcrumb{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    background-color: rgb(240, 246, 249);
    color: rgb(23, 118, 188);
    padding: 5px 2px;
}

/* ========== Archive list-post (danh sách bài viết 2 cột) ========== */
.list-post {
    margin-top: 24px;
    margin-bottom: 40px;
}

.list-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
}

.archive-post-item {
    margin: 0;
}

.archive-post-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.archive-post-thumb {
    flex-shrink: 0;
    width: 178px;
    height: 121px;
    overflow: hidden;
    background: #f0f0f0;
}

.archive-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-post-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8e8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center no-repeat;
    background-size: 36px 36px;
}

.archive-post-content {
    flex: 1;
    min-width: 0;
}

.archive-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    color: #15890c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-post-link:hover .archive-post-title {
    color: #0d5c07;
    text-decoration: underline;
}

.archive-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.archive-post-date-icon {
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center no-repeat;
    background-size: contain;
}

.archive-post-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Phân trang archive */
.archive-pagination,
.list-post .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers,
.list-post .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #15890c;
    border: 2px solid #15890c;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.archive-pagination .page-numbers:hover,
.list-post .nav-links .page-numbers:hover {
    background: #e8f5e7;
    color: #0d5c07;
}

.archive-pagination .page-numbers.current,
.list-post .nav-links .page-numbers.current {
    background: #15890c;
    color: #fff;
    border-color: #15890c;
}

.list-post .no-posts {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.header-search .nav-dropdown{
    background: none;
    box-shadow: none;
}


.product-image img{
    width: 100%;       /* Chiều rộng full theo khung chứa */
    height: 118px;     /* Chiều cao cố định theo ý bạn */
    object-fit: cover; /* Quan trọng: Ảnh sẽ phủ kín và không bị méo */
    display: block;
}

.dichvu-item-list .dichvu-image img {
    width: 100%;       /* Chiều rộng full theo khung chứa */
    height: 162px;     /* Chiều cao cố định theo ý bạn */
    object-fit: cover; /* Quan trọng: Ảnh sẽ phủ kín và không bị méo */
    display: block;
}

.ux-search-submit{
    background-color: rgb(21, 143, 15);
}



@media (max-width: 767px) {
    .list-post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .archive-post-thumb {
        width: 100px;
        height: 75px;
    }
}


@media (max-width: 767px) {
    .libra-health___title-index::before {
        left: 5%;
        width: 95%;
    }

    .libra-health___title-index {
        justify-content: start;
    }
    .dichvu-item-list{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dichvu_Name{
        font-size: 20px;
    }
}




@media only screen and (max-width: 48em) {

}

/* ================= Single post ================= */
.single-post-layout {
    margin-top: 20px;
    margin-bottom: 40px;
}

.single-post-article {
    background: #ffffff;
}

.single-post-header {
    margin-bottom: 15px;
}

.single-post-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.single-post-meta {
    font-size: 13px;
    color: #777;
}

.single-post-date-label {
    margin-right: 4px;
}

.single-post-thumb {
    margin: 20px 0;
}

.single-post-img {
    width: 100%;
    height: auto;
    display: block;
}

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

.single-post-content ul {
    margin-left: 18px;
}

.single-post-tags {
    margin-top: 15px;
    padding: 6px 10px;
    background: #f5f5f5;
    font-size: 13px;
}

.single-post-tags a {
    color: #000;
}

.single-sidebar-inner {
    margin-top: 10px;
}

.single-latest-list {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.single-latest-item + .single-latest-item {
    margin-top: 10px;
}

.single-latest-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.single-latest-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.single-latest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-latest-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.single-latest-content {
    flex: 1;
}

.single-latest-title {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
}

.single-latest-date {
    font-size: 12px;
    color: #777;
}

@media (max-width: 767px) {
    .single-post-layout {
        margin-top: 10px;
    }

    .single-post-title {
        font-size: 20px;
    }

    .single-latest-link {
        align-items: center;
    }
}