﻿
.service-card-y {
    position: inherit;
    top: -54px;
    z-index:2;
}

.question-doctor {
    background: #F9FCFF;
    position: inherit;
    top: -55px;
}

.layout-home-white {
    position: relative;
    overflow: hidden;
}

.text-dvdb1 {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-size: 20px;
    font-weight: 600;
}

.text-dvdb2 {
    font-family: 'Inter', sans-serif;
    color: #757575;
    font-size: 15px;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.4); /* đen mờ */
    z-index: 1;
    border-radius: 10px;
}

/* Đảm bảo các thành phần khác nằm trên overlay */
.play_btn,
.video-caption {
    z-index: 2;
}

.custom-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2); /* vòng ngoài mờ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* hiệu ứng mờ nền */
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

    .custom-play-button::before {
        content: "";
        position: absolute;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.4); /* vòng trong sáng hơn */
        border-radius: 50%;
        z-index: 1;
    }

    .custom-play-button i {
        color: white;
        font-size: 22px;
        z-index: 2;
    }

    .custom-play-button:hover {
        transform: scale(1.1);
    }
/* ----- Mặc định: laptop ----- */
.dot-left {
    position: absolute;
    top: 30%;
    left: 0%;
    width: 165px;
    opacity: 1;
    z-index: 0;
}

.dot-right {
    position: absolute;
    bottom: 10%;
    right: 0%;
    width: 130px;
    opacity: 0.7;
    z-index: 0;
}

/*////////////////////////*/
.layout-home {
    background: #e1f3f3;
    height: 500px;
}

.layout-home-white {
    background: transparent;
    /* height: 524px;*/
    height: max-content;
}

.floating-box-wrapper {
    position: relative;
    height: 0;
}

.meta-1 {
    max-height: 344px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
}

.floating-box {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 0px;
    justify-content: center;
    z-index: 10;
    width: 752px;
    height: 138px;
}

.box-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}

    .box-item .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }




.author-img-circle {
    background: #009f9c;
    border-radius: 50%;
    width: 454px;
    height: 444px;
    text-align: center;
}

.author-info-text {
    font-size: 45px;
    font-family: Montserrat;
}

.author-info-small-text {
    color: #757575;
    font-size: 15px;
    padding-right: 0px;
    text-align: justify;
    font-family: 'Inter';
}

.service-card-c {
    height: 290px;
}

.service-card {
    background: #ffffff;
    border-radius: 25.91px;
    padding: 40px 10px;
    margin-bottom: 10px;
    box-shadow: 7px 0px 40px rgb(193 147 147 / 5%);
}

