/**
 * Home Page specific styles
 * 
 * @package linhanhclinic
 */

/* Overriding/Adding Tokens from Guideline for Home Page */
:root {
    --color-primary: #BF934E;
    --color-primary-dark: #a07a38;
    --shadow-brand: 0 8px 24px rgba(191, 147, 78, 0.28);
    --radius-pill: 999px;
    --transition-normal: all 0.3s ease;
}

/* ─── Global Section Spacing Override ──────────────── */

/*
.hero-intro,
.featured-services,
.latest-deals,
.facilities,
.awards,
.doctor-team,
.celebrities,
.customer-results,
.video-gallery,
.partners {
    padding-block: 70px;
}
*/
.hero-intro {
    background-color: var(--color-bg-light);
}

.hero-intro__grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
}

.hero-intro__left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-top: 8.1rem;
}

@media screen and (max-width:768px) {
    .hero-intro__left {
        padding-top: 1rem;
    }
}

.hero-intro__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.hero-intro__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-intro__link {
    display: block;
}

/* --- NEW: Hero Deal Banner --- */
.hero-deal-banner {
    position: relative;
    max-width: 1440px;
    margin: 40px auto 0;
    background: #ffffff;
    border: 1px solid #a07a38;
    border-radius: 26px;
    padding: 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 7px 6px 1px rgba(191, 147, 78, 0.3);
}

/* Các element trang trí */
.deal-deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.deal-deco--ribbon {
    top: 0;
    left: 50%;
    transform: translate(-50%, -101%);
    max-width: 200px;
    /* Ruy băng ở giữa cạnh trên */
}

.deal-deco--gift-left {
    bottom: -44px;
    left: -51px;
    max-width: 140px;
}

.deal-deco--gift-right {
    top: 50%;
    right: -129px;
    transform: translateY(-51%);
    max-width: 185px;
    z-index: 0;
}

.hero-deal-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deal-title-img {
    display: block;
    max-width: 450px;
    margin: 0 auto 26px;
    position: relative;
    z-index: 3;
}

/* Timer Section */
.hero-deal-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.timer-title {
    font-family: 'Geomanist';
    font-size: 18px;
    font-weight: 400;
    color: #BF934E;
    text-transform: uppercase;
}

