/**
 CÁC BIẾN MÀU CÓ SẴN CỦA THEME FLATSOME 
--primary-color: #1e73be;
--fs-color-primary: #1e73be;
--fs-color-secondary: #C05530;
--fs-color-success: #627D47;
--fs-color-alert: #b20000;
--fs-color-base: #000000;
--fs-experimental-link-color: #1e73be;
--fs-experimental-link-color-hover: #dd3333; */

/**
 * 1. Css chung cho toàn theme
 *  Global css ------------------------------------------------------------ */

/**
 * Shortcode bổ sung 
 *  Global css ------------------------------------------------------------ */

/* --- Site Title Info --- */
.header-web-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.header-web-title .web-title {
    font-family: "Playfair Display";
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .header-web-title {
        align-items: flex-start;
    }

    .header-web-title .web-title {
        font-size: 0.8rem;
    }

    .header-web-title .web-description {
        font-size: 0.6rem;
    }
}

/* --- Hotline Info --- */
.header-hotline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--fs-color-primary), var(--fs-color-secondary));
    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);
}

.header-hotline .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;
    animation: shake 0.4s infinite;
}

.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;
}

.header-hotline .hvd-col-left svg {
    width: 20px;
    height: 20px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.header-hotline .hvd-col-right {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-hotline .hvd-col-right .line-1 a {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.header-hotline .hvd-col-right .line-1 a:hover {
    text-decoration: underline;
}

.header-hotline .hvd-col-right .line-2 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Address Info --- */
.header-diachi {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: color-mix(in srgb, var(--primary-color), white 97%);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-color), white 90%);
    transition: all 0.3s ease;
}

.header-diachi:hover {
    background: color-mix(in srgb, var(--primary-color), white 94%);
    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: linear-gradient(135deg, var(--fs-color-primary), var(--fs-color-secondary));
    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 .hvd-col-right .line-1 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-color-base);
}

.header-diachi .hvd-col-right .line-2 {
    font-size: 12px;
    color: color-mix(in srgb, var(--fs-color-base), transparent 30%);
}


/* --- Animations --- */
@keyframes shake {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

:root {
    --btn-gap: 0;
    --btn-padding: 8px 20px;
}

/* CSS CHO CÁC NÚT TÙY CHỈNH */
/* ========== BUTTON SYSTEM ========== */

/* Base styles cho tất cả button */
.button[class*="hvd-button"] {
    /* Reset cơ bản */
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Typography */
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    color: #fff;

    /* Spacing & Animation */
    gap: var(--btn-gap, 0);
    padding: var(--btn-padding, 8px 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradient & Shadow mặc định */
    background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ========== BUTTON VARIANTS ========== */

/* 1. PRIMARY BUTTON */
.button.hvd-button {
    --btn-gradient-start: var(--primary-color);
    --btn-gradient-end: color-mix(in srgb, var(--primary-color), white 50%);

}

/* 2. SECONDARY BUTTON (dùng fs-color-secondary làm gradient đậm dần) */
.button.hvd-button-secondary {
    --btn-gradient-start: var(--fs-color-secondary);
    --btn-gradient-end: color-mix(in srgb, var(--fs-color-secondary), white 50%);
    --btn-gap: 12px;
    --btn-padding: 6px 8px 6px 25px;

}

/* 3. SUCCESS BUTTON */
.button.hvd-button-success {
    --btn-gradient-start: var(--fs-color-success);
    --btn-gradient-end: color-mix(in srgb, var(--fs-color-success), white 50%);
    --btn-gap: 12px;
    --btn-padding: 6px 8px 6px 25px;

}

/* 4. ALERT BUTTON */
.button.hvd-button-alert {
    --btn-gradient-start: var(--fs-color-alert);
    --btn-gradient-end: color-mix(in srgb, var(--fs-color-alert), white 50%);
    --btn-gap: 12px;
    --btn-padding: 6px 8px 6px 25px;
}

/* ========== AUTO PADDING KHI CÓ ICON ========== */
/* Chỉ áp dụng cho các button có chứa icon */
.button.hvd-button:has(i),
.button.hvd-button-secondary:has(i),
.button.hvd-button-success:has(i),
.button.hvd-button-alert:has(i) {
    --btn-gap: 12px;
    --btn-padding: 6px 8px 6px 25px;
}

/* ========== HOVER EFFECTS ========== */

/* Hover cho tất cả button (trừ secondary đã có override) */
.button[class*="hvd-button"]:hover {
    transform: translateY(-2px);
}

/* Hover riêng cho SECONDARY (đậm hơn) */
.button.hvd-button-secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--fs-color-secondary), black 10%),
            var(--fs-color-secondary));
}

/* Hover riêng cho SUCCESS */
.button.hvd-button-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--fs-color-success), white 30%);
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--fs-color-success), black 10%),
            var(--fs-color-success));
}

/* Hover riêng cho ALERT */
.button.hvd-button-alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--fs-color-alert), white 30%);
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--fs-color-alert), black 10%),
            var(--fs-color-alert));
}

/* ========== ICON STYLES (dùng chung) ========== */
.button[class*="hvd-button"] i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.1em;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Optional: Icon hover effect */
.button[class*="hvd-button"]:hover i {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/**
 * CONTACT BUTTONS STYLES */
/* inc\hvd-contact-buttons.php */
.hvd-contact-system {
    position: relative;
    z-index: 9999;
}

/* Desktop */
.hvd-contact-system .hvd-contact-desktop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.hvd-contact-system .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-system .hvd-contact-desktop .contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hvd-contact-system .btn-phone-main {
    background: linear-gradient(135deg, var(--primary-color), var(--fs-color-secondary));
    animation: shake 2s infinite;
}

.hvd-contact-system .btn-phone-sub {
    background: var(--fs-color-success);
}

.hvd-contact-system .btn-maps {
    background: #ea4335;
}

.hvd-contact-system .btn-zalo {
    background: #0088cc;
}

.hvd-contact-system .btn-contact {
    background: var(--fs-color-base);
}

/* Mobile */
.hvd-contact-system .hvd-contact-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.hvd-contact-system .hvd-mobile-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
}

