/* =========================================================
   1. BIẾN MÀU VÀ THIẾT LẬP CHUNG
   Các biến trong :root giúp đổi màu, nền và hiệu ứng ở một nơi.
   Khi muốn đổi nhận diện màu của website, ưu tiên sửa tại đây.
   ========================================================= */
:root {
    /* Bảng màu Đất Sen Hồng chuyên nghiệp (Dong Thap Theme) */
    --dong-thap-lotus: #d63384;
    --dong-thap-lotus-soft: #ff79a8;
    --dong-thap-leaf: #1f7a4d;
    --dong-thap-leaf-dark: #0b4d34;
    --dong-thap-water: #2ca6a4;
    --dong-thap-sun: #f2c14e;

    /* Các biến chức năng và Mapping */
    --aia-red: var(--dong-thap-lotus);
    --aia-red-bright: var(--dong-thap-lotus-soft);
    --future-ink: #123028;
    --future-teal: var(--dong-thap-water);
    --future-cyan: #58c9c5;
    --future-gold: var(--dong-thap-sun);

    --lotus-pink: var(--dong-thap-lotus);
    --lotus-pink-light: var(--dong-thap-lotus-soft);
    --lotus-leaf: var(--dong-thap-leaf);
    --lotus-leaf-light: #35a06e;
    --lotus-leaf-dark: var(--dong-thap-leaf-dark);
    
    --text-main: #19312b;
    --text-muted: #65756f;
    
    --bg-soft-green: #eef8f0;
    --bg-dew: #fff6f9;
    --bg-pink-fade: #ffe2ec;
    --bg-white: #ffffff;

    --surface-glass: rgba(255, 252, 253, 0.84);
    --border-soft: rgba(214, 51, 132, 0.12);
    --shadow-soft: 0 18px 42px rgba(82, 32, 54, 0.08);
    --shadow-lift: 0 30px 72px rgba(82, 32, 54, 0.15);
    
    --grad-bg: linear-gradient(180deg, #fffafd 0%, #fff1f6 38%, #f1faef 72%, #fffdf7 100%);
    --grad-lotus: linear-gradient(135deg, #ff8ab5 0%, var(--dong-thap-lotus) 52%, #a91e61 100%);
    --grad-leaf: linear-gradient(135deg, #5cbd7a 0%, var(--dong-thap-leaf) 56%, var(--dong-thap-leaf-dark) 100%);

    --transition-smooth: all 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Reset box-sizing để padding và border không làm phần tử bị rộng hơn dự kiến. */
* {
    box-sizing: border-box;
    text-rendering: geometricPrecision;
}

/* Căn chỉnh Typography chung */
h1, h2, h3 {
    text-wrap: balance;
    line-height: 1.2;
}

p {
    text-wrap: pretty;
    text-align: center; /* Căn giữa toàn bộ trên di động để tăng tính đối xứng */
    line-height: 1.6;
}

/* Cuộn mượt khi bấm các liên kết neo như #products, #contact. */
html {
    scroll-behavior: smooth;
}

/* Chặn tràn ngang, tránh xuất hiện thanh cuộn ngang trên mobile. */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* Thiết lập font, màu chữ và nền mặc định cho toàn trang. */
body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--grad-bg);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

@media (min-width: 992px) {
    p {
        text-align: justify; /* Chỉ căn đều hai bên trên màn hình lớn */
    }
    .hero-content p, .footer-col p, .about-text p {
        text-align: left; /* Quay lại căn trái/đều trên Desktop */
    }
}

/* Chừa khoảng cách khi cuộn tới section để không bị header cố định che mất tiêu đề. */
section {
    scroll-margin-top: 110px;
}

/* Tất cả link có hiệu ứng chuyển trạng thái mượt khi hover/focus. */
a {
    transition: var(--transition-smooth);
}

/* Kiểu nút nền tảng dùng lại cho nút chính, nút viền và nút trong card. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Nút chính màu hồng, dùng cho hành động quan trọng như tư vấn hoặc tìm hiểu thêm. */
.btn-primary {
    background: var(--grad-lotus);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Hiệu ứng nổi lên khi người dùng hover/focus vào nút chính. */
.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
}

/* Nút viền trắng thường dùng trên nền ảnh ở hero. */
.btn-outline {
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
}

/* Khi hover nút viền, đổi thành nền trắng để dễ đọc hơn trên ảnh. */
.btn-outline:hover,
.btn-outline:focus {
    color: var(--lotus-leaf);
    background: #fff;
    transform: translateY(-3px);
}

/* =========================================================
   2. HEADER - THANH ĐIỀU HƯỚNG CỐ ĐỊNH
   Header luôn nằm trên cùng, có nền kính mờ và đổi trạng thái khi cuộn.
   ========================================================= */
.header {
    position: fixed;
    top: clamp(10px, 2vw, 20px);
    left: 50%;
    width: min(1200px, calc(100% - 24px));
    padding: 0;
    transform: translateX(-50%);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: clamp(28px, 8vw, 999px);
    background-color: rgba(255, 255, 255, 0.82);
    background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    background-size: 200% 100%;
    background-position: 200% 0;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: var(--transition-smooth);
}

/* Class .scrolled được JavaScript thêm khi cuộn xuống quá 50px. */ 
.header.scrolled {
    top: 12px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(233, 30, 99, 0.14);
    animation: specularHighlight 1.2s ease-in-out forwards;
}

/* Hiệu ứng ánh sáng lướt qua header khi chuyển sang trạng thái scrolled. */
@keyframes specularHighlight {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -100% 0;
    }
}

/* Giữ chiều rộng tối đa của container trong header. */
.header .container-fluid {
    max-width: 1200px;
    min-height: 64px;
}

/* Bố cục hàng ngang của logo, menu và các nút trên header. */
.header .container > .navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 1.25rem;
}

@media (min-width: 992px) {
    .header .container > .navbar {
        flex-direction: column; /* Đặt Logo phía trên Menu */
        justify-content: center;
        gap: 0.4rem;
        padding: 0.8rem 1.25rem;
        min-height: auto;
    }
}

/* Khối logo gồm ảnh logo và dòng chữ AIA GA - Đồng Tháp. */
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
}

/* Đổi màu logo khi hover để người dùng biết có thể bấm. */
.logo:hover {
    color: var(--lotus-leaf);
}

/* Kích thước ảnh logo trong header. */
.logo img {
    width: auto;
    height: 32px;
    display: block;
}

/* Chữ thương hiệu bên cạnh logo, dùng clamp để tự co giãn theo màn hình. */
.logo-text {
    font-size: clamp(0.78rem, 2.6vw, 1.05rem);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

/* Khi dùng Bootstrap collapse, giới hạn chiều cao menu để không vượt quá màn hình. */
.header .navbar-collapse {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Kiểu chữ của link menu ở cả Bootstrap navbar và menu tự viết. */
.header .navbar-nav .nav-link,
.nav-menu:not(.navbar-nav) a {
    position: relative;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap; /* Tuyệt đối không cho phép nhảy dòng */
    padding: 0.35rem 0.75rem; /* Căn chỉnh lại padding để Menu không bị nảy */
    display: block;
    line-height: 1.5; /* Fix line-height cố định để tránh nảy chữ khi hover */
    transition: color 0.3s ease;
}

/* Màu link đang hover hoặc đang active. */
.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active,
.nav-menu:not(.navbar-nav) a:hover,
.nav-menu:not(.navbar-nav) a.active {
    color: var(--lotus-leaf);
}

/* Gạch chân động dưới link menu, không áp dụng cho nút dropdown. */
.header .navbar-nav .nav-link:not(.dropdown-toggle)::after,
.nav-menu:not(.navbar-nav) > li > a::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--lotus-leaf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

/* Mở rộng gạch chân khi hover hoặc link có class active. */
.header .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.header .navbar-nav .nav-link:not(.dropdown-toggle).active::after,
.nav-menu:not(.navbar-nav) > li > a:hover::after,
.nav-menu:not(.navbar-nav) > li > a.active::after {
    transform: scaleX(1);
}

/* --- Menu responsive dưới 992px: chuyển menu thành panel trượt từ bên phải. --- */
@media (max-width: 991.98px) {
    /* Chuyển menu thành Dropdown xổ dọc ngay dưới Header */
    .nav-menu:not(.navbar-nav) {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 120px);
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
        z-index: 1999;
        overflow-y: auto;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Link trong menu mobile chiếm toàn chiều rộng để dễ bấm bằng tay. */
    .nav-menu li { width: 100%; }
    .nav-menu a { font-size: 1.1rem; display: block; width: 100%; }
    
    /* Nút hamburger gồm 3 gạch, chỉ hiển thị trên mobile nhờ class Bootstrap d-lg-none. */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2001;
    }

    /* Ba thanh bên trong hamburger. */
    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: var(--lotus-leaf);
        transition: var(--transition-smooth);
    }

    /* Khi mở menu, 3 gạch biến thành biểu tượng X. */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.nav-menu:not(.navbar-nav) {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .nav-menu:not(.navbar-nav) {
        width: 100%;
        justify-content: center; /* Căn giữa toàn bộ Menu trên Desktop */
        flex-wrap: wrap; /* Cho phép tự cân đối nếu màn hình nhỏ hơn 1200px */
        gap: 0.1rem;
        margin-left: 0;
    }
}

/* Hộp menu thả xuống của mục thanh toán hoặc các menu con sau này. */
.dropdown {
    position: relative;
}

.dropdown-menu {
    min-width: 230px;
    padding: 0.75rem 0;
    border: 0;
    border-top: 4px solid var(--lotus-leaf);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

/* Hiện dropdown tự viết khi JavaScript thêm class .active vào phần tử cha. */
.dropdown.active > .dropdown-menu {
    display: block;
}

/* Link trong dropdown. */
.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
}

/* Đổi nền nhẹ khi hover/focus vào từng dòng dropdown. */
.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--lotus-leaf);
    background: #f8fcf9;
}