.show-more__btn {
    display: none;
    /* hidden on desktop */
    align-items: center;
    gap: 6px;
    background: var(--color-white);
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 24px;
    margin: 20px auto 0;
    transition: var(--transition-normal);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.show-more__btn:hover {
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.show-more__label-more,
.show-more__label-less {
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-more__label-less,
.show-more[hidden] .show-more__label-less {
    display: none;
}

/* Expanded state show/hide labels */
.show-more.is-expanded .show-more__label-more {
    display: none;
}

.show-more.is-expanded .show-more__label-less {
    display: flex;
}

.timer-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-box {
    background: #A67C3A;
    color: #FFFFFF;
    font-family: 'Geomanist';
    font-weight: 700;
    font-size: 18px;
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-block;
    line-height: 1;
}

.time-sep {
    color: #A67C3A;
    font-weight: bold;
    font-size: 18px;
    margin-top: -2px;
}

/* Contact Form 7 integration inside banner */
.hero-deal-form {
    width: 100%;
    max-width: 800px;
}

.deal-form-fields {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.deal-form-fields br {
    display: none;
}

.deal-form-fields p {
    display: contents;
    /* Removes the <p> from layout calculation if CF7 injects it */
    margin: 0;
}

.wpcf7-form-control-wrap {
    flex: 1;
    display: block;
}

.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select {
    width: 100%;
    padding: 14px 30px;
    border-radius: 99px;
    border: none;
    background: #E8E8E8;
    font-family: 'Roboto';
    font-size: 15px;
    color: #333;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wpcf7-form-control-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237F6337%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px auto;
}

.deal-form-submit-wrapper {
    position: absolute;
    bottom: -73px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}



.btn-cta--deal:hover,
.btn-cta:hover,
.btn-cta--card:hover {
    background-position: right center;
    box-shadow: 0 15px 30px rgba(168, 129, 67, 0.6);
    transform: translateY(-2px);
}

.btn-cta--form {
    top: -25px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-intro {
        padding-block: var(--space-16);
    }

    .hero-intro__grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .hero-intro__item--info {
        order: 1;
    }

    .hero-intro__right {
        order: 2;
    }

    /* Mobile specific background and stack */
    .hero-deal-banner {
        margin-top: 30px;
        padding: 30px 20px 40px;
        border-radius: 16px;
    }

    .deal-form-submit-wrapper {
        bottom: -16px;
    }

    .deal-deco--ribbon {
        max-width: 140px;
    }

    .deal-deco--gift-left {
        max-width: 68px;
        bottom: -41px;
        left: -11px;
    }

    .deal-deco--gift-right {
        max-width: 120px;
        right: -10px;
        display: none;
    }

    .deal-title-img {
        max-width: 280px;
        margin-bottom: 15px;
    }

    .hero-deal-form {
        width: 100%;
        max-width: 800px;
        position: relative;
    }

    .hero-deal-timer {
        margin-bottom: 20px;
        position: relative;
    }

    .timer-title {
        font-size: 14px;
    }

    .time-box {
        font-size: 16px;
        padding: 5px 8px;
    }

    .deal-form-fields {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .wpcf7-form-control-wrap {
        width: 100%;
    }

    .btn-cta--deal {
        font-size: 18px;
        padding: 12px 40px;
    }

    .wpcf7-form-control-wrap input,
    .wpcf7-form-control-wrap select {
        padding: 10px 21px;
    }
}

.featured-services {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
}

.fs-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    filter: blur(5px);
}

@media (min-width: 1024px) {
    .fs-deco--star-left {
        width: 610px;
        top: 51%;
        left: -168px;
        z-index: 1;
        transform: rotate(-15deg);
    }

    .fs-deco--star-right {
        width: 480px;
        bottom: 62%;
        right: -113px;
        transform: rotate(343deg);
    }
}

@media (max-width: 1023px) {
    .fs-deco {
        left: -188px;
        top: 13%;
        filter: blur(14px);
    }
}

.featured-services__header {
    text-align: center;
    margin-bottom: var(--space-20);
    position: relative;
    z-index: 2;
}

.featured-services__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.featured-services__title .title-top {
    font-family: var(--font-accent-art);
    font-size: 120px;
    font-weight: normal;
    color: var(--color-primary);
    margin-bottom: -50px;
    /* Overlap effect */
    margin-right: 79px;
    opacity: 0.9;
}

.featured-services__title .title-middle {
    font-family: var(--font-heading-lux);
    font-size: 49px;
    color: #7F6337;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 2px 30px;
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2;
    font-weight: 500;
    position: relative;
    padding-top: 0.8rem;
    left: 12%;
    top: -15px;
    box-shadow: 0 5px 11px 1px #7f633763;
}

.featured-services__title .title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 70px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
    margin-left: 245px;
    line-height: 1.2;
    font-weight: 500;
}

/* Doctor Team Title Styles (Independent Class, Reusable Logic) */
.doctor-team__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.dt-title-top {
    font-family: var(--font-accent-art);
    font-size: 120px;
    font-weight: normal;
    color: var(--color-primary);
    margin-bottom: -50px;
    margin-right: 79px;
    opacity: 0.9;
}

.dt-title-middle {
    font-family: var(--font-heading-lux);
    font-size: 49px;
    color: #7F6337;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 2px 30px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
    font-weight: 500;
    position: relative;
    padding-top: 0.8rem;
    left: 18%;
    top: -15px;
    box-shadow: 0 5px 13px 2px rgb(191 147 78 / 23%);
}

.dt-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 70px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
    margin-left: 80px;
    line-height: 1.2;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dt-title-top {
        font-size: 63px;
        margin-bottom: -35px;
        margin-right: 119px;
    }

    .dt-title-middle {
        font-size: 35px;
        padding: 5px 20px;
        left: 30%;
        top: -6px;
    }

    .dt-title-bottom {
        font-size: 40px;
        /* Reduced for mobile */
        margin-left: 0;
        text-align: center;
        margin-top: 5px;
    }
}

/* Featured Services Grid */
.featured-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: inherit;
    margin: 0 auto var(--space-16);
}

/* Last Card Centering on Desktop */
.service-horizontal-card--last {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 692px;
    /* Same as standard card width in 2-col */
}

/* Horizontal Service Card Style */
.service-horizontal-card {
    display: flex;
    align-items: center;
    background: linear-gradient(176deg, rgb(255 255 255 / 31%) 0%, rgb(255 255 255 / 32%) 100%);
    border: 1px solid rgb(255, 255, 255);
    border-radius: var(--radius-xl);
    overflow: visible;
    position: relative;
    transition: var(--transition-normal);
    box-shadow: 0 2px 5px rgba(127, 99, 55, 0.3);
}


.service-horizontal-card__image {
    flex: 0 0 50%;
    /* Reduced flex slightly to give text more room */
    height: 100%;
    min-height: 180px;
    position: relative;
    z-index: 2;
}

.service-horizontal-card__image img {
    width: 100%;
    height: 100%;
    /* Keep aspect ratio while expanding bounds */
    object-fit: contain;
    display: block;
    /*
    transform: scale(1.2) translateY(-10px) translateX(-5px);
    transform-origin: bottom center;*/
}

.card-laser__trans {
    transform: scale(1.4) translateY(2px) translateX(67px);
    transform-origin: bottom center;
}

.card-thermage__trans {
    transform: scale(1.3) translateY(14px) translateX(28px);
    transform-origin: bottom center;
}

.card-therapy__trans {
    transform: scale(1.1) translateY(1px) translateX(26px);
    transform-origin: bottom center;
}

@media screen and (max-width:768px) {
    .card-laser__trans {
        transform: scale(1.45) translateY(3px) translateX(29px);
    }

    .card-thermage__trans {
        transform: scale(1.2) translateY(2px) translateX(2px);
        transform-origin: bottom center;
    }

    .card-therapy__trans {
        transform: scale(1.1) translateY(1px) translateX(26px);
        transform-origin: bottom center;
    }
}

.service-horizontal-card__content {
    flex: 1;
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Align right */
    gap: var(--space-4);
    z-index: 1;
}

.service-horizontal-card__content p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: #7F6337;
    line-height: 1.4;
    margin: 0;
    text-align: right;
    padding: 0 1rem 0 6rem;
    text-align: center;
}

.service-horizontal-card__content strong {
    color: #7F6337;
    font-weight: 500;
}

