:root {
    --hvd-primary: #0ea5e9;
    --hvd-secondary: #22c55e;
    --hvd-gradient: linear-gradient(135deg, var(--hvd-primary), var(--hvd-secondary));
}

.header-web-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.header-web-title .web-title {
    font-family: "Playfair Display";
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--hvd-secondary);
}

@media (max-width: 480px) {
    .header-web-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .header-web-title .web-title {
        font-size: 0.8rem;
    }

    .header-web-title .web-description {
        font-size: 0.6rem;
    }
}

.header-hotline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--hvd-gradient);
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-hotline:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.hvd-col-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.hvd-col-left svg {
    width: 20px;
    height: 20px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.hvd-col-right {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hvd-col-right .line-1 a {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.hvd-col-right .line-1 a:hover {
    text-decoration: underline;
}

.hvd-col-right .line-2 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.header-hotline .hvd-col-left {
    animation: shake 0.4s infinite;
}

@keyframes shake {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0);
    }
}

.header-hotline .hvd-col-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse-ring 1.5s infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.header-diachi {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.header-diachi:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.header-diachi .hvd-col-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hvd-gradient);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-diachi .hvd-col-left svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.header-diachi .hvd-col-right {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-diachi .line-1 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.header-diachi .line-2 {
    font-size: 12px;
    color: #64748b;
}

/* ==================================================
   MAIN NAVIGATION (.agents rules applied)
================================================== */
.header-bottom-nav.nav>li>a.nav-top-link {
    color: #0f172a;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 999px;

}

/* Hiệu ứng Hover */
.header-bottom-nav.nav>li:hover>a.nav-top-link {
    color: var(--hvd-primary);
    background: #f1f5f9;
}

/* ==================================================
   MENU WITH SVG ICONS
================================================== */
.header-bottom-nav.nav>li>a.nav-top-link {
    display: inline-flex !important;
    flex-direction: row;
    /* Chuyển icon và chữ nằm ngang */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Khoảng cách giữa icon và chữ */
    padding: 10px 22px !important;
    /* Tăng chiều dài 2 bên để nút ngang cân đối */
    border-radius: 999px !important;
    /* Chuyển sang dạng viên thuốc cho hàng ngang */
    line-height: 1;
    background: transparent;
    transition: all 0.3s ease;
}

.header-bottom-nav.nav>li>a.nav-top-link svg {
    width: 22px !important;
    /* Giảm size một chút để hài hòa với chữ ngang */
    height: 22px !important;
    margin: 0 !important;
    stroke-width: 1.8;
    transition: all 0.3s ease;
}

/* Trạng thái Hover */
.header-bottom-nav.nav>li:hover>a.nav-top-link {
    background: var(--hvd-primary-light) !important;
    color: var(--hvd-primary) !important;
}

.header-bottom-nav.nav>li:hover>a.nav-top-link svg {
    transform: translateY(-3px) scale(1.05);
    /* Icon hơi nảy lên khi hover */
}

/* Trạng thái Active */
.header-bottom-nav.nav>li.active>a.nav-top-link,
.header-bottom-nav.nav>li.current-menu-item>a.nav-top-link,
.header-bottom-nav.nav>li.current_page_item>a.nav-top-link {
    background: var(--hvd-gradient) !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

.header-bottom-nav.nav>li.active>a.nav-top-link svg,
.header-bottom-nav.nav>li.current-menu-item>a.nav-top-link svg,
.header-bottom-nav.nav>li.current_page_item>a.nav-top-link svg {
    transform: translateY(-2px);
}

/* ==================================================
   HVD BUTTON CUSTOM (.agents rules applied)
================================================== */
.button.hvd-button {
    background: var(--hvd-gradient) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: normal;
    font-family: 'Playfair Display', serif;
}

/* Tự động đổi padding thành bất đối xứng nếu nút hvd-button có chứa icon */
.button.hvd-button:has(i) {
    gap: 12px !important;
    padding: 6px 8px 6px 25px !important;
}

.button.hvd-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
    background: var(--hvd-gradient) !important;
    color: #fff !important;
}

/* ==================================================
   HVD BUTTON SECONDARY (Nút có Icon)
================================================== */
.button.hvd-button-secondary {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    background: linear-gradient(135deg, #f97316, #ef4444) !important;
    /* Màu cam đỏ nổi bật cho nút Gọi Ngay */
    color: #fff !important;
    border-radius: 999px !important;
    /* Dạng viên thuốc */
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 6px 8px 6px 25px !important;
    /* Căn chỉnh để vòng tròn icon nằm lọt đẹp bên phải */
}

.button.hvd-button-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.3) !important;
    background: linear-gradient(135deg, #ea580c, #dc2626) !important;
    color: #fff !important;
}

.button.hvd-button i,
.button.hvd-button-secondary i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    /* Nền mờ để hòa quyện với màu nút */
    color: #fff;
    /* Icon màu trắng đồng bộ với chữ */
    border-radius: 50%;
    font-size: 1.1em;
    margin: 0 !important;
    line-height: 1;
}

/* ==================================================
   CUSTOM BULLET POINTS (Dấu check thay cho chấm)
================================================== */
/* Chỉ áp dụng cho các ul bài viết/nội dung (loại trừ tất cả Widgets) */
ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *),
.entry-content ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *),
.text-inner ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *) {
    list-style: none !important;
    padding-left: 0 !important;
}

ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li,
.entry-content ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li,
.text-inner ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.6;
}

ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li::before,
.entry-content ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li::before,
.text-inner ul:not([class]):not(.widget *):not(#secondary *):not(.footer-widgets *)>li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-color: var(--hvd-secondary, #22c55e);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Loại trừ triệt để dấu check khỏi tất cả Widgets */
.widget ul li,
.widget-area ul li,
#secondary ul li,
.sidebar-inner ul li,
.footer-widgets ul li,
.post-sidebar ul li {
    padding-left: 0 !important;
}

.widget ul li::before,
.widget-area ul li::before,
#secondary ul li::before,
.sidebar-inner ul li::before,
.footer-widgets ul li::before,
.post-sidebar ul li::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

/* ==================================================
   HVD BUTTON SECONDARY (Red/Orange)
================================================== */
.button.hvd-button-secondary {
    background: linear-gradient(135deg, #f97316, #ef4444) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.button.hvd-button-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
    background: linear-gradient(135deg, #f97316, #ef4444) !important;
    color: #fff !important;
}

/* ==================================================
   HVD BOX IMAGE CUSTOM (Text over image with gradient)
================================================== */
.box.hvd-box-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.box.hvd-box-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.box.hvd-box-image .box-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 40px 15px 15px 15px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    pointer-events: none;
}

/* Đảm bảo chữ màu trắng và có bóng để dễ đọc */
.box.hvd-box-image .box-text h3,
.box.hvd-box-image .box-text p,
.box.hvd-box-image .box-text-inner>* {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.box.hvd-box-image .box-text h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==================================================
   SINGLE POST CUSTOM (Author Box, Navigation, Comments)
================================================== */

/* --- 1. Author Box --- */
.entry-author.author-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.entry-author.author-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.entry-author.author-box .avatar {
    border-radius: 50%;
    padding: 4px;
    background: var(--hvd-gradient);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.entry-author.author-box .author-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.entry-author.author-box .author-desc {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* --- 2. Post Navigation --- */
.navigation-post .next-prev-nav {
    border: none !important;
    padding: 20px 0;
    margin-bottom: 30px;
}

.navigation-post .nav-previous a,
.navigation-post .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 25px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Badge Bài Trước / Bài Sau */
.navigation-post .nav-previous a::before,
.navigation-post .nav-next a::after {
    position: absolute;
    top: -12px;
    background: var(--hvd-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
    letter-spacing: 0.5px;
}

.navigation-post .nav-previous a::before {
    content: 'Bài trước';
    left: 20px;
}

.navigation-post .nav-next a::after {
    content: 'Bài sau';
    right: 20px;
}

.navigation-post .nav-previous a:hover,
.navigation-post .nav-next a:hover {
    background: #fff;
    color: #0ea5e9;
    border-color: #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.navigation-post .nav-previous i {
    margin-right: 8px;
}

.navigation-post .nav-next i {
    margin-left: 8px;
}

.next-prev-nav .flex-col+.flex-col {
    border-left: 0 !important;
}

@media (max-width: 849px) {
    .navigation-post .next-prev-nav {
        flex-direction: column;
        gap: 25px;
    }

    .navigation-post .flex-col {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }

    .navigation-post .nav-previous,
    .navigation-post .nav-next {
        width: 100% !important;
        display: flex;
    }

    /* Pre rộng 95% lệch trái */
    .navigation-post .nav-previous {
        justify-content: flex-start;
    }

    .navigation-post .nav-previous a {
        width: 95% !important;
        border-radius: 0 16px 16px 0;
        border-left: 4px solid #0ea5e9;
    }

    .navigation-post .nav-previous a::before {
        left: 15px;
    }

    /* Next rộng 95% lệch phải */
    .navigation-post .nav-next {
        justify-content: flex-end;
    }

    .navigation-post .nav-next a {
        width: 95% !important;
        border-radius: 16px 0 0 16px;
        border-right: 4px solid #22c55e;
    }

    .navigation-post .nav-next a::after {
        right: 15px;
    }
}

/* --- 3. Comments Area --- */
.comments-area {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-top: 30px;
}

.comments-area .comment-reply-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.comments-area .comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--hvd-gradient);
    border-radius: 999px;
}

.comments-area textarea#comment,
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 15px;
    background: #f8fafc;
    color: #334155;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.comments-area textarea#comment:focus,
.comments-area input[type="text"]:focus,
.comments-area input[type="email"]:focus,
.comments-area input[type="url"]:focus {
    background: #fff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
    outline: none;
}

.comments-area .form-submit input#submit {
    background: var(--hvd-gradient) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin-top: 10px;
}

.comments-area .form-submit input#submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.35) !important;
    filter: brightness(1.1);
}

.comments-area label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: inline-block;
}

#comments .comment-respond {
    background-color: transparent !important;
    margin-top: 15px;
    padding: 0 !important;
}

