/**
 * MD Care Main Page - Stylesheet
 * Version: 1.0.2
 * Last Updated: 2024-01-20 16:50:00
 * Cache Buster: Force Reload - Edit this comment to bust cache
 * 
 * CSS cho plugin md-care-main-page
 * Sử dụng prefix #md-care-front và #md-care-lan-da-viet
 * để tránh xung đột với CSS của theme Flatsome
 * 
 * Mobile-first approach
 */

/* Cache Buster - Force Reload */
/* Generated: 2024-01-20 18:05:00 - ADDED SECTION 05 HERO PRODUCT SLIDER */

/* ==========================================================================
   INSTRUCTIONS / HƯỚNG DẪN
   ========================================================================== */
/*
 * - Tất cả CSS phải có prefix #md-care-front hoặc #md-care-lan-da-viet
 * - Sử dụng CSS variables (--md-*) để dễ dàng customize
 * - Mobile-first: viết CSS cho mobile trước, sau đó media queries cho desktop
 * - Không override CSS của theme Flatsome
 */

/* ==========================================================================
   Font Face - Tối ưu hóa loading
   ========================================================================== */

/* SVN Poppins - Font chính */
/* @font-face {
    font-family: 'SVN Poppins';
    src: url('../fonts/svn-poppins/SVN-Poppins-Light.woff2') format('woff2'),
         url('../fonts/svn-poppins/SVN-Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
} */

@font-face {
    font-family: 'SVN Poppins';
    src: url('../fonts/svn-poppins/SVN-Poppins-Regular.woff2') format('woff2'),
         url('../fonts/svn-poppins/SVN-Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN Poppins';
    src: url('../fonts/svn-poppins/SVN-Poppins-Medium.woff2') format('woff2'),
         url('../fonts/svn-poppins/SVN-Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN Poppins';
    src: url('../fonts/svn-poppins/SVN-Poppins-SemiBold.woff2') format('woff2'),
         url('../fonts/svn-poppins/SVN-Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN Poppins';
    src: url('../fonts/svn-poppins/SVN-Poppins-Bold.woff2') format('woff2'),
         url('../fonts/svn-poppins/SVN-Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* SVN Quiche Sans - Font phụ */
@font-face {
    font-family: 'SVN Quiche Sans';
    src: url('../fonts/svn-quiche-sans/SVN-Quiche Sans Regular.woff2') format('woff2'),
         url('../fonts/svn-quiche-sans/SVN-Quiche Sans Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN Quiche Sans';
    src: url('../fonts/svn-quiche-sans/SVN-Quiche Sans Medium.woff2') format('woff2'),
         url('../fonts/svn-quiche-sans/SVN-Quiche Sans Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SVN Quiche Sans';
    src: url('../fonts/svn-quiche-sans/SVN-Quiche Sans Bold.woff2') format('woff2'),
         url('../fonts/svn-quiche-sans/SVN-Quiche Sans Bold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Fonts */
    --md-font-primary: 'SVN Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --md-font-secondary: 'SVN Quiche Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Colors */
    --md-primary-color: #000000;
    --md-secondary-color: #4a9eda;
    --md-accent-color: #f4a261;
    --md-text-color: #000000;
    --md-text-light: #000000;
    --md-white-color: #ffffff;
    --md-background: #ffffff;
    --md-background-alt: #f8f9fa;
    --md-border-color: #e0e0e0;
    
    /* Spacing */
    --md-spacing-xs: 0.5rem;
    --md-spacing-sm: 1rem;
    --md-spacing-md: 2rem;
    --md-spacing-lg: 3rem;
    --md-spacing-xl: 4rem;
    
    /* Other */
    --md-border-radius: 8px;
    --md-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

b {
    font-weight: 600 !important;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

/* Đảm bảo không xung đột với Flatsome */
#content.content-area {
    width: 100%;
}

#md-care-front,
#md-care-lan-da-viet {
    width: 100%;
    font-family: var(--md-font-primary);
    color: var(--md-text-color);
    line-height: 1.6;
}

/* Reset padding/margin từ theme */
#md-care-front .page-inner,
#md-care-lan-da-viet .page-inner {
    padding: 0;
    margin: 0;
}

/* Đè CSS Theme Old */
body .transparent .header-main {
    height: 76px !important
}

body .transparent #logo img {
    max-height: 76px !important;
}
#content {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Container System - Desktop First
   ========================================================================== */

/* Desktop container - Base styles */
#md-care-front .container,
#md-care-lan-da-viet .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Desktop padding */
}

/* Hero container có max-width khác */
#md-care-front .hero-banner .container {
    max-width:1380px;
    margin: 0 auto;
    padding: 0 2rem; /* Desktop padding */
}

/* Tablet containers */
@media (max-width: 991px) {
    #md-care-front .container,
    #md-care-lan-da-viet .container,
    #md-care-front .hero-banner .container {
        padding: 0 1.5rem;
    }
}

/* Mobile containers */
@media (max-width: 767px) {
    #md-care-front .container,
    #md-care-lan-da-viet .container,
    #md-care-front .hero-banner .container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   Hero Banner Section - Desktop First
   ========================================================================== */

/* --- Hero Banner Base Styles (Desktop) --- */
#md-care-front .hero-banner {
    position: relative;
    width: 100%;
}

#md-care-front .hero-banner:hover {
    cursor: grab;
}

/* Desktop hero swiper */
#md-care-front .hero-swiper {
    width: 100%;
    height: calc(100vh - 125px); /* Desktop height */
}

#md-care-front .hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* Desktop background images */
#md-care-front #hero-slide-1 {
    background-image: url('../imgs/font-page/hero/hero01.webp');
}

