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

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

/* --- FOOTER SONG HUYEN WEDDING --- */
.xc-footer {
    padding-top: 25px;
    padding-bottom: 25px;
}

.xc-footer h5.widget-title {
    text-transform: uppercase;
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    position: relative;
    font-family: 'Lora', serif;
    color: #d1b483;
}

.xc-footer h5.widget-title::after {
    content: "";
    display: block;
    height: 1px;
    background: #333;
    width: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.xc-footer .ux-menu-link__link {
    border-bottom: none !important;
    padding: 0;
    min-height: unset;
    line-height: 28px;
    color: inherit;
}

.xc-footer .ux-menu-link {
    margin-bottom: 7px;
}

.xc-footer .ux-menu-link:hover .ux-menu-link__link,
.xc-footer a:hover {
    color: #d1b483;
}

/* Kích thước ảnh footer-logo */
.xc-footer .logo-footer {
    margin-bottom: 15px;
    display: flex;
    max-width: 250px;
}

.xc-footer .logo-footer img {
    width: auto;
    max-height: 100px;
}

/* Liên hệ chuẩn BEM */
.xc-contact-list {
    list-style: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.xc-contact-list__item {
    display: flex;
    align-items: flex-start;
    margin: 0 0 3px 0 !important; /* Reset mọi margin âm hoặc trái/phải của Flatsome */
    padding: 0 !important;
    line-height: 28px;
}

.xc-contact-list__icon {
    flex-shrink: 0;
    width: 30px;
    text-align: left;
    margin-top: 2px;
}

.xc-contact-list__text {
    flex-grow: 1;
}

.xc-contact-list__text a:hover {
    color: #d1b483;
}

/* Menu uppercase */
.xc-footer .menu-uppercase .ux-menu-link__text {
    text-transform: uppercase;
}

.xc-footer .social-icons {
    margin-top: 15px;
}

.xc-footer .social-icons .button.icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    line-height: 25px !important;
    padding: 0 !important;
    background-color: #bdbdbd !important;
    color: #fff !important;
    border: none !important;
    margin-right: 4px !important;
    border-radius: 50% !important;
}

.xc-footer .social-icons .button.icon:hover {
    background-color: #3d58a4 !important;
    color: #fff !important;
}

@media (max-width: 1199px) {
    .xc-footer h5.widget-title {
        font-size: 16px;
    }
}

/* --- FLOAT CONTACT WIDGET (BEM) --- */
.xc-float-contact {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

.xc-float-contact__item {
    margin-bottom: 5px;
    position: relative;
    display: flex;
    align-items: center;
}

.xc-float-contact__btn {
    width: 44px;
    height: 44px;
    line-height: 44px;
    display: inline-block;
    border: none;
    font-size: 18px;
    color: #fff;
    text-align: center;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.11);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .3s ease 0s;
}

.xc-float-contact__btn:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,.15), 0 4px 15px rgba(0,0,0,.13);
}

.xc-float-contact__btn--zalo {
    background-image: url('assets/images/zalo.svg');
    background-color: #00aeef;
}

.xc-float-contact__btn--call {
    display: flex;
    align-items: center;
    width: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.xc-float-contact__btn--call:hover {
    box-shadow: none;
}

.xc-float-contact__btn--call:hover .xc-float-contact__icon {
    box-shadow: 0 5px 10px rgba(0,0,0,.15), 0 4px 15px rgba(0,0,0,.13);
}

.xc-float-contact__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all .3s ease 0s;
}

.xc-float-contact__icon--call {
    background-image: url('assets/images/widget_icon_click_to_call.svg');
    background-color: #13544a;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.11);
}

.xc-float-contact__hotline {
    position: absolute;
    white-space: nowrap;
    left: 2px;
    background: rgba(19,84,74,.7);
    height: 44px;
    padding: 0 20px 0 64px;
    line-height: 44px;
    color: #fff;
    font-weight: 700;
    border-radius: 22px;
    display: none;
    z-index: 1;
    pointer-events: none;
}

/* --- BACK TO TOP (BEM) --- */
.xc-back-to-top {
    position: fixed;
    bottom: 110px;
    right: 20px;
    z-index: 99;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.xc-back-to-top:hover {
    opacity: 0.8;
}

.xc-back-to-top__img {
    border: 0;
    display: block;
    max-width: 40px; /* Optional, to ensure it doesn't get too large */
}

/* --- ABSOLUTE FOOTER (COPYRIGHT) --- */
.absolute-footer {
    background-color: #3c634f !important;
    padding: 0 !important;
}

.absolute-footer .pull-left {
    float: none !important;
    width: 100%;
    text-align: center;
}

.absolute-footer .copyright-footer {
    font-size: 14px;
    line-height: 45px;
    display: inline-block;
    color: #333 !important;
}

@media (max-width: 479px) {
    .absolute-footer .copyright-footer {
        line-height: 22px;
        padding: 15px 0;
    }
}

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


}

/* --- COMMON CONTENT RESETS --- */
.entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* --- SECTION TITLE --- */
h2.xc-section-title {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(60, 99, 79);
    font-size: 50px;
    line-height: 75px;
    margin-bottom: 20px; /* Optional spacing */
    text-align: center; /* Usually these titles are centered */
}

@media (max-width: 767px) {
    h2.xc-section-title {
        font-size: 32px;
        line-height: 1.4;
    }
}

/* --- SERVICE BOX IMAGE --- */
.xc-home-services .box-service .box-image {
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    height: auto !important; 
}

.xc-home-services .box-service .box-image::before {
    content: "";
    display: block;
    padding-bottom: 60%;
}

.xc-home-services .box-service .box-image > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xc-home-services .box-service .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.xc-home-services .box-service.has-hover:hover .box-image img,
.xc-home-services .box-service:hover .box-image img {
    transform: scale(1.1);
}

