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

/* Custom Font */


/*************** ADD CUSTOM CSS HERE.   ***************/
/* Hide Absolute Footer */
.absolute-footer {
    display: none;
}

/* Social Media Icons */
.header-social-icons .social-icons a {
    color: #2D8655 !important;
    font-size: 16px !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.header-social-icons .social-icons a:hover {
    background-color: #2D8655 !important;
    color: #fff !important;
}

/* GTranslate Language Switcher */
.html_topbar_right .gt_switcher-popup,
.html_topbar_right .gt_switcher-popup span {
    color: #fff !important;
}

.html_topbar_right .gt_switcher-popup:hover,
.html_topbar_right .gt_switcher-popup:hover span {
    color: #2d8655 !important;
}

/* Sticky Header Background */
.header-wrapper.stuck {
    background-color: #000000d9 !important;
}

.header-wrapper.stuck .header-bg-color {
    background-color: #000000d9 !important;
}

/* Header Menu Right Alignment */
.header-main .header-inner .flex-left.flex-grow {
    justify-content: flex-end !important;
}

/* Main Navigation Menu */
.header-nav-main .nav-top-link {
    font-family: 'Alimama', sans-serif !important;
    font-style: normal;
    font-weight: 500;
    color: #fff !important;
    font-size: 18px;
    line-height: 29px;
}

.header-nav-main .nav-top-link:hover,
.header-nav-main .active .nav-top-link,
.header-nav-main .current-menu-item .nav-top-link {
    color: rgb(137, 189, 66) !important;
}

/* Keep menu white when header is stuck */
.header-wrapper.stuck .header-nav-main .nav-top-link {
    color: #fff !important;
}

.header-wrapper.stuck .header-nav-main .nav-top-link:hover,
.header-wrapper.stuck .header-nav-main .active .nav-top-link,
.header-wrapper.stuck .header-nav-main .current-menu-item .nav-top-link {
    color: rgb(137, 189, 66) !important;
}

.post-type-archive-product #masthead {
    background-color: #000000d9 !important;
}

.page-template-page-blank-php #masthead {
    background-color: #000000d9 !important;
}

.page-template-default #masthead {
    background-color: #000000d9 !important;
}

.category #masthead {
    background-color: #000000d9 !important;
}