#md-care-front #hero-slide-1 .hero-title-img-wrapper{
    display: flex;
    justify-content: stretch;
}
#md-care-front #hero-slide-1 .hero-title-img-wrapper img {
    width: 100%;
    max-width: 400px;
}
#md-care-front #hero-slide-1 .hero-content {
    /* padding-left: 20%; */
}

#md-care-front #hero-slide-2 {
    background-image: url('../imgs/font-page/hero/hero02.webp');
}

#md-care-front .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* --- Hero Grid Layout (Desktop) --- */
#md-care-front .hero-slide .container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop: 2 cột */
    gap: 4rem;
    align-items: center;
    height: 100%;
}

/* --- Hero Content (Desktop) --- */
#md-care-front .hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: left; /* Desktop: align left */
    grid-column: 1;
    max-width: none;
    margin: 0;
    padding: 0;
}
#md-care-front .hero-slide-link {
    text-decoration: none !important;
}

#md-care-front .hero-title {
    font-size: 3.5rem; /* Desktop size */
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
}

body #md-care-front .hero-description {
    font-size: 1.3rem; /* Desktop size */
    margin-bottom: 2rem;
    font-weight: 300;
    margin-top: 1.2rem;
    text-decoration: none !important;
}

#md-care-front .hero-btn {
    display: inline-block;
    padding: .8rem 2.4rem;
    background-color: #ffffff;
    color: var(--md-text-color);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    border-radius: var(--md-border-radius);
    transition: var(--md-transition);    
    border: solid 1px var(--md-text-color);
}

#md-care-front .hero-btn:hover {        
    border-color: var(--md-white-color);
    background-color: var(--md-primary-color);
    color: #ffffff;
}

/* --- Hero Slide Specific Styles --- */
#md-care-front #hero-slide-1 .hero-title {
    font-weight: 900;
    letter-spacing: 0rem;
    text-transform: uppercase;
    line-height: 1.05;
    background: linear-gradient(180deg, #ff3fa4 0%, #e6007e 50%, #ff66b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    font-size: 4.2rem;
}

#md-care-front #hero-slide-1 .hero-title::after {
    content: "";
    position: absolute;
    mix-blend-mode: overlay;
    pointer-events: none;
}

#md-care-front #hero-slide-1 .hero-description {
    color: var(--md-text-color);
}

#md-care-front #hero-slide-2 .hero-title {
    font-family: 'SVN Quiche Sans', sans-serif !important;
    font-size: 3rem;
    background: linear-gradient(90deg, #E3C880 0%, #EFE4A6 43.75%, #C69A50 84.13%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#md-care-front #hero-slide-2 .hero-description {
    color: var(--md-white-color);
    text-align: justify;
}

/* --- Hero Navigation & Pagination --- */
#md-care-front .hero-banner .swiper-pagination {
    bottom: 20px !important;
}

#md-care-front .hero-swiper .swiper-button-prev,
#md-care-front .hero-swiper .swiper-button-next {
    color: #ffffff;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--md-transition);
}

#md-care-front .hero-swiper .swiper-button-prev:hover,
#md-care-front .hero-swiper .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#md-care-front .hero-swiper .swiper-button-prev::after,
#md-care-front .hero-swiper .swiper-button-next::after {
    font-size: 20px;
}

#md-care-front .hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--md-white-color);
    opacity: 0.5;
    transition: var(--md-transition);
}

#md-care-front .hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--md-primary-color);
    border-radius: 6px;
}

/* --- Hero Responsive Breakpoints (Desktop First) --- */

/* Tablet (992px and below) */
@media (max-width: 991px) {
    #md-care-front .hero-swiper {
        height: 900px;
    }
    
    #md-care-front .hero-slide .container {
        grid-template-columns: 1fr; /* Tablet: 1 cột */
        gap: 3rem;
        align-items: start;
    }
    
    #md-care-front .hero-content {
        text-align: center; /* Tablet: center align */
        padding: 1.5rem 1rem !important;
        
    }
    
    #md-care-front .hero-title {
        font-size: 2.5rem;
    }
    
    #md-care-front .hero-description {
        font-size: 1.2rem;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
     #md-care-front .hero-swiper {
        height: 700px;
    }
    #md-care-front #hero-slide-1 .hero-content{
        display: flex;
        flex-direction: column;
    }
    #md-care-front #hero-slide-1 .hero-title-img-wrapper{
        justify-content: center;
        width: 100%;        
    }

    #md-care-front #hero-slide-1 .hero-content .hero-title-img{        
        margin-top: 0rem;
        max-width: 320px;
        margin-top: 1rem;
        width: 60vw;
    }
    #md-care-front .hero-banner {    
        padding-top: 10px !important;
    }
    
    /* Mobile background images */
    #md-care-front #hero-slide-1 {
        background-image: url('../imgs/font-page/hero/hero01-mobile.webp');
    }

    #md-care-front #hero-slide-2 {
        background-image: url('../imgs/font-page/hero/hero02-mobile.webp');
    }
    
    #md-care-front #hero-slide-1 .hero-title {
        font-size: 2.4rem;
    }
     #md-care-front #hero-slide-2 .hero-title {
        font-size: 1.6rem;
        margin-top: .5rem;
    }

    #md-care-front #hero-slide-1 .hero-btn {
        display: none;
    }

    
    
    #md-care-front .hero-slide .container {
        gap: 2rem;
    }
    
    #md-care-front .hero-title {
        font-size: 1.6rem;
    }
    
    #md-care-front .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 1rem;
    }
    
    #md-care-front .hero-btn {
        padding: .5rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Section 02: CAM KẾT TỪ MD CARE - Desktop First
   ========================================================================== */

/* --- Section Base Styles (Desktop) --- */
#md-care-sec-02 {
    padding: 2rem 0;
    background-color: var(--md-background);
}

