:root {
    --fs-color-primary: #007bff;
}

/* --- Custom [title] Styling (to match demo .section-heading) --- */
/* Target the centered title wrapper (vh-section-heading is the parent of .section-title-center) */
.vh-section-heading .section-title-center {
    /* Flex properties added as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Match demo's margin, increased to account for line above */
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

/* 1. Hide the default Flatsome side-lines (the <b> tags) */
.vh-section-heading .section-title-center>b {
    display: none !important;
}

/* 2. Style the main text span with a gradient (scoped under .vh-section-heading parent) */
.vh-section-heading .section-title-center .section-title-main {
    font-weight: 800;
    background: linear-gradient(135deg, var(--fs-color-primary), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #212529;
    /* Fallback */
    font-size: 2.8rem;
    /* From demo .section-heading */
    letter-spacing: -0.02em;
    /* From demo */
    order: 2;
    /* Ensure text is below the line */
}

/* 3. Add the animated gradient line *above* the title (vh-section-heading parent + child.) */
.vh-section-heading .section-title-center::after {
    content: '';
    position: absolute;
    /* Changed from 'bottom' to 'top' as requested */
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--fs-color-primary), #00a8ff);
    border-radius: 2px;
    animation: sectionHeadingPulse 2s ease-in-out infinite;
    order: 1;
    /* Ensure line is above the text */
}

/* 4. Add the animation keyframes from the demo */
@keyframes sectionHeadingPulse {

    0%,
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scaleX(1.2);
        opacity: 0.8;
    }
}

/* Responsive adjustments from demo file */
@media screen and (max-width: 768px) {
    .vh-section-heading .section-title-center .section-title-main {
        font-size: 2rem;
    }

    .vh-section-heading .section-title-center {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .vh-section-heading .section-title-center .section-title-main {
        font-size: 1.7rem;
    }

    .vh-section-heading .section-title-center {
        margin-bottom: 2.5rem;
    }
}

/* -------------------- Subsection Heading -------------------- */
/* Smaller variant of .vh-section-heading with a static, shorter underline */
.vh-subsection-heading .section-title-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.vh-subsection-heading .section-title-center>b {
    display: none !important;
}

.vh-subsection-heading .section-title-center .section-title-main {
    font-weight: 700;
    background: linear-gradient(135deg, var(--fs-color-primary), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #212529;
    /* Fallback */
    font-size: 1.6rem;
    /* Smaller than main section headings */
    letter-spacing: -0.01em;
    order: 2;
    /* Keep text below the line */
}

/* Static, shorter underline (no animation) */
.vh-subsection-heading .section-title-center::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    /* shorter than the section heading */
    height: 3px;
    background: linear-gradient(90deg, var(--fs-color-primary), #00a8ff);
    border-radius: 2px;
    /* intentionally no animation */
    order: 1;
}

@media screen and (max-width: 768px) {
    .vh-subsection-heading .section-title-center .section-title-main {
        font-size: 1.4rem;
    }

    .vh-subsection-heading .section-title-center {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .vh-subsection-heading .section-title-center .section-title-main {
        font-size: 1.2rem;
    }

    .vh-subsection-heading .section-title-center {
        margin-bottom: 1rem;
    }
}

/* ------------------------- Glass ----------------------- */
/* Glassmorphism Class (.vh-glass) Based on the styles from .content-overlay > div in your demo. */
.vh-glass {
    /* Glass background and blur */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    /* For Safari */
    /* Subtle border */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Rounded corners */
    border-radius: 20px;
    /* Text styling for readability on glass */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Add default padding. You can override this with the 'padding' attribute on your [col] */
    padding: 30px;
}

/* Fallback for browsers that don't support backdrop-filter (e.g., older Firefox) */
@supports not ((-webkit-backdrop-filter: blur(25px)) or (backdrop-filter: blur(25px))) {
    .vh-glass {
        background: rgba(40, 40, 40, 0.5);
        /* A darker, more opaque fallback */
    }
}

/* ------------------------------ USP card --------------------------- */
/* --- USP Card Styling (.vh-usp-card) --- */
.vh-usp-card {
    background-color: #fff !important;
    /* Use the demo's border-radius */
    border-radius: 20px !important;
    /* Use the demo's specific box-shadow instead of a border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07) !important;
    /* Remove any default border */
    border: none !important;
    padding: 0px !important;
    /* Add the transition for the hover effect */
    transition: all 0.3s ease;
    flex-basis: unset !important;
    max-width: unset !important;
    flex: 1;
    aspect-ratio: 1;
}

/* This is the hover effect from the demo */
.vh-usp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15) !important;
}

/* Target the first [ux_text] (the number) */
.vh-usp-card .text:first-child {
    font-weight: 800 !important;
    /* Hard-coded gradient (no :root) */
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #007bff;
    /* Fallback */
    margin-bottom: 0.5rem;
    /* Re-apply font styles to ensure they take priority */
    font-size: 1.8rem;
    line-height: 1;
}

/* Target the second [ux_text] (the description) */
.vh-usp-card .text:last-child {
    color: #666;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    /* Re-apply font styles */
    font-size: 0.8rem;
}

.vh-usp-card-row {
    gap: 2rem;
    /* Space between USP cards */
    justify-content: center;
    /* Center the cards in the row */
    flex-wrap: nowrap !important;
}

/* Responsive styles from the [ux_text] shortcode */
@media (max-width: 549px) {
    .vh-usp-card .text:first-child {
        font-size: 1.4rem;
    }

    .vh-usp-card .text:last-child {
        font-size: 0.7rem;
    }
}

/* --------------------- Buttons ----------------------- */
a.button {
    /* Font & Spacing */
    font-size: 1rem;
    /* Slightly smaller to match demo */
    font-weight: 700;
    text-transform: none;
    /* Demo buttons are not uppercase */
    padding: 0.6rem 2.1rem;
    /* Shape & Effects */
    border-radius: 8px !important;
    /* Override inline style */
    position: relative;
    overflow: hidden;
    /* Crucial for effects */
    transition: all 0.3s ease;
    /* Fix for <a> tag styling */
    text-decoration: none;
}

/* Place sheen pseudo-element used by demo: slides left -> right on hover */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
    /* sits under the button content */
}