/* Nút liên hệ nhanh trên mobile, đặt cạnh hamburger. */
.contact-quick-box {
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    color: var(--lotus-leaf);
    background: #fff;
    border: 1.5px solid var(--lotus-leaf);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.1);
}

/* Trạng thái hover của nút liên hệ nhanh. */
.contact-quick-box:hover {
    color: #fff;
    background: var(--lotus-leaf);
}

/* Điều chỉnh kích thước icon hamburger mặc định nếu dùng navbar-toggler của Bootstrap. */
.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* =========================================================
   3. HERO SLIDER - VÙNG ẢNH LỚN ĐẦU TRANG
   Gồm nhiều slide ảnh nền, chữ giới thiệu, nút chuyển slide và chấm indicator.
   ========================================================= */
.hero {
    position: relative;
    min-height: clamp(520px, 85vh, 820px);
    overflow: hidden;
}

/* Hero slider và từng slide chiếm toàn bộ chiều cao của vùng hero. */
.hero-slider,
.slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* Slide mặc định bị ẩn, JavaScript sẽ thêm .active để hiện slide đang chọn. */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Lớp phủ tối trên ảnh để chữ trắng dễ đọc hơn. */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
}

/* Slide đang active hiện lên, nhận click và trở về tỉ lệ ảnh bình thường. */
.slide.active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Ảnh nền của slide phủ kín khu vực hero. */
.slide-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s linear;
    will-change: transform; /* Báo trước cho GPU để xử lý mượt hơn */
}

/* Hiệu ứng zoom chậm khi slide đang active. */
.slide.active .slide-bg-image {
    transform: scale(1.12);
}

/* Khối chữ và nút bên trong hero, nằm trên lớp phủ ảnh. */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Tiêu đề chính của hero, tự co giãn theo kích thước màn hình. */
.hero-content h1 {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: clamp(1.85rem, 9vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Vạch hồng trang trí bên dưới tiêu đề hero. */
.hero-content h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 1.35rem auto 0;
    border-radius: 999px;
    background: var(--lotus-pink-light);
}

/* Đoạn mô tả bên dưới tiêu đề hero. */
.hero-content p {
    margin-bottom: 1.8rem;
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
    opacity: 0.95;
}

/* Các chấm chỉ vị trí slide, nằm ở cuối hero. */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

/* Một chấm indicator. Class .active cho biết slide hiện tại. */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Chấm indicator nổi bật khi hover hoặc đang active. */
.indicator:hover,
.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* Nút mũi tên trái/phải của slider. */
.slider-ctrl {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transform: translateY(-50%);
    transition: var(--transition-smooth);
}

/* Hiệu ứng hover cho nút chuyển slide. */
.slider-ctrl:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

/* Vị trí nút quay lại slide trước. */
.slider-prev {
    left: 20px;
}

/* Vị trí nút chuyển tới slide sau. */
.slider-next {
    right: 20px;
}

/* =========================================================
   4. CÁC SECTION NỘI DUNG CHÍNH
   Dùng cho tiêu đề section, card sản phẩm, dịch vụ, giới thiệu, thống kê và tin tức.
   ========================================================= */
.products,
.solution-finder,
.living-panel,
.services,
.about,
.advisor-cta,
.news,
.help-section,
.contact {
    padding: clamp(3rem, 10vw, 6.5rem) 0; /* Tăng độ thoáng cho Section trên mọi thiết bị */
    content-visibility: auto; /* Tối ưu hóa render cho di động */
    contain-intrinsic-size: 1px 500px; /* Giữ chỗ để tránh nhảy trang khi cuộn */
}

.products,
.about,
.help-section {
    background: var(--bg-white);
}

.solution-finder,
.services,
.news {
    background: var(--bg-soft-green);
}

.section-title,
.section-header h2,
.about-text h2 {
    color: var(--future-ink);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

/* Vạch hồng trang trí dưới tiêu đề section. */
.section-title::after,
.section-header h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: var(--lotus-pink);
}

/* Đoạn mô tả ngắn dưới tiêu đề section. */
.section-header p {
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Nhãn nhỏ phía trên tiêu đề ở các section nổi bật. */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: var(--lotus-pink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Style chung cho các loại Card - Tối ưu OCD */
.need-card, .product-card, .service-action, .elite-card, .help-card, .content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    align-items: center; /* Căn giữa nội dung trên mobile */
    text-align: center;
    transition: var(--transition-smooth);
}

.need-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    background: var(--bg-pink-fade);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.need-card:hover {
    color: inherit;
    border-color: var(--lotus-pink-light);
    transform: translateY(-8px);
}

.need-card:hover::after {
    transform: scale(1.45);
}

.need-number {
    color: rgba(27, 94, 32, 0.18);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.need-card i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 1.3rem 0 1rem;
    color: #fff;
    background: var(--grad-leaf);
    border-radius: 16px;
    font-size: 1.4rem;
}

.need-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    color: var(--lotus-leaf);
    font-size: 1.15rem;
}

.need-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
}

/* Hiệu ứng nổi card sản phẩm khi hover. */
.product-card:hover {
    color: inherit;
    border-color: var(--lotus-leaf-light);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
    transform: translateY(-10px);
}

/* Icon tròn phía trên mỗi card sản phẩm. */
.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 2rem;
    background: var(--grad-leaf);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
    transition: var(--transition-smooth);
}

/* Icon phóng nhẹ khi hover vào card. */
.product-card:hover .product-icon {
    transform: scale(1.1);
}

/* Tiêu đề trong card sản phẩm. */
.product-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.35rem;
}

/* Nhóm các đoạn mô tả dùng màu chữ phụ để giảm độ nặng thị giác. */
.product-card p,
.service-item p,
.news-content p,
.about-text p {
    color: var(--text-muted);
}

/* Một ô dịch vụ trên trang chủ. */
.service-item {
    padding: 2rem;
    text-align: center;
    border-radius: 18px;
    transition: var(--transition-smooth);
}

/* Icon của từng dịch vụ. */
.service-item i {
    margin-bottom: 1.25rem;
    color: var(--lotus-leaf);
    font-size: 2.5rem;
    transition: var(--transition-smooth);
}

/* Icon dịch vụ phóng nhẹ khi hover. */
.service-item:hover i {
    transform: scale(1.15);
}

/* Khu vực Sống khỏe cùng AIA. */
.living-panel {
    background: linear-gradient(135deg, #fff 0%, var(--bg-dew) 45%, #eef7ed 100%);
}

.feature-media {
    position: relative;
}

.feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 25px 55px rgba(27, 94, 32, 0.16);
}

.feature-badge {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 1.15rem;
    color: #fff;
    background: rgba(13, 51, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.feature-badge strong,
.feature-badge span {
    display: block;
}

.feature-badge span {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    opacity: 0.88;
}

.feature-title,
.elite-copy h2,
.advisor-card h2 {
    margin-bottom: 1rem;
    color: var(--lotus-leaf);
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
}

.feature-copy {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.vitality-steps div {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 16px;
}

.vitality-steps i {
    color: var(--lotus-pink);
    font-size: 1.45rem;
}

.vitality-steps h3 {
    margin: 0.8rem 0 0.35rem;
    color: var(--lotus-leaf);
    font-size: 1rem;
}

.vitality-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.text-link {
    color: var(--lotus-leaf);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--lotus-pink);
}

/* Khu vực AIA Elite. */
.elite-section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(13, 51, 15, 0.95), rgba(27, 94, 32, 0.88)), url("images/Thịnh vượng.jpg") center/cover;
}

.elite-copy h2,
.elite-copy .section-eyebrow {
    color: #fff;
}

.elite-copy p {
    max-width: 560px;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.elite-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.elite-card i {
    color: var(--lotus-pink-light);
    font-size: 1.7rem;
}

.elite-card h3 {
    margin: 0.9rem 0 0.45rem;
    color: #fff;
    font-size: 1.2rem;
}

.elite-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.service-action {
    min-height: auto;
}

.service-action:hover {
    color: inherit;
    border-color: var(--lotus-leaf-light);
    transform: translateY(-8px);
}

.service-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.25rem;
    color: #fff;
    background: var(--grad-lotus);
    border-radius: 18px;
    font-size: 1.4rem;
}

.service-action h3 {
    color: var(--lotus-leaf);
    font-size: 1.14rem;
}

.service-action p {
    color: var(--text-muted);
}

.service-action span {
    margin-top: auto;
    color: var(--lotus-pink);
    font-weight: 700;
}

/* Ảnh ở section giới thiệu. */
.about-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(216, 27, 96, 0.15);
    transition: var(--transition-smooth);
}

/* Ảnh giới thiệu zoom nhẹ khi hover. */
.about-image:hover img {
    transform: scale(1.02);
}

/* Con số thống kê trong section Về AIA. */
.stat h3 {
    justify-content: center;
    margin-bottom: 0.25rem;
    color: var(--lotus-leaf);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* Banner tư vấn/tìm sản phẩm phù hợp. */
.advisor-cta {
    background: linear-gradient(135deg, var(--bg-dew), #fff);
}

.advisor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 6vw, 3.5rem); /* Tăng khoảng trống để banner tư vấn nổi bật hơn */
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(216, 27, 96, 0.12);
}

.advisor-card h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.65rem);
}

.advisor-card p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
}

/* Khung bài viết/tin tức. */
.news-item {
    overflow: hidden;
    background: #fafafa;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.news-item:hover {
    /* Khi hover bài viết, card nhô lên để tạo cảm giác có thể tương tác. */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

/* Tiêu đề bài viết dùng màu chữ chính. */
.news-content h3 {
    color: var(--text-main);
}

/* Đổi màu tiêu đề khi hover và màu ngày/thẻ tin tức. */
.news-item:hover h3,
.news-date {
    color: var(--lotus-leaf);
}

/* Nhãn ngày hoặc mô tả trạng thái tin. */
.news-date {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Khu vực hỗ trợ và FAQ. */
.help-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.help-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    color: inherit;
    background: var(--bg-dew);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.help-card:hover {
    color: inherit;
    background: #fff;
    box-shadow: 0 15px 30px rgba(216, 27, 96, 0.12);
    transform: translateY(-4px);
}

.help-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--grad-leaf);
    border-radius: 16px;
    font-size: 1.25rem;
}

