@font-face {
    font-family: "Lato";
    src: url("/static/vendor/googleFonts/Lato-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: "Lato", sans-serif;
    text-transform: capitalize;
    color: #454545 !important;
    background: #FFFFFF;
    scroll-behavior: smooth;
    /* padding-bottom: 300px; */
}

/* ===================== Index - Nav bar ============================ */

.customNav {
    padding: 30px 100px;
}

.navLogo {
    height: 130px;
    transition: height 0.3s ease;
}

.navLink {
    color: #454545;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navLink:hover {
    color: var(--bs-primary);
}

.navLink.active {
    color: var(--bs-primary) !important;
    font-weight: bold;
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .customNav {
        padding: 20px 50px;
    }

    .navLogo {
        height: 100px;
    }

    .navMenu {
        gap: 2rem;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .customNav {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        text-align: center;
    }

    .navLogo {
        height: 80px;
    }

    /* .navMenu {
        flex-direction: column;
        gap: 1rem !important;
        margin-top: 1rem;
    } */

    .navLink span {
        font-size: 1rem !important;
    }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
    .customNav {
        padding: 15px;
    }

    .navLogo {
        height: 60px;
    }

    .navMenu {
        gap: 0.75rem !important;
    }

    .navLink span {
        font-size: 0.9rem !important;
    }

    .navLink i {
        font-size: 1rem !important;
    }
}

@media (max-width: 330px) {
    .customNav {
        padding: 15px;
    }

    .navLogo {
        height: 50px;
    }

    .navMenu {
        gap: 0.75rem !important;
    }

    .navLink span {
        font-size: 0.9rem !important;
    }

    .navLink i {
        font-size: 1rem !important;
    }
}

/* ===================== Index - ============================ */
.indexHero {
    padding: 2rem clamp(1rem, 4vw, 4rem);
}

.missionVision {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
}

.missionVision>div {
    flex: 1 1 45%;
}

@media (max-width: 768px) {
    .indexHero h5 {
        text-align: center;
    }
}

#mcubeModal {
    --bs-modal-width: 421px !important;
}

.footer-text {
    font-size: clamp(12px, 1.8vw, 16px) !important;
}

.footer-text .footer-link {
    font-size: clamp(14px, 2vw, 18px) !important;
}

.appointment-footer {
    font-size: clamp(10px, 1.4vw, 13px) !important;
    color: #000;
    /* black */
    opacity: 0.7;
    /* lighter text */
}


.serviceCards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem;
    padding: 0 clamp(1rem, 5vw, 7rem);
}

.serviceCards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 32px;
    /* padding: 1rem; */
    text-align: center;
    position: relative;
    overflow: hidden !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serviceCards .card img {
    border-radius: 32px 32px 0 0;

    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    overflow: hidden !important;
    /* smooth scaling */
}

.serviceCards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.serviceCards .card:hover img {
    transform: scale(1.1);
    /* scale image slightly */
}

@media (max-width: 480px) {
    .serviceCards {
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .serviceCards .card {
        flex: 0 0 auto;
    }
}

.indexModalHeader .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem;
}

.indexModalHeader .select2-container {
    min-width: 150px;
}

.indexModalHeader {
    background: #67A2FF;
    padding: 10px;
    border-radius: 0 0 35px 35px;
}

.lightBlue {
    color: #67A2FF;
}

.select2-container--default .select2-selection--single {
    height: 58px;
    padding: 13px 0.5rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media(max-width:1000px) {
    .modalHeaderItems {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0px !important;
    }
}

.modalCard {
    box-shadow:
        8px 8px 16px #d1d9e6,
        -8px -8px 16px #ffffff;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.modalCard:hover {
    box-shadow: none;
    box-shadow:
        8px 8px 16px #eff0f3bc,
        -8px -8px 16px #ffffff;
    transform: translateY(-4px);
}

.hospitalDesc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

/* Badge active (selected) style */
.optionRadio {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-check:checked+.optionRadio {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
}

.btn-check+.optionRadio:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.modalAllCard {
    padding: clamp(0.5rem, 2vw, 2rem);
}

.list-view .cardContainer {
    flex: 0 0 100%;
    max-width: 100%;
}

.list-view .modalCard {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    height: auto;
}

.list-view .modalCard img {
    width: 300px;
    /* or 300px */
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px 20px 0 0;
}

.list-view .modalCard .p-3 {
    flex: 2;
    padding: 1.5rem;
}

.list-view .badge-group {
    justify-content: center !important;
}

@media(max-width:768px) {
    .list-view .modalCard .p-3 {

        padding: 1.5rem;
    }
}

@media(max-width:340px) {
    .badge-group {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .badge-group {
        flex-wrap: wrap;
    }
}

.borderPrimary {
    border: 1px solid #4086F4;
}

#bookAppointmentOffcanvas .form-control {
    border: 2px solid #4086F4;
    box-shadow:
        inset 4px 4px 8px #d1d9e6,
        inset -4px -4px 8px #ffffff;
}

#bookAppointmentOffcanvas .form-control:focus {
    box-shadow:
        inset 3px 3px 6px #d1d9e6,
        inset -3px -3px 6px #ffffff,
        0 0 0 3px rgba(13, 110, 253, 0.2);
}

.required-wrapper::after {
    content: "*" !important;
    color: red !important;
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 1.2rem;
    pointer-events: none;
}

.appointmentForm {
    padding: 10px;
    background: #ECF3FF;
    margin: clamp(20px, 4vw, 30px);
    margin-bottom: 10px !important;
    border-radius: 10px;
}

.bookAppointmentOffcanvas {
    width: clamp(350px, 60vw, 600px) !important;
}

/* Bring offcanvas above modal */
.bookAppointmentOffcanvas {
    z-index: 1060 !important;
}

/* Optional: make sure its backdrop covers modal too */
.offcanvas-backdrop {
    z-index: 1059 !important;
}

.swiper-button-prev::after {
    content: none !important;
}

.swiper-button-next::after {
    content: none !important;
}

.roleToggleGroup {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-radius: 50px;
    padding: 10px;
    gap: 8px;
    transition: box-shadow 0.4s ease;
}

.roleToggleGroup input[type="radio"] {
    display: none;
}

.roleToggleGroup .roleToggleBtn {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
    border-radius: 50px;
    color: #4086F4;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: none;
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease;
}

.roleToggleGroup input[type="radio"]:checked+.roleToggleBtn {
    background-color: #4086F4;
    color: #fff;
    transform: scale(1.05);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15),
        inset -3px -3px 6px rgba(255, 255, 255, 0.6);
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 320px) {
    .roleToggleGroup {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
    }

    .roleToggleGroup .roleToggleBtn {
        width: 100%;
        border-radius: 30px;
        padding: 10px 0;
    }
}