/* --- 4. Post Entry Meta --- */
footer.entry-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 15px 20px !important;
    margin-top: 40px;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    display: inline-block;
    width: 100%;
}

footer.entry-meta a {
    color: #0ea5e9;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 6px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 6px;
    margin: 0 2px;
}

footer.entry-meta a:hover {
    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;
}

.single h1.entry-title {
    text-transform: uppercase;
    font-size: 1.5rem !important;
}

/* ==================================================
   HVD ABOUT SUMMARY BOX & SECTION
================================================== */
.section-gioithieu {
    position: relative;
    background-color: #ffffff !important;
    background-image: linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 100%), url('bg-gioithieu.webp') !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: auto 100% !important;
}

.section-gioithieu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    /* Pattern chấm vuông mờ nhạt */
    background-image: radial-gradient(#94a3b8 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.hvd-about-summary-box {
    position: relative;
    padding: 20px 0;
    margin-bottom: 30px;
}

.hvd-about-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

@media (max-width: 849px) {
    .section-gioithieu {
        background-image: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0.9) 100%), url('bg-gioithieu.webp') !important;
        background-size: cover !important;
    }

    .hvd-about-summary-box {
        padding: 10px 0;
    }

    .hvd-about-content {
        max-width: 100%;
    }
}

/* ==================================================
   HVD MARQUEE (CHỮ CHẠY NGANG)
================================================== */
.hvd-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    display: flex;
    padding: 12px 0;
}