/* --- SERVICE BOX TEXT --- */
.xc-home-services .box-text h4 {
    font-size: 20px;
    color: #13544a;
    font-weight: 500;
    margin-top: 20px;
    line-height: 28px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.xc-home-services .box-text h4:hover,
.xc-home-services .box-service.has-hover:hover .box-text h4,
.xc-home-services .box-service:hover .box-text h4 {
    color: #f00;
}

.xc-home-services .box-text p {
    font-size: 16px;
    line-height: 24px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* --- YOUTUBE PLAYLIST --- */
.xc-youtube-playlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.xc-youtube-playlist__left {
    width: 65.72%;
}

.xc-youtube-playlist__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.31%;
    overflow: hidden;
}

.xc-youtube-playlist__iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.xc-youtube-playlist__right {
    width: 31.62%;
    box-sizing: border-box;
    padding: 15px 0 20px 0;
    box-shadow: 0 3px 16px rgba(205,205,205,.9);
    background: #fff;
}

.xc-youtube-playlist__item {
    display: table;
    padding: 7px 15px;
    box-sizing: border-box;
    line-height: 22px;
    font-size: 13px;
    width: 100%;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.xc-youtube-playlist__item:nth-child(2n) {
    background: #f6f6f6;
}

.xc-youtube-playlist__item:hover,
.xc-youtube-playlist__item.active {
    color: #d1b483;
}

.xc-youtube-playlist__item .icon {
    display: table-cell;
    width: 30px;
    vertical-align: middle;
    font-size: 23px;
}

.xc-youtube-playlist__item .text {
    display: table-cell;
    vertical-align: middle;
    width: calc(100% - 35px);
    height: 44px;
    overflow: hidden;
}

/* Pagination Dots */
.xc-youtube-playlist__pagination {
    margin-top: 15px;
    text-align: center;
}

.xc-youtube-playlist__dot {
    display: inline-block;
    line-height: 29px;
    width: 29px;
    text-align: center;
    background: #efefef;
    overflow: hidden;
    border-radius: 5px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.xc-youtube-playlist__dot:last-child {
    margin-right: 0;
}

.xc-youtube-playlist__dot:hover,
.xc-youtube-playlist__dot.active {
    color: #d1b483;
    background: #3c634f;
}

@media (max-width: 991px) {
    .xc-youtube-playlist {
        flex-direction: column;
    }
    .xc-youtube-playlist__left,
    .xc-youtube-playlist__right {
        width: 100%;
    }
    .xc-youtube-playlist__right {
        margin-top: 20px;
    }
    .xc-youtube-playlist__item .text {
        height: auto;
    }
}

/* --- ABOUT US --- */
/* Cân bằng chiều cao 2 cột và kéo giãn ảnh bên trái */
.xc-home-about-us .row {
    align-items: stretch;
    position: relative;
    margin-bottom: 40px; /* Nhường chỗ cho đổ bóng */
}

.xc-home-about-us .row::after {
    content: "";
    display: block;
    width: 100%;
    height: 30px;
    background: url('assets/images/bg-shadowgt.png') no-repeat center top;
    background-size: contain;
    position: absolute;
    bottom: -30px;
    left: 0;
}

.xc-home-about-us .col > .col-inner {
    height: 100%;
}

.xc-home-about-us .col:first-child .col-inner .img,
.xc-home-about-us .col:first-child .col-inner .img-inner {
    height: 100%;
    margin-bottom: 0;
}

.xc-home-about-us .col:first-child .img-inner img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Background cột phải */
.xc-home-about-us .col:nth-child(2) > .col-inner {
    background: #3c634f;
    padding: 20px 20px 20px 25px;
    box-sizing: border-box;
}

.xc-home-about-us h2.xc-section-title {
    color: #d1b483;
    margin: 0;
    padding-bottom: 30px;
    text-align: left;
}

.xc-home-about-us .col:nth-child(2) > .col-inner > p:first-of-type {
    color: #d1b483;
    line-height: 23px;
    padding-bottom: 18px;
    border-bottom: 1px dotted #888;
}

/* Các box icon và căn giữa icon với text */
.xc-home-about-us .icon-box {
    margin-top: 10px;
    margin-bottom: 15px;
    align-items: center; /* Quan trọng: căn thẳng hàng text và icon */
}

.xc-home-about-us .icon-box:last-child {
    margin-bottom: 0;
}

.xc-home-about-us .icon-box-text p {
    color: #d1b483;
    line-height: 23px;
    margin: 0;
}

@media (max-width: 991px) {
    .xc-home-about-us .row::after {
        display: none; /* Ẩn đổ bóng ở mobile theo bản gốc */
    }
}

/* --- PARTNERS SLIDER --- */
/* Căn giữa chữ và mô tả theo đúng bản gốc */
.xc-home-partners .text p {
    width: 59.4%;
    margin: 0 auto 45px auto;
    line-height: 23px;
    text-align: center;
}

@media (max-width: 991px) {
    .xc-home-partners .text p {
        width: 80%;
        margin-bottom: 30px;
    }
}
@media (max-width: 767px) {
    .xc-home-partners .text p {
        width: 100%;
    }
}

.xc-home-partners .slider-wrapper {
    margin-bottom: 55px;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Bỏ padding ở viewport để Flickity không tính toán sai lệch */
.xc-home-partners .flickity-viewport {
    padding: 0 !important;
}

/* Kích thước và căn giữa logo */
.xc-home-partners .slider .ux-logo {
    min-width: 25% !important; /* Dùng min-width để đè được inline style width: ... !important của Flatsome */
    max-width: none !important;
}

@media (max-width: 991px) {
    .xc-home-partners .slider .ux-logo {
        min-width: 33.33% !important;
    }
}

@media (max-width: 767px) {
    .xc-home-partners .slider .ux-logo {
        min-width: 50% !important;
    }
}

.xc-home-partners .slider .ux-logo-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 60px;
    padding: 0 16px !important;
}

/* Nút Next / Prev (Mũi tên) */
.xc-home-partners .slider .flickity-prev-next-button {
    width: 35px !important;
    height: 52px !important;
    background: url('assets/images/owl-nav2.png') no-repeat center center !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    opacity: 0.3 !important;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.xc-home-partners .slider .flickity-prev-next-button:hover {
    opacity: 1 !important;
    background-color: transparent !important;
}

/* Ẩn icon SVG mặc định của Flatsome */
.xc-home-partners .slider .flickity-prev-next-button svg {
    display: none !important;
}

/* Vị trí nút Prev (đẩy ra ngoài khoảng padding) */
.xc-home-partners .slider .flickity-prev-next-button.previous {
    left: -50px !important;
    transform: translateY(-50%) !important;
}

/* Vị trí nút Next (Lật ngược icon mũi tên và đẩy ra ngoài khoảng padding) */
.xc-home-partners .slider .flickity-prev-next-button.next {
    right: -50px !important;
    transform: translateY(-50%) scaleX(-1) !important;
}

/* --- HOME POSTS (CẨM NANG CƯỚI) --- */
.xc-home-posts .text p {
    width: 59.4%;
    margin: 0 auto 45px auto;
    line-height: 23px;
    text-align: center;
}

@media (max-width: 991px) {
    .xc-home-posts .text p {
        width: 80%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .xc-home-posts .text p {
        width: 100%;
    }
}

/* Home Post Left (Cột trái) */
.xc-home-posts .home-post-left .box-blog-post {
    box-shadow: 0 5px 25px rgba(160,160,160,.9);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.xc-home-posts .home-post-left .image-cover {
    padding-top: 70.3% !important;
}

.xc-home-posts .home-post-left .box-text {
    padding: 25px 13px 45px 13px !important;
    text-align: left !important;
}

.xc-home-posts .home-post-left .post-title {
    font-size: 18px;
    line-height: 23px;
    max-height: 46px;
    overflow: hidden;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.xc-home-posts .home-post-left .post-title a:hover,
.xc-home-posts .home-post-right .post-title a:hover {
    color: #d1b483;
}

.xc-home-posts .home-post-left .post-meta {
    margin: 10px 0;
    font-size: 13px;
    color: #808080;
    opacity: 1;
    display: flex;
    align-items: center;
}

.xc-home-posts .home-post-left .post-meta::before,
.xc-home-posts .home-post-right .post-meta::before {
    content: "\f073";
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    font-weight: 400;
}

.xc-home-posts .home-post-left .is-divider {
    display: none;
}

.xc-home-posts .home-post-left .from_the_blog_excerpt {
    line-height: 27px;
    max-height: 54px;
    overflow: hidden;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

/* Button Xem chi tiết */
.xc-home-posts .home-post-left .button {
    font-size: 16px;
    color: #d1b483 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    min-height: auto;
    line-height: normal;
}
.xc-home-posts .home-post-left .button:hover {
    letter-spacing: .3px;
    box-shadow: none !important;
    color: #d1b483 !important;
    background: transparent !important;
}
.xc-home-posts .home-post-left .button::after {
    content: "\f105";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

/* Home Post Right (Cột phải) */
.xc-home-posts .home-post-right .col {
    padding-bottom: 0;
    margin-bottom: 10px;
}

.xc-home-posts .home-post-right .box-vertical {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.xc-home-posts .home-post-right .col:last-child .box-vertical {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.xc-home-posts .home-post-right .box-image {
    width: 32.58% !important;
    display: block !important;
    border-radius: 8px;
    overflow: hidden;
}

.xc-home-posts .home-post-right .image-cover {
    padding-top: 58.33% !important;
}

.xc-home-posts .home-post-right .box-text {
    width: 64.04% !important;
    display: block !important;
    padding: 0 !important;
    text-align: left !important;
}

.xc-home-posts .home-post-right .post-title {
    font-size: 16px;
    line-height: 21px;
    max-height: 42px;
    overflow: hidden;
    margin-bottom: 7px;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.xc-home-posts .home-post-right .post-meta {
    font-size: 13px;
    color: #808080;
    display: flex;
    align-items: center;
    opacity: 1;
}

.xc-home-posts .home-post-right .is-divider,
.xc-home-posts .home-post-right .from_the_blog_excerpt {
    display: none !important;
}

/* Mobile Responsiveness for Left Column to match Right Column */
@media (max-width: 849px) {
    .xc-home-posts .home-post-left .col {
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .xc-home-posts .home-post-left .box-blog-post,
    .xc-home-posts .home-post-right .box-vertical {
        box-shadow: none;
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        overflow: visible;
        gap: 15px;
    }

    .xc-home-posts .home-post-left .button {
        display: none !important;
    }

    .xc-home-posts .home-post-left .box-image,
    .xc-home-posts .home-post-right .box-image {
        width: 35% !important;
        display: block !important;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .xc-home-posts .home-post-left .image-cover,
    .xc-home-posts .home-post-right .image-cover {
        padding-top: 65% !important;
    }

    .xc-home-posts .home-post-left .box-text,
    .xc-home-posts .home-post-right .box-text {
        width: calc(65% - 15px) !important;
        padding: 0 !important;
    }

    .xc-home-posts .home-post-left .post-title,
    .xc-home-posts .home-post-right .post-title {
        font-size: 16px;
        line-height: 21px;
        max-height: 42px;
    }

    .xc-home-posts .home-post-left .from_the_blog_excerpt {
        display: none !important;
    }
}

/* --- Y KIEN KHACH HANG (TESTIMONIAL) --- */
.xc-home-testimonial {
    padding: 47px 0 !important;
    background: url('assets/bg-ykienkhachhang.png') center no-repeat;
    background-size: cover;
}

.xc-home-testimonial .xc-row-slider {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px; /* Thêm max-width để giống row gốc */
}

.xc-home-testimonial .xc-row-slider::before,
.xc-home-testimonial .xc-row-slider::after {
    display: none;
}

.xc-home-testimonial .xc-row-slider .col {
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding: 0 !important;
}

.xc-home-testimonial .box {
    width: 100%;
    max-width: 640px;
    display: flex !important;
    flex-direction: row;
    gap: 30px;
    margin: 0 auto;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
}

.xc-home-testimonial .box-image {
    width: calc(50% - 15px) !important;
    display: flex;
    justify-content: center;
    margin: 0 !important;
}

.xc-home-testimonial .box-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.xc-home-testimonial .box-text {
    width: calc(50% - 15px) !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    text-align: left !important;
}

.xc-home-testimonial .box-text-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xc-home-testimonial .box-text h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.3;
}

.xc-home-testimonial .box-text p {
    white-space: pre-wrap;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Slick Dots Styling */
.xc-home-testimonial .slick-dots {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
    margin-top: 40px;
}

.xc-home-testimonial .slick-dots li {
    display: inline-block;
    background: #fff;
    margin-right: 15px;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 1px solid #d1d1d1;
    outline: none;
    cursor: pointer;
}

.xc-home-testimonial .slick-dots li:last-child {
    margin-right: 0;
}

.xc-home-testimonial .slick-dots li.slick-active {
    background: #d1b483;
    border-color: #d1b483;
}

.xc-home-testimonial .slick-dots li button {
    border: none;
    background: none;
    outline: none;
    font-size: 0;
    color: transparent;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .xc-home-testimonial .box {
        gap: 20px;
    }
}

@media (max-width: 479px) {
    .xc-home-testimonial h2.xc-section-title {
        font-size: 38px;
    }
    
    .xc-home-testimonial .box {
        flex-wrap: wrap;
    }
    
    .xc-home-testimonial .box-image {
        width: 100% !important;
        padding: 0 40px !important;
        box-sizing: border-box;
    }

    .xc-home-testimonial .box-text {
        width: 100% !important;
    }
    
    .xc-home-testimonial .box-text h4 {
        text-align: center !important;
    }
    
    .xc-home-testimonial .box-text p {
        text-align: justify !important;
        padding: 0 10px;
    }
}

/* --- FORM LIEN HE (REQUEST QUOTE) --- */
.xc-home-contact {
    padding: 40px 0 !important;
    background: #f2f2f2 !important;
}

.xc-home-contact .text {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xc-home-contact .text p {
    margin: 0;
}

.xc-home-contact .text span {
    font-size: 18px !important;
    color: #d1b483;
    font-weight: 700;
}

.xc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xc-contact-form__fields {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

/* Sửa lỗi hiển thị ngang: Bọc mỗi input trong 1 div để xuống dòng */
.xc-contact-form__field {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* CF7 sinh ra thẻ p tự động, cần ép thẻ p rộng 100% và căn giữa để các ô (như thẻ select) không bị co hẹp */
.xc-contact-form__field p {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

.xc-contact-form__field .wpcf7-form-control-wrap {
    width: 100%;
    max-width: 480px;
    display: block;
}

.xc-contact-form__input {
    width: 100% !important;
    max-width: 480px;
    box-sizing: border-box;
    background: #fff !important;
    border-radius: 3px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 17px !important;
    height: auto !important;
    font-size: 16px !important;
    color: #333 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.xc-contact-form__input:focus {
    border-color: #d1b483 !important;
    box-shadow: 0 0 5px rgba(209, 180, 131, 0.5) !important;
}

/* Fix lỗi mất icon mũi tên của thẻ select do ghi đè background: #fff */
.xc-contact-form__select {
    background-image: url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-position: right 17px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px auto !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.xc-contact-form__action {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.xc-contact-form__submit {
    width: 130px !important;
    line-height: 40px !important;
    border-radius: 5px !important;
    background: #3c634f !important;
    font-size: 16px !important;
    text-align: center;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 5px 10px rgba(184, 225, 219, 0.42) !important;
    cursor: pointer;
    border: none !important;
    color: #fff !important;
    padding: 0 !important;
    min-height: auto !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

.xc-contact-form__submit:hover {
    background: #13544a !important;
    color: #fff !important;
}

/* --- TOP BAR (HEADER EXTENDED) --- */
#top-bar {
    padding: 10px 0 !important;
    border-bottom: 1px solid #d1b483 !important;
    background-color: #ffffff !important;
    min-height: auto !important;
}

#top-bar .flex-row {
    justify-content: space-between;
}

/* Ẩn phần tử văn bản nháp (Add anything here) */
#top-bar .html_topbar_left {
    display: none !important;
}

/* Hotline Button (Left) */
#top-bar .header-button-1 .button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#top-bar .header-button-1 .button:hover {
    color: #d1b483 !important;
}

#top-bar .header-button-1 .button::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 322 322'%3E%3Cg%3E%3Cpath d='M275.445 135.123c.387-45.398-38.279-87.016-86.192-92.771-.953-.113-1.991-.285-3.09-.467-2.372-.393-4.825-.797-7.3-.797-9.82 0-12.445 6.898-13.136 11.012-.672 4-.031 7.359 1.902 9.988 3.252 4.422 8.974 5.207 13.57 5.836 1.347.186 2.618.359 3.682.598 43.048 9.619 57.543 24.742 64.627 67.424.173 1.043.251 2.328.334 3.691.309 5.102.953 15.717 12.365 15.717h.001c.95 0 1.971-.082 3.034-.244 10.627-1.615 10.294-11.318 10.134-15.98-.045-1.313-.088-2.555.023-3.381.03-.208.045-.417.046-.626z' fill='%23000'/%3E%3Cpath d='M176.077 25.688c1.275.092 2.482.18 3.487.334 70.689 10.871 103.198 44.363 112.207 115.605.153 1.211.177 2.688.202 4.252.09 5.566.275 17.145 12.71 17.385l.386.004c3.9 0 7.002-1.176 9.221-3.498 3.871-4.049 3.601-10.064 3.383-14.898-.053-1.186-.104-2.303-.091-3.281.899-72.862-62.171-138.933-134.968-141.39-.302-.01-.59.006-.881.047a6.09 6.09 0 0 1-.862.047c-.726 0-1.619-.063-2.566-.127C177.16.09 175.862 0 174.546 0c-11.593 0-13.797 8.24-14.079 13.152-.65 11.352 10.332 12.151 15.61 12.536zM288.36 233.703a224.924 224.924 0 0 1-4.512-3.508c-7.718-6.211-15.929-11.936-23.87-17.473a1800.92 1800.92 0 0 1-4.938-3.449c-10.172-7.145-19.317-10.617-27.957-10.617-11.637 0-21.783 6.43-30.157 19.109-3.71 5.621-8.211 8.354-13.758 8.354-3.28 0-7.007-.936-11.076-2.783-32.833-14.889-56.278-37.717-69.685-67.85-6.481-14.564-4.38-24.084 7.026-31.832 6.477-4.396 18.533-12.58 17.679-28.252-.967-17.797-40.235-71.346-56.78-77.428-7.005-2.576-14.365-2.6-21.915-.06-19.02 6.394-32.669 17.623-39.475 32.471-6.577 14.347-6.28 31.193.859 48.717 20.638 50.666 49.654 94.84 86.245 131.293 35.816 35.684 79.837 64.914 130.839 86.875 4.597 1.978 9.419 3.057 12.94 3.844 1.2.27 2.236.5 2.991.707.415.113.843.174 1.272.178l.403.002h.002c23.988 0 52.791-21.92 61.637-46.91 7.75-21.882-6.4-32.698-17.77-41.388zM186.687 83.564c-4.107.104-12.654.316-15.653 9.021-1.403 4.068-1.235 7.6.5 10.498 2.546 4.252 7.424 5.555 11.861 6.27 16.091 2.582 24.355 11.48 26.008 28 .768 7.703 5.955 13.082 12.615 13.082h.001c.492 0 .995-.029 1.496-.09 8.01-.953 11.893-6.838 11.542-17.49.128-11.117-5.69-23.738-15.585-33.791-9.929-10.084-21.898-15.763-32.785-15.5z' fill='%23000'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

#top-bar .header-button-1 .button span {
    font-size: 16px;
}

/* Social Icons (Right) */
#top-bar .social-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

#top-bar .social-icons a {
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    margin: 0 !important;
}

#top-bar .social-icons a i {
    display: none !important;
}

#top-bar .social-icons a.facebook {
    background-image: url('assets/icon-facebook.png');
}

#top-bar .social-icons a.tiktok {
    background-image: url('assets/icon-tiktok.png');
}

#top-bar .social-icons a.youtube {
    background-image: url('assets/icon-youtube.png');
}

/* --- RESPONSIVE TOP BAR (MOBILE) --- */
@media (max-width: 849px) {
    /* Đẩy Hotline sang trái, Social sang phải */
    #top-bar .show-for-medium .nav {
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    #top-bar .show-for-medium .nav > li {
        margin: 0 !important;
    }
}

/* --- MAIN MENU (HEADER MAIN) --- */
.header-main {
    background-color: #fff !important;
}

.header-main .header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Menu Items Level 1 */
.header-main .header-nav > li {
    background: url('assets/bg-li.png') no-repeat left center;
    margin: 0 !important;
}

.header-main .header-nav > li:first-child {
    background: none !important;
}

.header-main .header-nav > li > a {
    font-weight: 500 !important;
    padding: 10px 30px !important;
    font-size: 16px !important;
    color: #333 !important;
    text-transform: uppercase;
}

.header-main .header-nav > li > a:hover {
    color: #13544a !important;
    background: none !important;
}

/* Ẩn dấu phân cách dọc mặc định của Flatsome */
.header-main .nav-divided > li + li > a::after {
    display: none !important;
}

/* Dropdown Sub-menu */
.header-main .nav-dropdown {
    padding: 10px 0 !important;
    box-shadow: -1px 2px 10px 0 rgba(0,0,0,.5) !important;
    background: #fff !important;
    border: none !important;
    min-width: 13.75em !important;
}

/* Ép thẻ li không bị lệch */
.header-main .nav-dropdown > li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

.header-main .nav-dropdown > li > a {
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: url('assets/bg-li-menu.png') no-repeat 10px center !important;
    padding: 10px 12px 10px 22px !important;
    font-weight: normal !important;
    font-size: 17px !important;
    color: #000 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    border-bottom: none !important;
}

.header-main .nav-dropdown > li > a:hover {
    color: #13544a !important;
}

/* --- BANNER TRANG CHỦ (HOME SLIDER) --- */
.xc-home-slider::before {
    content: "";
    background: url('assets/headerbg3.png') repeat-x bottom;
    padding-bottom: 15px;
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 10;
    pointer-events: none; /* Tránh cản trở thao tác vuốt slider */
}

/* --- RESPONSIVE HEADER MAIN & MOBILE MENU --- */
@media screen and (max-width: 849px) {
    /* 1. Sửa Logo bám sát trái thay vì giữa */
    .header-inner.medium-logo-center .logo {
        order: 1 !important;
        margin: 0 !important;
        text-align: left !important;
        flex: 1 1 auto !important;
    }
    
    .header-inner.medium-logo-center .logo img {
        margin: 0 !important; /* Quan trọng: Ghi đè margin: 0 auto của ảnh */
    }
    
    .header-inner.medium-logo-center .flex-left {
        display: none !important; /* Ẩn cột spacer rỗng bên trái */
    }
    
    .header-inner.medium-logo-center .flex-right {
        order: 2 !important;
        flex: 0 1 auto !important;
        margin-left: auto !important;
    }

    /* 2. Icon Hamburger to và đậm hơn */
    .nav-icon.has-icon a {
        padding: 0 !important;
    }
    .nav-icon.has-icon i.icon-menu {
        font-size: 2.2em !important;
        color: #333 !important;
        -webkit-text-stroke: 1.5px #333; /* Làm nét dày hơn */
    }
}

/* --- MOBILE MENU OFFCANVAS (TRƯỢT TỪ TRÁI) --- */
/* Màu nền xanh lá */
.off-canvas-left .mfp-content {
    background-color: #3c634f !important;
    padding-top: 10px !important;
    padding-left: 10px !important;
}

/* 3. Sửa Font, màu và kích thước Menu */
.nav-sidebar.nav-vertical > li > a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    padding: 10px !important;
    margin: 0 !important;
}

/* Xoá gạch viền chia cách mặc định của theme */
.nav-sidebar.nav-vertical > li + li {
    border-top: none !important;
}

/* Menu con (Dropdown) */
.nav-sidebar.nav-vertical .children a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: normal !important;
    text-transform: none !important;
    padding: 10px 10px 10px 20px !important;
}

/* 4. Sửa Hiệu ứng Sub-menu (xoá transform fade-in thừa của Flatsome) */
.nav-sidebar.nav-vertical .children {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    left: auto !important;
    transition: none !important;
    background: transparent !important;
    display: none; /* Mặc định ẩn, để JS của theme toggle trượt mở */
}

/* 5. Đổi Icon Sub-menu (Toggle) thành + / - */
.nav-sidebar.nav-vertical button.toggle {
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
}
.nav-sidebar.nav-vertical button.toggle i.icon-angle-down {
    display: none !important; /* Ẩn mũi tên mặc định */
}
.nav-sidebar.nav-vertical button.toggle::before {
    content: "+";
    display: block;
    font-size: 26px;
    font-weight: normal;
    color: #fff;
    line-height: 1;
}
.nav-sidebar.nav-vertical li.active > button.toggle::before {
    content: "-"; /* Khi mở ra thì thành dấu trừ */
}

/* 6. Đổi Icon Close (nút tắt X) */
.off-canvas-left .mfp-close {
    opacity: 1 !important;
    right: 10px !important;
    top: 10px !important;
    background: transparent !important;
    color: #fff !important;
}
.off-canvas-left .mfp-close svg {
    display: none !important; /* Ẩn SVG mặc định */
}
.off-canvas-left .mfp-close::before {
    content: "\00d7"; /* Mã dấu X */
    font-size: 45px;
    font-weight: 300;
    color: #fff;
    line-height: 40px;
    display: block;
}

/* --- BREADCRUMB --- */
.xc-breadcrumb {
    padding-top: 20px;
    background: transparent;
}

/* Style for Rank Math breadcrumb output to match original font & color */
.xc-breadcrumb .rank-math-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

.xc-breadcrumb .rank-math-breadcrumb p {
    margin: 0;
}

.xc-breadcrumb .rank-math-breadcrumb a,
.xc-breadcrumb .rank-math-breadcrumb span {
    display: inline-block;
    vertical-align: middle;
}

.xc-breadcrumb .rank-math-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease 0s;
}

.xc-breadcrumb .rank-math-breadcrumb a:hover {
    color: inherit;
    text-decoration: none;
}

.xc-breadcrumb .rank-math-breadcrumb .separator {
    margin: 0 15px;
    font-size: 0; /* Hide default text separator */
}

.xc-breadcrumb .rank-math-breadcrumb .separator::after {
    content: "\f101"; /* Double right angle, or leave empty if original had none but we need an icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    display: inline-block;
}

/* ==========================================
   ARCHIVE PAGE TITLE
========================================== */
.archive-page-header .page-title {
    font-family: 'Lora', serif;
    font-size: 50px !important;
    color: #3c634f !important;
    margin-bottom: 20px;
    text-align: center !important;
    text-transform: none !important;
    font-weight: normal;
    letter-spacing: normal;
    display: block !important;
    width: 100%;
}
.archive-page-header .page-title span {
    display: inline-block;
}
@media (max-width: 479px) {
    .archive-page-header .page-title {
        font-size: 38px !important;
    }
}

/* ==========================================
   IMAGEBOX POST (ARCHIVE/NEWS)
========================================== */
.blog-archive .box-blog-post {
    box-shadow: 0 5px 16px rgba(205,205,205,.9);
    border: 1px solid #efefef;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s ease;
}

.blog-archive .box-blog-post .box-text-inner {
    padding: 15px 8px 35px 8px !important;
    text-align: left;
}

.blog-archive .box-blog-post .post-title {
    font-size: 17px !important;
    line-height: 24px !important;
    text-align: left;
    margin-bottom: 0;
    font-family: 'HelveticaNeueB', sans-serif !important;
    font-weight: bold;
    text-transform: none !important;
    min-height: 48px;
}

.blog-archive .box-blog-post .post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    color: inherit;
}

.blog-archive .box-blog-post .post-title a:hover {
    color: #d1b483;
}

.blog-archive .box-blog-post .is-divider {
    display: none;
}

.blog-archive .box-blog-post .xc-view-count {
    margin: 10px 0 !important;
    display: block !important;
    font-size: 13px !important;
    color: #808080 !important;
    margin-left: 0 !important;
}
.blog-archive .box-blog-post .xc-view-count i {
    margin-right: 6px;
}

.blog-archive .box-blog-post .from_the_blog_excerpt {
    line-height: 26px;
    max-height: 52px;
    overflow: hidden;
    margin-bottom: 23px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hide default Flatsome date badge */
.blog-archive .badge.post-date {
    display: none !important;
}

/* Style for actual "Xem thêm" button output via PHP */
.blog-archive .box-blog-post .commonXemThem {
    width: 130px;
    line-height: 40px;
    border-radius: 5px;
    background: #3c634f;
    font-size: 16px;
    text-align: center;
    display: block !important;
    margin: 15px auto 0 auto;
    box-shadow: 0 5px 10px rgba(184,225,219,.42);
    color: #fff;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
}

.blog-archive .box-blog-post .commonXemThem i {
    margin-left: 5px;
}

.blog-archive .box-blog-post:hover .commonXemThem {
    background: #13544a;
    color: #fff;
}

/* Hide Flatsome default Read More button ONLY in archive since we have custom one */
.blog-archive .box-blog-post .button {
    display: none !important;
}

/* ==========================================
   RIGHT SIDEBAR MENU
========================================== */
.post-sidebar .widget_nav_menu ul.menu {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: 30px;
}

.post-sidebar .widget_nav_menu ul.menu > li {
    margin-bottom: 10px;
    border-radius: 15px;
    background: url('https://songhuyenwedding.com/css/icon/bg-startmenuLeft.png') left center no-repeat, #e1e1e1;
    box-sizing: border-box;
    transition: .3s all ease-in-out;
    border-top: none !important;
}

.post-sidebar .widget_nav_menu ul.menu > li::before {
    display: none !important; /* Hide Flatsome default icon */
}

.post-sidebar .widget_nav_menu ul.menu > li.current-menu-item,
.post-sidebar .widget_nav_menu ul.menu > li:hover {
    background: url('https://songhuyenwedding.com/css/icon/bg-startmenuLeftactive.png') left center no-repeat, url('https://songhuyenwedding.com/css/icon/bg-menuLeft.png') top left;
    color: #fff;
}

.post-sidebar .widget_nav_menu ul.menu > li > a {
    display: block;
    box-sizing: border-box;
    padding: 10px 10px 10px 57px;
    transition: none;
    color: inherit;
    font-weight: normal;
}

/* ==========================================
   SIDEBAR FORM
========================================== */
.xc-sidebar-form {
    padding: 30px 10px;
    box-sizing: border-box;
    box-shadow: 0 5px 25px rgba(160,160,160,.9);
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
}

.xc-sidebar-form__header {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
}

.xc-sidebar-form__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.xc-sidebar-form__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xc-sidebar-form__info {
    margin-left: 15px;
}

.xc-sidebar-form__name {
    font-size: 16px;
    color: #ab834a;
    display: block;
    margin-bottom: 5px;
    font-family: 'HelveticaNeueB', sans-serif;
    font-weight: bold;
}

.xc-sidebar-form__tel {
    font-size: 15px;
    color: #808080;
}

.xc-sidebar-form__tel i {
    margin-right: 5px;
}

.xc-sidebar-form__body input,
.xc-sidebar-form__body textarea {
    background: #f6f6f6 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    width: 100%;
    margin-bottom: 16px !important;
    font-family: 'HelveticaNeue', sans-serif;
    font-size: 15px;
    outline-color: #ab834a;
    box-shadow: none !important;
}

.xc-sidebar-form__body textarea {
    height: 128px;
    padding: 12px;
}

.xc-sidebar-form input.xc-sidebar-form__submit[type="submit"] {
    width: 100%;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    line-height: 40px !important;
    min-height: 40px !important;
    border-radius: 5px !important;
    background: #3c634f !important;
    font-size: 16px !important;
    text-align: center;
    display: block;
    margin: auto;
    box-shadow: 0 5px 10px rgba(184,225,219,.42) !important;
    color: #fff !important;
    transition: all .3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

.xc-sidebar-form input.xc-sidebar-form__submit[type="submit"]:hover {
    background: #3c634f !important;
    box-shadow: 0 5px 10px rgba(184,225,219,.42) !important; /* override Flatsome's inset shadow */
    filter: brightness(110%);
}
/* Khắc phục lỗi wpautop của CF7 sinh ra thẻ p và br làm hỏng khoảng cách */
.xc-sidebar-form p {
    margin: 0;
    padding: 0;
}

/* Remove Flatsome default divider line between columns in archive */
@media screen and (min-width: 850px) {
    .row-divided > .col + .col:not(.large-12) {
        border-left: none !important;
    }
}

/* ==========================================
   PAGINATION (PHÂN TRANG)
========================================== */
.nav-pagination.page-numbers {
    margin-top: 15px;
    padding: 0;
    list-style: none;
    text-align: center;
    display: block;
}

.nav-pagination.page-numbers li {
    display: inline-block;
    line-height: 29px;
    width: 29px;
    height: 29px;
    text-align: center;
    background: #efefef;
    overflow: hidden;
    border-radius: 5px;
    margin: 0 3px;
    border: none !important;
}

.nav-pagination.page-numbers li a,
.nav-pagination.page-numbers li span {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 29px !important;
    color: #333;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-weight: normal;
    border-radius: 0 !important;
}

.nav-pagination.page-numbers li a:hover,
.nav-pagination.page-numbers li span.current {
    color: #d1b483 !important;
    background: #3c634f !important;
}

.nav-pagination.page-numbers li i {
    font-size: 11px;
}

/* Removed duplicate single post form flexbox styles */

/* ==========================================
   SINGLE POST CONTENT & STYLING
========================================== */

@font-face {
    font-family: 'UTMViceroyJF';
    src: url('fonts/UTMViceroyJF.eot?');
    src: url('fonts/UTMViceroyJF.eot?#iefix') format('embedded-opentype'),
         url('fonts/UTMViceroyJF.woff2') format('woff2'),
         url('fonts/UTMViceroyJF.woff') format('woff'),
         url('fonts/UTMViceroyJF.ttf') format('truetype'),
         url('fonts/UTMViceroyJF.svg#UTMViceroyJF') format('svg');
    font-weight: normal;
    font-style: normal;
}

.blog-single .entry-header-text {
    text-align: left !important;
    padding-left: 0 !important;
}

/* Ẩn các thuộc tính mặc định của Flatsome (Category, Divider, Meta cũ) */
.blog-single .entry-category,
.blog-single .entry-divider,
.blog-single .entry-meta {
    display: none !important;
}

.blog-single .entry-title {
    font-size: 50px !important;
    color: #ac834a !important;
    margin-bottom: 10px;
    font-family: 'UTMViceroyJF', serif !important;
    margin-top: -15px;
    text-align: left;
    text-transform: none !important;
    line-height: 1.2 !important;
}

.blog-single .entry-content {
    text-align: justify;
    line-height: 24px;
    font-size: 15px;
    color: #333;
}

.blog-single .entry-content a {
    color: #0000ff;
}

.blog-single .entry-content a:hover {
    color: #ac834a;
}

.blog-single .entry-content h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
    color: inherit;
    font-family: inherit;
    font-weight: bold;
}

.blog-single .entry-content h3 {
    font-size: 1.17em;
    margin: 1em 0;
    color: inherit;
    font-weight: bold;
}

/* Reset lại font của đoạn quote */
.blog-single .entry-content blockquote {
    border-left: 5px solid #d2d2d2;
    padding: 10px 15px;
    margin-left: 20px;
    background: #f2f2f2;
    font-size: inherit;
    font-weight: inherit;
    line-height: 150%;
    color: inherit;
    font-style: normal;
}

/* ==========================================
   SHARE BUTTONS
========================================== */
/* Ẩn gạch ngang của Flatsome */
.blog-single .blog-share .is-divider {
    display: none !important;
}

/* Container chứa share */
.blog-single .blog-share {
    /* Đã giữ nguyên vị trí mặc định theo ý người dùng */
}

.blog-single .blog-share .social-icons {
    display: block;
}

/* Reset lại button circle thành hình chữ nhật */
.blog-single .blog-share .social-icons a.button.circle {
    border-radius: 3px !important;
    line-height: 20px !important;
    min-height: auto;
    height: 22px;
    overflow: hidden;
    color: #fff !important;
    margin-left: 10px !important;
    margin-right: -4px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 5px 25px rgba(160,160,160,.9) !important;
    font-size: 15px !important;
    display: inline-block;
    padding: 0 10px !important;
    border: 1px solid transparent !important;
    min-width: auto !important;
    text-transform: capitalize;
    font-weight: normal;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Ẩn icon mặc định */
.blog-single .blog-share .social-icons a.button.circle i {
    display: none !important;
}

/* Chèn chữ vào nút */
.blog-single .blog-share .social-icons a.whatsapp::after { content: "WhatsApp"; }
.blog-single .blog-share .social-icons a.facebook::after { content: "Facebook"; }
.blog-single .blog-share .social-icons a.twitter::after { content: "Twitter"; }
.blog-single .blog-share .social-icons a.email::after { content: "Email"; }
.blog-single .blog-share .social-icons a.pinterest::after { content: "Pinterest"; }
.blog-single .blog-share .social-icons a.linkedin::after { content: "Linkedin"; }

/* Set màu nguyên bản */
.blog-single .blog-share .social-icons a.facebook { background: #4167b2 !important; border-color: #859dcc !important; }
.blog-single .blog-share .social-icons a.twitter { background: #00cdff !important; border-color: #20d3ff !important; }
.blog-single .blog-share .social-icons a.pinterest { background: #dc0d0a !important; border-color: #e23532 !important; }
.blog-single .blog-share .social-icons a.linkedin { background: #007bb6 !important; border-color: #1f8bbe !important; }
.blog-single .blog-share .social-icons a.whatsapp { background: #25d366 !important; border-color: #1bd741 !important; }
.blog-single .blog-share .social-icons a.email { background: #e22b26 !important; border-color: #ea6562 !important; } /* Tương đương màu Google+ cũ */

.blog-single .blog-share .social-icons a.button:hover {
    filter: brightness(130%);
}

/* Xóa float sau khối share */
.blog-single .blog-share::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================
   RELATED POSTS (.other)
========================================== */
.blog-single .other .commonService {
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================
   CONTACT FORM SECTION (BEM)
========================================== */
/* Reset & Typography */
.xc-page-ontact-contact-info .xc-contact__left,
.xc-page-ontact-contact-info .xc-contact__right {
    font-family: 'HelveticaNeue', Helvetica, Arial, sans-serif;
}

/* -------------------------------------
   BLOCK: Left Info
-------------------------------------- */
.xc-page-ontact-contact-info .xc-contact__title,
.xc-page-ontact-contact-info .xc-contact__form-title {
    font-size: 32px;
    padding-bottom: 20px;
    color: #ac834a;
    font-family: 'HelveticaNeueM', 'HelveticaNeue', Helvetica, Arial, sans-serif;
    font-weight: 500;
}
@media (max-width: 1199px) {
    .xc-page-ontact-contact-info .xc-contact__title,
    .xc-page-ontact-contact-info .xc-contact__form-title {
        font-size: 27px;
    }
}

.xc-page-ontact-contact-info .xc-contact__desc {
    text-align: justify;
    line-height: 27px;
    padding-bottom: 30px;
    color: #333; 
}

.xc-page-ontact-contact-info .xc-contact__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.xc-page-ontact-contact-info .xc-contact__item {
    line-height: 27px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #707070;
    padding-left: 40px;
    position: relative;
}
.xc-page-ontact-contact-info .xc-contact__item:last-child {
    margin-bottom: 0;
}

.xc-page-ontact-contact-info .xc-contact__icon {
    position: absolute;
    top: 5px;
    left: 0;
    font-size: 25px;
    color: #333;
}

.xc-page-ontact-contact-info .xc-contact__text p {
    margin: 0;
    padding: 0;
}
.xc-page-ontact-contact-info .xc-contact__text a {
    color: #ab834a;
    transition: all .3s ease;
    text-decoration: none;
}
.xc-page-ontact-contact-info .xc-contact__text a:hover {
    color: #13544a; 
}

/* -------------------------------------
   BLOCK: Right Form (Contact Form 7)
-------------------------------------- */
.xc-page-ontact-contact-info .xc-contact-form__row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
    gap: 30px;
}

.xc-page-ontact-contact-info .xc-contact-form__col {
    flex: 1;
    min-width: 0;
}

.xc-page-ontact-contact-info .xc-contact-form__col--full {
    flex: 0 0 100%;
}

.xc-page-ontact-contact-info .xc-contact-form__input,
.xc-page-ontact-contact-info .xc-contact-form__textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #f0f0f0 !important;
    border-radius: 3px;
    border: 1px solid #e0e0e0 !important;
    font-family: inherit;
    padding: 0 17px;
    outline: none;
    color: #333;
    font-size: 16px;
    transition: box-shadow .3s, border .3s;
    box-shadow: none !important;
}

.xc-page-ontact-contact-info .xc-contact-form__input {
    height: 40px;
}

/* Thêm icon dropdown cho thẻ select */
.xc-page-ontact-contact-info select.xc-contact-form__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    padding-right: 30px; /* Chừa chỗ cho icon */
}

.xc-page-ontact-contact-info .xc-contact-form__textarea {
    height: 98px;
    padding: 17px;
    resize: vertical;
}

.xc-page-ontact-contact-info .xc-contact-form__input:focus,
.xc-page-ontact-contact-info .xc-contact-form__textarea:focus {
    border-color: #ac834a;
    box-shadow: 0 0 5px rgba(172, 131, 74, 0.3);
}

.xc-page-ontact-contact-info .xc-contact-form__submit {
    width: 130px;
    line-height: 40px;
    border-radius: 5px;
    background: #3c634f;
    font-size: 16px;
    text-align: center;
    display: block;
    margin: 0;
    box-shadow: 0 5px 10px rgba(184,225,219,.42);
    cursor: pointer;
    border: none;
    color: #fff;
    transition: all .3s ease;
    padding: 0;
    min-height: 40px;
}

.xc-page-ontact-contact-info .xc-contact-form__submit:hover {
    background: #13544a;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .xc-page-ontact-contact-info .xc-contact__list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .xc-page-ontact-contact-info .xc-contact__item {
        width: calc(50% - 10px);
        margin-bottom: 0;
        padding-left: 35px;
    }
}

@media (max-width: 767px) {
    .xc-page-ontact-contact-info .xc-contact-form__row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 479px) {
    .xc-page-ontact-contact-info .xc-contact__item {
        width: 100%;
    }
}

/* Fix Contact Form 7 default spacing issues */
.xc-page-ontact-contact-info .wpcf7 br {
    display: none;
}
.xc-page-ontact-contact-info .wpcf7 p {
    margin: 0;
}
.xc-page-ontact-contact-info .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ==========================================
   MAP SECTION (BEM)
========================================== */
.xc-map {
    position: relative;
    margin-bottom: 70px;
    width: 100%;
}

.xc-map__iframe-wrapper {
    position: relative;
    overflow: hidden;
}

.xc-map__iframe-wrapper::before {
    content: "";
    display: block;
    padding-bottom: 25%; /* Tỉ lệ hiển thị bản đồ */
}

.xc-map__iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Thông tin đè lên bản đồ */
.xc-map__info {
    position: absolute;
    top: 0;
    height: 100%;
    padding: 0 46px;
    background: rgba(51,51,51,.8);
    color: #fff;
    text-align: center;
    /* Giả sử container của flatsome là 1080px */
    right: calc((100% - 1080px)/2); 
    font-size: 15px;
    box-sizing: border-box;
    width: 386px;
    z-index: 10;
}

.xc-map__info-wrap {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    line-height: 30px;
}

.xc-map__info-title {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ab834a;
    display: inline-block;
    margin-bottom: 15px;
}

.xc-map__info-item a {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease 0s;
}

.xc-map__info-item a:hover {
    color: #ab834a;
}

/* Responsive */
@media (max-width: 1199px) {
    .xc-map__info {
        right: 15px; /* Sát mép phải khi màn hình nhỏ */
    }
    .xc-map__iframe-wrapper::before {
        padding-bottom: 33%;
    }
}

@media (max-width: 991px) {
    .xc-map {
        margin-bottom: 30px;
    }
}

@media (max-width: 479px) {
    .xc-map__info {
        position: static;
        width: 100%;
        padding: 20px 0;
    }
    .xc-map__info-wrap {
        position: static;
        transform: none;
    }
    .xc-map__iframe-wrapper::before {
        padding-bottom: 66.66%;
    }
}

/* ==========================================
   SINGLE POST FORM
========================================== */
.xc-single-post-form {
    background: #f2f2f2;
    margin-top: 30px;
    margin-bottom: 30px;
}

.xc-single-post-form .head {
    background: #3c634f;
    color: #fff;
    padding: 8px;
    font-weight: 600;
    font-size: 21px;
    line-height: 28px;
}

.xc-single-post-form .head p,
.xc-single-post-form .desc p {
    margin: 0;
}

.xc-single-post-form .desc {
    color: #333;
    padding: 10px;
    border-bottom: 1px dashed #ac834a;
}

/* Sử dụng Grid để đảm bảo không bao giờ bị rớt dòng */
.xc-single-post-form .single-form-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.xc-single-post-form .single-form-wrap > p {
    display: contents;
}

.xc-single-post-form .wpcf7-form-control-wrap {
    width: 100%;
    margin-top: 0;
    display: block;
}

.xc-single-post-form .wpcf7-form-control-wrap[data-name="your-subject"] {
    grid-column: span 2;
    width: 100%;
}

.xc-single-post-form .wpcf7-form-control-wrap input.wpcf7-text,
.xc-single-post-form .wpcf7-form-control-wrap input.wpcf7-email {
    width: 100%;
    height: 35px;
    border: 1px solid #d2d2d2;
    border-radius: 0;
    padding: 0 5px;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 0;
}

.xc-single-post-form input.wpcf7-submit {
    width: 100%;
    margin-top: 0;
    height: 35px;
    background: #ac834a !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: pointer;
    border: 1px solid #ac834a !important;
    font-size: 21px !important;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
    line-height: 33px;
}

.xc-single-post-form .wpcf7-spinner {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    display: none !important;
}

@media (max-width: 991px) {
    .xc-single-post-form .single-form-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .xc-single-post-form .wpcf7-form-control-wrap[data-name="your-subject"] {
        grid-column: span 1;
    }
    .xc-single-post-form .head {
        font-size: 16px;
        line-height: 22px;
    }
}

/* --- PAGE SERVICES - SERVICES --- */
.xc-page-services-services .box-service {
    position: relative;
    overflow: hidden;
}

.xc-page-services-services .box-service .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.xc-page-services-services .box-service .box-image::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.xc-page-services-services .box-service .box-image > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xc-page-services-services .box-service .box-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s all ease-in-out;
}

.xc-page-services-services .box-service .box-image::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    z-index: 3;
    transition: .3s all ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.xc-page-services-services .box-service:hover .box-image::after {
    opacity: 1;
}

@media (min-width: 992px) {
    .xc-page-services-services .box-service .box-image > a::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        z-index: 4;
        border: 5px solid rgba(184,225,219,.5);
    }
}

.xc-page-services-services .box-service .box-text h4 {
    display: block;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 21px;
    font-family: 'HelveticaNeueL', sans-serif;
    color: inherit;
    margin-top: 0;
}

.xc-page-services-services .box-service .box-text .button.primary {
    width: 130px;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    background: #3c634f !important;
    font-size: 16px;
    text-align: center;
    display: inline-block !important;
    box-shadow: 0 5px 10px rgba(184,225,219,.42);
    cursor: pointer;
    border: none;
    color: #fff !important;
    padding: 0;
    margin-bottom: 0 !important;
    min-height: auto;
    transition: all .3s ease;
    text-transform: none !important;
    vertical-align: middle;
}

.xc-page-services-services .box-service .box-text .button.primary:hover {
    background: #13544a !important;
    box-shadow: 0 5px 10px rgba(184,225,219,.42);
}

.xc-page-services-services .box-service .box-text .button.primary::after {
    content: "\f061";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 14px;
    line-height: 40px;
}

.xc-page-services-services .box-service .box-text .button.primary span {
    display: inline-block;
    line-height: 40px;
    vertical-align: top;
}

@media (min-width: 768px) {
    .xc-page-services-services .box-service .box-text {
        transition: .3s all ease-in-out;
        opacity: 0;
        position: absolute;
        top: calc(50% - 50px);
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        visibility: hidden;
        color: #fff;
        z-index: 5;
        padding: 0 10px;
        box-sizing: border-box;
        background: transparent !important;
    }
    
    .xc-page-services-services .box-service .box-text h4 {
        color: #fff;
    }
}

@media (min-width: 992px) {
    .xc-page-services-services .box-service:hover .box-text {
        opacity: 1;
        visibility: visible;
        top: 50%;
    }
}

@media (max-width: 767px) {
    .xc-page-services-services .box-service .box-text {
        text-align: center;
        padding-top: 15px;
    }
    .xc-page-services-services .box-service .box-text h4 {
        margin: 10px 0 15px 0;
        color: #333;
    }
}