.help-card h3 {
    margin: 0 0 0.25rem;
    color: var(--lotus-leaf);
    font-size: 1.05rem;
}

.help-card p {
    margin: 0;
    color: var(--text-muted);
}

.faq-list {
    display: grid;
    width: 100%;
    gap: 0.85rem;
}

.faq-list details {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(27, 94, 32, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
}

.faq-list summary {
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    color: var(--lotus-leaf);
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--lotus-pink);
    font-size: 1.3rem;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    margin: 0;
    padding: 0 1.25rem 1.5rem;
    text-align: justify;
    color: var(--text-muted);
}

/* =========================================================
   5. FORM LIÊN HỆ
   Mặc định section #contact được ẩn, JavaScript thêm .show-contact để mở ra.
   ========================================================= */
#contact {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Trạng thái hiển thị của form liên hệ sau khi bấm các link href="#contact". */
#contact.show-contact {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Khung form liên hệ. */
.contact-form {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
}

/* Nút đóng form liên hệ ở góc trên phải. */
.close-contact-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 2;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    transition: var(--transition-smooth);
}

/* Hiệu ứng xoay nhẹ khi hover nút đóng. */
.close-contact-btn:hover {
    color: var(--lotus-leaf);
    transform: rotate(90deg);
}

/* Style chung cho input, select và textarea. */
.form-control,
.form-select,
input,
select,
textarea {
    min-height: 52px;
    border-color: #ddd;
    border-radius: 12px;
}

/* Ô nhập nội dung dài được phép kéo chiều cao theo trục dọc. */
textarea.form-control,
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Trạng thái focus của form dùng màu xanh thương hiệu. */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--lotus-leaf);
    box-shadow: 0 0 0 0.2rem rgba(27, 94, 32, 0.12);
}

.products,
.solution-finder,
.living-panel,
.services,
.about,
.advisor-cta,
.news,
.help-section,
.contact,
.content-band,
.protection-quiz,
.career-band,
.health-advice {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

/* =========================================================
   6. FOOTER - CHÂN TRANG
   Chứa nhóm link, thông tin liên hệ, logo và mạng xã hội.
   ========================================================= */
.footer {
    padding: clamp(3rem, 8vw, 5rem) 0 1.5rem; /* Căn chỉnh lại padding trên và dưới của Footer */
    color: #fff;
    background: var(--grad-leaf);
}

/* Tiêu đề từng cột trong footer. */
.footer-col h4 {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.65rem;
    color: #fff;
    font-size: 1.15rem;
}

/* Vạch hồng nhỏ dưới tiêu đề cột footer. */
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--lotus-pink-light);
}

/* Mỗi dòng thông tin trong footer có icon và nội dung căn hàng ngang. */
.footer-col li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

/* Link trong footer dùng màu trắng mờ để hài hòa với nền xanh. */
.footer-col a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

/* Link footer sáng màu hồng khi hover. */
.footer-col a:hover {
    color: var(--lotus-pink-light);
}

/* Icon trong footer có chiều rộng cố định để các dòng thẳng hàng. */
.footer-col i {
    width: 20px;
    color: var(--lotus-pink-light);
    text-align: center;
    line-height: 1.6;
}

/* Mô tả ngắn của thương hiệu trong footer. */
.footer-brand p {
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

/* Nhóm icon/link mạng xã hội hoặc đường dẫn ngoài. */
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
}

/* Mỗi item mạng xã hội gồm icon và nhãn bên dưới. */
.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

/* Nút icon mạng xã hội. */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: var(--lotus-pink);
    background: #fff;
    border-radius: 14px;
    font-size: 1.55rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Icon mạng xã hội nổi lên khi hover. */
.social-links a:hover {
    color: var(--lotus-leaf);
    transform: translateY(-5px);
}

/* Giới hạn logo AIA bên trong nút footer. */
.footer-logo-link img {
    max-width: 85%;
    max-height: 32px;
}

/* Nhãn nhỏ dưới từng icon xã hội. */
.social-label {
    max-width: 110px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Dòng bản quyền cuối trang. */
.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    text-align: center;
}

/* =========================================================
   7. SCROLL REVEAL - HIỆU ỨNG HIỆN DẦN KHI CUỘN
   JavaScript thêm class .active khi phần tử xuất hiện trong màn hình.
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s cubic-bezier(0.2, 1, 0.3, 1), transform 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Phần tử đã xuất hiện: trở về đúng vị trí và hiện rõ. */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Các lớp delay dùng để tạo hiệu ứng xuất hiện lần lượt. */
.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}

.delay-4 {
    transition-delay: 0.48s;
}

.delay-5 {
    transition-delay: 0.6s;
}

/* =========================================================
   8. CHATBOT AI
   Gồm bong bóng chat cố định, cửa sổ chat, danh sách tin nhắn và ô nhập.
   ========================================================= */
.ai-chat-wrapper {
    /* Vị trí cố định của toàn bộ widget chat ở góc phải dưới màn hình. */
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 3000;
    display: block; /* Hiển thị mặc định, sẽ bị d-lg-none trong HTML ẩn trên Desktop */
}

/* Bong bóng chat tròn để mở/đóng cửa sổ chatbot. */
.ai-chat-bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    background: var(--grad-lotus);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.3);
    animation: chat-pulse 3s infinite;
}

/* Logo trong bong bóng chat. */
.ai-chat-bubble img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Nhãn "Chat bot AIA" nằm bên trái bong bóng. */
.ai-chat-label {
    position: absolute;
    right: 60px;
    padding: 0.5rem 0.9rem;
    color: var(--lotus-pink);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--bg-pink-fade);
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

/* Cửa sổ chat, mặc định ẩn bằng opacity và visibility. */
.ai-chat-window {
    position: absolute;
    right: 0;
    bottom: 65px;
    display: flex;
    flex-direction: column;
    width: min(350px, calc(100vw - 40px));
    height: min(500px, 70vh);
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

/* Khi JavaScript thêm .active, cửa sổ chat hiện lên. */
.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Thanh tiêu đề của cửa sổ chat. */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: #fff;
    background: var(--grad-leaf);
}

/* Nhóm logo và tên trợ lý AI. */
.ai-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Logo nhỏ trong header chatbot. */
.ai-info img {
    width: auto;
    height: 25px;
}

/* Nút đóng chatbot. */
.close-chat {
    color: #fff;
    background: none;
    border: 0;
    font-size: 1.5rem;
}

/* Vùng chứa danh sách tin nhắn, có thể cuộn dọc. */
.ai-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
    overflow-y: auto;
    background: #f9f9f9;
}

/* Kiểu chung cho một bong bóng tin nhắn. */
.message {
    max-width: 80%;
    padding: 0.65rem 0.9rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Tin nhắn của bot nằm bên trái. */
.message.bot {
    align-self: flex-start;
    color: var(--text-main);
    background: #fff;
    border-bottom-left-radius: 2px;
}

/* Tin nhắn của người dùng nằm bên phải. */
.message.user {
    align-self: flex-end;
    color: #fff;
    background: var(--lotus-pink);
    border-bottom-right-radius: 2px;
}

/* Thanh nhập câu hỏi ở cuối cửa sổ chat. */
.ai-chat-input {
    display: flex;
    gap: 0.65rem;
    padding: 0.9rem;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Ô nhập nội dung chat. */
.ai-chat-input input {
    flex: 1;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
}

/* Nút gửi tin nhắn. */
.ai-chat-input button {
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--lotus-leaf);
    border: 0;
    border-radius: 50%;
}

/* Hiệu ứng lan sáng quanh bong bóng chat để thu hút chú ý. */
@keyframes chat-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(216, 27, 96, 0.3), 0 0 0 0 rgba(216, 27, 96, 0.5);
    }
    70% {
        box-shadow: 0 10px 25px rgba(216, 27, 96, 0.3), 0 0 0 20px rgba(216, 27, 96, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(216, 27, 96, 0.3), 0 0 0 0 rgba(216, 27, 96, 0);
    }
}

/* =========================================================
   9. TRANG SẢN PHẨM
   Các style dùng lại cho product/bao-ve-suc-khoe.html và product/bung-gia-luc.html.
   ========================================================= */
.page-banner {
    margin-bottom: 3rem;
    padding: 9rem 0 5rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(rgba(213, 67, 221, 0.7), rgba(0, 0, 0, 0.6)), url("images/ben-vien-hung-vuong-1-1-1024x580.jpg");
    background-position: top center;
    background-size: cover;
}

/* Tiêu đề lớn trong banner trang sản phẩm. */
.banner-content h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* Đoạn mô tả trong banner trang sản phẩm. */
.banner-content p {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    opacity: 0.92;
}

/* Nhóm nút lọc sản phẩm. */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

/* Nút lọc từng danh mục sản phẩm. */
.tab-btn {
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    transition: var(--transition-smooth);
}

/* Trạng thái đang chọn hoặc hover của tab lọc. */
.tab-btn.active,
.tab-btn:hover {
    color: #fff;
    background: var(--lotus-leaf);
    border-color: var(--lotus-leaf);
}

/* Danh sách card sản phẩm ở trang danh mục. */
.products-grid-list {
    display: grid;
    gap: 1.9rem;
    margin-bottom: 5rem;
}

/* Card sản phẩm dạng ngang: ảnh bên trái, thông tin bên phải khi đủ rộng. */
.product-item-card {
    display: flex;
    flex-direction: column; /* Mặc định xếp dọc trên mobile */
    overflow: hidden;
    color: inherit;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) { /* Trên tablet và desktop */
    .product-item-card {
        flex-direction: row; /* Xếp ngang */
        align-items: stretch; /* Đảm bảo các cột có chiều cao bằng nhau */
    }
}

/* Hiệu ứng hover của card sản phẩm trong trang danh mục. */
.product-item-card:hover {
    color: inherit;
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.12);
    transform: translateY(-5px);
}