.hvd-marquee-content {
    display: inline-flex;
    align-items: center;
    /* animation-duration is set inline */
    animation-name: hvd-marquee-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Tạm dừng chạy khi di chuột vào */
.hvd-marquee-wrapper:hover .hvd-marquee-content {
    animation-play-state: paused;
}

.hvd-marquee-item {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 25px;
    letter-spacing: 0.5px;
}

.hvd-marquee-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes hvd-marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================================================
   BOX TITLE (TIÊU ĐỀ KHỐI)
================================================== */
.box-title {
    text-align: center;
    margin-bottom: 25px;
}

.box-title h2,
.box-title h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 0;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
}

.box-title h2::after,
.box-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    /* Gradient mờ 2 bên, đậm ở giữa dùng màu chủ đạo của theme */
    background: linear-gradient(to right, transparent, var(--hvd-primary), var(--hvd-secondary), transparent);
    border-radius: 999px;
}

@media (max-width: 849px) {

    .box-title h2::after,
    .box-title h3::after {
        width: 90%;
    }
}

/* ==================================================
   HOME BOX BÀI VIẾT (.home-box-baiviet)
================================================== */

.home-box-baiviet .box-blog-post {
    /* 4. Gradient nhẹ ở bottom của mục */
    background: linear-gradient(to bottom, #ffffff 60%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    /* Để border-radius bao trọn ảnh */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-box-baiviet .box-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 2. Border bottom tương tự box-title (nằm ở dưới cùng của card) */
.home-box-baiviet .box-blog-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--hvd-primary), transparent);
    z-index: 10;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.home-box-baiviet .box-blog-post:hover::after {
    left: 0;
    right: 0;
    opacity: 1;
    height: 3px;
}

