/* CSS bổ sung nhỏ để tùy biến hiệu ứng */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

:root {
    --header-bg-color: #0e4c75;
    --header-text-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}


/* Rose Gold Text Effect */
.text-rose-gold {
    /* Thay đổi font mới mềm mại hơn */
    font-family: 'Pinyon Script', cursive;
    /* Deep Rose Gold Gradient: Tối - Sáng (Vàng) - Tối */
    background: linear-gradient(to right, #B76E79 0%, #D4AF37 50%, #8E4E57 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* font-weight: 700; -> Bỏ in đậm để về font gốc thanh mảnh */
    font-weight: 400;
    /* Pinyon Script chỉ có weight 400 */

    /* Bóng đổ nhẹ tạo độ nổi */
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.15));

    /* Animation nhẹ nhàng */
    background-size: 200% auto;
    animation: shine 5s linear infinite;

    /* Fix triệt để lỗi mất dấu tiếng Việt */
    display: inline-block;
    line-height: 1.5;

    /* Mở rộng cực đại vùng vẽ phía trên (cho dấu mũ/hỏi) */
    padding-top: 0.6em;
    padding-bottom: 0.1em;
    padding-right: 0.2em;

    /* Kéo chữ về lại vị trí cũ vì padding làm đẩy dòng xuống */
    margin-top: -0.6em;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Hiệu ứng nút bấm gradient */
.gradient-btn {
    background: linear-gradient(90deg, #005A8D 0%, #48CAE4 100%);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 90, 141, 0.4);
}

/* FAQ Animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Refactored Header with SVG - Styling handled in HTML for responsiveness and specific shape */
/* The header uses utility classes for background and layout */

/* Ensure content sits above the bg/curve */
.header-content {
    position: relative;
    z-index: 20;
    /* Higher than the curve */
    width: 100%;
}


@keyframes shine {
    to {
        background-position: 200% center;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
}


/* Rose Gold Text Effect */
.text-rose-gold {
    /* Thay đổi font mới mềm mại hơn */
    font-family: 'Pinyon Script', cursive;
    /* Deep Rose Gold Gradient: Tối - Sáng (Vàng) - Tối */
    background: linear-gradient(to right, #B76E79 0%, #D4AF37 50%, #8E4E57 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* font-weight: 700; -> Bỏ in đậm để về font gốc thanh mảnh */
    font-weight: 400;
    /* Pinyon Script chỉ có weight 400 */

    /* Bóng đổ nhẹ tạo độ nổi */
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.15));

    /* Animation nhẹ nhàng */
    background-size: 200% auto;
    animation: shine 5s linear infinite;

    /* Fix triệt để lỗi mất dấu tiếng Việt */
    display: inline-block;
    line-height: 1.5;

    /* Mở rộng cực đại vùng vẽ phía trên (cho dấu mũ/hỏi) */
    padding-top: 0.6em;
    padding-bottom: 0.1em;
    padding-right: 0.2em;

    /* Kéo chữ về lại vị trí cũ vì padding làm đẩy dòng xuống */
    margin-top: -0.6em;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Hiệu ứng nút bấm gradient */
.gradient-btn {
    background: linear-gradient(90deg, #005A8D 0%, #48CAE4 100%);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 90, 141, 0.4);
}

/* FAQ Animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Header Background Image */
.header-bg-img {
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); -> Bỏ box-shadow vì nó tạo viền thẳng */
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
    /* Dùng drop-shadow để đổ bóng theo đường cong của ảnh */
}

/* Khi đã cuộn (có class header-bg-img) thì ẩn line đi - Đã bỏ tính năng này */
header.header-bg-img .header-border-line {
    opacity: 0;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- Infinite Marquee Testimonials V3 --- */
.marquee-container {
    overflow: hidden;
    width: 100%;
    max-width: 1300px;
    /* Constrain width */
    margin: 0 auto;
    /* Center container */
    position: relative;
    /* Edge Fading Effect */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-row {
    display: flex;
    width: max-content;
    gap: 24px;
    margin-bottom: 24px;
    /* Spacing between rows */
}

/* Row 1: Normal Direction (Right to Left) */
.marquee-row.normal {
    animation: marquee-scroll 50s linear infinite;
}

/* Row 2: Reverse Direction (Left to Right) */
.marquee-row.reverse {
    animation: marquee-scroll-reverse 55s linear infinite;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-row {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(calc(-50% - 12px));
    }

    100% {
        transform: translateX(0);
    }
}

.testimonial-card {
    width: 400px;
    flex-shrink: 0;
    white-space: normal;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Flex layout for alignment */
    display: flex;
    flex-direction: column;
    height: 100%;

    /* Ensure all cards look equal in size regardless of content */
    min-height: 240px;
}

/* Push the footer (avatar section) to the bottom */
.testimonial-card>div:last-child {
    margin-top: auto;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 90, 141, 0.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 85vw;
        /* Mobile width */
    }

    .marquee-row {
        gap: 16px;
        animation-duration: 30s;
        /* Faster on mobile */
    }

    @keyframes marquee-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 8px));
        }
    }

    @keyframes marquee-scroll-reverse {
        0% {
            transform: translateX(calc(-50% - 8px));
        }

        100% {
            transform: translateX(0);
        }
    }
}

