/*
Theme Name: Flatsome Child
Description: NamKiem developed for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.20.5
*/

/* =====================================================
   1. TẮT HIỆU ỨNG LÀM MỜ TRONG WORDPRESS CUSTOMIZER
   ===================================================== */

body.wp-customizer-unloading {
    opacity: 1 !important;
    transition: none !important;
    -webkit-transition: none !important;
}


/* =====================================================
   2. ABSOLUTE FOOTER CAO 30PX
   ===================================================== */

.absolute-footer {
    min-height: 30px !important;
    height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.absolute-footer .container {
    min-height: 30px !important;
    height: 30px !important;

    display: flex !important;
    align-items: center !important;
}

.absolute-footer p,
.absolute-footer ul,
.absolute-footer .copyright-footer,
.absolute-footer .footer-primary,
.absolute-footer .footer-secondary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 30px !important;
}


/* =====================================================
   3. KHOẢNG CÁCH MENU HEADER TRÊN DESKTOP
   Không thay đổi kích thước logo
   ===================================================== */

@media screen and (min-width: 850px) {

    #masthead .header-nav-main {
        display: flex !important;
        align-items: center !important;
        gap: 30px !important;
    }

    #masthead .header-nav-main > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    #masthead .header-nav-main > li > a {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;

        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }
}


/* =====================================================
   4. BIẾN MÀU DÙNG CHUNG CHO SEARCH VÀ MINI CART
   ===================================================== */

:root {
    --macca-cream: #fbf8f1;
    --macca-white: #ffffff;
    --macca-gold: #e1aa47;
    --macca-gold-dark: #bf8730;
    --macca-navy: #10234f;
    --macca-text: #48433e;
    --macca-muted: #8f887e;
    --macca-border: #e8dfcf;
}


/* =====================================================
   5. POPUP TÌM KIẾM
   ===================================================== */

.header-search .nav-dropdown {
    width: 340px !important;
    min-width: 340px !important;

    margin-top: 0 !important;
    padding: 16px !important;

    background: var(--macca-cream) !important;
    border: 1px solid var(--macca-border) !important;
    border-radius: 14px !important;

    overflow: visible !important;

    box-shadow:
        0 16px 40px rgba(16, 35, 79, 0.14),
        0 4px 12px rgba(16, 35, 79, 0.07) !important;
}

/* Giữ nguyên mũi tên mặc định của Flatsome */

/* Không để wrapper tạo thêm một popup trắng thứ hai */
.header-search-form-wrapper {
    position: static !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    overflow: visible !important;
}

/* Khung form */
.header-search .searchform,
.header-search-form-wrapper .searchform {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: var(--macca-white) !important;
    border: 1px solid #e6dac5 !important;
    border-radius: 10px !important;

    overflow: hidden !important;
    box-shadow: none !important;
}

/* Hàng chứa input và nút */
.header-search .searchform .flex-row,
.header-search-form-wrapper .searchform .flex-row {
    width: 100% !important;
    margin: 0 !important;

    display: flex !important;
    align-items: stretch !important;
}

/* Ô nhập tìm kiếm */
.header-search input[type="search"],
.header-search-form-wrapper input[type="search"] {
    height: 48px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    background: var(--macca-white) !important;
    border: 0 !important;
    border-radius: 0 !important;

    font-size: 15px !important;
    font-weight: 400 !important;
    color: #4b4742 !important;

    outline: none !important;
    box-shadow: none !important;
}

.header-search input[type="search"]::placeholder,
.header-search-form-wrapper input[type="search"]::placeholder {
    color: var(--macca-muted) !important;
    opacity: 1 !important;
}

/* Nút tìm kiếm */
.header-search button[type="submit"],
.header-search-form-wrapper button[type="submit"] {
    width: 52px !important;
    min-width: 52px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: var(--macca-gold) !important;
    border: 0 !important;
    border-radius: 0 !important;

    color: var(--macca-white) !important;
    box-shadow: none !important;

    transition: background-color 0.25s ease !important;
}

