/**
 * AusSmile - Video & Quote Elements Styles
 * Imported & Recycled from Parkview Flatsome Child
 */

/* === VIDEO STYLES === */
.nkp-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    perspective: 1200px;
}

/* Swiper container */
body.nkp .nkp-video-swiper {
    overflow: hidden;
    padding: 40px 0;
}

body.nkp .nkp-video-swiper .swiper-wrapper {
    align-items: center;
    transform-style: preserve-3d;
}

/* Slide - 3D Effect */
body.nkp .nkp-video-swiper .swiper-slide {
    width: 60%;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, z-index 0s;
    transform-style: preserve-3d;
    opacity: var(--nkp-video-side-opacity, 0.5);
    filter: brightness(0.7);
}

/* Active slide - center, on top */
body.nkp .nkp-video-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
    filter: brightness(1);
}

/* Previous slide - behind and partially under center */
body.nkp .nkp-video-swiper .swiper-slide-prev {
    transform: translateX(25%) rotateY(15deg) scale(var(--nkp-video-side-scale, 0.85));
    z-index: 5;
}

/* Next slide - behind and partially under center */
body.nkp .nkp-video-swiper .swiper-slide-next {
    transform: translateX(-25%) rotateY(-15deg) scale(var(--nkp-video-side-scale, 0.85));
    z-index: 5;
}

/* Other slides - hidden */
body.nkp .nkp-video-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    transform: scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* Video Card */
body.nkp .nkp-video-card {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

body.nkp .nkp-video-card__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

body.nkp .nkp-video-card__video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

body.nkp .nkp-video-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.nkp .nkp-video-card__placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Play button */
body.nkp .nkp-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

body.nkp .nkp-video-card__play i {
    font-size: 28px;
    color: rgba(0, 0, 0, 0.3);
    margin-left: 4px;
    transition: color 0.3s ease;
}

body.nkp .nkp-video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--nkp-primary, #e91010);
}

body.nkp .nkp-video-card__play:hover i {
    color: #fff;
}

/* Hide play button on non-active slides */
body.nkp .nkp-video-swiper .swiper-slide:not(.swiper-slide-active) .nkp-video-card__play {
    opacity: 0;
    pointer-events: none;
}

/* Iframe container */
body.nkp .nkp-video-card__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.nkp .nkp-video-card__iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body.nkp .nkp-video-card.is-playing .nkp-video-card__iframe {
    opacity: 1;
    pointer-events: auto;
}

body.nkp .nkp-video-card.is-playing .nkp-video-card__play,
body.nkp .nkp-video-card.is-playing img {
    opacity: 0;
    pointer-events: none;
}

/* Navigation arrows */
body.nkp .nkp-video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