/* Khung ảnh của card sản phẩm. */
.product-item-image {
    position: relative;
    min-height: 240px;
}

@media (min-width: 768px) {
    .product-item-image { flex: 0 0 320px; min-height: auto; } /* Cố định chiều rộng ảnh trên desktop */
}

/* Ảnh trong card phủ kín khung và giữ tỉ lệ bằng object-fit. */
.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nhãn danh mục như "Nổi bật", "Mới". */
.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    color: #fff;
    background: var(--lotus-pink);
    border-radius: 999px;
    font-size: 0.82rem;
}

/* Khi nhãn danh mục nằm trong banner thì bỏ định vị tuyệt đối. */
.banner-content .category-tag {
    position: static;
    margin-bottom: 1rem;
}

/* Khối chữ mô tả sản phẩm trong card. */
.product-item-info {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Tiêu đề sản phẩm trong card danh mục. */
.product-item-info h3 {
    margin-bottom: 1rem;
    color: var(--lotus-leaf);
    font-size: 1.5rem;
}

/* Danh sách quyền lợi, bỏ bullet mặc định để dùng icon. */
.benefit-list {
    padding-left: 0;
    margin: 1.25rem 0;
    list-style: none;
}

/* Một dòng quyền lợi gồm icon và nội dung. */
.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
}

/* Icon check/quyền lợi trong danh sách. */
.benefit-list i {
    color: var(--lotus-leaf);
    line-height: 1.6;
}

/* Khu vực chứa nút hành động ở cuối card sản phẩm. */
.product-item-footer {
    margin-top: 1.5rem;
}

/* Nút quay lại dạng icon tròn trên các trang con. */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--lotus-leaf);
    background: var(--bg-dew);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bố cục trang chi tiết sản phẩm dùng trong product/bung-gia-luc.html. */