#md-care-sec-02 .sec-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--md-text-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Grid Layout (Desktop: 4 cột) --- */
#md-care-sec-02 .sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

/* --- Grid Items (Desktop) --- */
#md-care-sec-02 .sec-item {
    text-align: center;
    padding: 20px 15px;
    transition: var(--md-transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#md-care-sec-02 .sec-item:hover {
    transform: translateY(-5px);
}

#md-care-sec-02 .sec-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
    transition: var(--md-transition);
}

#md-care-sec-02 .sec-item:hover img {
    transform: scale(1.05);
}

#md-care-sec-02 .sec-item p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--md-text-color);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

/* --- Section 02 Responsive Breakpoints (Desktop First) --- */

/* Tablet (1023px and below) - 2 cột */
@media (max-width: 1023px) {
    #md-care-sec-02 {
        padding: 60px 0;
    }
    
    #md-care-sec-02 .sec-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    #md-care-sec-02 .sec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    #md-care-sec-02 .sec-item {
        min-height: 180px;
        padding: 15px 10px;
    }
    
    #md-care-sec-02 .sec-item img {
        max-width: 100px;
        margin-bottom: 15px;
    }
    
    #md-care-sec-02 .sec-item p {
        font-size: 0.85rem;
    }
}

/* Mobile (767px and below) - 2 cột với gap nhỏ hơn */
@media (max-width: 767px) {
    #md-care-sec-02 {
        padding: 40px 0;
    }
    
    #md-care-sec-02 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    #md-care-sec-02 .sec-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cột */
        gap: 16px; /* Gap giảm từ 24px xuống 16px */
        max-width: none; /* Remove max-width constraint */
        margin: 0;
    }
    
    #md-care-sec-02 .sec-item {
        min-height: 150px;
        padding: 15px 10px; /* Giảm padding để fit 2 cột */
    }
    
    #md-care-sec-02 .sec-item img {
        max-width: 100px; /* Giảm size icon để fit 2 cột */
        margin-bottom: 12px;
    }
    
    #md-care-sec-02 .sec-item p {
        font-size: 0.75rem; /* Giảm font size */
        line-height: 1.2;
    }
}

/* ==========================================================================
   Section 03: KHOA HỌC CHUYÊN SÂU - Desktop First
   ========================================================================== */

/* --- Section Base Styles (Desktop) --- */
#md-care-sec-03 {
    padding: 5rem 0;
    background-color: var(--md-background-alt);
}

/* --- Main Grid Layout (Desktop: 2 cột) --- */
#md-care-sec-03 .sec-inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Text trái, image phải với tỷ lệ 1:1.2 */
    gap: 36px;
    align-items: center;
}

/* --- Content Section (Desktop) --- */

#md-care-front #md-care-sec-03 .container{
    max-width: 1380px ; 
}

#md-care-sec-03 .sec-content {
    padding-right: 20px;
}

#md-care-sec-03 .sec-title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--md-text-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#md-care-sec-03 .sec-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--md-text-light);
    margin: 0;
    text-align: justify;
}

/* --- Images Grid (Desktop & Mobile: 2 cột - ảnh lớn trái, 2 ảnh nhỏ phải) --- */
#md-care-sec-03 .sec-images {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
    grid-template-rows: 1fr 1fr; /* 2 hàng bằng nhau */
    gap: 16px;    
    width: 100%;
}

/* Ảnh lớn bên trái - chiếm 2 hàng */
#md-care-sec-03 .sec-images .img-large {
    grid-row: 1 / 3; /* Span từ hàng 1 đến hàng 3 */
    grid-column: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* Bo góc lớn hơn */
    transition: var(--md-transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 2 ảnh nhỏ bên phải - xếp dọc */
#md-care-sec-03 .sec-images .img-small {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* Bo góc lớn hơn */
    transition: var(--md-transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    aspect-ratio: 3.5 / 3; /* Đảm bảo ảnh nhỏ luôn là hình vuông */
    object-fit: cover;
}

/* Hover effects - giảm scale để không bị overflow */
#md-care-sec-03 .sec-images img:hover {
    transform: scale(1.01); /* Giảm từ 1.02 xuống 1.01 */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* --- Section 03 Responsive Breakpoints (Desktop First) --- */

/* Tablet (1023px and below) - Text trên, Image dưới, giữ nguyên layout ảnh */
@media (max-width: 1023px) {
    #md-care-sec-03 {
        padding: 3rem 0;
    }
    
    #md-care-sec-03 .sec-inner {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 32px;
    }
    
    #md-care-sec-03 .sec-content {
        padding-right: 0;
        text-align: center;
    }
    
    #md-care-sec-03 .sec-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    #md-care-sec-03 .sec-desc {
        font-size: 1rem;
        line-height: 1.6;
    }
    
   
}

/* Mobile (767px and below) - Giữ nguyên layout ảnh, chỉ điều chỉnh kích thước */
@media (max-width: 767px) {
    #md-care-sec-03 {
        padding: 3rem 0;
    }
    
    #md-care-sec-03 .sec-inner {
        gap: 24px;
    }
    
    #md-care-sec-03 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    #md-care-sec-03 .sec-desc {
        font-size: 1rem;
        text-align: justify;
    }
    
    /* Giảm height và gap cho mobile */
    #md-care-sec-03 .sec-images {
        gap: 10px; /* Giảm từ 12px xuống 10px */
    }
    
    /* Bo góc nhỏ hơn trên mobile */
    #md-care-sec-03 .sec-images .img-large,
    #md-care-sec-03 .sec-images .img-small {
        border-radius: 12px;
    }
}

/* ==========================================================================
   Section 04: DANH MỤC SẢN PHẨM - Desktop First
   ========================================================================== */