/* --- Feedback Carousel Custom Styles --- */
.feedbackSwiper {
    padding-bottom: 40px !important;
    /* Space for pagination */
}

/* Custom Navigation Buttons */
.custom-next,
.custom-prev {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #005A8D;
    /* Primary Color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 90, 141, 0.1);
}

.custom-next:hover,
.custom-prev:hover {
    background-color: #005A8D;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 90, 141, 0.3);
    border-color: #005A8D;
}

.custom-next::after,
.custom-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Position adjustment */
.swiper-button-next.custom-next {
    right: 0px;
}

.swiper-button-prev.custom-prev {
    left: 0px;
}

@media (min-width: 768px) {
    .swiper-button-next.custom-next {
        right: -20px;
    }

    .swiper-button-prev.custom-prev {
        left: -20px;
    }
}

/* Floating Button Animation: Ripple Effect */
@keyframes ripple-wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.ripple-container {
    position: relative;
    z-index: 10;
}

.ripple-container::before,
.ripple-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.4);
    z-index: -1;
    animation: ripple-wave 2s infinite ease-out;
}

.ripple-container::after {
    animation-delay: 1s;
}

/* Floating Button Text: Dynamic Gradient */
@keyframes gold-shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-gold {
    background: linear-gradient(to right, #D4AF37, #FFD700, #B8860B, #D4AF37);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gold-shine 3s linear infinite;
}

/* Lighter Gold Gradient for 'XEM THÊM' button */
.text-gradient-gold-light {
    background: linear-gradient(to right, #FFF5C3 0%, #FDD835 50%, #FFF59D 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* =========================================
   FLOATING SOCIAL MENU (Flat Luxury)
   ========================================= */
.floating-menu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Spacing between toggle and list */
}

/* Container for small buttons */
.social-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Alignment */
    align-items: center;
}

/* Individual Social Buttons */
.social-btn {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    /* Initial Hidden State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.social-btn:hover {
    transform: scale(1.15) !important;
    /* Override current transform */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Icons Colors */
.social-btn.tiktok {
    color: #000000;
    font-size: 20px;
}

.social-btn.instagram {
    color: #E1306C;
    /* Instagram Pink */
    font-size: 20px;
}

.social-btn.messenger {
    color: #00B2FF;
    font-size: 20px;
}

.social-btn.facebook {
    color: #1877F2;
    font-size: 20px;
}

/* Active State (Show Buttons) */
.social-items-wrapper.active .social-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Staggered Animation (Domino Effect) - Bottom to Top (4 Items) */
/* Item 4 (Bottom-most / Messenger) */
.social-items-wrapper.active .social-btn:nth-child(4) {
    transition-delay: 0s;
}

/* Item 3 (Facebook) */
.social-items-wrapper.active .social-btn:nth-child(3) {
    transition-delay: 0.1s;
}

/* Item 2 (Instagram) */
.social-items-wrapper.active .social-btn:nth-child(2) {
    transition-delay: 0.2s;
}

/* Item 1 (Top-most / TikTok) */
.social-items-wrapper.active .social-btn:nth-child(1) {
    transition-delay: 0.3s;
}

/* Toggle Button */
.menu-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: #0e4c75;
    /* Xanh Đậm (Header BG) */
    border: 2px solid #F4D03F;
    /* Vàng Gold (Match XEM THÊM) */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(14, 76, 117, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove solid color to allow gradient on icon */
    /* color: #F4D03F; */
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    position: relative;
    outline: none;
    z-index: 20;
}

/* Gradient Icon for Toggle Button (Match 'XEM THÊM') */
.menu-toggle-btn i {
    background: linear-gradient(to right, #FFF5C3 0%, #FDD835 50%, #FFF59D 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;

    /* Fix clipping issue */
    padding-top: 5px;
    /* Add space at top */
    padding-bottom: 5px;
    display: block;
    /* Ensure box model works with padding */
    line-height: 1;
    /* Reset line height */
}

.menu-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 76, 117, 0.6);
}

.menu-toggle-btn.active {
    transform: rotate(360deg);
}

/* Zalo Button (Below Main Toggle) - Style like Social Buttons */
.zalo-btn-bottom {
    width: 50px;
    /* Matching Phone CTA Height */
    height: 50px;
    background-color: #ffffff;
    /* No colored border to match social-btn style */
    border-radius: 50%;
    /* Stronger Shadow */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Animation: Distinct Heartbeat/Pulse */
    animation: zalo-pulse 1.5s infinite;
}

.zalo-btn-bottom img {
    width: 28px;
    /* Slightly larger for main CTA */
    height: auto;
    object-fit: contain;
}

.zalo-btn-bottom:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.5);
}