/* Ensure button content sits above the sheen */
.button>* {
    position: relative;
    z-index: 2;
}

/* Icon spacing */
.button span+i {
    margin-left: 0.7rem;
}

/* --- 1. Primary Button (Gradient + Light Reflection) --- */
.button.primary:not(.is-outline),
.button.primary:hover.is-outline {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.35);
}

/* Hover moves the sheen across the button (left -> right) */
.button:hover::before {
    left: 100%;
}

/* --- 2. Outline Button (on light backgrounds) --- */
/* Styles [button style="outline"] or [button style="outline" color="primary"] */
.button.outline {
    background: transparent;
    /* Use Flatsome's default border style */
    border: 2px solid #007bff;
    color: #007bff;
    box-shadow: none;
    padding: calc(0.9rem - 2px) calc(2.1rem - 2px);
    /* Adjust padding for border */
}

.button.outline:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* --- 3. White Outline Button (on dark backgrounds) --- */
/* Styles [button style="outline" color="white"] or any .outline in a .dark section */
.dark .button.outline,
.button.outline.white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
    padding: calc(0.9rem - 2px) calc(2.1rem - 2px);
}

.dark .button.outline:hover,
.button.outline.white:hover {
    background: #fff;
    color: #007bff;
    border-color: #fff;
}

/* -------------------- Queue Icon (shortcode: [queue_icon]) -------------------- */
/* Simple circular icon wrapper used for USP/queue visuals. */
.vh-usp-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #fff 100%);
}

.vh-usp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.queue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e6eefb;
    /* soft pale background */
    color: #0b3b66;
    /* icon color */
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.queue-icon i {
    display: inline-block;
}

.queue-icon.fabulous {
    background: linear-gradient(135deg, #ffb347 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.18);
    transform: translateZ(0);
}

.queue-icon:focus {
    outline: 3px solid rgba(0, 123, 255, 0.18);
    outline-offset: 4px;
}

/* Size helpers */
.queue-icon.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.queue-icon.large {
    width: 70px;
    height: 70px;
    font-size: 28px;
}

/* End queue icon styles */
/* --------------------- Testimonial -------------------- */
.vh-testimonial-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: none;
    transition: all 0.3s ease;
    /* Quan trọng: Ngăn banner tràn ra ngoài */
    overflow: hidden;
}

.vh-testimonial-col:hover .vh-testimonial-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

/* --- 2. Hình ảnh (col_inner chứa banner) --- */
.vh-testimonial-image {
    /* Xóa đệm để ảnh chạm vào cạnh */
    padding: 0 !important;
}

.vh-testimonial-image .ux-banner {
    height: 100%;
    /* Đảm bảo ảnh không bị biến dạng */
    background-size: cover;
}

