/*
 * Preserve the Merit theme's original heading proportions after semantic SEO
 * headings were upgraded to h1 elements.
 */
h1.slider-two_heading {
    font-size: var(--font-24);
    line-height: 1.4em;
    font-weight: 700;
}

h1.sec-title_heading,
h1.seo-h2-size {
    font-size: var(--font-48);
    line-height: 54px;
    font-weight: 700;
}

@media only screen and (max-width: 599px) {
    h1.sec-title_heading,
    h1.seo-h2-size {
        font-size: var(--font-34);
        line-height: 44px;
    }
}

@media only screen and (max-width: 479px) {
    h1.sec-title_heading,
    h1.seo-h2-size {
        font-size: var(--font-28);
        line-height: 38px;
    }
}

/* Simple, readable layout for individual treatment pages. */
.service-content-page {
    background: #ffffff;
}

.service-content-page .service-content-wrap {
    max-width: 940px;
    margin: 0 auto;
}

.service-content-page h1.service-page-heading {
    font-size: 38px;
    line-height: 1.3em;
    font-weight: 700;
}

.service-content-page h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.35em;
}

.service-content-page p,
.service-content-page li {
    color: #333333;
    font-size: 17px;
    line-height: 1.75em;
}

.service-content-page ul {
    margin: 8px 0 20px 22px;
}

.service-content-page .service-note {
    margin-top: 25px;
    padding: 18px 20px;
    border-left: 4px solid var(--main-color);
    background: #f4f9fd;
}

/* Keep treatment headings balanced on laptop/desktop screens. */
@media only screen and (min-width: 768px) {
    .service-content-page h1.service-page-heading {
        font-size: 32px !important;
        line-height: 1.3em !important;
    }

    .service-content-page h2 {
        font-size: 22px;
    }
}