/* Card CTA Button Modifier */
.btn-cta--card {
    font-size: 19px;
    padding: 11px 33px;
    white-space: nowrap;
    font-weight: 500;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 2px 5px rgba(127, 99, 55, 0.3), inset 1px 1px 2px #E8D9A8, inset -1px -1px 2px #E8D9A8;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #FFFFFF;
    font-family: 'Geomanist';
    background: linear-gradient(90deg, #A88143 0%, #D4AE70 50%, #A88143 100%);
    background-size: 200% auto;
    border: none;
}

/* Featured Services CTA Section */
.featured-services__cta {
    margin-top: var(--space-10);
}

@media (max-width: 768px) {

    .featured-services__header {
        margin-bottom: var(--space-12);
    }

    .featured-services__title .title-top {
        font-size: 80px;
        margin-bottom: -35px;
        margin-right: 140px;
    }

    .featured-services__title .title-middle {
        font-size: 38px;
        padding: 2px 20px;
        margin-right: -52px;
    }

    .featured-services__title .title-bottom {
        font-size: 52px;
        margin-top: 4px;
        margin-left: 107px;
    }

    .featured-services__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-horizontal-card--last {
        grid-column: auto;
        justify-self: stretch;
    }

    .service-horizontal-card {
        flex-direction: row;
        min-height: 115px;
    }

    .service-horizontal-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .service-horizontal-card__image {
        flex: 0 0 45%;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .service-horizontal-card__content {
        flex: 1;
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
    }

    .service-horizontal-card:nth-child(even) .service-horizontal-card__content {
        align-items: flex-start;
    }

    .service-horizontal-card__content p {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    .service-horizontal-card:nth-child(even) .service-horizontal-card__content p {
        text-align: left;
    }

    .card-laser__text p {
        padding-left: 1.5rem;
    }

    .card-therapy__text p {
        padding-left: 1.5rem;
    }

    .btn-cta--card {
        width: 144px;
        height: 36px;
        font-size: 15px;
        padding: 0;
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 0;
    }

    .featured-services__cta {
        margin-top: var(--space-12);
    }

    .btn-cta {
        font-size: 16px;
        padding: 10px 22px;
    }
}

/* ═══════════════════════════════════════════════════════
   LATEST DEALS SECTION — "Siêu ưu đãi mới nhất"
   ═══════════════════════════════════════════════════════ */
.latest-deals {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
    overflow: visible;
    position: relative;
}

@media screen and (max-width:768px) {
    .latest-deals.section {
        padding-bottom: 2.3rem;
    }
}

.ld-bg-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .ld-bg-deco--gift-left {
        width: 380px;
        top: 44%;
        left: 120px;
        filter: blur(5px);
    }

    .ld-bg-deco--coin-right {
        width: 320px;
        bottom: -1%;
        right: 11px;
        filter: blur(4px);
    }
}

@media (max-width: 1023px) {
    .ld-bg-deco {
        display: none;
    }
}

/* ─── Section Header & Decorations ─────────────────── */
.latest-deals__header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
}

/* Title Structure — independent class set (ld-*) */
.latest-deals__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.ld-title-top {
    font-family: var(--font-accent-art);
    font-size: 110px;
    font-weight: normal;
    color: var(--color-primary);
    opacity: 0.9;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: -45px;
    position: relative;
    left: -4%;
}

.ld-title-pill {
    font-family: var(--font-heading-lux);
    font-size: 42px;
    color: #7F6337;
    font-weight: 500;
    position: relative;
    z-index: 3;
    top: -10px;
    right: -7%;
}

.ld-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 65px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: -5px;
    line-height: 1.2;
}

/* ─── Decorative Images ────────────────────────────── */
.latest-deals__deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.latest-deals__deco--gift-left {
    width: 60px;
    top: -9px;
    left: 35%;
}

.latest-deals__deco--gift-right {
    width: 45px;
    bottom: 36px;
    right: 36%;
}

.latest-deals__deco--star-left {
    width: 30px;
    bottom: 22px;
    left: 40%;
}

.latest-deals__deco--star-right {
    width: 28px;
    bottom: 22px;
    right: 40%;
}

.latest-deals__deco--crown-bg {
    width: 145px;
    top: 25px;
    left: 57%;
    transform: translateX(-49%);
    z-index: 0;
    opacity: 0.8;
}

/* Hide empty deco imgs until user adds sources */
.latest-deals__deco[src=""] {
    display: none;
}

/* ─── Deal Cards Grid ──────────────────────────────── */
.latest-deals__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-12) var(--space-6);
    /* Increased vertical gap for overlapping buttons */
    max-width: 1200px;
    margin: 0 auto;
}

.deal-card--large {
    flex: 0 0 402px;
    max-width: 402px;
}

.deal-card--small {
    flex: 1 1 350px;
    max-width: 380px;
}

/* ─── Deal Card Styles ─────────────────────────────── */
.deal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(127, 99, 55, 0.1);
    border-radius: 25px;
    overflow: visible;
    /* CRITICAL: allow footer to overlap */
    position: relative;
    transition: var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: var(--space-8) var(--space-10) var(--space-12);
    /* internal spacing */
}

.deal-card:hover {
    box-shadow: 0 15px 40px rgba(127, 99, 55, 0.15);
    transform: translateY(-5px);
}

.deal-card__image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.deal-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ─── Card Footer: Deal Icon + CTA ─────────────────── */
.deal-card__footer {
    position: absolute;
    bottom: -5px;
    /* Adjust to sit at the edge */
    left: 50%;
    transform: translate(-50%, 50%);
    /* overlap bottom border */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* icon sits right next to button */
    z-index: 10;
    width: 100%;
}

.deal-card__deal-icon {
    width: 55px;
    height: auto;
    flex-shrink: 0;
    margin-right: -20px;
    z-index: 11;
    position: relative;
    top: -9px;
}

/* Hide empty deal icons until user adds sources */
.deal-card__deal-icon[src=""] {
    display: none;
}