.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* Responsive chung cho tablet và mobile. */
@media (max-width: 1199.98px) {
    .need-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .feature-badge {
        position: static;
        margin-top: -1rem;
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .logo img {
        height: 28px;
    }

    .logo-text {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-quick-box span {
        display: none;
    }

    .contact-form {
        padding: 2rem 1rem 1.25rem;
    }

    .ai-chat-wrapper {
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 575.98px) {
    .header .container > .navbar { padding: 0.65rem 0.85rem; }
}

/* =========================================================
   10. DESIGN UPGRADE - GIAO DIỆN TƯƠNG LAI, MƯỢT VÀ RESPONSIVE HƠN
   Lớp này ghi đè nhẹ lên style cũ để giao diện trông cao cấp hơn mà không đổi cấu trúc HTML.
   ========================================================= */
body {
    position: relative;
    isolation: isolate;
    background: var(--grad-bg);
}

/* Texture dạng lưới rất nhẹ để nền trông công nghệ hơn nhưng không gây rối mắt. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 107, 85, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 25, 32, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aia-red), var(--future-cyan), var(--future-gold));
    box-shadow: 0 0 18px rgba(32, 199, 201, 0.5);
}

.btn {
    position: relative;
    overflow: hidden;
    border: 0;
    box-shadow: 0 12px 28px rgba(7, 27, 37, 0.1);
}

.btn::before,
.product-card::before,
.need-card::before,
.service-action::before,
.elite-card::before,
.help-card::before,
.advisor-card::before,
.product-item-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 60%);
    opacity: 0;
    transform: translateX(-120%);
    transition: opacity 0.25s ease, transform 0.75s ease;
    pointer-events: none;
}

.btn:hover::before,
.product-card:hover::before,
.need-card:hover::before,
.service-action:hover::before,
.elite-card:hover::before,
.help-card:hover::before,
.advisor-card:hover::before,
.product-item-card:hover::before {
    opacity: 1;
    transform: translateX(120%);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 18px 40px rgba(215, 25, 32, 0.32);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(7, 27, 37, 0.14);
}

.header {
    width: min(1260px, calc(100% - 28px));
    background-color: rgba(255, 255, 255, 0.74);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 55px rgba(7, 27, 37, 0.1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 55px rgba(7, 27, 37, 0.14), 0 0 28px rgba(215, 25, 32, 0.12);
}

.header .container > .navbar {
    min-height: 68px;
}

.logo img {
    height: 36px;
    filter: drop-shadow(0 8px 18px rgba(215, 25, 32, 0.16));
}

.nav-menu:not(.navbar-nav) {
    gap: 0.3rem;
}

.nav-menu:not(.navbar-nav) a {
    padding: 0.55rem 0.72rem;
    border-radius: 999px;
}

.nav-menu:not(.navbar-nav) a:hover,
.nav-menu:not(.navbar-nav) a.active {
    background: rgba(15, 107, 85, 0.08);
}

.header .navbar-nav .nav-link:not(.dropdown-toggle)::after,
.nav-menu:not(.navbar-nav) > li > a::after {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.36rem;
    background: linear-gradient(90deg, var(--aia-red), var(--future-cyan));
}

.dropdown-menu {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 107, 85, 0.1);
    border-top: 4px solid var(--aia-red);
    backdrop-filter: blur(20px);
}

.hero {
    min-height: clamp(620px, 92vh, 900px);
    background: var(--future-ink);
}

.slide::after {
    background:
        linear-gradient(90deg, rgba(7, 27, 37, 0.72) 0%, rgba(7, 27, 37, 0.42) 42%, rgba(7, 27, 37, 0.16) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(7, 27, 37, 0.52));
}

.slide-bg-image {
    filter: saturate(1.08) contrast(1.04);
    will-change: transform;
}

.hero-content {
    max-width: 760px;
    animation: heroContentIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4.8rem);
    letter-spacing: 0;
}

.hero-content h1::after {
    margin-right: auto;
    margin-left: auto;
    background: linear-gradient(90deg, var(--aia-red-bright), var(--future-cyan));
}

.hero-content p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.slider-ctrl {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.indicator {
    width: 34px;
    height: 4px;
    border-radius: 999px;
}

.section-title,
.section-header h2,
.about-text h2 {
    color: var(--future-ink);
    letter-spacing: 0;
}

.section-title::after,
.section-header h2::after {
    background: linear-gradient(90deg, var(--aia-red), var(--future-cyan));
}

.products,
.about,
.help-section {
    background: rgba(255, 255, 255, 0.82);
}

.solution-finder,
.services,
.news {
    background:
        linear-gradient(135deg, rgba(238, 248, 244, 0.96), rgba(255, 247, 248, 0.82));
}

.product-card,
.need-card,
.service-action,
.help-card,
.advisor-card,
.product-item-card,
.contact-form,
.faq-list details {
    position: relative;
    overflow: hidden;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.product-card,
.need-card,
.service-action,
.help-card,
.product-item-card {
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.product-card:hover,
.need-card:hover,
.service-action:hover,
.help-card:hover,
.product-item-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-10px) scale(1.01);
}

.product-icon,
.need-card i,
.service-action i,
.help-card i {
    box-shadow: 0 16px 35px rgba(15, 107, 85, 0.24);
}

.need-card::after {
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(32, 199, 201, 0.1));
}

.feature-media img,
.about-image img {
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(7, 27, 37, 0.16);
}

.feature-badge,
.elite-card {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.elite-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 27, 37, 0.94), rgba(15, 107, 85, 0.86)),
        url("images/Thịnh vượng.jpg") center/cover;
}

.elite-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(115deg, transparent 0 22%, rgba(255, 255, 255, 0.08) 22% 23%, transparent 23% 100%),
        linear-gradient(65deg, transparent 0 48%, rgba(32, 199, 201, 0.1) 48% 49%, transparent 49% 100%);
    background-size: 260px 260px;
    opacity: 0.55;
}

.elite-layout {
    position: relative;
    z-index: 1;
}

.advisor-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 248, 0.92));
}

.news-fb-embed {
    border-radius: 16px 16px 0 0;
}

.faq-list details {
    transition: var(--transition-smooth);
}

.faq-list details[open] {
    border-color: rgba(215, 25, 32, 0.18);
    box-shadow: 0 18px 40px rgba(215, 25, 32, 0.08);
}

.ai-chat-bubble,
.back-to-top {
    box-shadow: 0 18px 45px rgba(215, 25, 32, 0.28);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 96px;
    z-index: 2999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--grad-leaf);
    border: 0;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transform: translateY(14px) scale(0.92);
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--grad-lotus);
    transform: translateY(-4px) scale(1.05);
}

.reveal {
    filter: blur(8px);
    transform: translateY(64px) scale(0.985);
    transition:
        opacity 0.85s cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 0.85s cubic-bezier(0.2, 0.9, 0.2, 1),
        filter 0.85s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.active {
    filter: blur(0);
    transform: translateY(0) scale(1);
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(36px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-icon,
    .need-card:hover i,
    .service-action:hover i,
    .help-card:hover i {
        transform: translateY(-3px) rotate(-3deg) scale(1.08);
    }
}

@media (max-width: 1299.98px) {
    .header {
        width: min(1120px, calc(100% - 24px));
    }

    .nav-menu:not(.navbar-nav) a {
        padding: 0.48rem 0.55rem;
        font-size: 0.93rem;
    }
}

@media (max-width: 991.98px) {
    .nav-menu:not(.navbar-nav) a {
        padding: 0.75rem 0.9rem;
        font-size: 1rem;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content h1::after {
        margin-right: auto;
        margin-left: auto;
    }

    .scroll-progress {
        height: 3px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .slide::after {
        background:
            linear-gradient(to bottom, rgba(7, 27, 37, 0.42), rgba(7, 27, 37, 0.78)),
            linear-gradient(90deg, rgba(7, 27, 37, 0.38), rgba(7, 27, 37, 0.18));
    }

    .section-header p,
    .feature-copy,
    .elite-copy p {
        font-size: 1rem;
    }

    .back-to-top {
        right: 18px;
        bottom: 82px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 575.98px) {
    .header {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 24px;
    }

    .header .container > .navbar {
        min-height: 58px;
    }

    .hero {
        min-height: 640px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        filter: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   11. DONG THAP LOTUS POLISH - BẢN SẮC ĐẤT SEN HỒNG + CĂN CHỮ ĐỀU
   Lớp cuối cùng này cá nhân hóa màu sắc cho Đồng Tháp và chuẩn hóa typography/card.
   ========================================================= */
body {
    color: var(--text-main);
    background: var(--grad-bg);
}

body::before {
    background-image:
        linear-gradient(rgba(31, 122, 77, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 51, 132, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 48%, rgba(242, 193, 78, 0.06) 48% 49%, transparent 49% 100%);
    background-size: 44px 44px, 44px 44px, 88px 88px;
}

:where(h1, h2, h3, h4, p, li, summary, a, button, input, select, textarea) {
    text-rendering: geometricPrecision;
}

:where(.hero-content h1, .section-title, .section-header h2, .feature-title, .elite-copy h2, .advisor-card h2, .banner-content h1, .product-item-info h3, .product-card h3, .need-card h3, .service-action h3, .help-card h3, .news-content h3) {
    text-wrap: balance;
}

:where(p, li, summary, .message) {
    text-wrap: pretty;
}

.section-header,
.section-title,
.news > .container > .section-title {
    text-align: center;
}

.section-title,
.section-header h2,
.about-text h2,
.feature-title,
.elite-copy h2,
.advisor-card h2,
.banner-content h1 {
    line-height: 1.12;
}

.section-header p,
.feature-copy,
.about-text p,
.product-card p,
.need-card p,
.service-action p,
.elite-card p,
.news-content p,
.help-card p,
.faq-list p,
.banner-content p,
.product-item-info p,
.benefit-list li {
    line-height: 1.68;
}

.scroll-progress {
    background: linear-gradient(90deg,
        var(--dong-thap-lotus) 0%,
        var(--dong-thap-sun) 25%,
        var(--dong-thap-leaf) 50%,
        var(--dong-thap-water) 75%,
        var(--dong-thap-lotus) 100% /* Lặp lại màu đầu để chuyển động mượt */
    );
    background-size: 200% 100%; /* Làm gradient rộng gấp đôi thanh */
    animation: rgb-progress 4s linear infinite; /* Áp dụng animation */
    box-shadow: 0 0 18px rgba(214, 51, 132, 0.34);
}

/* Keyframes cho hiệu ứng chuyển động màu RGB */
@keyframes rgb-progress {
    0% {
        background-position-x: 0%;
    }
    100% {
        background-position-x: 200%; /* Dịch chuyển gradient 200% để tạo vòng lặp */
    }
}

.header {
    background-color: rgba(255, 248, 251, 0.82);
    border-color: rgba(255, 255, 255, 0.78);
}

.header.scrolled {
    background-color: rgba(255, 250, 252, 0.94);
    box-shadow: 0 16px 55px rgba(82, 32, 54, 0.12), 0 0 28px rgba(214, 51, 132, 0.12);
}

.logo img {
    filter: drop-shadow(0 8px 18px rgba(214, 51, 132, 0.18));
}

.nav-menu:not(.navbar-nav) a:hover,
.nav-menu:not(.navbar-nav) a.active {
    color: var(--dong-thap-lotus);
    background: rgba(214, 51, 132, 0.08);
}

.header .navbar-nav .nav-link:not(.dropdown-toggle)::after,
.nav-menu:not(.navbar-nav) > li > a::after {
    background: linear-gradient(90deg,
        var(--dong-thap-lotus) 0%,
        var(--dong-thap-sun) 25%,
        var(--dong-thap-leaf) 50%,
        var(--dong-thap-water) 75%,
        var(--dong-thap-lotus) 100%
    );
    background-size: 200% 100%;
    animation: rgb-progress 4s linear infinite;
}

.slide::after {
    background:
        linear-gradient(90deg, rgba(25, 49, 43, 0.72) 0%, rgba(25, 49, 43, 0.42) 46%, rgba(25, 49, 43, 0.12) 100%),
        linear-gradient(to bottom, rgba(214, 51, 132, 0.08), rgba(25, 49, 43, 0.56));
}

.hero-content h1::after,
.section-title::after,
.section-header h2::after {
    background: linear-gradient(90deg,
        var(--dong-thap-lotus) 0%,
        var(--dong-thap-sun) 25%,
        var(--dong-thap-leaf) 50%,
        var(--dong-thap-water) 75%,
        var(--dong-thap-lotus) 100%
    );
    background-size: 200% 100%;
    animation: rgb-progress 4s linear infinite;
    box-shadow: 0 0 10px rgba(214, 51, 132, 0.2);
}

.products,
.about,
.help-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 251, 0.86));
}

.solution-finder,
.services,
.news {
    background:
        linear-gradient(135deg, rgba(255, 242, 247, 0.94), rgba(238, 248, 240, 0.9));
}

.living-panel {
    background:
        linear-gradient(135deg, #fff9fb 0%, #fff1f6 42%, #eef8f0 100%);
}

.elite-section {
    background:
        linear-gradient(135deg, rgba(25, 49, 43, 0.92), rgba(31, 122, 77, 0.82)),
        url("images/Thịnh vượng.jpg") center/cover;
}

.dropdown-menu {
    border-top-color: var(--dong-thap-lotus);
}

.btn-primary {
    background: var(--grad-lotus);
    box-shadow: 0 14px 32px rgba(214, 51, 132, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 18px 42px rgba(214, 51, 132, 0.34);
}

.product-card,
.need-card,
.service-action,
.elite-card,
.help-card,
.product-item-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa icon và nội dung card trên di động */
    text-align: center;
}

.product-card {
    align-items: center;
    min-height: 100%;
}

.product-card h3,
.need-card h3,
.service-action h3 {
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

.product-card h3,
.need-card h3,
.service-action h3 {
    justify-content: center;
}

.product-card p,
.need-card p,
.service-action p,
.elite-card p,
.news-content p {
    margin-bottom: 0;
}

.product-icon,
.need-card i,
.service-action i,
.help-card i {
    background: var(--grad-leaf);
    box-shadow: 0 16px 35px rgba(31, 122, 77, 0.22);
}

.need-card::after {
    background:
        linear-gradient(135deg, rgba(214, 51, 132, 0.09), rgba(242, 193, 78, 0.1), rgba(44, 166, 164, 0.08));
}

.need-number {
    color: rgba(214, 51, 132, 0.18);
}

.service-action span,
.news-date,
.text-link,
.faq-list summary::after {
    color: var(--dong-thap-lotus);
}

.service-action span {
    padding-top: 1.15rem;
}

.elite-card {
    min-height: 172px;
}

.elite-card h3 {
    min-height: 1.45em;
}

.advisor-card {
    background:
        linear-gradient(135deg, rgba(255, 252, 253, 0.96), rgba(255, 241, 246, 0.92));
}

.news-content {
    padding: 1.35rem;
}

.news-content h3 {
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

.help-card {
    min-height: 102px;
}

.faq-list summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.faq-list summary::after {
    float: none;
}

.form-control,
.form-select,
input,
select,
textarea {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--dong-thap-lotus);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.14);
}

.footer {
    background:
        linear-gradient(135deg, var(--dong-thap-leaf-dark), var(--dong-thap-leaf) 58%, #14583d);
}

.footer-col h4::after {
    background: linear-gradient(90deg,
        var(--dong-thap-lotus-soft) 0%,
        var(--dong-thap-sun) 25%,
        var(--dong-thap-leaf) 50%,
        var(--dong-thap-water) 75%,
        var(--dong-thap-lotus-soft) 100%
    );
    background-size: 200% 100%;
    animation: rgb-progress 4s linear infinite;
}

.footer-col i,
.footer-col a:hover {
    color: var(--dong-thap-lotus-soft);
}

.social-links a {
    color: var(--dong-thap-lotus);
}

.back-to-top {
    background: var(--grad-leaf);
}

.back-to-top:hover {
    background: var(--grad-lotus);
}

@media (min-width: 992px) {
    .need-card, .product-card, .service-action, .content-card {
        align-items: flex-start; /* Quay lại căn trái trên Desktop cho chuyên nghiệp */
        text-align: left;
    }
    .need-card h3, .product-card h3, .service-action h3, .content-card h3 {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .product-card h3,
    .need-card h3,
    .service-action h3,
    .news-content h3 {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .section-header,
    .section-title,
    .about-text,
    .elite-copy,
    .feature-title,
    .feature-copy,
    .advisor-card {
        text-align: center;
    }

    .feature-actions {
        justify-items: stretch;
    }

    .text-link {
        justify-self: center;
    }

    .help-card {
        min-height: auto;
    }
}

/* =========================================================
   11B. LAYOUT CLEANUP - CĂN LỀ GỌN GÀNG, GIỮ NGUYÊN BẢNG MÀU
   Lớp cuối này chỉ chuẩn hóa khoảng cách, chiều cao và responsive.
   ========================================================= */
.container {
    width: min(100% - 32px, 1140px);
    margin-inline: auto;
    padding-inline: 0;
}

.section-header {
    max-width: 760px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.section-header p,
.hero-content p,
.feature-copy,
.advisor-card p,
.subpage-hero p {
    text-align: center;
}

.row {
    --bs-gutter-x: 1.5rem;
}

.product-card,
.need-card,
.service-action,
.elite-card,
.help-card,
.news-item,
.content-card,
.product-item-card,
.contact-form,
.faq-list details,
.advisor-card {
    border-radius: 16px;
}

.product-card,
.need-card,
.service-action,
.content-card {
    height: 100%;
    padding: clamp(1.35rem, 3vw, 1.85rem);
}

.product-card.d-block,
.need-card.d-block,
.service-action.d-block,
.content-card.d-block {
    display: flex !important;
}

.product-card,
.need-card,
.service-action {
    justify-content: flex-start;
}

.product-card h3,
.need-card h3,
.service-action h3,
.content-card h3,
.news-content h3 {
    width: 100%;
    margin-bottom: 0.7rem;
    text-align: center;
    line-height: 1.28;
}

.product-card p,
.need-card p,
.service-action p,
.content-card p,
.news-content p,
.help-card p,
.faq-list p {
    text-align: center;
}

.product-icon,
.need-card i,
.service-action i,
.help-card i,
.content-card i {
    flex: 0 0 auto;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    margin-inline: auto;
    text-align: center;
}

.hero-buttons,
.feature-actions,
.subpage-actions {
    justify-content: center;
}

.feature-media img,
.about-image img,
.split-media img,
.subpage-image-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.vitality-steps > .col > div {
    height: 100%;
}

.advisor-card {
    display: block;
}

.advisor-card .row {
    align-items: center;
}

.news-item {
    display: flex;
    flex-direction: column;
}

.news-fb-embed {
    overflow: hidden;
    background: #fff;
}

.news-fb-embed iframe {
    display: block;
    max-width: 100%;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    margin-top: auto;
}

.help-card {
    grid-template-columns: 54px minmax(0, 1fr);
    text-align: left;
}

.help-card p,
.footer-col p,
.footer-col li {
    text-align: left;
}

.vitality-steps {
    justify-content: center;
}

.contact-form {
    max-width: 860px;
    margin-inline: auto;
}

.footer ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.footer .row {
    row-gap: 2rem;
}

@media (min-width: 992px) {
    .feature-copy,
    .advisor-card p,
    .subpage-hero p {
        text-align: left;
    }

    .section-header {
        text-align: center;
    }

    .feature-actions,
    .subpage-actions {
        justify-content: flex-start;
    }

    .advisor-card .btn {
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .header {
        width: calc(100% - 24px);
    }

    .header .container {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .hero-content {
        max-width: 680px;
        padding-inline: 1rem;
    }

    .slider-ctrl {
        width: 42px;
        height: 42px;
    }

    .feature-actions .btn,
    .feature-actions .text-link,
    .subpage-actions .btn {
        width: 100%;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col,
    .footer-col p,
    .footer-col li {
        text-align: center;
    }

    .footer-col li {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .container {
        width: min(100% - 24px, 1140px);
    }

    .products,
    .solution-finder,
    .living-panel,
    .services,
    .about,
    .advisor-cta,
    .news,
    .help-section,
    .contact,
    .content-band {
        padding-block: clamp(2.75rem, 12vw, 4rem);
    }

    .hero-content {
        padding-inline: 2.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .product-card,
    .need-card,
    .service-action,
    .content-card {
        min-height: auto;
    }

    .help-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }
}

/* =========================================================
   12. SUBPAGE SYSTEM - CÁC TRANG CON GIỐNG CẤU TRÚC AIA VIỆT NAM
   Dùng cho Sản phẩm, Sống khỏe, Elite, Dịch vụ, Trợ giúp, Về chúng tôi và Liên hệ.
   ========================================================= */
.subpage-hero {
    position: relative;
    min-height: clamp(480px, 65vh, 680px); /* Tăng chiều cao Hero trang con để thoáng hơn */
    display: flex;
    align-items: center;
    padding: clamp(7.5rem, 15vw, 10rem) 0 clamp(3.5rem, 8vw, 6rem);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(25, 49, 43, 0.78), rgba(31, 122, 77, 0.58)),
        var(--subpage-image, url("images/hinh-anh-gia-dinh-hanh-phuc_5.jpg")) center/cover;
}

.subpage-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(25, 49, 43, 0.72), rgba(25, 49, 43, 0.18)),
        linear-gradient(to top, rgba(25, 49, 43, 0.42), transparent 55%);
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-kicker {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.subpage-hero h1 {
    max-width: 850px;
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

.subpage-hero p {
    max-width: 720px;
    margin-bottom: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    line-height: 1.68;
}

.subpage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.content-band {
    padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}

.content-band.soft {
    background: linear-gradient(135deg, rgba(255, 242, 247, 0.94), rgba(238, 248, 240, 0.9));
}

.content-band.white {
    background: rgba(255, 255, 255, 0.88);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.content-grid.row,
.quick-link-grid.row,
.process-list.row {
    margin: 0;
}

.content-grid.row > *,
.quick-link-grid.row > *,
.process-list.row > * {
    width: auto;
    padding: 0;
}

.split-layout,
.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.process-list {
    counter-reset: process;
    display: grid;
    gap: 1rem;
}

.content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 1.5rem;
    overflow: hidden;
    color: inherit;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.content-card:hover {
    color: inherit;
    box-shadow: var(--shadow-lift);
    transform: translateY(-8px);
}

.content-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.1rem;
    color: #fff;
    background: var(--grad-leaf);
    border-radius: 18px;
    font-size: 1.35rem;
    box-shadow: 0 16px 35px rgba(31, 122, 77, 0.22);
}

.content-card h3 {
    min-height: 2.7em;
    margin-bottom: 0.65rem;
    color: var(--future-ink);
    font-size: 1.22rem;
    line-height: 1.25;
    text-wrap: balance;
}

.content-card p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.68;
}

.content-card .card-link {
    margin-top: auto;
    color: var(--dong-thap-lotus);
    font-weight: 700;
}

.split-media img,
.subpage-image-card img {
    display: block;
    width: 100%;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(82, 32, 54, 0.14);
}

.subpage-image-card {
    position: relative;
}

.subpage-image-card .floating-note {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 320px;
    padding: 1rem;
    color: #fff;
    background: rgba(25, 49, 43, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.process-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.process-item::before {
    counter-increment: process;
    content: counter(process, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: var(--grad-lotus);
    border-radius: 18px;
    font-weight: 700;
}

.process-item h3 {
    margin: 0 0 0.35rem;
    color: var(--future-ink);
    font-size: 1.15rem;
}

.process-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.68;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 92px;
    padding: 1.1rem 1.2rem;
    color: inherit;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.quick-link:hover {
    color: inherit;
    box-shadow: var(--shadow-lift);
    transform: translateY(-5px);
}

.quick-link strong {
    color: var(--future-ink);
    text-wrap: balance;
}

.quick-link i {
    color: var(--dong-thap-lotus);
}

.contact-info-stack {
    /* Removed display: grid; as it's now handled by Bootstrap row/col */
    gap: 1rem;
}

.contact-info-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    color: inherit;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.contact-info-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: var(--grad-leaf);
    border-radius: 18px;
}

.contact-info-card h3 {
    margin: 0 0 0.25rem;
    color: var(--future-ink);
    font-size: 1.08rem;
}

.contact-info-card p {
    margin: 0;
    color: var(--text-muted);
}

.map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 1199.98px) {
    .content-card h3 {
        min-height: 0;
    }

    .content-grid,
    .quick-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .subpage-hero {
        min-height: 560px;
        text-align: center;
    }

    .content-grid,
    .split-layout,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .quick-link-grid {
        grid-template-columns: 1fr;
    }

    .subpage-image-card .floating-note {
        position: static;
        margin: -1rem 1rem 0;
    }

    .process-item,
    .contact-info-card {
        grid-template-columns: 48px 1fr;
    }
}

/* =========================================================
   13. LOADING SCREEN
   Hiển thị logo AIA và vòng xoay đồng bộ với bảng màu Đất Sen Hồng.
   ========================================================= */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--grad-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-content img {
    height: 60px;
    margin-bottom: 20px;
    animation: loaderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 18px rgba(214, 51, 132, 0.2));
}

.loader-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid rgba(214, 51, 132, 0.1);
    border-top: 3px solid var(--dong-thap-lotus);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

body.loading { overflow: hidden; } /* Ngăn cuộn trang khi đang load */

/* SKELETON LOADING: Hiệu ứng giả lập nội dung đang tải */
@keyframes shimmer { 100% { transform: translateX(100%); } }

.loading-skeleton { pointer-events: none; }

.loading-skeleton :where(h3, p, .btn, i, .product-icon, .product-item-image, .need-number) {
    background: #eee !important;
    color: transparent !important;
    border-color: transparent !important;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.loading-skeleton :where(h3, p, .btn, i, .product-icon, .product-item-image, .need-number)::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-skeleton img { opacity: 0; }

/* =========================================================
   14. COLOR BOOST - GIỮ LAYOUT, TĂNG ĐỘ RỰC RỠ VÀ CHIỀU SÂU
   Lớp cuối cùng chỉ đổi màu, nền, viền và hover để giao diện tươi hơn.
   ========================================================= */
:root {
    --boost-rose: var(--dong-thap-lotus);
    --boost-coral: var(--dong-thap-lotus-soft);
    --boost-amber: var(--dong-thap-sun);
    --boost-jade: var(--dong-thap-leaf);
    --boost-aqua: var(--dong-thap-water);
    --boost-violet: var(--dong-thap-lotus-dark, #a91e61);
    --boost-ink: var(--text-main);
    --boost-rainbow: linear-gradient(135deg,
        var(--boost-rose) 0%,
        var(--boost-amber) 25%,
        var(--boost-jade) 50%,
        var(--boost-aqua) 75%,
        var(--boost-rose) 100%);
    --boost-warm-surface: linear-gradient(180deg, rgba(255, 248, 251, 0.98), rgba(255, 255, 255, 0.92));
    --boost-cool-surface: linear-gradient(180deg, rgba(239, 253, 250, 0.98), rgba(255, 255, 255, 0.92));
    --boost-card-shadow: 0 22px 60px rgba(83, 36, 64, 0.13);
    --boost-card-shadow-hover: 0 34px 82px rgba(83, 36, 64, 0.2);
}

body {
    background:
        linear-gradient(115deg, rgba(255, 241, 246, 0.96) 0%, rgba(255, 250, 230, 0.78) 34%, rgba(237, 251, 246, 0.86) 68%, rgba(245, 244, 255, 0.9) 100%),
        linear-gradient(180deg, #fffafd 0%, #fff4f8 28%, #effbf5 68%, #fffdf4 100%);
}

body::before {
    opacity: 0.78;
    background-image:
        linear-gradient(rgba(247, 37, 133, 0.052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 48%, rgba(247, 184, 1, 0.08) 48% 49%, transparent 49% 100%);
}

.scroll-progress,
.hero-content h1::after,
.section-title::after,
.section-header h2::after,
.footer-col h4::after {
    background: var(--boost-rainbow);
    background-size: 240% 100%;
    animation: rgb-progress 5s linear infinite;
}

.btn-primary,
.ai-chat-bubble,
.message.user,
.process-item::before {
    background: var(--boost-rainbow);
    background-size: 220% 220%;
    animation: color-drift 8s ease infinite;
}

.btn-primary {
    box-shadow: 0 16px 34px rgba(247, 37, 133, 0.26), 0 8px 22px rgba(6, 182, 212, 0.12);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 22px 48px rgba(247, 37, 133, 0.34), 0 12px 30px rgba(6, 182, 212, 0.16);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.82);
}

.btn-outline:hover,
.btn-outline:focus {
    color: var(--boost-rose);
}

.header {
    background-image:
        linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.56) 50%, transparent 65%),
        linear-gradient(90deg, rgba(255, 247, 251, 0.88), rgba(238, 253, 250, 0.86), rgba(255, 252, 238, 0.82));
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 60px rgba(83, 36, 64, 0.13);
}

.header.scrolled {
    box-shadow: 0 18px 58px rgba(83, 36, 64, 0.16), 0 0 30px rgba(247, 37, 133, 0.13);
}

.logo-text {
    color: var(--boost-ink);
}

.contact-quick-box {
    color: var(--boost-rose);
    border-color: rgba(247, 37, 133, 0.32);
    background: linear-gradient(135deg, #fff, #fff3f8);
}

.contact-quick-box:hover {
    background: var(--boost-rainbow);
    color: #fff;
}

.nav-menu:not(.navbar-nav) a:hover,
.nav-menu:not(.navbar-nav) a.active {
    color: var(--boost-rose);
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.1), rgba(6, 182, 212, 0.08));
}

.dropdown-menu {
    border-top-color: var(--boost-rose);
    box-shadow: 0 22px 54px rgba(83, 36, 64, 0.16);
}

.slide::after,
.subpage-hero::after {
    background:
        linear-gradient(90deg, rgba(16, 35, 31, 0.72) 0%, rgba(94, 26, 74, 0.48) 44%, rgba(16, 35, 31, 0.14) 100%),
        linear-gradient(to bottom, rgba(247, 37, 133, 0.14), rgba(16, 35, 31, 0.58));
}

.slide-bg-image,
.feature-media img,
.about-image img,
.split-media img,
.subpage-image-card img,
.product-item-image img {
    filter: saturate(1.16) contrast(1.04);
}

.hero-content {
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.5);
}

.indicator.active,
.indicator:hover {
    background: var(--boost-rainbow);
    box-shadow: 0 0 18px rgba(247, 37, 133, 0.45);
}

.slider-ctrl:hover {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.76), rgba(6, 182, 212, 0.74));
}

.products {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 249, 0.9));
}

.solution-finder {
    background: linear-gradient(135deg, rgba(255, 241, 246, 0.96), rgba(255, 250, 226, 0.88) 48%, rgba(235, 252, 249, 0.94));
}

.living-panel {
    background: linear-gradient(135deg, rgba(255, 249, 251, 0.98) 0%, rgba(238, 253, 250, 0.9) 45%, rgba(255, 249, 226, 0.88) 100%);
}

.services {
    background: linear-gradient(135deg, rgba(239, 253, 250, 0.96), rgba(247, 244, 255, 0.9) 52%, rgba(255, 247, 231, 0.92));
}

.customer-hub,
.content-band.white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.9));
}

.about,
.help-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 236, 0.86));
}

