html, body {
    max-width: 100%;
    overflow-x: clip; /* Thay cho hidden */
}

/* Class bổ trợ để đánh dấu ảnh đang chọn */
.active-thumb {
    border-color: #4A0000 !important;
    border-width: 2px !important;
}

.currency-underline {
    position: relative;
}

.currency-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* khoảng cách gạch */
    width: 0%;
    height: 1.5px;
    background-color: white;
    transition: width 0.25s ease;
}

#currency-btn:hover .currency-underline::after {
    width: 100%;
}


/* Mini header lúc ẩn thì nằm trên cao và mờ */
#mini-header {
    transform: translateY(-100%);
    opacity: 0;
}

/* Lúc hiện thì trượt xuống + fade-in */
#mini-header.show {
    transform: translateY(0);
    opacity: 1;
}


#mini-header {
    transition: transform 0.35s ease, opacity 0.35s ease;
}



/* Optional: Add background pattern overlay */
.clinically-proven-section {
    position: relative;
}

.clinically-proven-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animation for statistics on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
}



.gradient-bg-essentials {
            background: linear-gradient(135deg, #f5e6e8 0%, #e8d4d8 50%, #f5e6e8 100%);
        }
        .gradient-bg-longevity {
            background: linear-gradient(135deg, #f5f1e8 0%, #e8dfd4 50%, #f5f1e8 100%);
        }
        .gradient-btn-essentials {
            background: linear-gradient(135deg, #5c1a1f 0%, #8b2332 100%);
        }
        .gradient-btn-longevity {
            background: linear-gradient(135deg, #6b3e1a 0%, #9b5e2a 100%);
        }
        .pillar-card {
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .pillar-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        .pillar-card.active {
            background: linear-gradient(135deg, #5c1a1f 0%, #8b2332 100%) !important;
        }
        .pillar-card.active-longevity {
            background: linear-gradient(135deg, #6b3e1a 0%, #9b5e2a 100%) !important;
        }
        .pillar-card.active .pillar-number,
        .pillar-card.active .pillar-title,
        .pillar-card.active-longevity .pillar-number,
        .pillar-card.active-longevity .pillar-title {
            color: white !important;
        }
        .pillar-card.active svg,
        .pillar-card.active-longevity svg {
            color: white !important;
        }
        .detail-card {
            transition: opacity 0.3s ease;
        }








        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .scroll-container {
            display: flex;
            animation: scroll 40s linear infinite;
        }

        .scroll-container:hover {
            animation-play-state: paused;
        }

        .video-card {
            flex: 0 0 auto;
            width: 350px;
            margin-right: 24px;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 177.78%; /* 9:16 aspect ratio */
            background: #f0f0f0;
            border-radius: 1rem;
            overflow: hidden;
        }

        .video-wrapper video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .subtitle-overlay {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(139, 35, 50, 0.95);
            color: white;
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.125rem;
            text-align: center;
            line-height: 1.4;
        }

        .expert-info {
            background: #f5eaea;
            border-radius: 1rem;
            padding: 1.25rem;
            margin-top: 1rem;
        }

        .expert-name {
            font-weight: 700;
            font-size: 20px;
            color: #50000B;
            margin-bottom: 0.25rem;
        }

        .expert-title {
            font-size: 20px;
            color: #50000B;
            line-height: 1.4;
            font-weight: 600;
        }



.shine-line {
    position: relative;
    overflow: hidden;
}

.shine-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.shine-line:hover::after {
    animation: shine-move 0.6s ease-out;
}

@keyframes shine-move {
    0% { left: -80%; }
    100% { left: 120%; }
}


.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.font-arizona {
    font-family: 'Arizona';
}







.icon-card {
    transition: all 0.25s ease;
    background: #f5e4e5; /* màu gốc */
}

.icon-card:hover {
    transform: translateY(-4px);
}

.icon-card.active-card {
    background: linear-gradient(135deg, #5c1a1f 0%, #8b2332 100%) !important;
    transform: translateY(-4px);
    color: white !important;
}

.icon-card.active-card svg,
.icon-card.active-card .icon-text {
    stroke: white !important;
    fill: white !important;
    color: white !important;
}


.lg-card {
    transition: 0.25s ease;
    cursor: pointer;
}

.lg-card:hover {
    transform: translateY(-3px);
}

/* Active state */
.lg-card.active-lg {
    background: linear-gradient(135deg, rgb(107, 62, 26) 0%, rgb(155, 94, 42) 100%) !important;
    color: white !important;
    transform: translateY(-3px);
}

.lg-card.active-lg * {
    color: white !important;
    fill: white !important;
}


/* CHECK ICON GRADIENT FOR IM8 */
.im8-check {
    background: linear-gradient(135deg, #8b1a1a 0%, #b82332 100%);
}

/* GREEN BRAND BG FOR COMPETITOR */
.comp-check {
    background: rgba(89, 107, 95, 0.6);
}

/* LIGHT CELL COLORS */
.cell-left {
    background: rgba(249, 242, 240, 0.8);
}
.cell-right {
    background: rgba(182, 195, 186, 0.4);
}




.active-longevity {
    background: linear-gradient(135deg, #6b3e1a 0%, #9b5e2a 100%); !important;
    border: 2px solid #9b5e2a !important;
    box-shadow: 0 8px 20px rgba(155, 94, 42, 0.25) !important;
    transform: translateY(-3px);
    transition: all 0.25s ease;
}

.active-longevity svg {
    color: white !important;
}

.pillar-card-longevity {
    transition: 0.3s;
}

.pillar-card-longevity:hover {
    transform: translateY(-3px);
}


.active-longevity p,
.active-longevity h4,
.active-longevity .pillar-title {
    color: white !important;
}


.scroll-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: max-content;
    cursor: grab;
    user-select: none;
}
.scroll-container:active {
    cursor: grabbing;
}


/* KEEP DESKTOP DEFAULT */
.compare-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #50000B;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

.header-item {
    padding: 32px;
    text-align: center;
    position: relative;
    color: white;
}

.header-img {
    position: absolute;
    top: -40px;
    right: 15px;
    z-index: 10;
}

.header-img img {
    width: 85px;
    height: 112px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.header-title {
    font-size: 16px;
    font-weight: 700;
}

/* -----------------------------
   📱 MOBILE FIX (<768px)
   ĐẨY ẢNH LÊN CAO HƠN
--------------------------------*/
@media (max-width: 768px) {
    .header-img {
        top: -70px;   /* đẩy lên cao hơn */
        right: 50%;   /* căn giữa ảnh */
        transform: translateX(50%);
    }

    .header-item {
        padding-top: 80px;  /* tránh chữ bị tràn lên ảnh */
    }

    .header-title {
        margin-top: 12px;
        font-size: 13px;
    }
}



@media (max-width: 768px) {
    .mobile-title {
        font-size: 13px !important;
    }
}


