body.nkp .nkp-video-nav:hover {
    background: var(--nkp-primary, #e91010);
    transform: translateY(-50%) scale(1.1);
}

body.nkp .nkp-video-nav i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

body.nkp .nkp-video-nav:hover i {
    color: #fff;
}

body.nkp .nkp-video-nav--prev {
    left: 20px;
}

body.nkp .nkp-video-nav--next {
    right: 20px;
}

body.nkp .nkp-video-nav.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Pagination dots */
body.nkp .nkp-video-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

body.nkp .nkp-video-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

body.nkp .nkp-video-pagination .swiper-pagination-bullet-active {
    background: var(--nkp-primary, #e91010);
    transform: scale(1.2);
}

/* Empty state */
body.nkp .nkp-video-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 849px) {
    body.nkp .nkp-video-wrapper {
        perspective: 800px;
    }

    body.nkp .nkp-video-swiper .swiper-slide {
        width: 65%;
    }

    body.nkp .nkp-video-swiper .swiper-slide-prev {
        transform: translateX(20%) rotateY(12deg) scale(0.85);
    }

    body.nkp .nkp-video-swiper .swiper-slide-next {
        transform: translateX(-20%) rotateY(-12deg) scale(0.85);
    }

    body.nkp .nkp-video-card__play {
        width: 60px;
        height: 60px;
    }

    body.nkp .nkp-video-card__play i {
        font-size: 22px;
    }

    body.nkp .nkp-video-nav {
        width: 40px;
        height: 40px;
    }

    body.nkp .nkp-video-nav i {
        font-size: 14px;
    }

    body.nkp .nkp-video-nav--prev {
        left: 10px;
    }

    body.nkp .nkp-video-nav--next {
        right: 10px;
    }
}

@media (max-width: 549px) {
    body.nkp .nkp-video-wrapper {
        perspective: 600px;
    }

    body.nkp .nkp-video-swiper {
        padding: 30px 0;
    }

    body.nkp .nkp-video-swiper .swiper-slide {
        width: 80%;
    }

    body.nkp .nkp-video-swiper .swiper-slide-active {
        transform: scale(1);
    }

    body.nkp .nkp-video-swiper .swiper-slide-prev {
        transform: translateX(15%) rotateY(10deg) scale(0.9);
    }

    body.nkp .nkp-video-swiper .swiper-slide-next {
        transform: translateX(-15%) rotateY(-10deg) scale(0.9);
    }

    body.nkp .nkp-video-card__play {
        width: 50px;
        height: 50px;
    }

    body.nkp .nkp-video-card__play i {
        font-size: 18px;
        margin-left: 3px;
    }

    body.nkp .nkp-video-nav {
        display: none;
    }
}

/* Wrapper */
body.nkp .nkp-bac-si-wrapper {
    position: relative;
    overflow: hidden;
}

/* Swiper */
body.nkp .nkp-bac-si-swiper {
    overflow: visible;
}

body.nkp .nkp-bac-si-swiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: linear !important;
}

/* Slide - calculate width based on columns */
body.nkp .nkp-bac-si-swiper .swiper-slide {
    width: calc((100% - (var(--nkp-bs-columns, 5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns, 5));
    height: auto;
    transition: width 0.4s ease;
}

@media (max-width: 849px) {
    body.nkp .nkp-bac-si-swiper .swiper-slide {
        width: calc((100% - (var(--nkp-bs-columns-mobile, 2.5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns-mobile, 2.5));
    }
}

/* Expanded slide - add extra width for content */
body.nkp .nkp-bac-si-swiper .swiper-slide.is-expanded {
    width: calc(((100% - (var(--nkp-bs-columns, 5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns, 5)) + var(--nkp-bs-expand-width, 280px));
    z-index: 10;
}

@media (max-width: 849px) {
    body.nkp .nkp-bac-si-swiper .swiper-slide.is-expanded {
        width: calc(((100% - (var(--nkp-bs-columns-mobile, 2.5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns-mobile, 2.5)) + var(--nkp-bs-expand-width, 220px));
    }
}

/* Card Base */
body.nkp .nkp-bs-card {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    padding: 16px;
    transition: border-color 0.3s ease, width 0.4s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card {
        padding: 14px;
        gap: 14px;
        /* MỚI: Đổ bóng cho thẻ bác sĩ trên mobile */
        box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08) !important;
        border-color: transparent !important;
        /* Bỏ viền trắng để bóng tỏa đều */
    }
}

body.nkp .nkp-bs-card:hover {
    border-color: var(--nkp-primary, #e91010);
}

/* Expanded Card */
body.nkp .nkp-bs-card.is-expanded {
    z-index: 100;
    border-color: var(--nkp-primary, #e91010);
}

/* Thumbnail - fixed width from JS variable, maintains 3:4 aspect ratio */
body.nkp .nkp-bs-card__thumb {
    position: relative;
    width: var(--nkp-bs-thumb-width, calc(100% - 0px));
    max-width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__thumb {
        /* MỚI: Tăng chiều cao ảnh bác sĩ trên mobile (Tỷ lệ 2/3) */
        aspect-ratio: 1 / 3 !important;
    }
}

body.nkp .nkp-bs-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

body.nkp .nkp-bs-card:hover .nkp-bs-card__thumb img {
    transform: scale(1.05);
}

body.nkp .nkp-bs-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 48px;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__placeholder {
        /* MỚI: Tương thích tỷ lệ cho khối rỗng chưa có ảnh */
        aspect-ratio: 2 / 3 !important;
    }
}

/* Name - absolute inside thumb */
body.nkp .nkp-bs-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    z-index: 5;
}

body.nkp .nkp-bs-card__name span {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-color-base, #2a2a2a);
    line-height: 1.3;
    display: block;
}

/* Expand Content - hidden by default, shows when expanded */
body.nkp .nkp-bs-card__expand {
    position: relative;
    width: 0;
    overflow: hidden;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.4s ease, width 0.4s ease;
}

body.nkp .nkp-bs-card.is-expanded .nkp-bs-card__expand {
    width: var(--nkp-bs-expand-content-width, 248px);
    opacity: 1;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card.is-expanded .nkp-bs-card__expand {
        width: var(--nkp-bs-expand-content-width, 192px);
    }
}

body.nkp .nkp-bs-card__expand-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--nkp-bs-expand-content-width, 248px);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__expand-inner {
        width: var(--nkp-bs-expand-content-width, 192px);
    }
}

/* Section */
body.nkp .nkp-bs-card__section {
    margin-bottom: 16px;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__section {
        margin-bottom: 14px;
    }
}

body.nkp .nkp-bs-card__section:last-child {
    margin-bottom: 0;
}

body.nkp .nkp-bs-card__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fs-color-secondary, #0426a0);
    margin: 0 0 8px;
}

/* List with check icons */
body.nkp .nkp-bs-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.nkp .nkp-bs-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--fs-color-base, #2a2a2a);
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__list li {
        font-size: 12px;
    }
}

body.nkp .nkp-bs-card__list li:last-child {
    margin-bottom: 0;
}

body.nkp .nkp-bs-card__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--fs-color-secondary, #0426a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__check {
        width: 16px;
        height: 16px;
    }
}

body.nkp .nkp-bs-card__check i {
    font-size: 9px;
    color: #fff;
}

@media (max-width: 849px) {
    body.nkp .nkp-bs-card__check i {
        font-size: 8px;
    }
}

/* Empty */
body.nkp .nkp-bs-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}