/* CTA modifier for deal cards */
.btn-cta--deal,
.btn-cta--form {
    font-size: 21px;
    padding: 12px 36px;
    white-space: nowrap;
    font-weight: 400;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 4px 15px rgba(127, 99, 55, 0.3), inset 1px 1px 2px #E8D9A8, inset -1px -1px 2px #E8D9A8;
    top: -9px;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #FFFFFF;
    font-family: 'Geomanist';
    background: linear-gradient(90deg, #A88143 0%, #D4AE70 50%, #A88143 100%);
    background-size: 200% auto;
    border: none;
}

/* ─── Pulse Animation ──────────────────────────────── */
@keyframes pulse-gentle {
    0% {
        transform: scale(1);
        box-shadow:
            inset 1px 1px 2px #E8D9A8,
            inset -1px -1px 2px #E8D9A8,
            0 0 0 0 rgba(191, 147, 78, 0.4);
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            inset 1px 1px 2px #E8D9A8,
            inset -1px -1px 2px #E8D9A8,
            0 0 0 8px rgba(191, 147, 78, 0);
    }

    100% {
        transform: scale(1);
        box-shadow:
            inset 1px 1px 2px #E8D9A8,
            inset -1px -1px 2px #E8D9A8,
            0 0 0 0 rgba(191, 147, 78, 0);
    }
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.btn-cta--deal,
.btn-cta,
.btn-cta--card,
.btn-cta--form {
    animation: pulse-gentle 2.5s ease-in-out infinite;
}

.deal-card__deal-icon--pulse {
    animation: pulse-icon 2.5s ease-in-out infinite;
}

/* ─── Responsive — Mobile ──────────────────────────── */
@media (max-width: 768px) {
    .btn-cta--form {
        top: 54px;
    }

    .latest-deals__header {
        margin-bottom: var(--space-12);
        padding-top: var(--space-8);
    }

    .ld-title-top {
        font-size: 82px;
        margin-bottom: -35px;
        left: -12%;
    }

    .ld-title-pill {
        font-size: 28px;
        /* padding: 4px 22px; */
        /* background: #FFF; */
        /* border: 1px solid rgba(191, 147, 78, 0.4); */
        border-radius: 99px;
        /* box-shadow: 0 4px 12px rgba(127, 99, 55, 0.1); */
        margin-left: 24%;
        color: #7F6337;
        z-index: 3;
        top: -2px;
    }

    .ld-title-bottom {
        font-size: 44px;
        margin-top: 10px;
        letter-spacing: 0.02em;
    }

    /* Decorations Positioning (Figma Spec) */
    .latest-deals__deco--gift-left {
        width: 45px;
        top: 20px;
        left: 10%;
    }

    .latest-deals__deco--gift-right {
        width: 37px;
        top: 117px;
        right: 10%;
        z-index: 4;
    }

    .latest-deals__deco--crown-bg {
        width: 130px;
        top: 46px;
        left: 69%;
        transform: translateX(-50%);
        opacity: 0.8;
    }

    .latest-deals__deco--star-left {
        width: 20px;
        bottom: 17px;
        left: 22%;
    }

    .latest-deals__deco--star-right {
        width: 20px;
        bottom: 17px;
        right: 22%;
    }

    /* Mobile deals grid layout ... */
    .latest-deals__grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px 8px;
        /* 20px vertical gap, 8px hotizontal gap */
        padding-inline: 16px;
    }

    .deal-card--large,
    .deal-card--small {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 24px 12px 32px;
        /* Add padding to contain image comfortably */
        border-radius: 20px;
        background: #fff;
        border: 1px solid rgba(127, 99, 55, 0.1);
        box-shadow: 0 10px 30px rgba(127, 99, 55, 0.15);
        /* Box shadow */
    }

    /* Set Layout Order as Figma Spec */
    .deal-card:nth-child(1) {
        order: 1;
    }

    .deal-card:nth-child(2) {
        order: 2;
    }

    .deal-card:nth-child(3) {
        order: 3;
    }

    .deal-card:nth-child(5) {
        order: 4;
    }

    /* IPL Tri mun goes 4th */

    /* Center and isolate the Siêu Công Nghệ Meso Card (4th in DOM, 5th visually) */
    .deal-card:nth-child(4) {
        order: 5;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
        padding: 30px 20px 40px;
    }

    .deal-card__footer {
        padding: 0;
        bottom: -12px;
    }

    .deal-card__deal-icon {
        width: 32px;
        margin-right: -10px;
        top: -16px;
    }

    .btn-cta--deal {
        font-size: 12px;
        padding: 10px 20px;
        top: -17px;
    }
}


/* ═══════════════════════════════════════════════════════
   FACILITIES SECTION — "Cơ sở vật chất hiện đại chuẩn Y Khoa"
   ═══════════════════════════════════════════════════════ */
.facilities {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
}

/* ─── Section Header / Title ─────────────────────────── */
.facilities__header {
    margin-bottom: var(--space-16);
}

/* Independent class set: fc-* (facility) */
.facilities__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    line-height: 1;
    position: relative;
}

.fc-title-top {
    font-family: var(--font-accent-art);
    font-size: 110px;
    font-weight: normal;
    color: var(--color-primary);
    opacity: 0.9;
    display: block;
    width: 100%;
    left: -3%;
    position: relative;
    margin-bottom: -42px;
}

.fc-title-pill {
    font-family: var(--font-heading-lux);
    font-size: 40px;
    color: #7F6337;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 4px 30px;
    padding-top: 0.7rem;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 6px 1px #7f63374a;
    font-weight: 500;
    position: relative;
    z-index: 2;
    top: -19px;
    left: 168px;
}

.fc-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 58px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    line-height: 1.2;
}

/* ─── Cards Container ────────────────────────────────── */
.facilities__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    max-width: 1303px;
    margin: 0 auto;
}

/* ─── Single Facility Card ───────────────────────────── 
.facility-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(127, 99, 55, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.facility-card:hover {
    box-shadow: 0 12px 50px rgba(127, 99, 55, 0.14);
}

/* ─── Main Row: Image (left) + Info (right) ──────────── */
.facility-card__main {
    display: flex;
    align-items: stretch;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(127, 99, 55, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Left: feature image collage */
.facility-card__feature-image {
    flex: 0 0 38%;
    /* ~500px within 1303px card */
    max-width: 38%;
    overflow: hidden;
    border-radius: 24px;
    margin: var(--space-6);
}

.facility-card__feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-card__feature-image img {
    transform: scale(1.03);
}

/* Right: title + description */
.facility-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-10) var(--space-12);
}

.facility-card__title {
    font-family: 'Geomanist';
    font-size: clamp(20px, 2.2vw, 30px);
    color: #B69655;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.facility-card__desc {
    font-family: var(--font-body);
    font-size: 18px;
    color: #7F6337;
    line-height: 1.7;
    max-width: 650px;
    margin: 0;
}