/* --- 3. Phần trích dẫn (col_inner chứa text) --- */
.vh-testimonial-quote {
    padding: 2.5rem 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Kiểu dáng cho chữ p bên trong */
.vh-testimonial-quote .text p {
    position: relative;
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Dấu nháy kép lớn */
.vh-testimonial-quote .text p .vh-quote-mark {
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 3rem;
    color: #007bff;
    font-family: Georgia, serif;
    line-height: 1;
}

/* --- 4. Thanh thông tin (col_inner ở dưới) --- */
.vh-testimonial-info {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.vh-testimonial-info .text h5 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.vh-testimonial-info .text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.vh-testimonial-card .vh-testimonial-quote .col-inner {
    padding: 24px;
}

.vh-testimonial-card .vh-testimonial-info .col-inner {
    padding: 12px 24px;
}

.vh-testimonial-card .vh-testimonial-image {
    max-height: 300px;
}

/* --- 1. Thẻ Logo Đối tác (.vh-partner-card) --- */
/* Lớp này sẽ được thêm vào [col] bên trong slider. */
.vh-partner-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    /* Đảm bảo căn giữa logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hiệu ứng khi di chuột vào thẻ */
.vh-partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

/* --- 2. Logo bên trong (.vh-partner-logo) --- */
/* Lớp này sẽ được thêm vào [ux_image] */
.vh-partner-logo .img-inner img {
    /* Hiệu ứng Grayscale (Xám) */
    filter: grayscale(1);
    opacity: 0.6;
    /* Giới hạn kích thước logo */
    max-height: 50px;
    width: auto !important;
    /* Ghi đè width của shortcode */
    transition: all 0.3s ease;
}

/* Hiệu ứng khi di chuột vào thẻ, logo sẽ có màu */
.vh-partner-card:hover .vh-partner-logo .img-inner img {
    filter: grayscale(0);
    opacity: 1;
}

/* ---------------------- CTA section ------------------------ */
/* --- CSS to style the Avatar Banner --- This CSS assumes the .vh-avatar-banner class is on your banner. */
.vh-avatar-banner,
.vh-avatar-banner .banner-inner,
.vh-avatar-banner .banner-bg,
.vh-avatar-banner .banner-bg .bg,
.vh-avatar-banner .is-border {
    border-radius: 100% !important;
    /* Force circular shape */
    aspect-ratio: 1;
}

.vh-avatar-banner .is-border {
    border-radius: 100% !important;
}

.ux-badge-container {
    display: inline-block;
    background-color: #fff;
    color: #007bff;
    border-radius: 25px;
    padding: 0.8em 1.2em;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.ux-badge-container i {
    margin-right: 0.5em;
    /* Add space between icon and text */
}

.vh-badge {
    position: absolute;
    bottom: 7%;
    left: unset !important;
    right: -33%;
    height: min-content;
    background: #fff;
    border-radius: 100000000000000000000px;
}

.vh-badge .dark p {
    color: black !important;
}

.cta-features {
    display: flex;
    gap: 2rem;
}

.cta-features .feature-item {
    padding: 1rem 1.5rem;
    background: #cce1f7;
    color: #3d3d3d;
    border-radius: 8px;
    transition: all 150ms ease-in-out;
}

.cta-features .feature-item:hover {
    transform: translatex(1rem);
}

@media screen and (max-width: 1024px) {
    .vh-cta-section .section-content .row {
        flex-direction: column;
    }

    .vh-cta-section .section-content .row>div {
        max-width: unset !important;
        flex: 1;
        padding: 3rem;
    }

    .vh-cta-section .section-content .row>div .vh-avatar-banner {
        max-width: 400px;
    }
}

.vh-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

@media screen and (max-width: 450px) {
    .cta-features {
        flex-direction: column;
    }

    .vh-cta-section .section-content .row>div {
        padding: 1.2rem;
    }
}

/* --------------------- Home particles ----------------------------*/
@keyframes floatingParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.floating-particle {
    filter: blur(0.5px);
    z-index: -1;
}

.vh-product-slide .box {
    padding: 0px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform;
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(var(--product-translate-x, 0));
}

.vh-icon-boxes-row {
    gap: 10px;
}

.vh-icon-box {
    background-color: #cfcfcf;
    padding: 6px 12px !important;
    flex: 1;
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
}

.vh-icon-box h5 {
    text-transform: unset;
    color: gray;
}