/* Customer Logos - Grayscale Effect */
.logo-khach-hang img,
img.logo-khach-hang {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-khach-hang .gallery-col:hover img,
.logo-khach-hang img:hover,
img.logo-khach-hang:hover {
    filter: grayscale(0%);
}

/* Bottom Border Heading */
h3.bottom-border {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h3.bottom-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15%;
    border-bottom: 3px solid #2d8655;
}

/* Row Image Slide Flickity Controls */
.row-image-slide .flickity-page-dots {
    display: none !important;
}

.row-image-slide .flickity-prev-next-button {
    display: inline-flex !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.row-image-slide .flickity-prev-next-button:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}

.row-image-slide .flickity-prev-next-button.previous {
    left: -80px !important;
}

.row-image-slide .flickity-prev-next-button.next {
    right: -80px !important;
}

.row-image-slide .flickity-prev-next-button svg {
    width: 30px !important;
    height: 30px !important;
    position: relative !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.row-image-slide .flickity-prev-next-button .arrow {
    fill: #333 !important;
}

@media (max-width: 1200px) {
    .row-image-slide .flickity-prev-next-button.previous {
        left: 20px !important;
    }

    .row-image-slide .flickity-prev-next-button.next {
        right: 20px !important;
    }
}

@media (max-width: 990px) {
    .row-image-slide .flickity-prev-next-button.previous {
        left: 10px !important;
    }

    .row-image-slide .flickity-prev-next-button.next {
        right: 10px !important;
    }
}

@media (max-width: 768px) {
    .row-image-slide .flickity-prev-next-button {
        width: 48px !important;
        height: 48px !important;
    }

    .row-image-slide .flickity-prev-next-button svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Product Category Box */
.box-cat {
    width: 100%;
    border: 2px solid #2d8655;
    overflow: hidden;
    transition: background 0.3s ease;
}

.box-cat .box-image {
    overflow: hidden;
}

.box-cat .box-image img {
    width: 100%;
    transition: all 0.3s ease;
}

.box-cat:hover .box-image img {
    transform: scale(1.03);
}

.box-cat .box-text {
    padding: 40px 30px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.box-cat .box-text-inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.box-cat .box-text-inner h4 {
    font-weight: 400;
    font-style: normal;
    color: #2d8655;
    font-size: 32px;
    line-height: 42px;
    transition: color 0.3s ease;
    margin: 0;
}

.box-cat .box-text::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #2d8655;
    font-size: 28px;
    transition: color 0.3s ease;
    align-self: flex-end;
}

.box-cat:hover {
    background: #2d8655;
}

.box-cat:hover .box-text-inner h4,
.box-cat:hover .box-text::after {
    color: #fff;
}

/* Responsive */
@media (max-width: 1440px) {
    .box-cat .box-text-inner h4 {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 1280px) {
    .box-cat .box-text {
        padding: 30px 20px;
        min-height: 160px;
    }
    .box-cat .box-text-inner h4 {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 990px) {
    .box-cat .box-text {
        min-height: 140px;
    }
    .box-cat .box-text-inner h4 {
        font-size: 22px;
        line-height: 30px;
    }
    .box-cat .box-text::after {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .box-cat .box-text {
        padding: 25px 15px;
        min-height: 120px;
    }
    .box-cat .box-text-inner h4 {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 500px) {
    .box-cat .box-text {
        padding: 20px 10px;
        min-height: 100px;
    }
    .box-cat .box-text-inner h4 {
        font-size: 18px;
        line-height: 26px;
    }
    .box-cat .box-text::after {
        font-size: 20px;
    }
}

/* Blog Posts Title */
.xc-post-date {
    display: none;
    margin: 0;
}

.xc-home-blog .post-item .xc-post-date {
    display: block;
    font-family: 'Alimama', sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(137, 189, 66);
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    text-transform: none;
}

.xc-home-blog .post-item .post-title {
    font-family: 'Alimama', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: rgb(255, 255, 255) !important;
    font-size: 22px !important;
    line-height: 29px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 !important;
    min-height: 58px !important;
    max-height: 58px !important;
    height: 58px !important;
}

.xc-home-blog .post-item .post-title a {
    color: rgb(255, 255, 255) !important;
}

/* Blog Posts Read More Button Wrapper */
.xc-home-blog .post-item .box-text-inner {
    text-align: left !important;
}

/* Blog Posts Read More Button */
.xc-home-blog .post-item .button.is-link {
    font-family: 'Alimama', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: rgb(137, 189, 66) !important;
    font-size: 16px !important;
    line-height: 26px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
    text-transform: uppercase !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

.xc-home-blog .post-item .button.is-link::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    margin-left: auto;
    color: rgb(137, 189, 66);
    font-size: 16px;
}

/* Blog Posts Hide Divider */
.xc-home-blog .post-item .is-divider {
    display: none;
}

.xc-foot-title {
    font-size: 24px;
    margin-bottom: 15px;
	color: #89bd42;
}
/* Footer menu styles */
.xc-footer-menu .ux-menu-link__link {
    padding: 4px 0px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.xc-footer-menu .ux-menu-link__link:hover {
    color: #89bd42 !important;
}

.xc-footer-menu .ux-menu-link__icon {
    color: #89bd42;
    font-size: 14px;
}

.xc-footer-menu .ux-menu-link__text {
    display: inline-block;
}

.btn-discover {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.text-contact ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.text-contact ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.text-contact ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #2d8655;
    position: absolute;
    left: 0;
    top: 0;
}

/* Blog Template */
.xc-blog-hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
}

.xc-blog-hero .row {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.xc-blog-hero-image-col {
    position: relative;
}

.xc-blog-hero-image-col {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.xc-blog-hero-meta {
    max-width: 960px;
    margin: 30px auto 0;
    padding: 0 20px 40px;
    text-align: left;
}

.xc-blog-category {
    font-family: 'Alimama', sans-serif;
    font-weight: 400;
    color: #2d8655;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.xc-blog-hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.xc-blog-hero-title a {
    color: #111;
}

.xc-blog-hero-excerpt {
    font-size: 18px;
    color: #444;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-blog-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.xc-blog-post-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1s ease, opacity 1s ease;
}

.xc-blog-post-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.xc-blog-post-section:last-child {
    margin-bottom: 30px;
}

.xc-blog-post-section .row {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.xc-blog-col-image {
    position: relative;
}

.xc-blog-col-image .col-inner {
    position: relative;
}

.xc-blog-list-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.xc-blog-list-title a {
    color: #111;
}

.xc-blog-list-excerpt {
    color: #555;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-blog-actions {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.xc-blog-hero-link,
.xc-blog-link {
    font-family: 'Alimama', sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #2d8655;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.xc-blog-hero-link::after,
.xc-blog-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    border-bottom: 1px solid rgba(45, 134, 85, 0.4);
    transition: border-color 0.3s ease;
}

.xc-blog-hero-link:hover::after,
.xc-blog-link:hover::after {
    border-color: rgba(45, 134, 85, 1);
}

.xc-blog-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xc-blog-share-label {
    font-family: 'Alimama', sans-serif;
    font-weight: 400;
    color: #2d8655;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.xc-blog-share-buttons {
    display: flex;
    gap: 12px;
}

.xc-blog-share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #4d4d4d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.xc-blog-share-icon:hover {
    background-color: #2d8655;
    transform: translateY(-2px);
}

.xc-blog-list-item.image-right .xc-blog-list-media {
    order: 2;
    transform: translateX(80px);
    padding: 0;
}

.xc-blog-list-item.image-right .xc-blog-list-content {
    order: 1;
    transform: translateX(-80px);
    padding: 60px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .xc-blog-hero-title {
        font-size: 38px;
    }

    .xc-blog-list-item {
        gap: 0;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .xc-blog-hero .row {
        height: auto !important;
    }

    .xc-blog-hero-image-col {
        height: auto !important;
        aspect-ratio: 16 / 9;
        background-size: cover !important;
    }

    .xc-blog-hero-image-col .col-inner {
        height: auto !important;
    }

    .xc-blog-hero-meta {
        padding: 30px 20px !important;
    }

    /* Blog Post Sections Mobile */
    .xc-blog-post-section .row {
        height: auto !important;
        flex-direction: column;
    }

    .xc-blog-col-image {
        order: 1 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .xc-blog-col-image .col-inner {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .xc-blog-col-content {
        order: 2 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
    }

    .xc-blog-col-content .col-inner {
        height: auto !important;
        padding: 40px 20px !important;
        display: block !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .xc-footer-menu .ux-menu-link {
        margin-bottom: 5px;
    }
    
    .xc-footer-menu .ux-menu-link__link {
        font-size: 14px;
        padding: 5px 0px;
    }
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
   .foot-title {
        font-size: 20px;
        margin-bottom: 5px;
   }

   .row.row-reverse-mobile {
        display: flex !important;
        flex-direction: column-reverse !important;
   }
}