.home-box-baiviet .box-text {
    padding: 20px 15px !important;
    background-color: transparent !important;
}

/* ==================================================
   HVD ARTICLE CARD CUSTOM (Thẻ bài viết Blog Archive, List & Grid giống Demo)
   ================================================== */
article.type-post .article-inner,
article.post .article-inner,
.blog-archive article .article-inner,
.blog-wrapper article .article-inner,
.post-item .box-blog-post {
    background: #f8fafc;
    background: var(--hvd-primary-light, #f0f7ff);
    border-radius: 24px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

article.type-post .article-inner:hover,
article.post .article-inner:hover,
.post-item .box-blog-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

/* ::before: Vòng tròn mờ ở góc dưới bên trái */
article.type-post .article-inner::before,
article.post .article-inner::before,
.blog-archive article .article-inner::before,
.blog-wrapper article .article-inner::before,
.post-item .box-blog-post::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: -35px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--hvd-primary);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* ::after: Họa tiết chấm chấm (Dot Grid Pattern) ở góc trên bên phải khuyết góc (hình quạt tròn) giống ảnh Demo */
article.type-post .article-inner::after,
article.post .article-inner::after,
.blog-archive article .article-inner::after,
.blog-wrapper article .article-inner::after,
.post-item .box-blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(var(--hvd-primary, #0ea5e9) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 100%; /* Bo khuyết góc tạo hình quạt tròn mềm mại */
}

/* Đảm bảo nội dung chữ và nút bên trong nằm trên lớp họa tiết */
article.type-post .article-inner > *,
article.post .article-inner > *,
.post-item .box-blog-post > * {
    position: relative;
    z-index: 2;
}

/* Styling tiêu đề bài viết trong thẻ */
article.type-post .entry-title a,
article.post .entry-title a,
.post-item .post-title a {
    font-family: 'Playfair Display', serif !important;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

article.type-post .entry-title a:hover,
article.post .entry-title a:hover,
.post-item .post-title a:hover {
    color: var(--hvd-primary);
}

@media (max-width: 768px) {
    article.type-post .article-inner,
    article.post .article-inner {
        padding: 20px 20px;
        border-radius: 16px;
    }
}

/* 3. Tiêu đề giới hạn 2 dòng còn lại ẩn */
.home-box-baiviet .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    max-height: 2.8em;
    /* 2 dòng * 1.4 */
}

.home-box-baiviet .post-title a {
    color: #0f172a;
    font-weight: 700;
    transition: color 0.3s ease;
}

.home-box-baiviet .post-title a:hover {
    color: #0ea5e9;
}

/* Ẩn is-divider của Flatsome để gọn gàng hơn vì đã có border dưới cùng */
.home-box-baiviet .is-divider {
    display: none;
}

/* ==================================================
   HVD CONTACT BUTTONS & POPUP
================================================== */
@media (min-width: 850px) {
    .show-for-small {
        display: none !important;
    }
}

@media (max-width: 849px) {
    .hide-for-small {
        display: none !important;
    }

    body {
        padding-bottom: 65px !important;
        /* Dành chỗ cho thanh bottom mobile */
    }
}

/* --- DESKTOP --- */
.hvd-contact-desktop {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 99;
}

.hvd-contact-desktop .contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.hvd-contact-desktop .contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hvd-contact-desktop .btn-zalo {
    background: #0068ff;
}

.hvd-contact-desktop .btn-phone-sub {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.hvd-contact-desktop .btn-maps {
    background: #ea4335;
}

.hvd-contact-desktop .btn-contact {
    background: #475569;
}

.hvd-contact-desktop .btn-phone-main {
    background: transparent;
    box-shadow: none;
    width: 60px;
    height: 60px;
}

.hvd-contact-desktop .btn-phone-main:hover {
    transform: none;
}

.hvd-contact-desktop .btn-phone-main .hvd-col-left {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--hvd-gradient);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: shake 0.4s infinite;
    position: relative;
}

.hvd-contact-desktop .btn-phone-main .hvd-col-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: pulse-ring 1.5s infinite;
    z-index: -1;
}

.hvd-contact-desktop .btn-phone-main .hvd-col-left svg {
    width: 30px;
    height: 30px;
    z-index: 2;
}

/* --- MOBILE NAV BAR --- */
.hvd-contact-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 99;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hvd-mobile-col {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

.hvd-mobile-col.hvd-mobile-center {
    flex: 0 0 auto;
    width: 70px;
    display: flex;
    justify-content: center;
    position: relative;
    top: -20px;
}

.hvd-contact-mobile .m-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 5px;
    text-decoration: none;
    transition: color 0.3s;
    min-height: 55px;
}

.hvd-contact-mobile .m-btn span {
    margin-top: 4px;
}

.hvd-contact-mobile .m-btn:hover,
.hvd-contact-mobile .m-btn:active {
    color: #0ea5e9;
}

.hvd-contact-mobile .m-zalo {
    color: #0068ff;
}

.hvd-contact-mobile .m-phone-sub {
    color: #f97316;
}

.hvd-contact-mobile .m-maps {
    color: #ea4335;
}

.hvd-contact-mobile .m-contact-toggle {
    color: #475569;
}

.hvd-contact-mobile .m-phone-main {
    padding: 0;
    min-height: auto;
}

.hvd-contact-mobile .m-phone-main .hvd-col-left {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hvd-gradient);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4);
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: shake 0.4s infinite;
    position: relative;
}