.nkp-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    perspective: 1200px;
}

/* Swiper container */
.nkp-video-swiper {
    overflow: hidden;
    padding: 40px 0;
}

.nkp-video-swiper .swiper-wrapper {
    align-items: center;
    transform-style: preserve-3d;
}

/* Slide - 3D Effect */
.nkp-video-swiper .swiper-slide {
    width: 60%;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, z-index 0s;
    transform-style: preserve-3d;
    opacity: var(--nkp-video-side-opacity, 0.5);
    filter: brightness(0.7);
}

/* Active slide - center, on top */
.nkp-video-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
    filter: brightness(1);
}

/* Previous slide - behind and partially under center */
.nkp-video-swiper .swiper-slide-prev {
    transform: translateX(25%) rotateY(15deg) scale(var(--nkp-video-side-scale, 0.85));
    z-index: 5;
}

/* Next slide - behind and partially under center */
.nkp-video-swiper .swiper-slide-next {
    transform: translateX(-25%) rotateY(-15deg) scale(var(--nkp-video-side-scale, 0.85));
    z-index: 5;
}

/* Other slides - hidden */
.nkp-video-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    transform: scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* Video Card */
.nkp-video-card {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.nkp-video-card__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.nkp-video-card__video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.nkp-video-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.nkp-video-card__placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Play button */
.nkp-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.nkp-video-card__play i {
    font-size: 28px;
    color: rgba(0, 0, 0, 0.3);
    margin-left: 4px;
    transition: color 0.3s ease;
}

.nkp-video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--nkp-primary, #e91010);
}

.nkp-video-card__play:hover i {
    color: #fff;
}

/* Hide play button on non-active slides */
.nkp-video-swiper .swiper-slide:not(.swiper-slide-active) .nkp-video-card__play {
    opacity: 0;
    pointer-events: none;
}

/* Iframe container */
.nkp-video-card__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nkp-video-card__iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nkp-video-card.is-playing .nkp-video-card__iframe {
    opacity: 1;
    pointer-events: auto;
}