/* --- Section Base Styles (Desktop) --- */
#md-care-sec-04 {
    padding: 5rem 0;
    background-color: var(--md-background);
}

#md-care-sec-04 .sec-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--md-text-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Grid Layout (Desktop: 5 cột) --- */
#md-care-sec-04 .sec-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    align-items: start;
}

/* --- Grid Items (Desktop) --- */
#md-care-sec-04 .sec-item {
    text-align: center;
    transition: var(--md-transition);
    cursor: pointer;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    display: block; /* Make anchor behave like block element */
}

#md-care-sec-04 .sec-item:hover {
    transform: translateY(-8px);
    text-decoration: none; /* Ensure no underline on hover */
    color: inherit; /* Keep text color consistent */
}

/* --- Item Image Container --- */
#md-care-sec-04 .item-image {
    background: var(--md-background);
    border-radius: 16px;    
    margin-bottom: 16px;
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); */
    transition: var(--md-transition);
    aspect-ratio: 1; /* Đảm bảo container vuông */
    display: flex;
    align-items: center;
    justify-content: center;
}

#md-care-sec-04 .sec-item:hover .item-image {
    
    border-radius: 12px;
    background: var(--md-background-alt);
}

#md-care-sec-04 .item-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: var(--md-transition);
}

#md-care-sec-04 .sec-item:hover .item-image img {
    transform: scale(1.05);
}

/* --- Item Title --- */
#md-care-sec-04 .item-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--md-text-color);
    margin: 0;
    padding: 0 8px;
    transition: var(--md-transition);
}

/* Add hover effect for title */
#md-care-sec-04 .sec-item:hover .item-title {
    color: var(--md-primary-color); /* Change color on hover */
}

/* --- Section 04 Responsive Breakpoints (Desktop First) --- */

/* Tablet (1023px and below) - 3 cột */
@media (max-width: 1023px) {
    #md-care-sec-04 {
        padding: 3rem 0;
    }
    
    #md-care-sec-04 .sec-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    #md-care-sec-04 .sec-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
        
    #md-care-sec-04 .item-title {
        font-size: 1rem;
    }
}

/* Mobile (767px and below) - 1 cột */
@media (max-width: 767px) {
    #md-care-sec-04 {
        padding: 3rem 0;
    }
    
    #md-care-sec-04 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    #md-care-sec-04 .sec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;        
        margin: 0 auto;
    }
    
    #md-care-sec-04 .sec-item:hover {
        transform: translateY(-4px); /* Giảm hover effect trên mobile */
    }
    
    #md-care-sec-04 .item-image {
        /* padding: 20px; */
        margin-bottom: 12px;
        /* border-radius: 12px; */
    }
    
    #md-care-sec-04 .item-title {
        font-size: 1rem;
        font-weight: 500;
    }
}

/* ==========================================================================
   Section 05: HERO PRODUCT SLIDER - NMF COMPONENTS (Full Width)
   ========================================================================== */

/* Desktop styles (1728x700) */
#md-care-sec-05 {
    position: relative;
    width: 100%;
    aspect-ratio: 1728 / 700; /* Exact desktop ratio */
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

#md-care-sec-05 .md-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

#md-care-sec-05 .md-sec05-swiper {
    width: 100%;
    height: 100%;
}

#md-care-sec-05 .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#md-care-sec-05 .slide {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#md-care-sec-05 .slide:hover {
    /* transform: scale(1.02); */
}

#md-care-sec-05 .slide-bg {
    width: 100%;
    height: 100%;
    display: block;
}

#md-care-sec-05 .slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Swiper Pagination - Desktop */
#md-care-sec-05 .swiper-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#md-care-sec-05 .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

#md-care-sec-05 .swiper-pagination-bullet-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* --- Section 05 Responsive Breakpoints --- */

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #md-care-sec-05 {
        aspect-ratio: 1728 / 700; /* Keep desktop ratio on tablet */
    }
    
    #md-care-sec-05 .swiper-pagination {
        bottom: 25px !important;
        display: none !important;
    }
    
    #md-care-sec-05 .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Mobile styles (430x900) */
@media (max-width: 767px) {
    #md-care-sec-05 {
        aspect-ratio: 430 / 900; /* Exact mobile ratio */
    }
    
    #md-care-sec-05 .slide:hover {
        transform: none; /* Disable hover effect on mobile */
    }
    
    #md-care-sec-05 .swiper-pagination {
        bottom: 20px !important;
        gap: 8px;
        display: none !important;
    }
    
    #md-care-sec-05 .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    #md-care-sec-05 .swiper-pagination-bullet-active {
        transform: scale(1.3);
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    #md-care-sec-05 {
        aspect-ratio: 430 / 900; /* Keep mobile ratio */
    }
    
    #md-care-sec-05 .swiper-pagination {
        bottom: 15px !important;
    }
}

/* ==========================================================================
   Section 06: CHỨNG MINH LÂM SÀNG - CLINICAL PROOF SLIDER
   ========================================================================== */

#md-care-sec-06 {
    padding: 3rem 0;
    background: var(--md-white-color);
}

#md-care-sec-06 .sec-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--md-text-primary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#md-care-sec-06 .clinical-slider {
    position: relative;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
}

#md-care-sec-06 .md-sec06-swiper {
    width: 100%;
    
    margin: 0 auto;
}

/* Desktop Layout - 3 columns grid */
#md-care-sec-06 .slide-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--md-white-color);
    border-radius: 20px;
    gap: 0;    
    background: #f5f5f5;    
    align-items: stretch;
    overflow: hidden;
}

/* Before/After Images Section */
#md-care-sec-06 .before-after {
    position: relative;    
    overflow: hidden;    
    grid-column: span 1; /* Takes 2 columns on desktop */
}