.service-img-wrapper {
    background: #F6F9FE;
    width: 110px;
    height: 110px;
    border-radius: 25.91px;
    align-content: center;
    text-align-last: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* tại sao chọn chúng tôi*/
.bg-info-gradient {
    background: linear-gradient(101deg, #D2FFFE, #009F9C);
    color: #ffffff;
}

.form-section-wrapper {
    position: relative;
    background-color: #e0f7fa;
    background-image: linear-gradient(101deg, #FFFFFF, #E4FFFE);
    width: 340px;
    height: 310px;
    border-radius: 10px;
    border: 2px solid #ffeee6;
    box-shadow: 1px 1px 5px -2px #343a4094;
}

.doctor-overlay-wrapper {
    position: absolute;
    left: 5px;
    bottom: 0;
    z-index: 10;
}

.doctor-overlay {
    width: 240px;
    object-fit: contain;
}


.form-section {
    background-color: #e0f7fa;
    padding: 0rem;
    border-radius: 10px;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.doctor-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.z-100 {
    z-index: 100;
}

.tranform-x {
    transform: translateX(110px);
    white-space: nowrap;
}

.text-inter {
    font-family: 'Inter', sans-serif;
}

.text-Montserrat {
    font-family: 'Montserrat', sans-serif;
}

.text-primary-grd {
    background: linear-gradient(to right, #00B9B5, #9EFFFD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color-interpolation: inherit;
}
/* Khách hàng nói gì về chúng tôi*/
.client-img-wrapper {
    background: #F6F9FE;
    width: 80px;
    height: 80px;
    align-content: center;
    text-align-last: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-client-boder {
    border-radius: 25.91px;
}

.related-services {
    margin: 0 auto;
    padding: 20px 45px;
    position: relative;
}

    .related-services h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 20px;
    }

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
    margin-right: 15px;
    margin-left: 25px;
}

.swiper-slide {
    margin-right: 0px;
}

.service-card {
    --corner-thickness: 4px;
    --corner-size: 68px;
    --corner-radius: 24px;
    --corner-base: rgba(0,0,0,0.08);
    --corner-accent: #05ddee;
    position: relative;
    flex: 0 0 353px;
    background: #FFFFFF;
    border-radius: var(--corner-radius);
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 0;
}

    /* 2 span hiển thị ở 2 góc */
    .service-card .corner {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 5;
    }

        .service-card .corner.tl {
            top: 0;
            left: 0;
        }

        .service-card .corner.br {
            bottom: 0;
            right: 0;
        }

        .service-card .corner.tl::before {
            content: "";
            position: absolute;
            inset: 0;
        }

        .service-card .corner.br::before {
            content: "";
            position: absolute;
            inset: 0;
        }

        .service-card .corner.tl::after {
            content: "";
            position: absolute;
            inset: 0;
            border-top-left-radius: var(--corner-radius);
            background: linear-gradient(to right, var(--corner-accent) 100%, transparent 0) left top / 0% var(--corner-thickness) no-repeat, linear-gradient(to bottom, var(--corner-accent) 100%, transparent 0) left top / var(--corner-thickness) 0% no-repeat;
            transition: background-size 0.6s cubic-bezier(.2,.9,.2,1);
        }

        .service-card .corner.br::after {
            content: "";
            position: absolute;
            inset: 0;
            border-bottom-right-radius: var(--corner-radius);
            background: linear-gradient(to left, var(--corner-accent) 100%, transparent 0) right bottom / 0% var(--corner-thickness) no-repeat, linear-gradient(to top, var(--corner-accent) 100%, transparent 0) right bottom / var(--corner-thickness) 0% no-repeat;
            transition: background-size 0.6s cubic-bezier(.2,.9,.2,1);
        }

    .service-card:hover .corner.tl::after,
    .service-card:hover .corner.br::after {
        background-size: 100% var(--corner-thickness), var(--corner-thickness) 100%;
    }

.bg-hover-green:hover {
    background: #009F9C;
    color: #ffffff;
    cursor: pointer;
}

    .bg-hover-green:hover .post-by {
        color: #F7FFFF;
    }

    .bg-hover-green:hover h5 {
        color: #F7FFFF;
    }

.service-content {
    padding: 15px;
}

    .service-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .service-content p {
        font-size: 14px;
        color: #555;
    }

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f26522;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
}

.bottom-line {
    border-bottom: 1px solid #E9EFF5;
}

.justify-items-center {
    justify-items: center;
    align-items: center;
}

.nav-left {
    left: 10px;
}

.nav-right {
    right: -10px;
}

.slider-container::-webkit-scrollbar {
    display: none;
}
/* //video */
.video-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    font-size: 14px;
}

.author-info {
    text-align: left;
}

.box-item i {
    display: inline-block; /* hoặc block */
    width: 100%;
    height: 100%;
    color: #00B9B5
}

.bi-telephone-fill::before {
    content: "\f5b4";
    height: 27px;
    width: 27px;
}

.box_item_text p {
    text-align: left;
    font-family: 'Inter', sans-serif;
    color: #757575;
    font-size: 10px;
}

.icon_box {
    height: 30px;
    width: 30px;
    font-size: 30px;
    margin-top: 24px;
}

.box_item_text h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: left;
    font-size: 12px;
    margin-top: 35px;
}

.avatar2 {
    width: 453.98px;
    height: 443.88px
}

.box-item {
    page-break-inside: avoid;
    break-inside: avoid;
    text-align: center;
}

#sp_sv article {
    padding: 0px 30px 35px 50px;
}

.text-primary {
    background: linear-gradient(90deg, #009688, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

#slider1 {
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 10px;
}

    #slider1::-webkit-scrollbar {
        display: none;
    }

.animated {
    margin: 0px;
}

.fa {
    color: #FF7F22;
}

.for-more {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    font-size: 16px;
    z-index: 100;
}

.text-ic-5 {
    font-family: 'Montserrat', sans-serif;
    color: #2F4848;
    font-size: 30px;
    font-weight: 700;
}

.text-ics-5 {
    font-family: 'Inter', sans-serif;
    color: #000000;
}


.img-client-boder {
    height: auto;
    display: block;
    margin: 0 auto;
}

.mtauthordv {
    margin-top: 90px !important;
}

.bcsm-image {
    width: 100%;
    height: 150px;
}

.txt-layout-2 {
    font-size: 2.1vw;
    font-family: Montserrat;
}

.message-client {
    margin-top: 10px;
}

.is-thumber-video {
    display: none;
}

.is-text-video {
    display: block;
}