.header-search button[type="submit"]:hover,
.header-search-form-wrapper button[type="submit"]:hover {
    background: var(--macca-gold-dark) !important;
}

.header-search button[type="submit"] i,
.header-search-form-wrapper button[type="submit"] i {
    font-size: 20px !important;
    color: var(--macca-white) !important;
}


/* =====================================================
   6. POPUP GIỎ HÀNG
   ===================================================== */

.cart-item .nav-dropdown {
    width: 340px !important;
    min-width: 340px !important;

    margin-top: 0 !important;
    padding: 0 !important;

    background: var(--macca-cream) !important;
    border: 1px solid var(--macca-border) !important;
    border-radius: 14px !important;

    overflow: visible !important;

    box-shadow:
        0 18px 44px rgba(16, 35, 79, 0.15),
        0 4px 12px rgba(16, 35, 79, 0.07) !important;
}

/* Giữ nguyên mũi tên mặc định của Flatsome */

/* Khung nội dung */
.cart-item .widget_shopping_cart,
.cart-item .widget_shopping_cart_content {
    margin: 0 !important;
    padding: 28px 26px 24px !important;

    background: var(--macca-cream) !important;
    border-radius: 14px !important;
}

/* Xóa icon tròn giống bóng rổ đã tạo bằng pseudo-element */
.cart-item .woocommerce-mini-cart__empty-message::before,
.cart-item .woocommerce-mini-cart__empty-message::after {
    content: none !important;
    display: none !important;
}

/* Nội dung giỏ hàng trống */
.cart-item .woocommerce-mini-cart__empty-message {
    margin: 0 !important;
    padding: 22px 10px 20px !important;

    text-align: center !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: var(--macca-text) !important;
}

/* Icon túi mặc định */
.cart-item .widget_shopping_cart_content > i,
.cart-item .widget_shopping_cart_content > .icon,
.cart-item .widget_shopping_cart_content .empty-cart-icon {
    color: rgba(196, 148, 67, 0.28) !important;
}

/* Nút mini cart */
.cart-item .nav-dropdown a.button,
.cart-item .woocommerce-mini-cart__buttons .button,
.cart-item .widget_shopping_cart .button {
    width: 100% !important;
    min-height: 46px !important;

    margin: 8px 0 0 !important;
    padding: 13px 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: var(--macca-gold) !important;
    border: 1px solid var(--macca-gold) !important;
    border-radius: 9px !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.03em !important;

    color: var(--macca-white) !important;
    opacity: 1 !important;

    text-shadow: none !important;
    box-shadow: none !important;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease !important;
}

.cart-item .nav-dropdown a.button:hover,
.cart-item .woocommerce-mini-cart__buttons .button:hover,
.cart-item .widget_shopping_cart .button:hover {
    background: var(--macca-gold-dark) !important;
    border-color: var(--macca-gold-dark) !important;
    color: var(--macca-white) !important;

    transform: translateY(-1px) !important;
}


/* =====================================================
   8. MINI CART KHI CÓ SẢN PHẨM
   ===================================================== */

.cart-item .woocommerce-mini-cart {
    margin: 0 !important;
}

.cart-item .woocommerce-mini-cart-item {
    min-height: 78px !important;

    margin: 0 !important;
    padding: 12px 28px 12px 0 !important;

    border-bottom: 1px solid var(--macca-border) !important;
}

.cart-item .woocommerce-mini-cart-item img {
    width: 56px !important;
    height: 56px !important;

    object-fit: cover !important;
    border-radius: 8px !important;
}

.cart-item .woocommerce-mini-cart-item a {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: var(--macca-navy) !important;
}

.cart-item .woocommerce-mini-cart-item .quantity {
    margin-top: 4px !important;

    font-size: 13px !important;
    color: #7d756b !important;
}