@media screen and (max-width:768px) {
    .facilities__cards {
        gap: var(--space-10);
    }

    .facility-card__main {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .facility-card__feature-image {
        flex: none;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }

    .facility-card__feature-image img {
        border-radius: 20px 20px 0 0;
    }

    .facility-card__info {
        padding: 0 var(--space-4) var(--space-6);
        align-items: center;
        text-align: center;
    }

    .facility-card__title {
        position: relative;
        top: -49px;
        border: 1px solid #F5F1E9;
        color: #B69655;
        border-radius: 2px 2px 26px 26px;
        padding: 32px 24px 5px 24px;
        /* width: fit-content; */
        margin: 0 auto;
        font-size: 18px;
        font-weight: 500;
        text-transform: uppercase;
        box-shadow: rgba(191, 147, 78, 0.3) 0px 7px 6px 1px;
        background: #FFF;
        z-index: 1;
    }

    .facility-card__desc {
        font-size: 15px;
        color: #7F6337;
        line-height: 1.6;
        margin-top: -10px;
        text-align: center;
    }

    .facility-card__gallery-wrap {
        padding-inline: var(--space-4);
        padding-bottom: var(--space-4);
    }

    .facility-gallery {
        gap: var(--space-3);
    }

    .facility-gallery__thumb {
        width: 110px;
        height: 75px;
        border-radius: 10px;
    }

    .facility-gallery__thumb img {
        border-radius: 8px;
    }
}

/* ─── Gallery Thumbnail Strip ────────────────────────── */
.facility-card__gallery-wrap {
    padding: var(--space-4);
    border-top: 1px solid rgba(191, 147, 78, 0.12);
}

.facility-gallery {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3);
    /* Default: hide scrollbar for mobile touch feel */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.facility-gallery::-webkit-scrollbar {
    display: none;
}

/* Enable styled scrollbar for Desktop (draggable) */
@media (min-width: 769px) {
    .facility-gallery {
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) #efefef;
        padding-bottom: 12px;
    }

    .facility-gallery::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .facility-gallery::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .facility-gallery::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .facility-gallery::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary-dark);
    }

    /* Hide the custom progress indicator on desktop to use native draggable bar */
    .facility-gallery__track-bar {
        display: none;
    }
}

/* Individual thumbnail button */
.facility-gallery__thumb {
    flex: 0 0 auto;
    width: 160px;
    height: 110px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.facility-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.facility-gallery__thumb:hover img {
    transform: scale(1.06);
}

.facility-gallery__thumb:hover,
.facility-gallery__thumb.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(191, 147, 78, 0.2);
}

/* Scroll progress track indicator (Mobile only) */
.facility-gallery__track-bar {
    margin-top: var(--space-3);
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--color-gray-200);
    overflow: hidden;
}

.facility-gallery__track-progress {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 0.1s linear;
}

/* ─── Lightbox ───────────────────────────────────────── */
.facility-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-popup, 1000);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.facility-lightbox[hidden] {
    display: none;
}

.facility-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 6, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.facility-lightbox__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: min(90vw, 1200px);
    width: 100%;
    padding-inline: var(--space-4);
}

.facility-lightbox__image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    max-height: 80vh;
}

.facility-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: opacity 0.25s ease;
}

.facility-lightbox__caption {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 13px;
    white-space: nowrap;
}

/* Nav buttons */
.facility-lightbox__prev,
.facility-lightbox__next {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.facility-lightbox__prev:hover,
.facility-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Close button */
.facility-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    z-index: 3;
}

.facility-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ─── Mobile Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .facilities__cards {
        max-width: 100%;
    }

    .fc-title-top {
        font-size: 80px;
        margin-bottom: -32px;
    }

    .fc-title-pill {
        font-size: 32px;
        margin-left: 80px;
    }

    .fc-title-bottom {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .fc-title-top {
        font-size: 64px;
        margin-bottom: -25px;
        left: -8%;
    }

    .fc-title-pill {
        font-size: 26px;
        padding: 6px 18px;
        margin-left: -113px;
        top: -10px;
    }

    .fc-title-bottom {
        font-size: 34px;
    }

    .facility-card__main {
        flex-direction: column;
    }

    .facility-card__feature-image {
        flex: none;
        max-width: 100%;
        border-radius: 38px;
        z-index: 2;
        background: #fff;
        padding: 1.3rem;
    }

    .facility-card__info {
        padding: var(--space-6) var(--space-4);
    }

    .facility-card__title {
        font-size: 18px;
    }

    .facility-gallery__thumb {
        width: 120px;
        height: 82px;
    }

    .facility-lightbox__container {
        gap: var(--space-2);
        padding-inline: var(--space-2);
    }

    .facility-lightbox__prev,
    .facility-lightbox__next {
        width: 38px;
        height: 38px;
    }
}

/* ═══════════════════════════════════════════════════════
   AWARDS SECTION — "Chứng nhận và giải thưởng"
   ═══════════════════════════════════════════════════════ */
.awards {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
    overflow: hidden;
    position: relative;
}

.awards__header {
    margin-bottom: var(--space-16);
    max-width: 950px;
    margin-inline: auto;
    text-align: center;
}

.awards__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
    margin-bottom: var(--space-6);
}

.aw-title-top {
    font-family: var(--font-accent-art);
    font-size: 110px;
    font-weight: normal;
    color: #B69655;
    margin-bottom: 30px;
    opacity: 0.9;
}

.aw-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 64px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    font-weight: 500;
}

.awards__description {
    font-family: 'Geomanist';
    font-size: 18px;
    color: #7F6337;
    line-height: 1.6;
    max-width: 850px;
    margin-inline: auto;
}

.awards__description strong {
    font-weight: 700;
}

/* Awards Slider */
.awards-slider {
    position: relative;
    max-width: 1200px;
    /* Requirement */
    margin: var(--space-12) auto 0;
}

.awards-slide__image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.awards-slide__image img {
    width: 100%;
    height: auto;
    max-width: 1200px;
}

/* Awards Slider Arrows — Liquid Glass (same style as Doctor Team) */
.awards-slider__arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.liquid-glass-btn-awards {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
    position: relative;
}