/* Doctor cards: only the first profile uses a link/click cursor. */
.doctor-card-static,
.doctor-card-static * { cursor: default; }
.doctor-photo-frame { height: 305px; overflow: hidden; background: #eef5f9; }
.doctor-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo-crop-tight img { transform: scale(1.13); transform-origin: center 28%; }
.doctor-placeholder { display:flex; align-items:center; justify-content:center; height:100%; color:#0a98ef; background:linear-gradient(145deg,#eef8fd,#dbeef8); font-size:80px; }
.patient-card-link { display:block; height:100%; }
.patient-card-link .card-box { display:flex; min-height:112px; height:calc(100% - 20px); align-items:center; justify-content:center; transition:transform .2s ease,box-shadow .2s ease; }
.patient-card-link:hover .card-box,
.patient-card-link:focus .card-box { transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,95,155,.18); }
.patient-guide-meta { margin-bottom:22px; color:#5b6670; }
.patient-guide-warning { margin-top:28px; padding:18px 20px; border-left:4px solid #d9534f; background:#fff6f5; }

/* Website media: consistent cards and visible previous/next controls. */
.media-carousel-section .owl-carousel {
    padding: 0 48px;
}

.media-carousel-section .owl-nav {
    display: flex !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 5;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.media-carousel-section .owl-nav .owl-prev,
.media-carousel-section .owl-nav .owl-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff !important;
    background: #079ef2 !important;
    box-shadow: 0 5px 18px rgba(0, 75, 125, .25);
    pointer-events: auto;
}

.media-carousel-section .owl-nav .disabled {
    opacity: .45;
}

.media-carousel-section .about-two_video img,
.media-carousel-section .media-direct-video,
.media-carousel-section .media-youtube-frame {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    object-fit: cover;
    background: #071b2c;
}

.media-carousel-section .department-one_block-inner {
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(3, 55, 90, .09);
}

.media-carousel-section .owl-dots {
    display: block !important;
    text-align: center;
    margin-top: 15px;
}

@media only screen and (max-width: 599px) {
    .media-carousel-section .owl-carousel { padding: 0 38px; }
    .media-carousel-section .about-two_video img,
    .media-carousel-section .media-direct-video,
    .media-carousel-section .media-youtube-frame { height: 220px; }
}

@media only screen and (max-width: 599px) {
    .service-content-page h1.service-page-heading {
        font-size: 30px;
        line-height: 1.35em;
    }

    .service-content-page h2 {
        font-size: 23px;
    }
}

/* Home banner: keep the clinic name visually dominant. */
.slider-two .slider-two_title {
    font-size: 48px;
    line-height: 1.12em;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

h1.slider-two_heading {
    font-size: 28px;
    line-height: 1.35em;
    font-weight: 650;
}

/* All four blue banner cards remain equal in height. */
.services-three .row {
    align-items: stretch;
}

.services-three .service-block_three {
    display: flex;
}

.services-three .service-block_three-inner {
    width: 100%;
    height: 100%;
}

/* Keep doctor photographs at their original colour and brightness. */
.doctor-photo-frame .team-block_two-gradient {
    display: none !important;
}

.team-block_two .doctor-photo-frame img,
.team-block_two-inner:hover .doctor-photo-frame img {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.team-block_two-inner:hover .doctor-photo-frame img {
    transform: none;
}

.doctor-photo-crop-tight img,
.team-block_two-inner:hover .doctor-photo-crop-tight img {
    transform: scale(1.13);
    transform-origin: center 28%;
}

/* Bulleted patient instructions. */
.service-content-page .patient-guide-list {
    margin: 8px 0 22px;
    padding-left: 0;
    list-style: none !important;
}

.service-content-page .patient-guide-list li {
    position: relative;
    display: block;
    padding-left: 25px;
    margin-bottom: 10px;
}

.service-content-page .patient-guide-list li::before {
    position: absolute;
    top: .68em;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17252f;
    content: "";
    transform: translateY(-50%);
}

/* About content: show an approximately ten-line preview, then expand in place. */
.about-expandable {
    position: relative;
    max-height: 285px;
    overflow: hidden;
    transition: max-height .45s ease;
}

.about-expandable:not(.is-expanded)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
}

.home-about-expandable:not(.is-expanded)::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
}

.about-expandable__content > p,
.about-expandable__content article p {
    color: #263642;
    font-size: 17px;
    line-height: 1.75em;
}

.about-expandable__content > p {
    margin-bottom: 18px;
}

.about-expandable__content h2,
.about-expandable__content h3 {
    color: #071b2c;
}

.about-expandable__content h2 {
    margin: 30px 0 15px;
    font-size: 30px;
}

.about-expandable__toggle {
    margin-top: 22px;
    border: 0;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-feature-grid article {
    padding: 20px;
    border: 1px solid #dcecf5;
    border-radius: 10px;
    background: #f7fbfe;
}

.about-feature-grid article h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.clinic-values {
    margin-top: 28px;
    padding: 23px;
    border-left: 4px solid #079ef2;
    border-radius: 8px;
    background: #f2f9fd;
}

.clinic-values ul,
.home-about-points {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.clinic-values li,
.home-about-points li {
    margin-bottom: 10px;
    color: #263642;
    font-size: 16px;
    line-height: 1.65em;
}

.clinic-values li span {
    display: inline-block;
    margin-right: 8px;
    color: #079ef2;
}

.clinic-values li strong {
    margin-right: 5px;
    color: #071b2c;
}

.clinic-values--compact ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.clinic-values--compact li {
    margin: 0;
}

/* Always render a visible arrow inside carousel navigation circles. */
.media-carousel-section .owl-nav .owl-prev,
.media-carousel-section .owl-nav .owl-next,
.faq-carousel-section .owl-nav .owl-prev,
.faq-carousel-section .owl-nav .owl-next {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.media-carousel-section .owl-nav .owl-prev > span[aria-hidden],
.media-carousel-section .owl-nav .owl-next > span[aria-hidden],
.faq-carousel-section .owl-nav .owl-prev > span[aria-hidden],
.faq-carousel-section .owl-nav .owl-next > span[aria-hidden] {
    display: block;
    color: #fff !important;
    line-height: 1;
}

/* Media cards and the zoomable viewer. */
.ds-media-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    cursor: zoom-in;
    background: #071b2c;
}

.ds-media-thumb .ds-media-expand,
.ds-media-thumb .ds-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 23px;
    line-height: 1;
    background: rgba(7, 158, 242, .92);
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
    transform: translate(-50%, -50%);
}

.ds-media-thumb .ds-media-expand {
    top: 18px;
    right: 18px;
    left: auto;
    width: 38px;
    height: 38px;
    font-size: 20px;
    transform: none;
}

.ds-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ds-media-viewer.is-open {
    display: flex;
}

.ds-media-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 15, 25, .84);
}

.ds-media-viewer__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 62px 18px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.ds-media-viewer__stage {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 240px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    border-radius: 6px;
    background: #0a1c29;
}

.ds-media-viewer__stage img {
    display: block;
    flex: none;
    max-width: none;
    height: auto;
    margin: auto;
}

.ds-media-viewer__stage video,
.ds-media-viewer__stage iframe {
    display: block;
    width: 100%;
    min-height: min(68vh, 680px);
    border: 0;
    background: #000;
}

.ds-media-viewer__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 31px;
    line-height: 36px;
    background: #d73737;
}

.ds-media-viewer__toolbar {
    position: absolute;
    top: 15px;
    left: 18px;
    display: flex;
    gap: 8px;
}

.ds-media-viewer__toolbar button {
    min-width: 40px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cbdde8;
    border-radius: 5px;
    color: #0a537f;
    font-size: 17px;
    font-weight: 700;
    background: #f3f9fc;
}

.ds-media-viewer.is-video .ds-media-viewer__toolbar {
    display: none;
}

.ds-media-viewer__caption {
    margin: 10px 2px 0;
    color: #334854;
    font-size: 15px;
}

body.ds-modal-open {
    overflow: hidden;
}

/* Contact map direction button, aligned immediately above the map's left edge. */
.map-one_direction-wrap {
    padding: 0 20px 12px;
}

.map-one_direction-button {
    padding: 13px 16px;
    letter-spacing: .5px;
}

.map-one_direction-button .btn-wrap span {
    min-width: 0;
    padding: 0;
    font-size: 12px;
    line-height: 18px;
}

.map-one_direction-button i {
    margin-right: 4px;
    font-size: 12px;
}

/* FAQ: original accordion styling, presented as three-question carousel pages. */
.faq-carousel-section {
    padding: 90px 0;
}

.faq-carousel-section .faq-carousel {
    padding: 0 54px;
}

.faq-carousel-section .owl-stage {
    display: flex;
    align-items: flex-start;
}

.faq-carousel-section .owl-item {
    display: block;
}

.faq-group-slide {
    width: 100%;
    padding: 4px;
}

.faq-carousel-section .accordion-box .block .acc-btn {
    min-height: 60px;
    padding-right: 22px;
}

.faq-carousel-section .accordion-box .block .acc-btn:focus-visible {
    outline: 3px solid rgba(7, 158, 242, .35);
    outline-offset: 2px;
}

.faq-carousel-section .accordion-box .block .acc-btn.active .icon-outer .icon {
    transform: rotate(180deg);
}

.faq-carousel-section .owl-nav {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    display: flex !important;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.faq-carousel-section .owl-nav .owl-prev,
.faq-carousel-section .owl-nav .owl-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff !important;
    background: #079ef2 !important;
    box-shadow: 0 5px 18px rgba(0, 75, 125, .25);
    pointer-events: auto;
}

.faq-carousel-section .owl-nav .owl-prev span[aria-hidden="true"],
.faq-carousel-section .owl-nav .owl-next span[aria-hidden="true"] {
    display: block;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.faq-carousel-section .owl-nav .disabled {
    opacity: .35;
}

.footer-phone-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    vertical-align: top;
}

.footer-whatsapp-number,
.contact-whatsapp-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-whatsapp-number i,
.contact-whatsapp-number i {
    color: #079ef2;
    font-size: 18px;
}

/* Live Justdial review badge row. */
.justdial-reviews-section {
    padding: 72px 0 78px;
    background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%);
}