.cart-item .woocommerce-mini-cart-item .remove {
    color: #a49c91 !important;
}

.cart-item .woocommerce-mini-cart-item .remove:hover {
    color: var(--macca-gold-dark) !important;
}

.cart-item .woocommerce-mini-cart__total {
    margin: 16px 0 10px !important;
    padding-top: 14px !important;

    border-top: 1px solid var(--macca-border) !important;

    color: var(--macca-text) !important;
}

.cart-item .woocommerce-mini-cart__total strong {
    color: var(--macca-navy) !important;
}


/* =====================================================
   9. RESPONSIVE CHO POPUP
   ===================================================== */

@media screen and (max-width: 849px) {

    .header-search .nav-dropdown,
    .cart-item .nav-dropdown {
        width: min(340px, calc(100vw - 30px)) !important;
        min-width: 0 !important;
    }
}

/* =====================================================
   TRANG TIN TỨC / CHIA SẺ – MACCA SKY
   Shortcode sử dụng class: macca-news-section,
   macca-news-row, macca-news-heading
   ===================================================== */

/* Nền toàn bộ khu vực tin tức */
.macca-news-section {
    background-color: #f7f5ef !important;
}

/* Giữ nội dung nằm trên background của Section */
.macca-news-section > .section-content {
    position: relative !important;
    z-index: 2 !important;
}

/* Giới hạn chiều rộng toàn bộ nội dung */
.macca-news-row {
    width: 100% !important;
    max-width: 1080px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}


/* =====================================================
   TIÊU ĐỀ TIN TỨC / CHIA SẺ
   Việc căn giữa đã thực hiện trong shortcode
   ===================================================== */

.macca-news-heading {
    margin: 0 0 34px !important;
    padding: 0 !important;
}

.macca-news-heading h2 {
    margin: 0 !important;
    padding: 0 !important;

    font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
    font-size: 39px !important;
    font-weight: 600 !important;
    line-height: 1.22 !important;
    letter-spacing: -0.025em !important;

}


/* =====================================================
   HÀNG CHỨA BÀI VIẾT
   ===================================================== */

.macca-news-section .row.row-small {
    margin-right: -10px !important;
    margin-left: -10px !important;
}

.macca-news-section .post-item {
    padding: 0 10px 20px !important;
}

.macca-news-section .post-item > .col-inner {
    height: 100% !important;
}


/* =====================================================
   CARD BÀI VIẾT
   ===================================================== */

.macca-news-section .post-item .box {
    position: relative !important;

    height: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    background-color: #fbfaf6 !important;
    border: 1px solid #e7ded0 !important;
    border-radius: 12px !important;

    overflow: hidden !important;

    box-shadow: 0 3px 12px rgba(70, 53, 30, 0.04) !important;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}

.macca-news-section .post-item .box:hover {
    border-color: #d8c39a !important;

    box-shadow: 0 12px 30px rgba(70, 53, 30, 0.11) !important;

    transform: translateY(-5px) !important;
}


/* =====================================================
   ẢNH ĐẠI DIỆN BÀI VIẾT
   ===================================================== */

.macca-news-section .box-image {
    width: 100% !important;

    margin: 0 !important;

    border-radius: 0 !important;
    overflow: hidden !important;
}

.macca-news-section .box-image .image-cover {
    height: auto !important;
    padding-top: 76% !important;

    background-color: #ede8df !important;
}

.macca-news-section .box-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.macca-news-section .box-image img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    transition: transform 0.5s ease !important;
}

.macca-news-section .post-item .box:hover .box-image img {
    transform: scale(1.045) !important;
}


/* =====================================================
   PHẦN NỘI DUNG BÊN DƯỚI ẢNH
   ===================================================== */

.macca-news-section .box-text {
    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: column !important;

    margin: 0 !important;
    padding: 18px 17px 20px !important;

    background-color: transparent !important;
    text-align: left !important;
}