.liquid-glass-btn-awards:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.6),
        0 12px 40px rgba(182, 150, 85, 0.15);
    color: var(--color-primary-dark);
}

.liquid-glass-btn-awards::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(191, 147, 78, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.liquid-glass-btn-awards:hover::after {
    opacity: 1;
    animation: ripple 1.5s infinite;
}

.splide__arrow--prev.liquid-glass-btn-awards {
    transform: translateX(-27px);
}

.splide__arrow--next.liquid-glass-btn-awards {
    transform: translateX(27px);
}

@media (max-width: 1300px) {
    .awards-slider__arrows {
        padding-inline: var(--space-4);
    }

    .splide__arrow--prev.liquid-glass-btn-awards {
        transform: translateX(0);
    }

    .splide__arrow--next.liquid-glass-btn-awards {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .aw-title-top {
        font-size: 65px;
        margin-bottom: 18px;
    }

    .aw-title-bottom {
        font-size: 38px;
    }

    .awards__description {
        font-size: 16px;
        padding-inline: var(--space-4);
    }

    .awards-slider {
        margin-top: var(--space-8);
    }

    .awards-slide__image img {
        max-width: 600px;
    }
}

/* Doctor Team Section */
.doctor-team {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
    overflow: hidden;
    position: relative;
    /* For bg pattern */
}

.doctor-team__header {
    margin-bottom: var(--space-20);
}

/* Slider Custom Styles */
.doctor-slider {
    position: relative;
}

.doctor-slider .splide__track {
    overflow: hidden;
    z-index: 1;
}

.doctor-slider .splide__slide {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0.5;
    transform: scale(0.85);
    display: flex;
    justify-content: center;
}

.doctor-slider .splide__slide.is-active {
    opacity: 1;
    transform: scale(1);
    /* Slightly bigger than 1.0 to pop out */
    z-index: 2;
}

/* Custom Arrows: Liquid Glass Style */
.doctor-slider__arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 38%;
    left: 52%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.liquid-glass-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
}

.liquid-glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.6),
        0 12px 40px rgba(182, 150, 85, 0.15);
    color: var(--color-primary-dark);
}