#md-care-sec-06 .before-after-content {
    width: 100%;
    height: 100%;
    position: relative;
}

#md-care-sec-06 .before-after img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 250px;
    object-fit: cover;
}

/* Product Info Section */
#md-care-sec-06 .product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    justify-content: center;
}

#md-care-sec-06 .product-image {
    width: 100%;        
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

#md-care-sec-06 .product-image img {
    width: 75%;
    object-fit: cover;
    border-radius: 8px;
}

#md-care-sec-06 .product-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--md-text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    margin-top: 0;
}

#md-care-sec-06 .product-desc {
    font-size: 1.025rem;
    color: var(--md-text-secondary);
    margin-bottom: 1rem;
    margin-top: 6px;
    line-height: 1.4;
}

#md-care-sec-06 .price {    
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--md-primary-color);
    margin-bottom: 10px;
}

#md-care-sec-06 .btn-buy {
    display: inline-block;
    background: var(--md-white-color);
    color: var(--md-primary-color);
    padding: 8px 30px;
    border: solid 1px var(--md-primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    
}

#md-care-sec-06 .btn-buy:hover {
    background: var(--md-primary-color);
    color: var(--md-white-color);        
}

/* Swiper Navigation */
#md-care-sec-06 .swiper-button-prev,
#md-care-sec-06 .swiper-button-next {
    width: 60px;
    height: 60px;
    /* background: #ffffff; */
    border-radius: 50%;
    color: #959595;
    margin-top: -22px;
    z-index: 10;
}

#md-care-sec-06 .swiper-button-prev:after,
#md-care-sec-06 .swiper-button-next:after {
    font-size: 18px;
    font-weight: 500;
}

#md-care-sec-06 .swiper-button-prev:hover,
#md-care-sec-06 .swiper-button-next:hover {
    background: var(--md-secondary);
}

#md-care-sec-06 .swiper-button-prev {
    left: 16px  ;
}

#md-care-sec-06 .swiper-button-next {
    right: 16px;
}

/* Swiper Pagination */
#md-care-sec-06 .swiper-pagination {
        position: relative;
    bottom: 40px;
}

#md-care-sec-06 .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(172, 172, 172, 0.3);
    opacity: 1;
    margin: 0 6px;
}

#md-care-sec-06 .swiper-pagination-bullet-active {
    background: var(--md-white-color);
}

/* --- Section 06 Responsive Breakpoints --- */

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #md-care-sec-06 {
        padding: 3rem 0;
    }
    
    #md-care-sec-06 .sec-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    #md-care-sec-06 .slide-card {
        
    }
    
    #md-care-sec-06 .product-image {
        width: 100px;
        height: 100px;
    }
    
    #md-care-sec-06 .product-name {
        font-size: 1.1rem;
    }
    
    #md-care-sec-06 .price {
        font-size: 1.2rem;
    }
}

/* Mobile Layout - Single column */
@media (max-width: 767px) {
    #md-care-sec-06 .product-image img {
        width: 65%;
    }
    #md-care-sec-06 {
        padding: 3rem 0;
    }
    
    #md-care-sec-06 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    #md-care-sec-06 .md-sec06-swiper {
        
        margin: 0 auto;
    }
    
    /* Mobile: Single column layout */
    #md-care-sec-06 .slide-card {
        grid-template-columns: 1fr;
        gap: 0;
                
    }
    
    #md-care-sec-06 .before-after {
        grid-column: span 1; /* Reset to single column */
        order: 1;
    }
    
    #md-care-sec-06 .before-after img {
        min-height: 200px;
    }
    
    #md-care-sec-06 .product-info {
        order: 2;
        padding: 0 15px 20px 15px;
    }
    
    #md-care-sec-06 .product-image {        
        margin-bottom: 12px;
        order: -1;
    }
    
    #md-care-sec-06 .product-name {
        font-size: 1.4rem;
        margin-bottom: 6px;
        margin-top: 0;
    }
    
    #md-care-sec-06 .product-desc {
        font-size: 1rem;
        margin-bottom:5px;
    }
    
    #md-care-sec-06 .price {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    #md-care-sec-06 .btn-buy {
        width: 100%;
        max-width: 140px;
        padding: 10px;
        font-size: 1rem;
    }
    
    /* Mobile Navigation */
    #md-care-sec-06 .swiper-button-prev,
    #md-care-sec-06 .swiper-button-next {
        width: 60px;
        height: 60px;
        margin-top: -18px;
    }
    
    #md-care-sec-06 .swiper-button-prev:after,
    #md-care-sec-06 .swiper-button-next:after {
        font-size: 20px;
    }
    
    #md-care-sec-06 .swiper-button-prev {
        left: -5px;
    }
    
    #md-care-sec-06 .swiper-button-next {
        right: -5px;
    }
    
    #md-care-sec-06 .swiper-pagination {
        margin-top: 0px;
    }
    
    #md-care-sec-06 .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
        background: #9d9d9d;
    }
    #md-care-sec-06 .swiper-pagination-bullet-active {
            background: var(--md-primary-color);
    }
    #md-care-sec-06 .swiper-pagination {    
        bottom: 0px;
    }

    #md-care-sec-06 .product-image {
        aspect-ratio: unset;
    }

}

/* ==========================================================================
   Section 07: DECODE YOUR SKIN AGE - PRODUCT STORY
   ========================================================================== */

/* Desktop Layout - Asymmetric Grid */
#md-care-sec-07 {
    padding: 3rem 0; 
    background: #ffffff;
}

#md-care-sec-07 .sec-07-inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Asymmetric: Product image larger */
    grid-template-rows: 1fr 1fr;
    row-gap: 20px;
    column-gap: 40px;
    align-items: start;
}