.hvd-contact-mobile .m-phone-main .hvd-col-left::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: pulse-ring 1.5s infinite;
    z-index: -1;
}

.hvd-contact-mobile .m-phone-main .hvd-col-left svg {
    z-index: 2;
}

/* --- POPUP LIÊN HỆ --- */
.hvd-contact-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.hvd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hvd-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.hvd-contact-popup.active {
    pointer-events: auto;
}

.hvd-contact-popup.active .hvd-popup-overlay {
    opacity: 1;
}

.hvd-contact-popup.active .hvd-popup-content {
    transform: translateY(0);
}

.hvd-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.hvd-popup-header h4 {
    margin: 0;
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
}

.hvd-popup-close {
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.hvd-popup-body {
    padding: 20px;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 850px) {
    .hvd-popup-content {
        width: 350px;
        right: 80px;
        left: auto;
        bottom: 80px;
        border-radius: 16px;
        transform: scale(0.9);
        opacity: 0;
        transform-origin: bottom right;
    }

    .hvd-contact-popup.active .hvd-popup-content {
        transform: scale(1);
        opacity: 1;
    }
}


/* ==================================================
   HVD SIDEBAR WIDGET CARD CUSTOM (Giao diện Widget Sidebar Thẻ Nhạt)
   ================================================== */
#secondary .widget,
.sidebar-inner .widget,
.widget-area .widget,
.post-sidebar .widget,
.shop-sidebar .widget {
    background: #f4f8fc;
    background: var(--hvd-primary-light, #f0f7ff);
    border-radius: 24px;
    padding: 30px 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Vòng tròn trang trí góc trên phải (Lấy theo màu chính Admin) */
.post-sidebar,
.shop-sidebar {
    padding: 0px !important;
}

#secondary .widget::before,
.sidebar-inner .widget::before,
.widget-area .widget::before,
.post-sidebar .widget::before,
.shop-sidebar .widget::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--hvd-primary);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Vòng tròn trang trí góc dưới trái (Lấy theo màu phụ Admin) */
#secondary .widget::after,
.sidebar-inner .widget::after,
.widget-area .widget::after,
.post-sidebar .widget::after,
.shop-sidebar .widget::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--hvd-secondary);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* Đảm bảo nội dung widget nằm trên các vòng tròn trang trí */
#secondary .widget>*,
.sidebar-inner .widget>*,
.widget-area .widget>*,
.post-sidebar .widget>*,
.shop-sidebar .widget>* {
    position: relative;
    z-index: 2;
}

.widget-title,
.widget-title span,
.sidebar .widget-title,
.footer-widgets .widget-title {
    color: var(--hvd-primary) !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Link bài viết / tiện ích trong Widget Sidebar */
#secondary .widget ul li a,
.sidebar-inner .widget ul li a,
.widget-area .widget ul li a,
.post-sidebar .widget ul li a,
.shop-sidebar .widget ul li a {
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#secondary .widget ul li a:hover,
.sidebar-inner .widget ul li a:hover,
.widget-area .widget ul li a:hover,
.post-sidebar .widget ul li a:hover,
.shop-sidebar .widget ul li a:hover {
    color: var(--hvd-primary);
    transform: translateX(4px);
}

/* MÀN HÌNH ĐIỆN THOẠI */
@media only screen and (max-width:768px) {
    #wide-nav {
        background: linear-gradient(180deg, #F2F2F2, rgba(211, 210, 211, 1));
    }

    #wide-nav input[type="search"] {
        background: #fff;
        box-shadow: none;
        border-radius: 3px;
        border: none;
    }

    form.cart {
        text-align: center;
    }

    .mfp-wrap .mfp-container .mfp-content {
        background: #fff;
    }

    .mfp-content {
        min-width: 100%;
    }

    .mfp-content #cart-popup,
    .mfp-content #product-sidebar,
    .mfp-content #main-menu {
        width: 85%;
        height: 100%;
        box-shadow: rgba(0, 0, 0, 0.45) 25px 0px 20px -20px;
        font-size: 1rem !important;
        opacity: none !important;
    }

    .mfp-content #main-menu a {
        font-size: 1rem;
        font-weight: normal;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .mfp-content #main-menu a svg {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        stroke-width: 1.8;
        flex-shrink: 0;
    }

    /* 	Nút lọc */
    .category-filtering a {
        padding: 0.5rem 1rem;
        background: var(--hvd-primary);
        color: #fff !important;
        border-radius: 0rem;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }

    /* Icon Menu 2 gạch cách điệu */
    .icon-menu {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 14px;
        vertical-align: middle;
        color: #111;
    }

    .icon-menu:before,
    .icon-menu:after {
        content: '' !important;
        display: block;
        height: 2px;
        /* Đường gạch mỏng */
        background-color: currentColor;
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .icon-menu:before {
        width: 100%;
        /* Gạch trên full */
    }

    .icon-menu:after {
        width: 60%;
        /* Gạch dưới ngắn hơn */
        align-self: flex-end;
        /* Canh lề phải để tạo sự cách điệu */
    }

    /* Hiệu ứng kéo dài gạch khi bấm/hover */
    a:hover .icon-menu:after,
    a:active .icon-menu:after {
        width: 100%;
    }

    .mfp-ready .mfp-close {
        width: 50px;
        height: 100vh !important;
    }

    .mfp-close svg {
        width: 40px;
        height: 40px;
        color: #dbdbdb;
    }

    .tabbed-content .nav li {
        flex: 0 0 50%;
    }

    .tabbed-content .nav li:nth-child(3) {
        flex: 0 0 100%;
    }

}

/* ==================================================
   OVERRIDE FLATSOME HEADER MOBILE
================================================== */
@media screen and (max-width: 849px) {
    .medium-logo-left .flex-right {
        flex: initial !important;
        /* Ghi đè flex: 1 1 0 của Flatsome để phần tử co lại đúng với nội dung */
    }
}

/* ==================================================
   SATISFACTION BADGE
================================================== */
.hvd-satisfaction-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.hvd-satisfaction-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    padding: 8px 25px 8px 8px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
    transition: all 0.3s ease;
    cursor: default;
}