.nkp-video-card.is-playing .nkp-video-card__play,
.nkp-video-card.is-playing img {
    opacity: 0;
    pointer-events: none;
}

/* Navigation arrows */
.nkp-video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nkp-video-nav:hover {
    background: var(--nkp-primary, #e91010);
    transform: translateY(-50%) scale(1.1);
}

.nkp-video-nav i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.nkp-video-nav:hover i {
    color: #fff;
}

.nkp-video-nav--prev {
    left: 20px;
}

.nkp-video-nav--next {
    right: 20px;
}

.nkp-video-nav.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Pagination dots */
.nkp-video-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.nkp-video-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.nkp-video-pagination .swiper-pagination-bullet-active {
    background: var(--nkp-primary, #e91010);
    transform: scale(1.2);
}

/* Empty state */
.nkp-video-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 849px) {
    .nkp-video-wrapper {
        perspective: 800px;
    }

    .nkp-video-swiper .swiper-slide {
        width: 65%;
    }

    .nkp-video-swiper .swiper-slide-prev {
        transform: translateX(20%) rotateY(12deg) scale(0.85);
    }

    .nkp-video-swiper .swiper-slide-next {
        transform: translateX(-20%) rotateY(-12deg) scale(0.85);
    }

    .nkp-video-card__play {
        width: 60px;
        height: 60px;
    }

    .nkp-video-card__play i {
        font-size: 22px;
    }

    .nkp-video-nav {
        width: 40px;
        height: 40px;
    }

    .nkp-video-nav i {
        font-size: 14px;
    }

    .nkp-video-nav--prev {
        left: 10px;
    }

    .nkp-video-nav--next {
        right: 10px;
    }
}

@media (max-width: 549px) {
    .nkp-video-wrapper {
        perspective: 600px;
    }

    .nkp-video-swiper {
        padding: 30px 0;
    }

    .nkp-video-swiper .swiper-slide {
        width: 80%;
    }

    .nkp-video-swiper .swiper-slide-active {
        transform: scale(1);
    }

    .nkp-video-swiper .swiper-slide-prev {
        transform: translateX(15%) rotateY(10deg) scale(0.9);
    }

    .nkp-video-swiper .swiper-slide-next {
        transform: translateX(-15%) rotateY(-10deg) scale(0.9);
    }

    .nkp-video-card__play {
        width: 50px;
        height: 50px;
    }

    .nkp-video-card__play i {
        font-size: 18px;
        margin-left: 3px;
    }

    .nkp-video-nav {
        display: none;
    }
}

/* Wrapper */
.nkp-bac-si-wrapper {
    position: relative;
    overflow: hidden;
}

/* Swiper */
.nkp-bac-si-swiper {
    overflow: visible;
}

.nkp-bac-si-swiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: linear !important;
}