.justdial-reviews-section .sec-title {
    margin-bottom: 28px;
}

.justdial-badge-shell {
    width: min(760px, 100%);
    min-height: 170px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #d9eaf4;
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: 0 14px 42px rgba(2, 72, 116, .11);
}

.justdial-badge-shell #JdBadgeDest {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.justdial-fallback {
    margin: 18px 0 0;
}

.justdial-fallback a {
    color: #067ac0;
    font-size: 16px;
    font-weight: 700;
}

/* Patient Education guide cards. */
.patient-card-link {
    display: block;
    height: calc(100% - 20px);
    margin: 10px;
}

.patient-card-link .card-box {
    position: relative;
    display: flex;
    min-height: 245px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 24px 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #0575c7 0%, #08a0ff 55%, #38c2ff 100%);
    box-shadow: 0 13px 32px rgba(0, 111, 184, .23);
    transition: transform .25s ease, box-shadow .25s ease;
}

.patient-card-link .card-box::after {
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 170px;
    height: 170px;
    border: 24px solid rgba(255,255,255,.1);
    border-radius: 50%;
    content: '';
}

.patient-card-link:hover .card-box,
.patient-card-link:focus-visible .card-box {
    transform: translateY(-7px);
    box-shadow: 0 19px 40px rgba(0, 93, 158, .3);
}