/* Zalo Icon Specifics inside Social Button */
.social-btn.zalo-icon img {
    width: 24px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Pulse Animation Wrapper */
.menu-pulse-ring {
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border: 1px solid #D4AF37;
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    animation: menu-pulse 2s infinite;
    pointer-events: none;
}

@keyframes menu-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes zalo-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.15);
        /* More pronounced expand */
        box-shadow: 0 5px 20px rgba(0, 104, 255, 0.6);
        /* Blue glow burst */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* =========================================
   LOGO GLOW EFFECT
   ========================================= */
.logo-light-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    /* Pure White Glow */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    /* Soften further: Increase blur, reduce opacity */
    filter: blur(35px);
    /* animation: glow-pulse 3s infinite ease-in-out; */
    /* Removed animation */
    pointer-events: none;
    /* Let clicks pass through to logo */
    opacity: 0.4;
    /* Static opacity */
}

/* @keyframes glow-pulse removed */

/* Notification Badge for Zalo */
.zalo-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #FF0000;
    /* Red */
    color: white;
    font-size: 13px;
    /* Larger font */
    font-weight: bold;
    font-family: Arial, sans-serif;
    min-width: 22px;
    /* Larger badge */
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    /* Border matching container bg */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: none;
    /* Badge stays still while button pulses */
    z-index: 10;
}

/* =========================================
   RESPONSIVE MOBILE STYLES
   ========================================= */

/* Use a more specific selector for Desktop to avoid conflict, or just place it here */
/* Use a more specific selector for Desktop to avoid conflict, or just place it here */
#benefits .benefits-image-container {
    display: flex !important;
    flex-direction: row !important;
    /* Force Side-by-Side */
    flex-wrap: nowrap !important;
    /* Prevent stacking */
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#benefits .benefits-image-container img {
    /* Specific selector */
    width: 45% !important;
    /* < 50% to ensure fit */
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0;
    flex: 0 0 auto;
    /* Prevent sizing weirdness */
}

@media (max-width: 768px) {

    /* --- SECTION 1: HERO ADJUSTMENTS --- */
    #about {
        /* Mobile background image */
        background-image: url('../img/tiem-filler-botox-phu-quoc-banner-mobile.webp') !important;
        background-position: bottom center !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
        padding-top: 50px !important;
        /* Visual balance */
        margin-top: -51px !important;
        /* Pull up to hide gap/seamless blend */
        align-items: flex-start !important;
        min-height: 750px;
        height: auto;
        padding-bottom: 0 !important;
    }

    /* Content Container */
    #about .max-w-2xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding-top: 120px !important;
        /* Move text down */
    }

    /* Title Styling */
    #about h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
        /* Shift "DÁNH THỨC" slightly left */
        padding-right: 20px !important;
    }

    #about h1 .text-rose-gold {
        display: block;
        font-size: 3.5rem !important;
        margin-top: -1.5rem !important;
        /* Reset padding for Slogan */
        padding-right: 0 !important;
        margin-bottom: -0.5rem !important;
    }

    /* Reset padding for Slogan */
    padding-right: 0 !important;
}

#about p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 100%;
    color: #34495E;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Buttons Container */
#about .flex.flex-row {
    flex-direction: row !important;
    /* Row layout */
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
}

#about .gradient-btn {
    padding: 0.6rem 1.2rem !important;
    /* Smaller size */
    width: auto !important;
    min-width: auto !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 15px rgba(0, 90, 141, 0.3);
    white-space: nowrap;
}

#about .flex.flex-row>a:last-child {
    padding-left: 0;
    margin-top: 0;
    /* Align with button */
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {

    /* --- SECTION 2: BENEFITS --- */
    #benefits {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
        background: radial-gradient(circle at center, #00b4d8 0%, #3682b2 100%) !important;
    }

    #benefits h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        padding-left: 10px;
        padding-right: 10px;
    }

    #benefits p {
        font-size: 0.95rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 1.5rem !important;
    }

    #benefits .benefits-image-container {
        flex-direction: column !important;
        /* Stack on mobile (Overriding Force Row) */
        gap: 15px;
    }

    #benefits .benefits-image-container img {
        margin-top: 0;
        padding-left: 0;
        padding-right: 0;
        /* Mobile width */
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* General Fixes */
section {
    overflow-x: hidden;
}
}

/* Mobile Menu Active States (Global) */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-active #mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-active #mobile-menu-content {
    transform: translateX(0);
}

/* --- Mobile Menu Button Animation --- */
#mobile-menu-btn {
    position: relative;
    z-index: 70;
    /* Ensure it floats above the menu overlay */
}

#mobile-menu-btn svg path {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* State: OPEN (Turn into X) */
#mobile-menu-btn.open svg path:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    /* Dịch xuống và xoay */
}

#mobile-menu-btn.open svg path:nth-child(2) {
    opacity: 0;
    /* Ẩn dòng giữa */
}

#mobile-menu-btn.open svg path:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    /* Dịch lên và xoay ngược */
    width: 100%;
    /* Ensure proper rotation axis if needed */
}