.advisor-cta,
.content-band.soft,
.news {
    background: linear-gradient(135deg, rgba(255, 241, 246, 0.94), rgba(238, 253, 250, 0.9), rgba(255, 250, 226, 0.86));
}

.product-card,
.need-card,
.service-action,
.help-card,
.content-card,
.product-item-card,
.news-item,
.advisor-card,
.contact-form,
.faq-list details,
.quick-link,
.process-item,
.contact-info-card {
    border-color: rgba(247, 37, 133, 0.14);
    box-shadow: var(--boost-card-shadow);
}

.product-card,
.service-action,
.content-card,
.news-item,
.product-item-card,
.quick-link {
    background-image: var(--boost-warm-surface);
}

.need-card,
.help-card,
.faq-list details,
.process-item,
.contact-info-card {
    background-image: var(--boost-cool-surface);
}

.product-card:hover,
.need-card:hover,
.service-action:hover,
.help-card:hover,
.content-card:hover,
.product-item-card:hover,
.news-item:hover,
.quick-link:hover {
    border-color: rgba(247, 37, 133, 0.28);
    box-shadow: var(--boost-card-shadow-hover);
}

.product-card:nth-of-type(odd),
.content-card:nth-of-type(odd) {
    background-image: linear-gradient(180deg, rgba(255, 246, 250, 0.98), rgba(255, 255, 255, 0.92));
}