.hvd-satisfaction-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

.hvd-satisfaction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ef4444;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.hvd-satisfaction-icon svg {
    width: 24px;
    height: 24px;
}

.hvd-satisfaction-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hvd-satisfaction-text-main {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hvd-satisfaction-text-sub {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

/* ==================================================
   FLATSOME OVERRIDES (Load More Button)
================================================== */
.ux-relay__control--bottom {
    margin-top: 30px;
    margin-bottom: 30px;
}

.ux-relay__load-more-button {
    background: var(--hvd-gradient) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    padding: 7px 65px 7px 35px !important;
    /* Padding rộng bên phải cho icon */
    position: relative !important;
    text-transform: uppercase !important;
    font-weight: normal !important;
    font-size: 14px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 50px;
    overflow: hidden;

}

.ux-relay__load-more-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.1) !important;
    color: #fff !important;
}

.ux-relay__load-more-button::before {
    content: "\f105" !important;
    font-family: "fl-icons" !important;
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.ux-relay__load-more-button:hover::before {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-50%) translateX(3px) !important;
}

.ux-relay__result-count {
    font-size: 12px !important;
    opacity: 0.8;
    font-weight: 400;
}

/* Tương thích khi đang load */
.ux-relay__load-more-button.is-loading {
    padding-right: 30px !important;
}