/* Product Hero Image - Left Column */
#md-care-sec-07 .sec-07-visual {
    position: relative;
    grid-column: span 1;
    grid-row: span 2;
    height: 100%;
}

#md-care-sec-07 .sec-07-visual img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#md-care-sec-07 .sec-07-visual:hover img {
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

/* Content Section - Right Column */
#md-care-sec-07 .sec-07-content {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
}

#md-care-sec-07 .sec-07-heading {
    font-size: 2.4rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 5px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

#md-care-sec-07 .sec-07-subheading {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--md-primary-color);
    margin-bottom: 10px;

    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

#md-care-sec-07 .sec-07-desc {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--md-primary-color);
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: justify;
}

/* CTA Button */
#md-care-sec-07 .sec-07-cta {
    width: fit-content;
     display: inline-block;
    background: var(--md-white-color);
    color: var(--md-primary-color);
    padding: 8px 30px;
    border: solid 1px var(--md-primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    
}

#md-care-sec-07 .sec-07-cta:hover {
    background: var(--md-primary-color);
    color: var(--md-white-color);       
}


/* Lifestyle Images Grid - Desktop Only */
#md-care-sec-07 .sec-07-lifestyle {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 0;
    height: 100%;
}

#md-care-sec-07 .lifestyle-image {
    /* aspect-ratio: 1; */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#md-care-sec-07 .lifestyle-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

#md-care-sec-07 .lifestyle-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

#md-care-sec-07 .lifestyle-image:hover img {
    transform: scale(1.05);
}

/* --- Section 07 Responsive Breakpoints --- */

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #md-care-sec-07 {
        padding: 3rem 0;
    }
    
    #md-care-sec-07 .sec-07-inner {
        grid-template-columns: 1fr; /* Single column on tablet */
        gap: 32px;
    }
    
    #md-care-sec-07 .sec-07-visual img {
        min-height: 400px;
        border-radius: 20px;
    }
    
    #md-care-sec-07 .sec-07-content {
        text-align: center;
        padding: 0;
        order: -1; /* Content first on tablet */
    }
    
    #md-care-sec-07 .sec-07-heading {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    #md-care-sec-07 .sec-07-subheading {
        font-size: 1.2rem;
        margin: 5px 0;

    }
    
    #md-care-sec-07 .sec-07-desc {
        font-size: 1rem;
        margin-bottom: 28px;
        text-align: center;
    }
    
    #md-care-sec-07 .sec-07-cta {
        align-self: center;
        margin-bottom: 0;
    }
    
    /* Hide lifestyle images on tablet */
    #md-care-sec-07 .sec-07-lifestyle {
        display: none;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    #md-care-sec-07 {
        padding: 3rem 0;
    }
    
    #md-care-sec-07 .sec-07-inner {
        grid-template-columns: 1fr; /* Single column */
        grid-template-rows: auto;
        gap: 24px;
    }
    
    /* Content first on mobile */
    #md-care-sec-07 .sec-07-content {
        order: -1;
        text-align: center;
        padding: 0;
    }
    
    #md-care-sec-07 .sec-07-heading {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    #md-care-sec-07 .sec-07-subheading {
        font-size: 1.2rem;
        margin-bottom: 10px;
        margin-top: 0;
        line-height: 1.4;
    }
    
    #md-care-sec-07 .sec-07-desc {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 24px;
        text-align: justify;
    }
    
    #md-care-sec-07 .sec-07-cta {
        padding: 10px 28px;
        font-size: 1rem;
        align-self: center;
        margin-bottom: 0;
    }
    
    /* Hide desktop images on mobile */
    #md-care-sec-07 .sec-07-visual,
    #md-care-sec-07 .sec-07-lifestyle {
        display: none;
    }
    
    /* Show mobile slider */
    #md-care-sec-07 .sec-07-mobile-slider {
        display: block;
        margin-top: 24px;
        width: 100%;
        overflow: hidden;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper {
        width: 100%;
        aspect-ratio: 4/6;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper .swiper-wrapper {
        width: 100%;
        height: 100%;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper .swiper-slide {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
    }
    
    #md-care-sec-07 .mobile-slide-image {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 16px;
    }
    
    #md-care-sec-07 .mobile-slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper .swiper-pagination {
        bottom: 10px;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper .swiper-pagination-bullet {
        background: var(--md-white-color);
        opacity: 0.7;
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    #md-care-sec-07 .md-sec07-mobile-swiper .swiper-pagination-bullet-active {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hide mobile slider on desktop */
@media (min-width: 768px) {
    #md-care-sec-07 .sec-07-mobile-slider {
        display: none;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    
}

/* ==========================================================================
   Section 08: SẢN PHẨM NỔI BẬT - FEATURED PRODUCTS
   ========================================================================== */

/* Desktop - Pure CSS Grid Layout (NO SWIPER) */
#md-care-sec-08 {
    padding: 3rem 0;
    background: #ffffff;
}

#md-care-sec-08 .sec-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Desktop: Disable Swiper, use CSS Grid only */
#md-care-sec-08 .product-slider {
    width: 100%;
    overflow: visible;
}

/* Desktop Grid - 4 columns, NO SWIPER */
#md-care-sec-08 .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Desktop: Swiper slides behave as normal divs */
#md-care-sec-08 .swiper-slide {
    height: auto;
    display: block;
    width: auto;
    margin: 0;
    flex: none;
}

/* Desktop: Hide Swiper pagination */
#md-care-sec-08 .swiper-pagination {
    display: none;
}

/* Product Card Link Wrapper */
#md-care-sec-08 .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    
}