.products .col:nth-child(6n+1) .product-icon,
.solution-finder .col:nth-child(4n+1) .need-card i,
.services .col:nth-child(4n+1) .service-action i,
.customer-hub .col:nth-child(6n+1) .content-card i,
.content-grid > *:nth-child(6n+1) .content-card i,
.quick-link-grid > *:nth-child(6n+1) i,
.contact-info-stack .col:nth-child(6n+1) .contact-info-card i {
    background: linear-gradient(135deg, var(--boost-rose), var(--boost-coral));
    box-shadow: 0 18px 36px rgba(247, 37, 133, 0.25);
}

.products .col:nth-child(6n+2) .product-icon,
.solution-finder .col:nth-child(4n+2) .need-card i,
.services .col:nth-child(4n+2) .service-action i,
.customer-hub .col:nth-child(6n+2) .content-card i,
.content-grid > *:nth-child(6n+2) .content-card i,
.quick-link-grid > *:nth-child(6n+2) i,
.contact-info-stack .col:nth-child(6n+2) .contact-info-card i {
    background: linear-gradient(135deg, var(--boost-amber), var(--boost-coral));
    box-shadow: 0 18px 36px rgba(247, 184, 1, 0.24);
}

.products .col:nth-child(6n+3) .product-icon,
.solution-finder .col:nth-child(4n+3) .need-card i,
.services .col:nth-child(4n+3) .service-action i,
.customer-hub .col:nth-child(6n+3) .content-card i,
.content-grid > *:nth-child(6n+3) .content-card i,
.quick-link-grid > *:nth-child(6n+3) i,
.contact-info-stack .col:nth-child(6n+3) .contact-info-card i {
    background: linear-gradient(135deg, var(--boost-jade), var(--boost-aqua));
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.22);
}

.products .col:nth-child(6n+4) .product-icon,
.solution-finder .col:nth-child(4n+4) .need-card i,
.services .col:nth-child(4n+4) .service-action i,
.customer-hub .col:nth-child(6n+4) .content-card i,
.content-grid > *:nth-child(6n+4) .content-card i,
.quick-link-grid > *:nth-child(6n+4) i,
.contact-info-stack .col:nth-child(6n+4) .contact-info-card i {
    background: linear-gradient(135deg, var(--boost-violet), var(--boost-rose));
    box-shadow: 0 18px 36px rgba(124, 58, 237, 0.22);
}

.products .col:nth-child(6n+5) .product-icon,
.customer-hub .col:nth-child(6n+5) .content-card i,
.content-grid > *:nth-child(6n+5) .content-card i,
.quick-link-grid > *:nth-child(6n+5) i,
.contact-info-stack .col:nth-child(6n+5) .contact-info-card i {
    background: linear-gradient(135deg, var(--dong-thap-lotus), var(--boost-amber));
    box-shadow: 0 18px 36px rgba(214, 51, 132, 0.24);
}

.products .col:nth-child(6n) .product-icon,
.customer-hub .col:nth-child(6n) .content-card i,
.content-grid > *:nth-child(6n) .content-card i,
.quick-link-grid > *:nth-child(6n) i,
.contact-info-stack .col:nth-child(6n) .contact-info-card i {
    background: linear-gradient(135deg, var(--dong-thap-leaf), var(--boost-aqua));
    box-shadow: 0 18px 36px rgba(31, 122, 77, 0.24);
}

.product-card h3,
.need-card h3,
.service-action h3,
.content-card h3,
.quick-link strong,
.contact-info-card h3,
.process-item h3 {
    color: var(--boost-ink);
}

.product-card:hover h3,
.need-card:hover h3,
.service-action:hover h3,
.content-card:hover h3,
.quick-link:hover strong {
    color: var(--boost-rose);
}

.section-eyebrow,
.service-action span,
.content-card .card-link,
.news-date,
.text-link,
.quick-link i,
.faq-list summary::after {
    color: var(--boost-rose);
}

.feature-badge,
.subpage-image-card .floating-note {
    background: linear-gradient(135deg, rgba(16, 35, 31, 0.86), rgba(94, 26, 74, 0.78));
}

.vitality-steps > .col:nth-child(1) i {
    color: var(--boost-rose);
}

.vitality-steps > .col:nth-child(2) i {
    color: var(--boost-aqua);
}

.vitality-steps > .col:nth-child(3) i {
    color: var(--boost-amber);
}

.elite-section,
.footer {
    position: relative;
    overflow: hidden;
}

.elite-section {
    background:
        linear-gradient(135deg, rgba(16, 35, 31, 0.92), rgba(94, 26, 74, 0.62) 48%, rgba(31, 122, 77, 0.78)),
        url("images/Thịnh vượng.jpg") center/cover;
}

.elite-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.24);
}

.elite-card i {
    color: var(--boost-amber);
}

.advisor-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 246, 0.92) 48%, rgba(239, 253, 250, 0.94));
}

.subpage-hero {
    background:
        linear-gradient(135deg, rgba(16, 35, 31, 0.78), rgba(247, 37, 133, 0.32), rgba(31, 122, 77, 0.56)),
        var(--subpage-image, url("images/hinh-anh-gia-dinh-hanh-phuc_5.jpg")) center/cover;
}