.patient-card-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 17px;
    font-size: 27px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
}

.patient-card-link .card-box h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.45;
}

.patient-card-cta {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.patient-card-cta i {
    margin-left: 5px;
    transition: transform .2s ease;
}

.patient-card-link:hover .patient-card-cta i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .justdial-reviews-section {
        padding: 52px 0 58px;
    }

    .justdial-badge-shell {
        min-height: 145px;
        padding: 22px 14px;
        border-radius: 14px;
    }

    .patient-card-link .card-box {
        min-height: 210px;
    }
}

/* Appointment confirmation popup. */
.ds-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ds-notice-modal.is-open {
    display: flex;
}

.ds-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 15, 25, .72);
}

.ds-notice-modal__panel {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 40px));
    padding: 42px 34px 36px;
    border-radius: 12px;
    text-align: center;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.ds-notice-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    color: #425766;
    font-size: 30px;
    background: transparent;
}

.ds-notice-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    background: #1aa35b;
}

.ds-notice-modal__panel h2 {
    margin-bottom: 8px;
    color: #071b2c;
    font-size: 28px;
}

.ds-notice-modal__panel p {
    margin-bottom: 24px;
    color: #3b4e5a;
    font-size: 17px;
}

.ds-notice-modal__okay {
    border: 0;
}

#response-message {
    margin-bottom: 16px;
    text-align: center;
}

#response-message .form-error {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 5px;
    color: #9d2020;
    background: #fff0f0;
}

/* Keep heading capitalisation consistent across every website page. */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: capitalize;
}

/* Move the desktop logo slightly towards the left edge. */
@media only screen and (min-width: 1200px) {
    .header-style-three .header-upper .logo-box {
        margin-left: -32px;
    }
}

/* Make Treatment and its children visually distinct in the mobile menu. */
@media only screen and (max-width: 767px) {
    .mobile-menu .navigation > li.treatment-menu {
        margin: 4px 0 8px;
        border: 1px solid rgba(7, 158, 242, .45);
        border-radius: 5px;
        overflow: hidden;
    }

    .mobile-menu .navigation > li.treatment-menu > a {
        font-weight: 700;
        background: rgba(7, 158, 242, .16);
    }

    .mobile-menu .navigation ul.treatment-submenu {
        padding: 6px 0 6px 8px;
        border-left: 4px solid #079ef2;
        background: #eaf6fe;
        counter-reset: treatment-link;
    }

    .mobile-menu .navigation ul.treatment-submenu > li {
        counter-increment: treatment-link;
    }

    .mobile-menu .navigation ul.treatment-submenu > li > a::before {
        margin-right: 7px;
        color: #079ef2;
        font-weight: 700;
        content: counter(treatment-link) ".";
    }

    .slider-two .slider-two_title {
        font-size: 30px;
    }

    h1.slider-two_heading {
        font-size: 21px;
        line-height: 1.4em;
    }

    .about-feature-grid {
        grid-template-columns: 1fr;
    }

    .clinic-values--compact ul {
        display: block;
    }

    .clinic-values--compact li {
        margin-bottom: 8px;
    }

    .faq-carousel-section .faq-carousel {
        padding: 0 38px;
    }

    .faq-carousel-section .accordion-box .block .acc-btn {
        padding: 13px 12px 13px 64px;
        font-size: 16px;
        line-height: 25px;
    }

    .faq-carousel-section .accordion-box .block .icon-outer .icon {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .faq-carousel-section .accordion-box .block .content {
        padding: 0 15px 15px 64px;
    }

    .ds-media-viewer {
        padding: 10px;
    }

    .ds-media-viewer__panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 60px 10px 10px;
    }

    .ds-media-viewer__stage {
        max-height: calc(100vh - 155px);
    }

    .ds-media-viewer__stage video,
    .ds-media-viewer__stage iframe {
        min-height: 52vh;
    }
}