.macca-news-section .box-text-inner {
    width: 100% !important;
    height: 100% !important;

    display: flex !important;
    flex-direction: column !important;
}


/* =====================================================
   TIÊU ĐỀ BÀI VIẾT
   ===================================================== */

.macca-news-section .post-title {
    min-height: 51px !important;

    margin: 0 0 10px !important;
    padding: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;

    color: #302d29 !important;
}

.macca-news-section .post-title a {
    color: inherit !important;
    text-decoration: none !important;

    transition: color 0.25s ease !important;
}

.macca-news-section .post-title a:hover {
    color: #b37d2b !important;
}


/* =====================================================
   NGÀY ĐĂNG
   ===================================================== */

.macca-news-section .post-meta,
.macca-news-section .post-meta.is-small {
    margin: 0 0 20px !important;
    padding: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;

    color: #a39a8e !important;
    opacity: 1 !important;
}


/* =====================================================
   ẨN CÁC PHẦN KHÔNG CÓ TRONG MẪU
   ===================================================== */

.macca-news-section .badge,
.macca-news-section .post-date,
.macca-news-section .is-divider,
.macca-news-section .from_the_blog_excerpt,
.macca-news-section .from_the_blog_comments,
.macca-news-section .cat-label,
.macca-news-section .box-label,
.macca-news-section .post-category {
    display: none !important;
}


/* =====================================================
   NÚT ĐỌC THÊM
   ===================================================== */