.page-banner {
    background:
        linear-gradient(135deg, rgba(16, 35, 31, 0.78), rgba(247, 37, 133, 0.32), rgba(31, 122, 77, 0.56)),
        url("images/ben-vien-hung-vuong-1-1-1024x580.jpg") top center/cover;
}

.category-tag,
.tab-btn.active,
.tab-btn:hover {
    background: var(--boost-rainbow);
    background-size: 220% 220%;
    animation: color-drift 8s ease infinite;
}

.footer {
    background:
        linear-gradient(135deg, #0b4d34 0%, #14583d 34%, #5e1a4a 72%, #10231f 100%);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--boost-rainbow);
    background-size: 240% 100%;
    animation: rgb-progress 5s linear infinite;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.social-links a {
    background: linear-gradient(135deg, #fff, #fff4f8);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.16);
}

.social-links a:hover {
    color: #fff;
    background: var(--boost-rainbow);
    background-size: 220% 220%;
}

.form-control,
.form-select,
input,
select,
textarea {
    border-color: rgba(247, 37, 133, 0.16);
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--boost-rose);
    box-shadow: 0 0 0 0.2rem rgba(247, 37, 133, 0.14), 0 8px 24px rgba(6, 182, 212, 0.08);
}

@keyframes color-drift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 991.98px) {
    .nav-menu:not(.navbar-nav) {
        background:
            linear-gradient(135deg, rgba(255, 248, 251, 0.98), rgba(239, 253, 250, 0.96));
        border: 1px solid rgba(247, 37, 133, 0.12);
        box-shadow: 0 22px 60px rgba(83, 36, 64, 0.15);
    }
}

/* =========================================================
   15. OCD RESPONSIVE SYSTEM - CANH ĐỀU, MOBILE-FIRST, DỄ CHẠM
   Lớp này khóa lại nhịp spacing, header, card và CTA trên mọi thiết bị.
   ========================================================= */
:root {
    --ui-radius: 14px;
    --ui-radius-sm: 10px;
    --ui-gap: clamp(1rem, 3vw, 1.5rem);
    --tap-size: 46px;
}

body {
    min-width: 320px;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(247, 37, 133, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(100% - clamp(24px, 5vw, 48px), 1160px);
}

.header .container > .navbar {
    position: relative;
}

.back-home-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: var(--boost-rose);
    background: linear-gradient(135deg, #fff, #fff4f8);
    border: 1px solid rgba(247, 37, 133, 0.14);
    box-shadow: 0 10px 24px rgba(83, 36, 64, 0.12);
}

.back-home-btn:hover {
    color: #fff;
    background: var(--boost-rainbow);
}

.nav-mobile-actions {
    flex: 0 0 auto;
}

.hamburger {
    align-items: center;
    justify-content: center;
    width: var(--tap-size);
    height: var(--tap-size);
    border: 1px solid rgba(247, 37, 133, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(83, 36, 64, 0.1);
}

.hamburger span {
    flex: 0 0 auto;
    border-radius: 999px;
}

.contact-quick-box {
    min-height: var(--tap-size);
    white-space: nowrap;
}

.section-header {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.section-title {
    margin-bottom: 0;
}

.product-card,
.need-card,
.service-action,
.content-card,
.help-card,
.quick-link,
.process-item,
.contact-info-card,
.product-item-card,
.news-item,
.faq-list details,
.advisor-card,
.contact-form {
    border-radius: var(--ui-radius);
}

.product-card,
.need-card,
.service-action,
.content-card {
    gap: 0.25rem;
}

.product-card h3,
.need-card h3,
.service-action h3,
.content-card h3,
.news-content h3 {
    min-height: 0;
}

.product-card p,
.need-card p,
.service-action p,
.content-card p {
    width: 100%;
}

.product-icon,
.need-card i,
.service-action i,
.help-card i,
.content-card i,
.contact-info-card i {
    border-radius: var(--ui-radius-sm);
}

.feature-media img,
.about-image img,
.split-media img,
.subpage-image-card img,
.map-frame {
    border-radius: var(--ui-radius);
}

.hero-buttons,
.feature-actions,
.subpage-actions,
.quiz-actions {
    align-items: center;
    gap: 0.8rem;
}

.btn,
.text-link,
.quick-link,
.contact-info-card {
    min-height: var(--tap-size);
}

.protection-quiz {
    position: relative;
}

.quiz-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(280px, 0.9fr);
    gap: var(--ui-gap);
    align-items: stretch;
    padding: clamp(1.25rem, 4vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 247, 0.9) 48%, rgba(239, 253, 250, 0.92));
    border: 1px solid rgba(247, 37, 133, 0.14);
    border-radius: calc(var(--ui-radius) + 4px);
    box-shadow: var(--boost-card-shadow);
}

.quiz-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-intro .feature-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.quiz-form {
    display: grid;
    gap: 0.9rem;
}

.quiz-question {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(247, 37, 133, 0.1);
    border-radius: var(--ui-radius);
}

.quiz-question legend {
    float: none;
    width: auto;
    margin-bottom: 0.35rem;
    color: var(--boost-ink);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.quiz-question label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.65rem;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 0.62rem 0.75rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(16, 35, 31, 0.08);
    border-radius: var(--ui-radius-sm);
    transition: var(--transition-smooth);
}

.quiz-question label:has(input:checked) {
    color: var(--boost-rose);
    border-color: rgba(247, 37, 133, 0.28);
    box-shadow: 0 12px 26px rgba(247, 37, 133, 0.1);
}

.quiz-question input {
    min-height: 18px;
    accent-color: var(--boost-rose);
}

.quiz-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 1.6rem);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 35, 31, 0.94), rgba(94, 26, 74, 0.78)),
        var(--boost-rainbow);
    border-radius: var(--ui-radius);
    box-shadow: 0 22px 55px rgba(83, 36, 64, 0.2);
}

.quiz-result h3 {
    margin: 0.4rem 0 0.7rem;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.quiz-result p {
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
}

.result-label {
    width: fit-content;
    padding: 0.3rem 0.72rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.quiz-result .text-link {
    color: #fff;
}

.mobile-bottom-cta {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 2998;
    display: none;
    width: min(100% - 20px, 520px);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(247, 37, 133, 0.14);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(83, 36, 64, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.mobile-bottom-cta a {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 42px;
    padding: 0.45rem 0.65rem;
    color: var(--boost-ink);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-bottom-cta a:first-child {
    color: #fff;
    background: var(--boost-rainbow);
}

@media (min-width: 992px) {
    .nav-mobile-actions {
        display: none !important;
    }

    .back-home-btn {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .header .container > .navbar {
        padding-left: 3.25rem;
        padding-right: 3.25rem;
    }
}

@media (max-width: 1199.98px) {
    .quiz-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .quiz-intro {
        grid-column: 1 / -1;
        text-align: center;
    }

    .quiz-intro .feature-copy {
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 74px;
    }

    .header {
        width: calc(100% - 20px);
        border-radius: 24px;
    }

    .header .container > .navbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.65rem;
        min-height: 60px;
        padding: 0.62rem 0.75rem;
    }

    .header .logo {
        min-width: 0;
    }

    .logo-text {
        max-width: min(48vw, 210px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-mobile-actions {
        justify-self: end;
    }

    .nav-menu:not(.navbar-nav) {
        top: calc(100% + 10px);
        max-height: min(620px, calc(100dvh - 92px));
        padding: 0.85rem;
        gap: 0.25rem;
        border-radius: 20px;
    }

    .nav-menu:not(.navbar-nav) > li > a,
    .dropdown-menu a {
        min-height: 46px;
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        white-space: normal;
    }

    .nav-menu:not(.navbar-nav) > li > a::after {
        display: none;
    }

    .hero,
    .subpage-hero {
        min-height: min(720px, 100svh);
        padding-top: 6.75rem;
    }

    .hero-content h1,
    .subpage-hero h1 {
        font-size: clamp(2rem, 9vw, 3.15rem);
    }

    .hero-content p,
    .subpage-hero p {
        font-size: 1rem;
    }

    .hero-buttons,
    .subpage-actions,
    .feature-actions,
    .quiz-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
    }

    .hero-buttons .btn,
    .subpage-actions .btn,
    .feature-actions .btn,
    .quiz-actions .btn,
    .feature-actions .text-link,
    .quiz-actions .text-link {
        width: 100%;
    }

    .quiz-shell,
    .split-layout,
    .contact-page-grid,
    .about-content {
        grid-template-columns: 1fr;
    }

    .quiz-result,
    .quiz-result p {
        text-align: center;
    }

    .result-label {
        margin-inline: auto;
    }

    .content-grid,
    .quick-link-grid {
        gap: 1rem;
    }

    .content-card,
    .product-card,
    .need-card,
    .service-action {
        padding: 1.25rem;
    }

    .mobile-bottom-cta {
        display: flex;
    }

    .ai-chat-wrapper {
        bottom: 86px;
    }

    .back-to-top {
        bottom: 144px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --tap-size: 44px;
        --ui-radius: 12px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .container {
        width: min(100% - 24px, 1160px);
    }

    .header {
        width: calc(100% - 14px);
    }

    .header .container > .navbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .back-home-btn {
        display: none;
    }

    .logo img {
        height: 26px;
    }

    .logo-text {
        max-width: 52vw;
        font-size: 0.78rem;
    }

    .hero-content {
        padding-inline: 1.6rem;
    }

    .contact-quick-box {
        display: none !important;
    }

    .slider-ctrl {
        width: 38px;
        height: 38px;
    }

    .slider-indicators {
        bottom: 22px;
    }

    .quiz-shell {
        padding: 1rem;
    }

    .quiz-question {
        padding: 0.85rem;
    }

    .mobile-bottom-cta {
        width: calc(100% - 14px);
        border-radius: 18px;
    }

    .mobile-bottom-cta a {
        flex-direction: column;
        gap: 0.18rem;
        min-height: 48px;
        padding: 0.38rem 0.35rem;
        font-size: 0.72rem;
        line-height: 1.15;
    }
}