/* Wave animation for liquid glass */
.liquid-glass-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(191, 147, 78, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.liquid-glass-btn:hover::after {
    opacity: 1;
    animation: ripple 1.5s infinite;
}

.btn-cta {
    font-size: 26px;
    padding: 16px 33px;
    white-space: nowrap;
    font-weight: 500;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 4px 15px rgba(127, 99, 55, 0.3), inset 1px 1px 2px #E8D9A8, inset -1px -1px 2px #E8D9A8;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #FFFFFF;
    font-family: 'Geomanist';
    background: linear-gradient(90deg, #A88143 0%, #D4AE70 50%, #A88143 100%);
    background-size: 200% auto;
    border: none;
}

@media screen and (max-width:768px) {
    .btn-cta {
        font-size: 17px;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Background Hexagon Patterns */
.doctor-team__bg-pattern {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    max-width: 1400px;
    z-index: 0;
    pointer-events: none;
}

.doctor-team__bg-pattern--desktop {
    display: block;
}

.doctor-team__bg-pattern--mobile {
    display: none;
}

.doctor-team__bg-pattern img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
}

@media (max-width: 768px) {
    .doctor-team__bg-pattern--desktop {
        display: none;
    }

    .doctor-team__bg-pattern--mobile {
        display: block;
        width: 150%;
        /* Larger for mobile to cover height */
        top: 50%;
    }
}

/* Doctor Card Structure */
.doctor-card {
    width: 100%;
    max-width: 404px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doctor-card__image-arch {
    width: 100%;
    overflow: hidden;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.doctor-card__image-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card__info-box {
    width: 90%;
    background: #ffffff80;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 36px;
    padding: var(--space-6) var(--space-4);
    box-shadow: -1px 3px 10px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-4);
}

.doctor-card__name {
    font-family: 'Geomanist';
    font-size: 22px;
    color: #B69655;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.doctor-card__title {
    font-size: 21px;
    color: #7F6337;
    line-height: 1.2;
    margin: 0;
    font-family: 'SVN-Famous';
}

.doctor-card__career-box {
    width: 85%;
    padding: 0 var(--space-4);
    background: #fff;
    box-shadow: -1px 3px 10px 2px rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
    position: relative;
    top: -5%;
    border-radius: 36px;
}

.doctor-card__experience {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.doctor-card__experience li {
    font-size: 16px;
    color: #7F6337;
    line-height: 1.6;
    margin-bottom: var(--space-3);
    position: relative;
    font-family: 'Geomanist';
    font-weight: 300;
    padding-left: var(--space-4);
}

.doctor-card__experience li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Pagination Dots Customization */
.doctor-slider .splide__pagination {
    bottom: -10px;
}

.doctor-slider .splide__pagination__page {
    width: 8px;
    height: 8px;
    background: #E2E2E2;
    opacity: 1;
    transition: 0.3s;
}

.doctor-slider .splide__pagination__page.is-active {
    width: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-pill);
}

.doctor-team__cta {
    margin-top: var(--space-12);
}

@media (max-width: 1024px) {
    .doctor-slider .splide__arrow--prev {
        left: 10px;
    }

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

@media (max-width: 768px) {
    .doctor-slider .splide__track {
        overflow: hidden;
    }

    .doctor-slider .splide__slide {
        transform: scale(1);
        opacity: 1;
    }

    .doctor-slider .splide__slide.is-active {
        transform: scale(1);
    }

    .doctor-card__name {
        font-size: 18px;
    }

    .doctor-card__image-arch {
        margin-bottom: -30px;
    }

    .doctor-card__experience li {
        font-size: 16px;
        line-height: 1.4;
    }

    .liquid-glass-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .doctor-slider .splide__arrow--prev {
        left: -5px;
        /* Pull arrows out slightly to edge */
    }

    .doctor-slider .splide__arrow--next {
        right: -5px;
    }
}

/* ═══════════════════════════════════════════════════════
   CELEBRITIES SECTION — "Sao Việt tin chọn Linh Anh"
   ═══════════════════════════════════════════════════════ */
.celebrities {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
}

.celebrities__header {
    margin-bottom: var(--space-16);
}

.celebrities__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.sv-title-top {
    font-family: var(--font-accent-art);
    font-size: 110px;
    font-weight: normal;
    color: var(--color-primary);
    opacity: 0.9;
    line-height: 0.8;
}

.sv-title-bottom-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: -16px;
}

.sv-title-pill {
    font-family: var(--font-heading-lux);
    font-size: 32px;
    color: #7F6337;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 2px 24px;
    padding-top: 0.6rem;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 6px 1px rgba(127, 99, 55, 0.2);
    font-weight: 500;
    top: 21px;
    position: relative;
}

.sv-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 80px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    position: relative;
    top: 31px;
}

/* --- Celebrities Grid (Desktop: Accordion) --- */
.celebrities__grid {
    display: flex;
    gap: var(--space-4);
    height: 440px;
    max-width: 1200px;
    margin: 0 auto;
}

.celebrity-card {
    flex: 1;
    /* Default inactive flex size */
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.celebrity-card__image-wrap {
    width: 100%;
    height: 100%;
}

.celebrity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hover Accordion Logic (Desktop Only) */
@media (min-width: 769px) {

    /* If container is NOT hovered, the FIRST child is active (takes up approx 1:1 shape) */
    .celebrities__grid:not(:hover) .celebrity-card:first-child {
        flex: 3;
    }

    /* When a specific card is hovered, it expands */
    .celebrity-card:hover {
        flex: 3;
    }
}

/* --- Mobile Show More --- */
/* Hide show more functionality elements on desktop */
.show-more__fade,
.show-more__btn {
    display: none;
}

@media (max-width: 768px) {
    .sv-title-top {
        font-size: 70px;
    }

    .sv-title-bottom-group {
        gap: var(--space-2);
        margin-top: -15px;
    }

    .sv-title-pill {
        font-size: 24px;
        padding-inline: 16px;
        top: 21px;
        position: relative;
    }

    .sv-title-bottom {
        font-size: 36px;
        position: relative;
        top: 26px;
    }

    /* Override grid to be a 1-column stack */
    .celebrities__grid {
        flex-direction: column;
        height: auto;
        gap: var(--space-4);
    }

    .celebrity-card {
        flex: none;
        width: 100%;
        aspect-ratio: 1/1;
        /* perfectly square */
    }

    /* Show more logic classes */
    .show-more {
        position: relative;
    }

    .show-more__content {
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .show-more__fade {
        display: block;
        position: absolute;
        bottom: 51px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, rgba(245, 243, 239, 0), rgba(245, 243, 239, 1));
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .show-more__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        margin: var(--space-4) auto 0;
        background: #FFFFFF;
        border: 1px solid #FFFFFF;
        border-radius: 99px;
        color: #BF934E;
        font-family: 'Geomanist';
        font-size: 20px;
        font-weight: 500;
        padding: 8px 32px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(127, 99, 55, 0.1);
        backdrop-filter: blur(4px);
        position: relative;
        z-index: 2;
    }

    .show-more.is-expanded .show-more__fade {
        opacity: 0;
    }

    .show-more__label-less {
        display: none;
    }

    .show-more.is-expanded .show-more__label-more {
        display: none;
    }

    .show-more.is-expanded .show-more__label-less {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════
   CUSTOMER RESULTS — "Hình ảnh khách hàng thực tế"
   ═══════════════════════════════════════════════════════ */
.customer-results {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
}

.customer-results__header {
    margin-bottom: var(--space-16);
}

.customer-results__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.cr-title-top {
    font-family: var(--font-accent-art);
    font-size: 110px;
    font-weight: normal;
    color: var(--color-primary);
    opacity: 0.9;
    line-height: 0.8;
}

.cr-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: -10px;
}

.cr-title-pill {
    font-family: var(--font-heading-lux);
    font-size: 32px;
    color: #7F6337;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 2px 24px;
    padding-top: 0.6rem;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 6px 1px rgba(127, 99, 55, 0.2);
    font-weight: 500;
}

.cr-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 80px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Desktop Grid: 4 columns, 2 rows */
.customer-results__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1300px;
    margin: 0 auto;
}

/* Result Card 
.result-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(127, 99, 55, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}*/

.result-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.result-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Before/After labels */
.result-card__label {
    position: absolute;
    top: 10px;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: 'Geomanist';
    font-size: 10px;
    font-weight: 500;
    color: #7F6337;
    background: rgba(255, 255, 255, 0.85);
}

.result-card__label--before {
    left: 10px;
}

.result-card__label--after {
    right: 10px;
}

/* Info Section */
.result-card__info {
    padding: 1.8rem 1.3rem 1rem 1.3rem;
    flex-grow: 1;
    background: #ffffff5e;
    border-radius: 31px;
    border: 1px solid #fff;
    backdrop-filter: blur(19px);
    position: relative;
    top: -30px;
}

.result-card__name {
    font-family: 'Geomanist';
    font-size: 18px;
    font-weight: 500;
    color: #7F6337;
    margin-bottom: var(--space-1);
}

.result-card__meta {
    font-family: 'Geomanist';
    font-size: 18px;
    font-weight: 300;
    color: #7F6337;
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.result-card__condition {
    font-family: 'Geomanist';
    font-size: 16px;
    font-weight: 400;
    color: #B69655;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Result CTA Button */
.customer-results__cta {
    margin-top: var(--space-12);
}

.btn-cta--results {
    background: linear-gradient(90deg, #BF934E 0%, #D4AE70 50%, #BF934E 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 99px;
    color: #FFFFFF;
    font-family: 'Geomanist';
    font-size: 21px;
    font-weight: 500;
    padding: 14px 48px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 7px 6px 1px rgba(191, 147, 78, 0.3);
}

.btn-cta--results:hover {
    background-position: right center;
    box-shadow: 0 15px 30px rgba(191, 147, 78, 0.4);
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 1200px) {
    .customer-results__grid {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: var(--space-4);
    }
}

@media (max-width: 768px) {
    .cr-title-top {
        font-size: 70px;
    }

    .cr-title-group {
        margin-top: -15px;
    }

    .cr-title-pill {
        font-size: 24px;
        position: relative;
        top: 15px;
    }

    .cr-title-bottom {
        font-size: 50px;
        position: relative;
        top: 21px;
    }

    /* Single column stack for mobile results */
    .customer-results__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .result-card__name,
    .result-card__meta,
    .result-card__condition {
        font-size: 16px;
    }

    /* Unique Mobile Show More styles for this section */
    .customer-results .show-more__fade {
        display: block;
        position: absolute;
        bottom: 51px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, rgba(245, 243, 239, 0), rgba(245, 243, 239, 1));
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .customer-results .show-more__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        margin: var(--space-6) auto 0;
        background: #FFFFFF;
        border: 1px solid #FFFFFF;
        border-radius: 99px;
        color: #BF934E;
        font-family: 'Geomanist';
        font-size: 20px;
        font-weight: 500;
        padding: 8px 32px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(127, 99, 55, 0.1);
        backdrop-filter: blur(4px);
        position: relative;
        z-index: 2;
    }
}

/* ═══════════════════════════════════════════════════════
   VIDEO GALLERY (Video khách hàng)
   ═══════════════════════════════════════════════════════ */
.video-gallery {
    /* padding-block set globally */
    background-color: var(--color-bg-light);
}

.video-gallery__header {
    margin-bottom: var(--space-16);
}

.video-gallery__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.vd-title-top {
    font-family: var(--font-accent-art);
    font-size: 100px;
    font-weight: 400;
    color: #B69655;
    line-height: 0.8;
}

.vd-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 80px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Video Slider (Splide) */
.video-slider-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding-block: 2rem;
}

#video-slider .splide__slide {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0.6;
    transform: scale(0.85);
    /* Side items are smaller */
}

#video-slider .splide__slide.is-active {
    opacity: 1;
    transform: scale(1);
    /* Center item shows full size — no crop */
    z-index: 5;
}

.video-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: #000;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

/* Thumbnail image fills the card without letterbox */
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
    /* Ẩn thanh đen letterbox do hqdefault YouTube tạo ra ở trên/dưới */
    background: #f5f5f5;
}

.video-card:hover img {
    transform: scale(1.05);
}

/* Play button overlay */
.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.video-card .play-overlay svg {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.video-card:hover .play-overlay svg {
    transform: scale(1.15);
}

/* Legacy iframe fallback (unused after switch, kept for safety) */
.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

/* Video Slider Arrows — Liquid Glass (same style as Doctor Team) */
.video-slider__arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.liquid-glass-btn-vid {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
    position: relative;
}

.liquid-glass-btn-vid:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.6),
        0 12px 40px rgba(182, 150, 85, 0.15);
    color: var(--color-primary-dark);
}

.liquid-glass-btn-vid::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(191, 147, 78, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.liquid-glass-btn-vid:hover::after {
    opacity: 1;
    animation: ripple 1.5s infinite;
}

.splide__arrow--prev.liquid-glass-btn-vid {
    transform: translateX(-27px);
}

.splide__arrow--next.liquid-glass-btn-vid {
    transform: translateX(27px);
}

/* Vertical Video Shorts */
.video-shorts {
    margin-top: calc(var(--space-5) + 40px);
}

.video-shorts__grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    /* Rớt dòng */
}

.video-short-item {
    flex: 0 0 240px;
    /* Tăng kích thước trên desktop */
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-short-item img,
.play-overlay {
    display: none;
    /* Khong con dung img/overlay */
}

/* ═══════════════════════════════════════════════════════
   PARTNERS SECTION — "Đối tác của Linh Anh"
   ═══════════════════════════════════════════════════════ */
.partners {
    padding-block: var(--space-8);
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.partners__header {
    margin-bottom: var(--space-16);
}

.partners__title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-title-top {
    font-family: var(--font-accent-art);
    font-size: 100px;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 0.8;
}

.pt-title-bottom {
    font-family: var(--font-heading-lux);
    font-size: 80px;
    background: linear-gradient(360deg, rgba(182, 150, 85, 1) 0%, rgba(227, 200, 113, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Marquee Implementation */
.marquee {
    --marquee-duration: 30s;
    overflow: hidden;
    user-select: none;
    display: flex;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee__content {
    display: flex;
    gap: var(--space-12);
    min-width: 100%;
    padding-block: var(--space-4);
    animation: marquee var(--marquee-duration) linear infinite;
}

.marquee__item {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {

    .vd-title-top,
    .pt-title-top {
        font-size: 64px;
    }

    .vd-title-bottom,
    .pt-title-bottom {
        font-size: 44px;
    }

    .video-slider-wrapper {
        padding-block: 1rem;
    }

    #video-slider .splide__slide {
        opacity: 1;
        transform: scale(1);
    }

    .splide__arrow--prev.liquid-glass-btn-vid {
        transform: translateX(-14px);
    }

    .splide__arrow--next.liquid-glass-btn-vid {
        transform: translateX(17px);
    }

    .video-shorts {
        overflow-x: hidden;
        padding-bottom: var(--space-4);
    }

    .video-shorts__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        justify-content: center;
        padding-inline: var(--space-4);
        width: 100%;
    }

    .video-short-item {
        flex: none;
        width: 100%;
        max-width: 260px;
    }

    .marquee__item {
        width: 120px;
    }

    .marquee__content {
        gap: var(--space-8);
    }
}