.hvd-contact-system .hvd-mobile-center {
    flex: 0 0 70px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hvd-contact-system .m-phone-main {
    position: absolute;
    bottom: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--fs-color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 20px color-mix(in srgb, var(--primary-color), transparent 50%);
    border: 4px solid #fff;
    animation: shake 2s infinite;
}

.hvd-contact-system .m-phone-main:hover,
.hvd-contact-system .m-phone-main:active {
    color: #fff;
}

.hvd-contact-system .m-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--fs-color-base);
    font-size: 11px;
    text-decoration: none;
    font-weight: 600;
    gap: 4px;
}

.hvd-contact-system .m-btn svg {
    width: 22px;
    height: 22px;
}

.hvd-contact-system .m-zalo {
    color: #0088cc;
}

.hvd-contact-system .m-phone-sub {
    color: var(--fs-color-success);
}

.hvd-contact-system .m-maps {
    color: #ea4335;
}

.hvd-contact-system .m-contact-toggle {
    color: var(--primary-color);
}

/* Popup */
.hvd-contact-system .hvd-contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.hvd-contact-system .hvd-contact-popup.active {
    display: flex;
}

.hvd-contact-system .hvd-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.hvd-contact-system .hvd-popup-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.hvd-contact-system .hvd-popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--fs-color-secondary));
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hvd-contact-system .hvd-popup-header h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.hvd-contact-system .hvd-popup-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.hvd-contact-system .hvd-popup-body {
    padding: 25px;
    font-size: 15px;
    color: var(--fs-color-base);
    line-height: 1.8;
}

.hvd-contact-system .hvd-popup-body p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hvd-contact-system .hvd-popup-body a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.hvd-contact-system .hvd-popup-body svg {
    flex-shrink: 0;
    margin-top: 3px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*css 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-name: hvd-marquee-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite
}

.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%)
    }

}

/*shortcode post list */
.hvd-post-list-container {
    margin-bottom: 40px
}

.hvd-post-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
}

.hvd-post-list-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9
}

.hvd-post-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #EE511A
}

.hvd-post-list-item .item-inner {
    display: flex;
    height: 100%
}

.hvd-post-list-item .item-image {
    flex: 0 0 40%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f8fafc
}

.hvd-post-list-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease
}

.hvd-post-list-item:hover .item-image img {
    transform: scale(1.1)
}

.hvd-post-list-item .item-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column
}

.hvd-post-list-item .item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b
}

.hvd-post-list-item .item-meta span {
    display: flex;
    align-items: center;
    gap: 5px
}

.hvd-post-list-item .item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px
}

.hvd-post-list-item .item-title a {
    color: #0f172a;
    transition: color 0.3s ease
}

.hvd-post-list-item .item-title a:hover {
    color: #EE511A
}

.hvd-post-list-item .item-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.hvd-post-list-item .item-readmore {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #EE511A;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none
}

.hvd-post-list-item .item-readmore::after {
    content: '';
    transition: transform 0.3s ease
}

.hvd-post-list-item:hover .item-readmore::after {
    transform: translateX(5px)
}

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

    .hvd-post-list-item .item-content {
        padding: 10px
    }

    .hvd-post-list-item .item-image {
        flex: 0 0 30%;
        overflow: hidden;
        position: relative;
        aspect-ratio: 1 / 1;
        background: #f8fafc
    }

    .hvd-post-list-item .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease
    }

    .hvd-post-list-item .item-readmore {
        display: none;
    }

}

.box-title h2,
.box-title h3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    text-transform: uppercase;
    width: 100%;
    font-size: 32px;
    color: #0f172a;
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: uppercase
}

.box-title h2::before,
.box-title h3::before {
    background: linear-gradient(to right, transparent, #EE511A, #F97316)
}

.box-title h2::after,
.box-title h3::after {
    background: linear-gradient(to left, transparent, #EE511A, #F97316)
}

@media (max-width: 768px) {

    /* Thêm margin bottom cho body để không bị nút mobile che nội dung */
    body {
        padding-bottom: 70px;
    }
}

/* -----------------------------------------
   BẢNG (TABLE) RESPONSIVE
----------------------------------------- */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.table-responsive table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    min-width: 600px;
    /* Đảm bảo bảng không bị ép quá nhỏ gây vỡ layout chữ */
}

/* Tùy chỉnh thanh cuộn cho bảng */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* Form Styles - Form liên hệ toàn web */
.theme-contact-form input,
.theme-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--primary-color), white 90%);
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    transition: all 0.3s;
    background: color-mix(in srgb, var(--primary-color), white 97%);
}

.theme-contact-form input:focus,
.theme-contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color), transparent 90%);
}

.theme-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--fs-color-base);
    font-size: 14px;
}
/*Nút submit của form */
.hvd-button.submit-contact-btn{
    background: linear-gradient(135deg, var(--fs-color-primary), var(--fs-color-secondary));
    box-shadow: none;
    color: white;
    font-weight: normal;
    border-radius: 22px;
}
@media only screen and (max-width:768px) {


    .hvd-contact-popup .theme-contact-form label {
        display: none;
    }

    .hvd-contact-popup .theme-contact-form .row .col {
        padding: 0 !important;
    }
}