@media(max-width:668px) {
    .consultantSearchAndLocation {
        flex-wrap: wrap !important;
    }

    .independentSearchAndLocation {
        flex-wrap: wrap !important;
    }

    /* .bookAppointmentOff{
        text-align: center;
    } */
}

#consultantHeader {
    /* position: sticky; */
    padding-top: 20px;
    /* top: 30px; */
    margin-bottom: 10px;
}

.textLowerCase {
    text-transform: lowercase !important;
}

.doctorSwitch {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding-left: 30px;
}

.doctorSwitch .form-check-input {
    width: 4.4rem;
    height: 2.3rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.doctorSwitch .form-check-input:checked {
    background-color: #0d6efd;
    border: 2px solid #ffffff;

}

.doctorSwitch .form-check-input:focus {
    box-shadow: none;
}

/* Base: Desktop is fine, just tweak for smaller screens */

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    footer .container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    footer .container>div {
        width: 100% !important;
        margin-bottom: 2rem;
    }


    /* Stack email and icons nicely */
    footer .d-flex.align-items-center.gap-2 {
        justify-content: center !important;
    }

    /* Reduce Swiper max width */
    footer .swiper {
        max-width: 100% !important;
    }

    /* Optional: resize icons slightly on mobile */
    footer i.fs-3 {
        font-size: 1.5rem !important;
    }
}

/* Tablet devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    footer .container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-around !important;
        text-align: center !important;
    }

    footer .d-flex.flex-column.align-items-start {
        margin-top: 1rem;
        text-align: left !important;
    }

    footer .swiper {
        max-width: 450px !important;
    }
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* show only 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3.expanded {
    -webkit-line-clamp: unset;
    /* show full text */
    overflow: visible;
}

.hospitalImage {
    width: 100%;
    /* or 300px */
    height: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 20px 20px 0 0;
}

.hospitalDesc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    /* show 1 line */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* cursor: pointer !important; */
    height: 60px;
    /* indicates hover */
}

.hospitalName {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    /* show 1 line */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 80px;

}

.custom-popover {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

#togglePassword {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4086F4;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#togglePassword:hover {
    color: #1055c4;
    transform: translateY(-50%) scale(1.1);
}

@keyframes shake {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) rotate(10deg);
    }

    50% {
        transform: translateY(-50%) rotate(-10deg);
    }

    75% {
        transform: translateY(-50%) rotate(6deg);
    }

    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

.shake {
    animation: shake 0.5s;
}

.cat-truncate-text {
    white-space: nowrap;
    /* Prevents text from wrapping to the next line */
    overflow: hidden;
    /* Hides any content that overflows the element's box */
    text-overflow: ellipsis;
    /* Displays an ellipsis (...) for truncated text */
    max-width: 15ch;
    /* Sets a maximum width based on character units */
}


.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* --- WRAPPER FIX --- */
.testimonialVideoSwipper {
    width: 100%;
    padding: 20px 0;
}

.video-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border-radius: 12px;
    padding: 10px;
}

.testimonial-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background: #000;
}

.vertical-video {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
    background: #000 !important;
}


.horizontal-video {
    width: 100% !important;
    height: auto !important;
}


@media (min-width: 768px) {
    .video-slide {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .video-slide {
        height: 380px;
    }
}


.videoWrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 14px;
}

.videoWrapper .thumbVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glightbox-container .gslide-media {
    position: relative;
}

.glightbox-container .plyr__video-wrapper {
    background: black;
}

.glightbox-container .plyr--video {
    max-height: 90vh !important;
    width: auto !important;
}

.glightbox-container video {
    object-fit: contain !important;
    /* keeps vertical ratio */
}

/* Background blur for vertical videos */
.glightbox-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
}

.video-link {
    position: relative;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.video-link:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-frame {
    width: 50%;
    aspect-ratio: 16 / 8;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.plyr {
    height: 100%;
}

.plyr video {
    object-fit: contain;
    /* portrait videos get black bars */
}

.videoSwiper .swiper-button-next,
.videoSwiper .swiper-button-prev {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .video-frame {
        width: 95%;
        aspect-ratio: 16 / 9;
    }

    .videoSwiper .swiper-button-next,
    .videoSwiper .swiper-button-prev {
        width: 32px;
        height: 32px;
        top: 50%;
    }

    .videoWrapper {
        height: 220px;
    }
}


.videoSwiper .swiper-button-next::after,
.videoSwiper .swiper-button-prev::after {
    display: none;
    /* remove default arrows */
}

.videoSwiper .swiper-button-next:hover,
.videoSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.videoSwiper .swiper-button-prev {
    left: 10px;
}

.videoSwiper .swiper-button-next {
    right: 10px;
}


.swal2-title {
    font-size: 1.5em !important;
}