#img_dv {
    margin-right: 10px;
    width: -webkit-fill-available;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .service-card-y {
        position: inherit;
        top: -150px !important
    	z-index:2;
    }

    .question-doctor {
        background: #F9FCFF;
        position: inherit;
        top: -150px;
    }

    .message-client {
        margin-top: -131px;
    }

    .author-info-small-text {
        color: #757575;
        font-size: 11px;
        padding-right: 0px;
        text-align: justify;
        font-family: 'Inter';
    }

    .dot-right {
        position: absolute;
        bottom: 33%;
        right: 0%;
        width: 130px;
        opacity: 0.7;
        z-index: 0;
    }

    .dot-left {
        position: absolute;
        top: 10%;
        left: 0%;
        width: 165px;
        opacity: 1;
        z-index: 0;
    }

    .form-section-wrapper {
        position: relative;
        background-color: #e0f7fa;
        background-image: linear-gradient(101deg, #FFFFFF, #E4FFFE);
        width: 100%;
        height: 310px;
        border-radius: 10px;
        border: 2px solid #ffeee6;
        box-shadow: 1px 1px 5px -2px #343a4094;
    }

    .tranform-x {
        transform: translateX(100%);
        white-space: nowrap;
    }

    .service-card {
        flex: 0 0 280px;
        background: #FFFFFF;
        border-radius: 24px;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .floating-box {
        width: 100%;
        height: 120px;
        margin-left: 0px;
        top: -91px;
        text-align: center;
    }

    .is-thumber-video {
        display: block;
    }

    .is-text-video {
        display: none;
    }

    .md-mb-15 {
        margin-bottom: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .title_sv {
        padding: 0px !important;
    }

    .author-info-small-text {
        color: #757575;
        padding-right: 0px;
        text-align: justify;
    }


    .author-info-mobile {
        position: inherit;
        top: -30px;
        padding-top: 28px;
        background: #ffffff00;
        color: #272626;
    }

    .custom-play-button {
        width: 50px;
        height: 50px;
    }

        .custom-play-button::before {
            width: 36px;
            height: 36px;
        }

        .custom-play-button i {
            font-size: 16px;
        }

    .slider-container {
        justify-content: flex-start;
    }

    .play_btn a {
        transform: translate(-62%, -62%) !important;
    }

    .text-ic-5 {
        font-family: 'Montserrat', sans-serif;
        color: #2F4848;
        font-size: 28px;
        font-weight: 700;
    }

    .text-ics-5 {
        font-family: 'Inter', sans-serif;
        color: #000000;
        font-size: 11px;
    }

    .text-dvdb1 {
        font-family: 'Montserrat', sans-serif;
        color: #000000;
        font-size: 14px;
        font-weight: 700;
    }

    .text-dvdb2 {
        font-family: 'Inter', sans-serif;
        color: #757575;
        font-size: 13px;
    }

    .service-card-y {
        position: inherit;
        top: -23px;
    	z-index:2;
    }

    .dot-left {
        position: absolute;
        top: 297px;
        left: 213px;
        width: 147px;
        opacity: 0.8;
        z-index: 0;
    }

    .dot-right {
        position: absolute;
        top: 99px;
        right: 259px;
        width: 99px;
        opacity: 0.7;
        z-index: 0;
    }



    /* CSS dành cho mobile */
    .mobile-icon {
        margin-top: 8px !important;
    }

    .box-item {
        page-break-inside: avoid;
        break-inside: avoid;
        text-align: center;
        margin-top: 5px;
    }

    .layout-home {
        height: 590px;
    }

    .icon_box {
        font-size: 16px;
        margin-top: 7px;
    }

    .author-info {
        margin-top: 45px;
        margin-bottom: 20px;
    }


    .author-info-text {
        text-align: left;
        font-size: 25px;
        font-weight: 700;
    }

    .author-img-circle {
        text-align: center;
        width: 300px;
        height: 300px;
    }

    .avatar {
        height: 320px;
        position: relative;
        top: -25px;
    }

    .avatar2 {
        width: 100%;
        height: 100%;
    }

    .author-bio {
        text-align: center;
        margin-top: 22px !important;
    }

    #LayoutHome1 {
        margin-bottom: 50px;
    }

    .floating-box {
        width: 350px;
        height: 120px;
        margin-left: 0px;
        top: -91px;
        text-align: center;
    }

    .icon_mobile {
        width: 13px;
        height: 13px;
    }

    .box_item_text {
        margin-top: 10px;
        padding: 3px !important;
    }

        .box_item_text h5 {
            margin-top: 0px;
            font-size: 10px;
        }

        .box_item_text p {
            font-size: 9px;
        }

    .img_avt2 {
        height: 300px;
        width: 329px;
    }

    .t_mb {
        font-family: 'Inter', sans-serif;
        color: #F26522;
        font-size: 12px;
        font-weight: 600;
    }

    .t_mb2 {
        font-family: 'Montserrat', sans-serif;
        color: #2F4848;
        font-size: 17px;
        font-weight: bold;
        line-height: 120%;
        margin-bottom: 10px;
        z-index: 100;
    }


    .btn_sv {
        text-align: center;
        margin-top: -20px !important;
    }

    #sp_sv article {
        padding: 3px;
    }

    .text-head-breadcrumb {
        font-size: 20px;
        font-weight: 700;
    }

    .doctor-note2 {
        position: relative;
        height: 100%;
    }

    .swiper {
        width: 100%;
        height: 100%;
    }

    .swiper1 {
        margin-left: 10px
    }

    .sub_video {
        height: 77px;
    }

    .post-thumb2 {
        width: 138px;
        margin-right: 10px;
    }

    .text-c-2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; /* Số dòng muốn hiển thị */
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5em; /* Có thể chỉnh tùy font */
        max-height: 4.5em;
    }

    #sliderContainer {
        max-height: 270px;
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;
    }

    .item_vd {
        padding: 0px;
        margin-left: 16px;
        margin-top: 15px;
    }

    .swiper-slide {
        padding: 0px;
    }

    .item_vd {
        height: 90px;
    }

    #img_dv {
        margin-right: 0px;
        width: -webkit-fill-available;
    }
}