/* Slide - calculate width based on columns */
.nkp-bac-si-swiper .swiper-slide {
    width: calc((100% - (var(--nkp-bs-columns, 5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns, 5));
    height: auto;
    transition: width 0.4s ease;
}

@media (max-width: 849px) {
    .nkp-bac-si-swiper .swiper-slide {
        width: calc((100% - (var(--nkp-bs-columns-mobile, 2.5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns-mobile, 2.5));
    }
}

/* Expanded slide - add extra width for content */
.nkp-bac-si-swiper .swiper-slide.is-expanded {
    width: calc(((100% - (var(--nkp-bs-columns, 5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns, 5)) + var(--nkp-bs-expand-width, 280px));
    z-index: 10;
}

@media (max-width: 849px) {
    .nkp-bac-si-swiper .swiper-slide.is-expanded {
        width: calc(((100% - (var(--nkp-bs-columns-mobile, 2.5) - 1) * var(--nkp-bs-gap, 16px)) / var(--nkp-bs-columns-mobile, 2.5)) + var(--nkp-bs-expand-width, 220px));
    }
}

/* Card Base */
.nkp-bs-card {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    padding: 16px;
    transition: border-color 0.3s ease, width 0.4s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

@media (max-width: 849px) {
    .nkp-bs-card {
        padding: 14px;
        gap: 14px;
        /* MỚI: Đổ bóng cho thẻ bác sĩ trên mobile */
        box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08) !important;
        border-color: transparent !important;
        /* Bỏ viền trắng để bóng tỏa đều */
    }
}

.nkp-bs-card:hover {
    border-color: var(--nkp-primary, #e91010);
}

/* Expanded Card */
.nkp-bs-card.is-expanded {
    z-index: 100;
    border-color: var(--nkp-primary, #e91010);
}

/* Thumbnail - fixed width from JS variable, maintains 3:4 aspect ratio */
.nkp-bs-card__thumb {
    position: relative;
    width: var(--nkp-bs-thumb-width, calc(100% - 0px));
    max-width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

@media (max-width: 849px) {
    .nkp-bs-card__thumb {
        /* MỚI: Tăng chiều cao ảnh bác sĩ trên mobile (Tỷ lệ 2/3) */
        aspect-ratio: 1 / 3 !important;
    }
}

.nkp-bs-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.nkp-bs-card:hover .nkp-bs-card__thumb img {
    transform: scale(1.05);
}

.nkp-bs-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 48px;
}

@media (max-width: 849px) {
    .nkp-bs-card__placeholder {
        /* MỚI: Tương thích tỷ lệ cho khối rỗng chưa có ảnh */
        aspect-ratio: 2 / 3 !important;
    }
}

/* Name - absolute inside thumb */
.nkp-bs-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    z-index: 5;
}

.nkp-bs-card__name span {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-color-base, #2a2a2a);
    line-height: 1.3;
    display: block;
}

/* Expand Content - hidden by default, shows when expanded */
.nkp-bs-card__expand {
    position: relative;
    width: 0;
    overflow: hidden;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.4s ease, width 0.4s ease;
}

.nkp-bs-card.is-expanded .nkp-bs-card__expand {
    width: var(--nkp-bs-expand-content-width, 248px);
    opacity: 1;
}

@media (max-width: 849px) {
    .nkp-bs-card.is-expanded .nkp-bs-card__expand {
        width: var(--nkp-bs-expand-content-width, 192px);
    }
}

.nkp-bs-card__expand-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--nkp-bs-expand-content-width, 248px);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 849px) {
    .nkp-bs-card__expand-inner {
        width: var(--nkp-bs-expand-content-width, 192px);
    }
}

/* Section */
.nkp-bs-card__section {
    margin-bottom: 16px;
}

@media (max-width: 849px) {
    .nkp-bs-card__section {
        margin-bottom: 14px;
    }
}

.nkp-bs-card__section:last-child {
    margin-bottom: 0;
}

.nkp-bs-card__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fs-color-secondary, #0426a0);
    margin: 0 0 8px;
}

/* List with check icons */
.nkp-bs-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nkp-bs-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--fs-color-base, #2a2a2a);
}

@media (max-width: 849px) {
    .nkp-bs-card__list li {
        font-size: 12px;
    }
}

.nkp-bs-card__list li:last-child {
    margin-bottom: 0;
}

.nkp-bs-card__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--fs-color-secondary, #0426a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

@media (max-width: 849px) {
    .nkp-bs-card__check {
        width: 16px;
        height: 16px;
    }
}

.nkp-bs-card__check i {
    font-size: 9px;
    color: #fff;
}

@media (max-width: 849px) {
    .nkp-bs-card__check i {
        font-size: 8px;
    }
}

/* Empty */
.nkp-bs-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}



/* === QUOTE STYLES === */
.nkp-quote-element {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    max-width: var(--nkp-quote-max-width, 100%);
    margin-left: auto;
    margin-right: auto;
}

.nkp-quote-element__icon {
    flex: 0 0 auto;
    width: var(--nkp-quote-icon-size, 48px);
}

.nkp-quote-element__icon img {
    width: 100%;
    height: auto;
    display: block;
}

.nkp-quote-element__icon--left {
    align-self: flex-start;
}

.nkp-quote-element__icon--right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.nkp-quote-element__content {
    text-align: center;
    flex: 1;
}

.nkp-quote-element__content p {
    font-family: inherit;
    font-size: var(--nkp-quote-font-size, 1em);
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
    color: #1B1B1B;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .nkp-quote-element {
        max-width: var(--nkp-quote-max-width-tablet, var(--nkp-quote-max-width, 100%));
    }

    .nkp-quote-element__icon {
        width: var(--nkp-quote-icon-size-tablet, var(--nkp-quote-icon-size, 40px));
    }

    .nkp-quote-element__content p {
        font-size: var(--nkp-quote-font-size-tablet, var(--nkp-quote-font-size, 1em));
    }
}

@media (max-width: 767px) {
    .nkp-quote-element {
        gap: 15px;
        max-width: var(--nkp-quote-max-width-mobile, var(--nkp-quote-max-width-tablet, 100%));
    }

    .nkp-quote-element__icon {
        width: var(--nkp-quote-icon-size-mobile, var(--nkp-quote-icon-size-tablet, 32px));
    }

    .nkp-quote-element__content p {
        font-size: var(--nkp-quote-font-size-mobile, var(--nkp-quote-font-size-tablet, 0.95em));
    }
}


/* Hiossen hero: reserve the correct space for the selected picture source. */
body.page-id-4025 .nkp-hiossen-responsive-hero picture,
body.page-id-4025 .nkp-hiossen-responsive-hero img {
    display: block;
    width: 100%;
}

body.page-id-4025 .nkp-hiossen-responsive-hero img {
    height: auto;
}

@media (max-width: 549px) {
    body.page-id-4025 .nkp-hiossen-responsive-hero img {
        aspect-ratio: 1952 / 2176;
    }
}

body.nkp ul.mobile-nav > li.nkp-menu-dich-vu {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-id-4025 #implant-trigger-zone .instruction {
    color: #444 !important;
}
.nkp-quote-element {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    max-width: var(--nkp-quote-max-width, 100%);
    margin-left: auto;
    margin-right: auto;
}

.nkp-quote-element__icon {
    flex: 0 0 auto;
    width: var(--nkp-quote-icon-size, 48px);
}

.nkp-quote-element__icon img {
    width: 100%;
    height: auto;
    display: block;
}

.nkp-quote-element__icon--left {
    align-self: flex-start;
}

.nkp-quote-element__icon--right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.nkp-quote-element__content {
    text-align: center;
    flex: 1;
}

.nkp-quote-element__content p {
    font-family: inherit;
    font-size: var(--nkp-quote-font-size, 1em);
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
    color: #1B1B1B;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .nkp-quote-element {
        max-width: var(--nkp-quote-max-width-tablet, var(--nkp-quote-max-width, 100%));
    }

    .nkp-quote-element__icon {
        width: var(--nkp-quote-icon-size-tablet, var(--nkp-quote-icon-size, 40px));
    }

    .nkp-quote-element__content p {
        font-size: var(--nkp-quote-font-size-tablet, var(--nkp-quote-font-size, 1em));
    }
}

@media (max-width: 767px) {
    .nkp-quote-element {
        gap: 15px;
        max-width: var(--nkp-quote-max-width-mobile, var(--nkp-quote-max-width-tablet, 100%));
    }

    .nkp-quote-element__icon {
        width: var(--nkp-quote-icon-size-mobile, var(--nkp-quote-icon-size-tablet, 32px));
    }

    .nkp-quote-element__content p {
        font-size: var(--nkp-quote-font-size-mobile, var(--nkp-quote-font-size-tablet, 0.95em));
    }
}


/* Hiossen hero: reserve the correct space for the selected picture source. */
body.page-id-4025 .nkp-hiossen-responsive-hero picture,
body.page-id-4025 .nkp-hiossen-responsive-hero img {
    display: block;
    width: 100%;
}

body.page-id-4025 .nkp-hiossen-responsive-hero img {
    height: auto;
}

@media (max-width: 549px) {
    body.page-id-4025 .nkp-hiossen-responsive-hero img {
        aspect-ratio: 1952 / 2176;
    }
}

ul.mobile-nav > li.nkp-menu-dich-vu {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-id-4025 #implant-trigger-zone .instruction {
    color: #444 !important;
}