.macca-news-section .box-text .button,
.macca-news-section .box-text .more-link {
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: auto 0 0 !important;
    padding: 0 !important;

    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.04em !important;

    color: #b37d2b !important;

    text-transform: uppercase !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.macca-news-section .box-text .button::after,
.macca-news-section .box-text .more-link::after {
    content: "›" !important;

    display: inline-block !important;

    margin-left: 5px !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    vertical-align: -1px !important;

    transition: transform 0.25s ease !important;
}

.macca-news-section .box-text .button:hover,
.macca-news-section .box-text .more-link:hover {
    background-color: transparent !important;
    color: #84591e !important;
}

.macca-news-section .box-text .button:hover::after,
.macca-news-section .box-text .more-link:hover::after {
    transform: translateX(4px) !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media screen and (max-width: 849px) {

    .macca-news-heading {
        margin-bottom: 28px !important;
    }

    .macca-news-heading h2 {
        font-size: 34px !important;
        line-height: 1.25 !important;
    }

    .macca-news-section .post-title {
        min-height: 0 !important;
    }

    .macca-news-section .box-text {
        padding: 17px 16px 19px !important;
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media screen and (max-width: 549px) {

    .macca-news-heading {
        margin-bottom: 23px !important;
    }

    .macca-news-heading h2 {
        font-size: 29px !important;
        line-height: 1.3 !important;
        letter-spacing: -0.015em !important;
    }

    .macca-news-section .post-item {
        padding-bottom: 18px !important;
    }

    .macca-news-section .box-text {
        padding: 17px 16px 19px !important;
    }

    .macca-news-section .post-title {
        min-height: 0 !important;

        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    .macca-news-section .post-meta,
    .macca-news-section .post-meta.is-small {
        margin-bottom: 18px !important;
    }
}

/* =====================================================
   TRANG CHI TIẾT BÀI VIẾT – MACCA SKY
   Chỉ áp dụng cho bài viết
   ===================================================== */


/* =====================================================
   1. NỀN CHUNG
   ===================================================== */

body.single-post #main {
    background-color: #f7f5ef !important;
}


/* =====================================================
   2. BANNER ĐẦU BÀI VIẾT
   ===================================================== */

body.single-post .featured-title .title-overlay,
body.single-post .featured-title .overlay,
body.single-post .page-title-bg .overlay,
body.single-post .page-title-bg::before {
    background: rgba(20, 17, 12, 0.10) !important;
    opacity: 1 !important;
}

body.single-post .featured-title .page-title-inner {
    position: relative !important;
    z-index: 3 !important;
}


/* =====================================================
   3. TIÊU ĐỀ TRÊN BANNER
   ===================================================== */

body.single-post .featured-title .entry-title {
    margin: 0 auto 14px !important;

    font-family:
        "Playfair Display",
        Georgia,
        "Times New Roman",
        serif !important;

    font-size: 46px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;

    color: #132347 !important;
    text-shadow: none !important;
}


/* =====================================================
   4. META TRÊN BANNER
   ===================================================== */

body.single-post .featured-title .entry-meta,
body.single-post .entry-header .entry-meta,
body.single-post .entry-header-text .entry-meta {
    margin: 0 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

body.single-post .featured-title .entry-meta a,
body.single-post .entry-header .entry-meta a {
    color: #e1aa47 !important;
}

body.single-post .featured-title .entry-meta a:hover,
body.single-post .entry-header .entry-meta a:hover {
    color: #f0c878 !important;
}


/* Ẩn tên tác giả nếu Flatsome vẫn chèn trong Meta */
body.single-post .entry-meta .byline,
body.single-post .entry-meta .author,
body.single-post .entry-meta .meta-author {
    display: none !important;
}


/* =====================================================
   5. BỎ SIDEBAR SẢN PHẨM TIÊU BIỂU
   ===================================================== */

body.single-post .post-sidebar,
body.single-post #secondary,
body.single-post .blog-wrapper .post-sidebar {
    display: none !important;
}


/* Cho nội dung chiếm toàn bộ chiều rộng */
body.single-post .blog-wrapper .row.align-center > .large-9,
body.single-post .blog-wrapper .row > .large-9,
body.single-post .blog-wrapper .row > .col.large-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}


/* =====================================================
   6. KHUNG CHỨA BÀI VIẾT
   ===================================================== */

body.single-post .blog-wrapper {
    padding-top: 52px !important;
    padding-bottom: 72px !important;
}

body.single-post .blog-wrapper > .row {
    width: 100% !important;
    max-width: 1080px !important;

    margin-right: auto !important;
    margin-left: auto !important;
}

body.single-post article.post {
    width: 100% !important;
    max-width: 900px !important;

    margin-right: auto !important;
    margin-left: auto !important;
}

body.single-post article.post .article-inner {
    padding: 44px 56px 48px !important;

    background-color: #fffdf9 !important;
    border: 1px solid #eadfce !important;
    border-radius: 18px !important;

    box-shadow:
        0 18px 45px rgba(74, 58, 35, 0.07),
        0 4px 14px rgba(74, 58, 35, 0.04) !important;

    overflow: visible !important;
}


/* =====================================================
   7. ẢNH ĐẠI DIỆN
   ===================================================== */

body.single-post .entry-image,
body.single-post .article-inner > .entry-image {
    margin: 0 0 34px !important;

    border-radius: 14px !important;
    overflow: hidden !important;
}

body.single-post .entry-image img {
    width: 100% !important;
    height: auto !important;

    display: block !important;

    border-radius: 14px !important;
    object-fit: cover !important;
}


/* =====================================================
   8. NỘI DUNG BÀI VIẾT
   ===================================================== */

body.single-post .entry-content {
    margin: 0 !important;

    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.85 !important;

    color: #494640 !important;
}

body.single-post .entry-content p {
    margin: 0 0 22px !important;
}

body.single-post .entry-content strong {
    font-weight: 700 !important;
    color: #2f2c28 !important;
}

body.single-post .entry-content a {
    color: #b27a2c !important;

    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.single-post .entry-content a:hover {
    color: #7f521b !important;
}


/* =====================================================
   9. HEADING TRONG NỘI DUNG
   ===================================================== */

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    font-family:
        "Playfair Display",
        Georgia,
        "Times New Roman",
        serif !important;

    color: #17213a !important;
}

body.single-post .entry-content h2 {
    margin: 42px 0 18px !important;

    font-size: 31px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.single-post .entry-content h3 {
    margin: 34px 0 15px !important;

    font-size: 25px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.single-post .entry-content h4 {
    margin: 27px 0 13px !important;

    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}


/* =====================================================
   10. DANH SÁCH
   ===================================================== */

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 23px 22px !important;
}

body.single-post .entry-content li {
    margin-bottom: 9px !important;
    padding-left: 5px !important;
}

body.single-post .entry-content li::marker {
    color: #d9a442 !important;
}


/* =====================================================
   11. TRÍCH DẪN
   ===================================================== */

body.single-post .entry-content blockquote {
    margin: 32px 0 !important;
    padding: 22px 27px !important;

    background-color: #f7f1e6 !important;
    border: 0 !important;
    border-left: 4px solid #dca744 !important;
    border-radius: 0 12px 12px 0 !important;

    font-family:
        "Playfair Display",
        Georgia,
        serif !important;

    font-size: 20px !important;
    font-style: italic !important;
    line-height: 1.65 !important;

    color: #3f3a34 !important;
}


/* =====================================================
   12. HÌNH ẢNH TRONG NỘI DUNG
   ===================================================== */

body.single-post .entry-content img {
    border-radius: 12px !important;

    box-shadow:
        0 8px 24px rgba(56, 43, 26, 0.08) !important;
}

body.single-post .wp-caption {
    max-width: 100% !important;
    margin-bottom: 28px !important;
}

body.single-post .wp-caption-text {
    margin-top: 9px !important;

    font-size: 13px !important;
    font-style: italic !important;
    line-height: 1.5 !important;

    color: #92897d !important;
}


/* =====================================================
   13. KHU VỰC CHIA SẺ MẠNG XÃ HỘI
   ===================================================== */

body.single-post .share-icons,
body.single-post .social-icons {
    width: 100% !important;

    margin: 38px 0 34px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;

    gap: 10px !important;

    text-align: center !important;
}


/* Tất cả nút chia sẻ */
body.single-post .share-icons a,
body.single-post .social-icons a,
body.single-post .share-icons .button,
body.single-post .social-icons .button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #b77b24 !important;
    background-color: transparent !important;

    border: 1px solid #d9bd88 !important;
    border-radius: 50% !important;

    opacity: 1 !important;

    text-shadow: none !important;
    box-shadow: none !important;

    transform: none !important;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease !important;
}


/* Icon bên trong nút */
body.single-post .share-icons a i,
body.single-post .social-icons a i,
body.single-post .share-icons .button i,
body.single-post .social-icons .button i {
    position: static !important;
    top: auto !important;
    left: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 18px !important;
    line-height: 1 !important;

    color: inherit !important;
    opacity: 1 !important;

    transform: none !important;
}


/* SVG bên trong icon */
body.single-post .share-icons svg,
body.single-post .social-icons svg {
    width: 18px !important;
    height: 18px !important;

    fill: currentColor !important;
    stroke: currentColor !important;

    opacity: 1 !important;
}


/* Sửa riêng nút Twitter bị trắng */
body.single-post .share-icons a.twitter,
body.single-post .social-icons a.twitter,
body.single-post .share-icons .button.twitter,
body.single-post .social-icons .button.twitter {
    color: #b77b24 !important;
    background-color: transparent !important;
}


/* Dùng ký hiệu X nếu icon Twitter cũ không hiển thị */
body.single-post .share-icons a.twitter i::before,
body.single-post .social-icons a.twitter i::before,
body.single-post .share-icons .button.twitter i::before,
body.single-post .social-icons .button.twitter i::before {
    content: "X" !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    color: inherit !important;
}


/* Hover toàn bộ nút */
body.single-post .share-icons a:hover,
body.single-post .social-icons a:hover,
body.single-post .share-icons .button:hover,
body.single-post .social-icons .button:hover,
body.single-post .share-icons a.twitter:hover,
body.single-post .social-icons a.twitter:hover {
    color: #ffffff !important;
    background-color: #dca744 !important;
    border-color: #dca744 !important;

    opacity: 1 !important;

    transform: translateY(-2px) !important;
}


/* Bảo đảm icon vẫn hiện khi hover */
body.single-post .share-icons a:hover i,
body.single-post .social-icons a:hover i,
body.single-post .share-icons .button:hover i,
body.single-post .social-icons .button:hover i,
body.single-post .share-icons a:hover i::before,
body.single-post .social-icons a:hover i::before {
    color: #ffffff !important;
    opacity: 1 !important;
}


/* Không để Flatsome tạo lớp trắng phủ icon */
body.single-post .share-icons a::after,
body.single-post .social-icons a::after {
    background: transparent !important;
}


/* Tooltip */
body.single-post .tooltipster-base {
    z-index: 99999 !important;
}


/* =====================================================
   14. DANH MỤC CUỐI BÀI
   ===================================================== */

body.single-post .entry-footer {
    margin-top: 0 !important;
    padding-top: 16px !important;

    border-top: 1px solid #eadfce !important;

    font-size: 13px !important;
    line-height: 1.6 !important;

    color: #8e8579 !important;
}

body.single-post .entry-footer a {
    color: #b27a2c !important;
}

body.single-post .entry-footer a:hover {
    color: #82551b !important;
}


/* Bỏ đường phân cách mặc định bị lặp */
body.single-post article.post .is-divider {
    display: none !important;
}


/* =====================================================
   15. HỘP TÁC GIẢ
   ===================================================== */

body.single-post .author-box,
body.single-post .blog-author-box {
    display: none !important;
}


/* =====================================================
   16. TABLET
   ===================================================== */

@media screen and (max-width: 849px) {

    body.single-post .featured-title .entry-title {
        font-size: 39px !important;
    }

    body.single-post .blog-wrapper {
        padding-top: 35px !important;
        padding-bottom: 50px !important;
    }

    body.single-post article.post .article-inner {
        padding: 34px 32px 39px !important;
        border-radius: 15px !important;
    }

    body.single-post .entry-content {
        font-size: 16.5px !important;
        line-height: 1.8 !important;
    }

    body.single-post .entry-content h2 {
        font-size: 28px !important;
    }

    body.single-post .entry-content h3 {
        font-size: 23px !important;
    }
}


/* =====================================================
   17. MOBILE
   ===================================================== */

@media screen and (max-width: 549px) {

    body.single-post .featured-title .entry-title {
        font-size: 31px !important;
        line-height: 1.25 !important;
    }

    body.single-post .featured-title .entry-meta {
        font-size: 12px !important;
    }

    body.single-post .blog-wrapper {
        padding: 20px 12px 35px !important;
    }

    body.single-post article.post .article-inner {
        padding: 27px 18px 30px !important;

        border-radius: 13px !important;

        box-shadow:
            0 8px 25px rgba(74, 58, 35, 0.06) !important;
    }

    body.single-post .entry-content {
        font-size: 16px !important;
        line-height: 1.78 !important;
    }

    body.single-post .entry-content h2 {
        margin-top: 34px !important;
        font-size: 25px !important;
    }

    body.single-post .entry-content h3 {
        margin-top: 29px !important;
        font-size: 21px !important;
    }

    body.single-post .entry-content blockquote {
        padding: 18px 19px !important;
        font-size: 18px !important;
    }

    body.single-post .share-icons,
    body.single-post .social-icons {
        gap: 8px !important;
    }

    body.single-post .share-icons a,
    body.single-post .social-icons a,
    body.single-post .share-icons .button,
    body.single-post .social-icons .button {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    body.single-post .share-icons a i,
    body.single-post .social-icons a i {
        font-size: 16px !important;
    }
}