.ux-relay__load-more-button.is-loading::after {
    display: none !important;
}

/* ==================================================
   HOME BOX PRODUCTS CUSTOM (Danh sách sản phẩm)
================================================== */
.home-box-products .col-inner {
    background: #fff;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Đường kẻ trang trí mỏng ở dưới card */
.home-box-products .col-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--hvd-primary), transparent);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.home-box-products .col-inner:hover::after {
    left: 0;
    right: 0;
    opacity: 1;
    height: 3px;
}


.home-box-products .col-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--hvd-primary-light);
}

.home-box-products .box-image {
    border-bottom: 1px solid #f8fafc;
    overflow: hidden;
}

.home-box-products .box-image img {
    transition: transform 0.8s ease !important;
}

.home-box-products .col-inner:hover .box-image img {
    transform: scale(1.1);
}

.home-box-products .box-text {
    padding: 20px 15px !important;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-box-products .product-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    transition: color 0.3s ease;
}

.home-box-products .col-inner:hover .product-title a {
    color: var(--hvd-primary) !important;
}

.home-box-products .price {
    color: var(--hvd-secondary) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.home-box-products ins .woocommerce-Price-amount {
    color: var(--hvd-secondary) !important;
}

.home-box-products del .woocommerce-Price-amount {
    opacity: 0.5;
    font-weight: 400;
    font-size: 0.9em;
}

/* Badge Custom */
.home-box-products .badge-inner.on-sale {
    background: var(--hvd-gradient) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-box-products .badge-container {
    top: 12px !important;
    left: 12px !important;
}

/* ==================================================
   HVD HOLIDAY BANNER & POPUP
   ================================================== */
.hvd-holiday-banner {
    background: var(--hvd-gradient);
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hvd-holiday-banner:hover {
    filter: brightness(1.1);
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .hvd-holiday-banner {
        font-size: 13px;
        padding: 10px;
        line-height: 1.4;
    }
}

.hvd-holiday-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

.hvd-holiday-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hvd-holiday-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hvd-holiday-popup-overlay.active .hvd-holiday-popup-content {
    transform: scale(1);
}

.hvd-holiday-popup-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hvd-holiday-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    background: #ff3b30;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 20;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hvd-holiday-popup-close:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hvd-holiday-popup-content {
        max-width: 95%;
    }

    .hvd-holiday-popup-close {
        top: -12px;
        right: -12px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

/* ==================================================
   PAGE TEMPLATES CLASSES (Giới thiệu & Liên hệ)
   ================================================== */
.hvd-hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.hvd-hero-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hvd-divider-line {
    width: 60px;
    height: 4px;
    background: var(--hvd-gradient);
    margin: 0 auto 30px;
    border-radius: 999px;
}

.hvd-card-box {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.hvd-card-box.border-top-primary {
    border-top: 4px solid var(--hvd-primary);
}

.hvd-card-box.border-top-secondary {
    border-top: 4px solid var(--hvd-secondary);
}

.hvd-reason-card {
    background: #fff;
    padding: 35px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.hvd-reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.hvd-icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--hvd-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ==================================================
   HVD PAGINATION CUSTOM (Phân Trang WooCommerce & Flatsome)
   ================================================== */
.nav-pagination,
.woocommerce-pagination,
.page-numbers {
    gap: 6px;
}

.nav-pagination>li,
.woocommerce-pagination ul.page-numbers li,
ul.page-numbers li {
    margin: 0 3px !important;
    display: inline-block !important;
}

.nav-pagination>li>a,
.nav-pagination>li>span,
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span,
ul.page-numbers li a,
ul.page-numbers li span,
.page-number {
    border-radius: 0 !important;
    /* Bỏ bo góc */
    font-weight: normal !important;
    /* Bỏ in đậm */
    border: 1px solid #e2e8f0 !important;
    /* Border nhạt */
    background: #ffffff !important;
    color: #475569 !important;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

/* Trang hiện tại (Active / Current) */
.nav-pagination>li>span.current,
.nav-pagination>li>a.current,
.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce-pagination ul.page-numbers li a.current,
ul.page-numbers li span.current,
ul.page-numbers li a.current,
.page-number.current {
    background: var(--hvd-primary) !important;
    /* Lấy màu tùy biến Admin */
    color: #ffffff !important;
    border-color: var(--hvd-primary) !important;
    font-weight: normal !important;
}

/* Trạng thái Hover */
.nav-pagination>li>a:hover,
.woocommerce-pagination ul.page-numbers li a:hover,
ul.page-numbers li a:hover {
    background: var(--hvd-primary) !important;
    color: #ffffff !important;
    border-color: var(--hvd-primary) !important;
}