#md-care-sec-08 .product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Card Base Styles */
#md-care-sec-08 .product-card {
    background: #f3f4f4;    
    
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    border: solid .5px rgba(0, 0, 0, 0.02);
}


#md-care-sec-08 .product-card:hover {
    transform: scale(1.05);
}

/* Product Image Section */
#md-care-sec-08 .product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f4;
}

#md-care-sec-08 .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;    
}


/* Product Content */
#md-care-sec-08 .product-content {
    padding: 10px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

#md-care-sec-08 .product-name {
    margin-top: 5px;
    font-size: 1.3rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

#md-care-sec-08 .product-desc {
    font-size: 0.9rem;
    color: var(--md-text-color);
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 0px;
    flex-grow: 1;
}

#md-care-sec-08 .product-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--md-primary-color);
    margin-bottom: 16px;
}

#md-care-sec-08 .product-cta {
    display: block;
    background: #f3f4f4;
    color:var(--md-primary-color);
    text-align: center;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--md-primary-color);
    cursor: pointer;
}

#md-care-sec-08 .product-card-link:hover .product-cta {
    background: var(--md-primary-color);
    color: var(--md-white-color);        
}

/* --- Section 08 Responsive Breakpoints --- */

/* Tablet (768px to 1023px) - 2 columns grid */
@media (min-width: 768px) and (max-width: 1023px) {
    #md-care-sec-08 {
        padding: 3rem 0;
    }
    
    #md-care-sec-08 .sec-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    #md-care-sec-08 .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #md-care-sec-08 .product-content {
        padding: 20px;
    }
    
    #md-care-sec-08 .product-name {
        font-size: 1rem;
    }
    
    #md-care-sec-08 .product-desc {
        font-size: 0.85rem;
    }
    
    #md-care-sec-08 .product-price {
        font-size: 1.1rem;
    }
}

/* Mobile - Swiper Slider with Touch, Autoplay, Loop */
@media (max-width: 767px) {
    #md-care-sec-08 {
        padding: 3rem 0;
    }
    
    #md-care-sec-08 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Enable Swiper on mobile */
    #md-care-sec-08 .product-slider {
        overflow: hidden;
        padding-top: 1rem;
    }
    
    /* Mobile Swiper - NO GRID, use Swiper layout */
    #md-care-sec-08 .product-grid {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    /* Mobile Swiper slides - 1.4 cards visible */
    #md-care-sec-08 .swiper-slide {
        width: calc(100vw / 1.4 - 24px);
        margin-right: 16px;
        flex-shrink: 0;
        display: flex;
        align-items: stretch;
    }
    
    #md-care-sec-08 .product-card-link {
        flex: 1;
        height: 100%;
        display: flex;
        align-self: stretch;
    }
    
    #md-care-sec-08 .product-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 400px;
        box-sizing: border-box;
        
    }
    
    /* Product image container - fixed height */
    #md-care-sec-08 .product-image {
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        
    }
    
    /* Mobile Swiper Pagination - show on mobile */
    #md-care-sec-08 .swiper-pagination {
        display: block;
        position: relative;
        margin-top: 20px;
    }
    
    #md-care-sec-08 .swiper-pagination-bullet {
        background: var(--md-primary-color);
        opacity: 0.3;
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    #md-care-sec-08 .swiper-pagination-bullet-active {
        opacity: 1;
        transform: scale(1.2);
    }
    
    /* Adjust card content for mobile */
    #md-care-sec-08 .product-content {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    #md-care-sec-08 .product-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
        font-weight: 500;
    }
    
    #md-care-sec-08 .product-desc {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 10px;
        min-height: 40px;
    }
    
    #md-care-sec-08 .product-price {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    #md-care-sec-08 .product-cta {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    #md-care-sec-08 .product-image img {
        
    }
}

/* Small mobile adjustments */


/* ==========================================================================
   Section 09: PHẢN HỒI TỪ CHUYÊN GIA – EXPERT TESTIMONIAL - Desktop First
   ========================================================================== */

/* --- Section Base Styles (Desktop) --- */
#md-care-sec-09 {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    position: relative;
}

#md-care-sec-09 .sec-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--md-primary-color);
    margin-bottom: 0rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Expert Slider Container --- */
#md-care-sec-09 .expert-slider {
    position: relative;
    /* max-width: 1200px; */
    margin: 0 auto;
    overflow-y: visible !important;
}

/* Desktop: Equal height slides */
#md-care-sec-09 .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

#md-care-sec-09 .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}


/* --- Desktop Layout: 2 columns grid --- */

.slide-expert-wrapper{
padding: 8% 6% 2% 6%;
flex: 1;
display: flex;
flex-direction: column;
}
.slide-expert {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    grid-template-rows: auto;
    gap: 1rem;
    align-items: end;
    border-radius: 20px;
    background: #f3f3f3;
    padding: 2rem;
    padding-right: 0;
    flex: 1;
}

/* --- Expert Quote Card (Desktop) --- */
.expert-quote {
    background: #ffffff;
    padding: 1rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(44, 95, 141, 0.08);
    /* overflow: hidden; */
}

.expert-quote .quote-icon {
    margin-bottom: 0rem;
    opacity: 0.8;
    position: relative;
    margin-top: -2rem;
}

.expert-quote .quote-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--md-text-primary);
    margin-bottom: .5rem;
    font-weight: 400;
    text-align: justify;
    margin-top: .5rem;
    overflow: hidden;
    position: relative;
}

.expert-quote .quote-text::after {
    opacity: 0;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent 0%, #ffffffdb 70%, #ffffff 100%);
    pointer-events: none;
}

.expert-quote .expert-name {
    text-align: right;
    /* border-top: 1px solid #e8ecef; */
    padding-top: .5rem;
    margin-bottom: .5rem;
}

.expert-quote .expert-name strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--md-primary-color);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-quote .expert-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* --- Expert Image (Desktop) --- */
.expert-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* aspect-ratio: 1/1; */
    position: relative;
}

.expert-image img {
    bottom: -2rem;
    right: 0;
    /* aspect-ratio:4/6; */
    position: absolute;
    /* max-width: 280px; */
    width: 100%;
    height: 160%;
    object-fit:contain;
    object-position: bottom center;
}

/* --- Desktop Navigation --- */
#md-care-sec-09 .swiper-button-prev,
#md-care-sec-09 .swiper-button-next {
    color: var(--md-primary-color);
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* border: 2px solid rgba(44, 95, 141, 0.1); */
    transition: all 0.3s ease;
}

#md-care-sec-09 .swiper-button-prev {
    left: 5px;
}

#md-care-sec-09 .swiper-button-next {
    right: 5px;
}

#md-care-sec-09 .swiper-button-prev:after,
#md-care-sec-09 .swiper-button-next:after {
    font-size: 26px;
    font-weight: bold;
    color: inherit;
}

#md-care-sec-09 .swiper-button-prev:hover,
#md-care-sec-09 .swiper-button-next:hover {
    
    color: var(--md-primary-color);
    /* transform: translateY(-50%) scale(1.1); */
    box-shadow: 0 4px 4px rgba(44, 95, 141, 0.1);
    /* border-color: var(--md-primary-color); */
}

/* Ensure arrows are visible on smaller desktop screens */
@media (min-width: 1200px) {
    #md-care-sec-09 .swiper-button-prev {
        
    }
    
    #md-care-sec-09 .swiper-button-next {
        
    }
}

/* Fallback positioning for container edge cases */
@media (min-width: 768px) and (max-width: 1199px) {
    #md-care-sec-09 .swiper-button-prev {
        left: -60px;
    }
    
    #md-care-sec-09 .swiper-button-next {
        right: -60px;
    }
    
    #md-care-sec-09 .swiper-button-prev,
    #md-care-sec-09 .swiper-button-next {
        width: 44px;
        height: 44px;
    }
}

/* Hide pagination on desktop */
#md-care-sec-09 .swiper-pagination {
    display: none;
}

/* --- Section 09 Responsive Breakpoints --- */

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #md-care-sec-09 {
        padding: 3rem 0;
    }
    
    #md-care-sec-09 .sec-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .slide-expert {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        min-height: 350px;
    }
    
    .expert-quote {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .expert-quote .quote-text {
        font-size: 1rem;
    }
    
    .expert-image img {
        max-width: 240px;
    }
    
    #md-care-sec-09 .swiper-button-prev {
        left: -50px;
    }
    
    #md-care-sec-09 .swiper-button-next {
        right: -50px;
    }
}

/* Mobile - Vertical Layout */
@media (max-width: 767px) {
    #md-care-sec-09 {
        padding: 3rem 0;
    }
    
    #md-care-sec-09 .sec-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Ensure equal height slides on mobile */
    #md-care-sec-09 .swiper-wrapper {
        align-items: stretch;
        overflow-y: visible !important;
    }
    
    #md-care-sec-09 .swiper-slide {
        height: auto;
        display: flex;
    }
    
    .slide-expert-wrapper {
        padding: 52% 6% 40px 6%;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: visible !important;
    }
    
    /* Mobile: Image first, Quote second */
    .slide-expert {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: 100%;
        padding: 1rem;
        position: relative;
        flex: 1;
        max-width: 480px;
    }
    
    /* Reorder: Image first on mobile */
    .expert-image {
         /* Fixed height container for image */
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: relative;
        background: transparent;
        overflow: visible;
        order:-1;
        width: 100%;
        padding-top:30% ;
    }
    
    .expert-image img {
        width: 80%;
        /* max-width: 300px; */
        height: auto;
        object-fit: contain;
        object-position: bottom center;
        margin: 0 auto;
        display: block;        
        bottom: 0;
        left: 0;
        position: absolute;
    }
    .expert-quote {
        flex: 1;
        border-radius: 16px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(44, 95, 141, 0.12);
        display: flex;
        flex-direction: column;
        padding: 1rem;
        justify-content: space-between;
        /* min-height:300px; */
    }
    .expert-quote .expert-name strong {        
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: -0.02rem;  
        margin-top: 1rem;      
    }
    
    .expert-quote .quote-icon {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
        width: 40px;
        height: 40px;
        position: absolute;
    }
    
    .expert-quote .quote-text {
        font-size: 1rem;
        text-align: justify;
        margin-bottom: 0rem;
        flex-grow: 1; /* Cho phép text co giãn để fill space */
        display: flex;
        align-items: flex-start;
        line-height: 1.3;
    }
    
    .expert-quote .expert-name {
        text-align: center;        
        padding-top: 0rem;
        margin: 0;
        order:-1;
    }
    
    
    /* Hide arrows on mobile */
    #md-care-sec-09 .swiper-button-prev,
    #md-care-sec-09 .swiper-button-next {
        display: none;
    }
    
    /* Show pagination on mobile */
    #md-care-sec-09 .swiper-pagination {
        display: block;
        position: relative;
        bottom: 0px;
    }
    
    #md-care-sec-09 .swiper-pagination-bullet {
        background: var(--md-primary-color);
        opacity: 0.3;
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    #md-care-sec-09 .swiper-pagination-bullet-active {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ==========================================================================
   Làn Da Việt Page Styles - Desktop First
   ========================================================================== */

#md-care-lan-da-viet {
    /* CSS cho trang Làn Da Việt */
}

#md-care-lan-da-viet section {
    width: 100%;
    max-width: 100%;
}

/* --- Làn Da Việt Responsive Breakpoints --- */


