@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
    --primary-color: #032092;
    --secondary-color: #04908d;
    --optionalColor:#04908d;
    --font-size-base: 16px;
    --spacing: 1rem;
  --animate-delay: 1s;
  }
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", serif;
}
h1{
    opacity: 75%;
}
a{
    text-decoration: none;
    color: black;
}
.ptb-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}
small{
    font-size: 12px;
}
.small{
    font-size: 14px;
}
.semi-primary-color{
    background:#0dcaf084;
    
}
.optionalColor{
    background: var(--optionalColor);
    color: #ffffff !important;
}
.big-circle{
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.sub {
    display: inline-flex;
    padding: 7px 20px;
    justify-content: center;
    align-items: center;
    background-color:var(--optionalColor);
    font-size: 15px;
    color: white;
    border-radius: 50px;
    margin-bottom: 15px;
}
.arrow-btn {
    position: absolute;
    right: 20px;
    top: 20px;
}
.round {
    border-radius: 30px;
    overflow: hidden;
    height: auto;
}
.card-img-overlay {
    background: rgba(0, 0, 0, 0.214);
    overflow: hidden;
    
}
.default-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--primary-color);
    color:black;
    border-radius: 50px;
    padding: 15px 30px;
    position: relative;
    margin-right: 50px;
    transition: 0.6s;
}
.default-btn .btn-left-i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    height: 52px;
    width: 52px;
    line-height: 58px;
    text-align: center;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--optionalColor);
    transition: 0.6s;
    font-size: 22px;
    opacity: 0;
}
.default-btn .btn-right-i {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    height: 52px;
    width: 52px;
    line-height: 58px;
    text-align: center;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: black;
    transition: 0.6s;
    font-size: 22px;
    opacity: 1;
}
.form-label{
    font-weight: bold;
}

.page-banner-inner {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 242px;
    padding: 100px 50px 50px 50px;
    position: relative;
    z-index: 1;
    border-radius: 15px;
    max-width: 1035px;
}


.page-banner-inner .wrap-shape {
    position: absolute;
    top: -12px;
    right: -205px;
    z-index: -1;
}
.about-image {
    position: relative;
    padding: 100px 245px 70px 45px;
}
.about-image img {
    border-radius: 30px !important;
}
.about-image .video-wrap {
    background-color: #ffffff;
    box-shadow: 0px 0px 60px 0px rgba(32, 38, 91, 0.1);
    border-radius: 30px;
    padding: 20px;
    position: absolute;
    right: 55px;
    top: 0;
}
.about-image .shape1 {
    position: absolute;
    top: 25px;
    left: 0;
    z-index: -1;
}
.about-image .shape2 {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
}
.about-image .shape3 {
    position: absolute;
    right: 65px;
    top: 240px;
    z-index: -1;
}
.quote-box {
    font-family: Arial, sans-serif;
    background-color: #ded6d6;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .quote {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
  }

  .author {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
  }

  .carousel-item {
    text-align: center;
    padding: 2rem;
  }
  .carousel-indicators button {
    background: #3206f6;
  }
  /* Bootstrap's default control icons are white and vanish on the light card.
     Give them a dark circular chip so they're visible and clickable. */
  .quote-box .carousel-control-prev,
  .quote-box .carousel-control-next {
    width: 5%;
    opacity: 1;
  }
  .quote-box .carousel-control-prev-icon,
  .quote-box .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 12px;
    background-size: 45% 45%;
    transition: background-color .25s ease;
  }
  .quote-box .carousel-control-prev:hover .carousel-control-prev-icon,
  .quote-box .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
  }
.find-location-search-form .form-group .form-control {
    display: inline-block;
    border-radius: 50px;
    background-color: #F5F5F3;
    border: 1px solid #F5F5F3;
    width: 100%;
    height: 55px;
    box-shadow: unset;
    color: #6B6F90;
    transition: 0.6s;
    padding: 15px 20px;
    font-size: 14px;
}
.card-title{
    transition: color 0.6s ease-in-out;
}

.zoomOut{
    transition: transform 0.6s ease-in-out;
}
.card:hover.zoomOut,.zoomOut:hover {
    transform: scale(1.2);
  }
.zoomIn{
    transition: transform 0.6s ease-in-out;
}
.card:hover.zoomIn,.zoomIn:hover {
    transform: scale(0.95);
  }
.swing{
    transition: transform 0.6s ease-in-out;
}

.card:hover .swing,.swing:hover{
    animation-name:swing;
    animation-duration: 1s;
    animation-delay: 0.1s;
}
.bounce{
    transition: transform 0.6s ease-in-out;
}
.card:hover .bounce,.bounce:hover{
    animation-name:bounce;
    animation-duration: 1s;
    animation-delay: 0.1s;
}
.shakeY{
    transition: transform 0.6s ease-in-out;
}
.card:hover .shakeY,.shakeY:hover{
    animation-name:shakeY;
    animation-duration: 1s;
    animation-delay: 0.2s;
}
.zoomX{
    transition: transform 0.6s ease-in-out;
}
.card:hover .zoomX,.zoomX:hover{
    transform: scaleX(1.2);
    animation-duration: 1s;
    animation-delay: 0.2s;
}
.zoomY{
    transition: transform 0.6s ease-in-out;
}
.card:hover .zoomY,.zoomY:hover{
    transform: scaleY(1.2);
    animation-duration: 1s;
    animation-delay: 0.2s;
}
.ani-zoomIn{
    transition: transform 0.6s ease-in-out;
}
.card:hover .ani-zoomIn,.ani-zoomIn:hover{
    animation-name:zoomIn;
    animation-duration: 1s;
    animation-delay: 0.2s;
}
.height {
    height: 87%;
    transition: height 0.6s ease-in-out;
  }
  
.height:hover {
    height: 100%;
    animation-duration: 1s;
    animation-delay: 0.2s;
  }
.color-change{
    background: #E9ECEF;
    transition: background 0.6s ease-in-out;
}
.card:hover .color-change {
    background:var(--optionalColor);
}
.B-W{
    color: black;
    transition: color 0.6s ease-in-out;
}
.B-W:hover {
    color:white;
}
.custom-text {
    font-size: 12px;
  }
  .head-text {
    font-size: 29px;
  }
  @media (min-width: 576px) {
    .custom-text {
      font-size: 16px;
    }
    .head-text {
        font-size: 32px;
      }
  }

  @media (min-width: 992px) {
    .custom-text {
      font-size: 18px;
    }
    .head-text {
        font-size: 64px;
      }
  }

.dc-page-banner-inner {
    background-color: #F5F5F3;
    border-radius: 0px 0px 30px 30px;
    position: relative;
    z-index: 1;
}
.page-banner-shape1 {
    position: absolute;
    top: 100px;
    left: 250px;
    max-width: 45px;
    z-index: -1;
}
.page-banner-shape2 {
    position: absolute;
    top: 50px;
    right: 250px;
    z-index: -1;
}
/* .swiper {
    width: 90%;
    max-width: 1200px;

    margin: 50px auto;
  } */
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
  }

  .home-slider-component{
    width: 100%;
    max-height: 720px;
  }

  .white-background{
    background: #E9ECEF;
    transition: background 0.6s ease-in-out;
  }

  .hero-card-right{
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .text-white{
    color: white;
  }

  .default-btn{
    color: white;
  }

  .btn-outline-primary{
    border: 2px solid var(--primary-color);
    background-color: #ffffff;
    color: black;
  }

  .btn-outline-primary:hover{
    border:2px solid var(--optionalColor);
  }
  .block-paragraph>ul {
    list-style: none !important;
    padding-left: .5rem;
}

.block-paragraph>ul>li {
    position: relative;
    padding-left: 25px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 2 !important;
}

.block-paragraph>ul>li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 3px;
}

.service-detail-title-container{
    padding: 120px 0;
}

.service-detail-image{
    object-fit: cover;
    width: 50%;
    height: 100%;
    position: absolute;
    inset: 0% 0% 0% auto;
    border-radius: 0 0 30px 0
}

.service-details-description{
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: column;
    max-width: 400px;
    display: flex;
}

.paragraph-large{
    font-size: 18px;
    color: #777272;
    text-align: justify;
}

.richtext-image{
    border-radius: 20px;
}
.accordion-item {
    border: none;
    margin-bottom: 20px;
}
.accordion-button{
    background-color: var(--optionalColor);
    border-radius: 30px !important;
    font-size: large;
    color: white;
}
.accordion-button::after{
    background-image: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#212529" stroke-linecap="round" stroke-linejoin="round" style="&#10;    stroke: white;&#10;"><path d="M2 5L8 11L14 5"/></svg>';
}

.service-description-container{
    grid-column-gap: 50px;
    grid-row-gap: 16px;
    grid-template-rows: auto;
    grid-template-columns: 1fr .9fr;
    grid-auto-columns: 1fr;
    justify-content: space-between;
    align-items: flex-start;
    display: grid;
    position: relative;
}
.description-form-container{
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
    overflow: clip;
}

.error-message{
    color: red;
    font-size: 12px;
}
.doctor-detail-wrp{
    position: relative;
}

.doctor-profile-description-container .top-info-section{
    color: white;
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.doctor-profile-description-container .top-info-section .title-section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.doctor-profile-description-container .top-info-section p{
    /* font-size: 14px; */
    margin-bottom: 0;
}

.profile-detail-description-section{
    padding: 40px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.doctor-profile-image{
    position: sticky;
    top: 100px;
}

.doctor-profile-image img{
    width: 100%;
    height: auto;
}

.badge-secondary{
    background-color: var(--optionalColor);
    color: white;
    font-weight: 500;
}

.hospital-image-contaner>picture>img{
    width: 100%;
    object-fit: cover;
}

.text-justify{
    text-align: justify;
}

.card .nav-link{
    color: #053882;
}
.professional-tab>.nav-item>.nav-link{
    color: #595959;
}

.professional-tab>.nav-item>.nav-link:hover{
    color: var(--optionalColor);
}

.professional-tab.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    color: var(--bs-nav-pills-link-active-color);
    background-color: var(--bs-nav-pills-link-active-bg);
}

.professional-tab.nav-pills .nav-link.active, .nav-pills .show>.nav-link:hover{
    background-color: var(--optionalColor);
}

.slider-component {
    height: 100vh;
    background-size: cover !important;
    background-repeat: no-repeat;
}

p{
    text-align: justify !important;
}

.p-reset{
    text-align: unset !important;
}

.doctor-list{
    margin-top: 40px;
}

.slider-text-wrp>p{
    text-align: center !important;
}

.navbar{
    background-color: white;
}

.doctor-img{
    height: 300px;
}
.service_listing_container>p{
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2em * 10);
}

.card-link{
    color: #0d6efd;
}

.hidden{
    display: none;
}

/* .default-btn{
    border: none;
} */

.toast-success {
    background-color: #27ac60;
    color: #FFF;
    width: fit-content;
    padding: 10px 20px;
}

.toast-error {
    background-color: var(--primary-color);
    color: #FFF;
    width: fit-content;
    padding: 10px 20px;
}

/*---------footer---------*/
footer {
    background-color: #222023;
    background-image: -webkit-linear-gradient( top, #222023, #1e2c47 );
    background-image: -moz-linear-gradient( top, #222023, #1e2c47 );
    background-image: -o-linear-gradient( top, #222023, #1e2c47 );
    background-image: linear-gradient( to bottom, #222023, #1e2c47 );
    color: #fff;
    padding:50px 0 10px 0;
}
footer h3 {
    letter-spacing: 1px;
}
footer h4 {
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 2px;
}
.about-footer li i {
    position: absolute;
    left: 0;
}
.about-footer li {
    padding-left: 40px;
    position: relative;
    margin-bottom: 40px;
}

.about-footer ul {
    margin-top: 40px;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: var(--optionalColor);
}
.footer-title {
    border-bottom: 2px solid var(--optionalColor);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

ul.footer-social li {
    display: inline;
    margin-right: 16px;
}

ul.footer-social i {
    width: 30px;
    height: 30px;
    background: #fff;
    color: #222025;
    text-align: center;
    line-height: 30px;
    border-radius: 30px;
    font-size: 16px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    font-weight: 800;
}

ul.footer-social li:last-child {
    margin-right: 0px;
}

ul.footer-social i:hover {
    background: var(--optionalColor);
    color: #fff;
}

.page-more-info li {
    margin-bottom: 20px;
}

footer .table td:first-child {
    font-weight: 600;
    padding-left: 33px;
}

footer .table td:last-child {text-align: right;}
footer .table td {
    padding: 0px;
    border: 0;
}

footer .table td i {
    position: absolute;
    left: 0px;
    top: 6px;
}

footer .table td {
    position: relative;
    padding: 4px 0;
}
.footer-logo td {
    padding-right: 4px !important;
}

.footer-logo td:last-child {
    padding-right: 0px !important;
}
footer hr {
    border-color: #9294a0;
}

.footer-bottom p {
    text-align: right;
}
.footer-bottom {
    margin-top: 30px;
}
.open-hours hr {
    margin: 30px 0;
}

footer table{
    --bs-table-bg: transparent !important;
}

footer table tr td{
    color: white !important;
}

footer li {
    list-style: none;
}

.page-more-info ul{
    padding-left: 1rem;
}

/* ===========================================================
   NAVBAR
=========================================================== */

.navbar{
    background:#fff;
    padding:18px 0;
    border-bottom:1px solid #efefef;
    position:relative;
    z-index:999;
}

.navbar-brand img{
    max-height:150px;
    width:auto;
}

.navbar-nav{
    margin-left:auto;
    gap:8px;
}

.navbar .nav-item{
    position:relative;
}

/* Mega-dropdown items must NOT be the positioning context, otherwise the
   panel's `left:0; width:100vw` anchors to the item (offset right + overflow).
   Keeping them static lets the panel anchor to `.navbar` (full viewport width). */
.navbar .nav-item.mega-dropdown{
    position:static;
}

.navbar .nav-link{

    font-size:16px;
    font-weight:500;
    color:#1b1b1b;

    padding:20px 18px;

    transition:.25s ease;
}

.navbar .nav-link:hover{

    color:var(--primary-color);
}

.dropdown-toggle::after{

    margin-left:6px;
}

/* ===========================================================
   NAVBAR CTA — "Book An Appointment" pill
=========================================================== */

.book-appointment-btn{

    display:inline-flex;
    align-items:center;

    background:var(--primary-color);
    color:#fff;

    font-size:15px;
    font-weight:600;

    padding:12px 26px;

    border-radius:50px;

    white-space:nowrap;

    transition:.25s ease;
}

.book-appointment-btn:hover{

    background:var(--optionalColor);
    color:#fff;
}


/* ===========================================================
   MEGA MENU
=========================================================== */

.mega-menu{

    /* Override Bootstrap's .dropdown-menu{display:none}: the panel stays in
       the layout and is revealed via opacity/visibility on hover below. */
    display:block;

    position:absolute;
    left:0;
    top:100%;

    width:100vw;
    margin-top:0;

    background:#fff;

    border:none;
    border-top:1px solid #ececec;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

    padding:30px 0;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:opacity .2s ease, visibility .2s ease;
}

/* Invisible "bridge" over the navbar's bottom padding so the cursor can travel
   from the menu item down to the panel without :hover dropping (which would
   make the panel disappear mid-move). Active only while the panel is open. */
.mega-menu::before{

    content:"";

    position:absolute;
    left:0;
    right:0;
    bottom:100%;

    height:30px;
}

.mega-dropdown:hover > .mega-menu,
.mega-menu:hover{

    opacity:1;
    visibility:visible;
    pointer-events:auto;
}


/* ===========================================================
   LEFT COLUMN
=========================================================== */

.mega-intro-column{

    padding-right:70px;
}

.mega-heading{

    font-size:30px;

    font-weight:700;

    color:#111;

    line-height:1.15;

    margin-bottom:18px;
}

.mega-intro{

    font-size:16px;

    color:#6d6d6d;

    line-height:1.8;

    margin-bottom:30px;

    font-weight:400;
}

.mega-link{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--primary-color);

    font-size:16px;

    font-weight:500;

    transition:.25s;

    text-decoration:none;
}

.mega-link:hover{

    color:var(--optionalColor);
}


/* ===========================================================
   RIGHT GRID
=========================================================== */

.mega-menu .row{

    row-gap:30px;
}


/* ===========================================================
   ITEM
=========================================================== */

.mega-menu-item{

    display:flex;

    gap:16px;

    padding:12px;

    border-radius:12px;

    text-decoration:none;

    transition:.25s;
}

/* No background change on hover for sub-items (per design). */


/* ===========================================================
   ICON
=========================================================== */

.mega-menu-icon{

    width:44px;
    height:44px;

    display:flex;
    justify-content:center;
    align-items:center;

    flex-shrink:0;

    font-size:30px;

    color:var(--primary-color);
}


/* ===========================================================
   TITLE
=========================================================== */

.mega-menu-title{

    font-size:16px;

    color:#1c1c1c;

    margin-bottom:6px;
}

.mega-menu-desc{

    font-size:14px;

    line-height:1.6;

    color:#757575;

    font-weight:400;
}


.mega-menu-item:hover .mega-menu-title{

    color:var(--primary-color);
}


.nav-link:focus,
.nav-link:active,
.dropdown-toggle:focus{

    box-shadow:none !important;

    outline:none !important;
}


/* ===========================================================
   MOBILE
=========================================================== */

@media(max-width:991px){

    .mega-menu{

        position:static;

        display:block;

        /* Reset the desktop full-viewport width; inside the collapsed navbar the
           panel must flow in normal document width, not 100vw (which overflows
           and forces horizontal scroll). */
        width:auto;

        /* No hover on touch: reveal the panel inside the collapsed navbar. */
        opacity:1;
        visibility:visible;
        pointer-events:auto;

        box-shadow:none;

        border:none;
        border-top:1px solid #ececec;

        padding:16px 0 8px;

        /* Indent the whole panel slightly so it reads as a child of its item. */
        margin-left:12px;
    }

    /* The desktop hover-bridge is meaningless on touch and its absolute
       positioning can disturb the static mobile layout. */
    .mega-menu::before{
        display:none;
    }

    .mega-menu .container{
        padding-left:0;
        padding-right:0;
    }

    .mega-intro-column{

        padding-right:0;

        margin-bottom:24px;
    }

    /* Scale the oversized desktop typography down for the narrow column. */
    .mega-heading{
        font-size:24px;
        margin-bottom:10px;
    }

    .mega-intro{
        font-size:15px;
        line-height:1.6;
        margin-bottom:16px;
    }

    .mega-menu-item{
        padding:10px 0;
    }

    .mega-menu-icon{
        width:36px;
        height:36px;
        font-size:24px;
    }

    .mega-menu-title{
        font-size:17px;
        margin-bottom:2px;
    }

    .mega-menu-desc{
        font-size:14px;
        line-height:1.5;
    }

    .navbar .nav-link{

        padding:12px 0;
    }

    .navbar .nav-item.mega-dropdown{
        /* Separate each expanded section. */
        border-bottom:1px solid #f0f0f0;
        padding-bottom:6px;
    }

    /* In the collapsed menu, sit the CTA below the nav items as its own row. */
    .book-appointment-btn{
        display:inline-flex;
        align-self:flex-start;
        margin-top:16px;
    }

}
/* ---------- Slider controls ---------- */
/* Only one slide loaded - nothing to navigate to. */
.home-slider-component.slider-single .swiper-pagination {
    display: none;
}



/* Match the card carousels to the same circular style. */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(21, 36, 64, 0.35);
    color: #152440;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
    background: #152440;
    border-color: #152440;
    color: #fff;
}

.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* Menu item icons are images now, not glyphs. */
.mega-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===========================================================
   HOME HERO
   =========================================================== */
.hero-title {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-subtitle {
    max-width: 720px;
    color: rgba(255, 255, 255, .9);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.hero-btn-outline {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .85);
    transition: background-color .3s, color .3s;
}
.hero-btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}
@media (max-width: 575.98px) {
    .hero-actions .hero-btn {
        width: 100%;
    }
}

/* Shown when a service has no icon uploaded yet */
.service-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 32px;
}

/* Short card copy reads badly when justified - keep it left aligned */
.card p,
.card .card-text {
    text-align: left !important;
}
.service_listing_container .card-text > p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================================
   APPOINTMENT POPUP
   =========================================================== */
.appt-modal .modal-dialog {
    max-width: 520px;
}
.appt-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(3, 32, 146, .18);
}
.appt-modal p {
    text-align: left !important;
}
.appt-close {
    position: absolute;
    top: 20px;
    right: 20px;
}
.appt-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-right: 32px;
    margin-bottom: 22px;
}
.appt-header-icon,
.appt-success-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 20px;
}
.appt-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #1b1f2a;
}
.appt-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6372;
}
.appt-field {
    margin-bottom: 16px;
    border: 0;
    padding: 0;
}
.appt-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1b1f2a;
    float: none;
}
.appt-optional {
    font-weight: 400;
    color: #8a91a0;
}
.appt-input,
.appt-input.form-select {
    height: 46px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    background-color: #fff;
    font-size: 15px;
}
.appt-input:focus {
    border-color: var(--optionalColor);
    box-shadow: 0 0 0 3px rgba(4, 144, 141, .15);
}
.appt-input.is-invalid {
    border-color: #d93a3a;
}
.appt-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #eef1f5;
}
.appt-segmented label {
    margin: 0;
    padding: 9px 12px;
    border-radius: 9px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #5b6372;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.appt-segmented .btn-check:checked + label {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(16, 24, 40, .12);
}
.appt-segmented .btn-check:focus-visible + label {
    outline: 2px solid var(--optionalColor);
    outline-offset: 2px;
}
.appt-modal .error-message {
    margin: 6px 0 0;
    color: #d93a3a;
}
.appt-modal .error-message:empty {
    display: none;
}
.appt-captcha {
    margin-bottom: 8px;
}
.appt-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background-color .3s;
}
.appt-submit:hover {
    background: var(--optionalColor);
}
.appt-submit:disabled {
    opacity: .7;
}
.appt-footnote {
    margin: 14px 0 0;
    font-size: 14px;
    color: #5b6372;
    text-align: center !important;
}
.appt-footnote a {
    font-weight: 600;
    color: var(--primary-color);
}
.appt-success {
    padding: 12px 0 0;
    text-align: center;
}
.appt-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 14px;
}
.appt-success .appt-subtitle {
    margin-bottom: 22px;
    text-align: center !important;
}
@media (max-width: 575.98px) {
    .appt-modal .modal-content {
        padding: 22px 18px;
    }
}

/* Mega menu: doctors under each department, keyboard access, phones */
.mega-dropdown:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (max-width: 991.98px) {
    /* No hover on touch screens: the top-level item opens its listing page instead. */
    .navbar .mega-menu,
    .navbar .dropdown-toggle::after {
        display: none;
    }
    .navbar .nav-link {
        padding: 12px 4px;
    }
    .navbar .book-appointment-btn {
        margin: 8px 0 16px;
    }
}
.navbar .nav-link {
    white-space: nowrap;
}
.mega-intro {
    text-align: left !important;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Six items + logo + button: tighten up so nothing wraps on small laptops. */
    .navbar .nav-link {
        padding: 20px 10px;
        font-size: 15px;
    }
    .navbar .book-appointment-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Long-form page copy (service, department, about) */
.rich-content p,
.rich-content li {
    text-align: left !important;
    line-height: 1.7;
}
.rich-content h2,
.rich-content h3 {
    font-weight: 700;
    margin: 1.5rem 0 .75rem;
}
.rich-content h3 {
    font-size: 1.25rem;
}
.rich-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.service-book-card {
    position: sticky;
    top: 120px;
    background: #f2f7fb;
}
.service-book-card .book-appointment-btn {
    width: 100%;
}

/* Contact page */
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    color: #1b1f2a;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow .2s;
}
.contact-card:hover {
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(3, 32, 146, .1);
}
.contact-card-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
}
.contact-card-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #5b6372;
}
.contact-map {
    height: 100%;
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}
.service-details-description p {
    text-align: left !important;
}

/* Home "Why Choose Us" points, shown until testimonials are added */
.why-points li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    color: #4a5160;
    line-height: 1.6;
}
.why-points strong {
    display: block;
    color: #1b1f2a;
}
.why-points-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
}
.why-reviews-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* Departments listing: one icon style whether or not an icon image is uploaded */
.department-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 30px;
}
.department-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.department-doctors {
    color: var(--optionalColor);
}

/* ===========================================================
   DEPARTMENT PAGE
   =========================================================== */
.dept-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}
.dept-breadcrumb a {
    color: #5b6372;
}
.dept-title {
    margin: 0 0 12px;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #12162b !important;
    opacity: 1; /* the site-wide h1 rule fades headings to 75% */
}
.dept-hero-lead {
    max-width: 560px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #4a5160;
    text-align: left !important;
}
.dept-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 20px 0 0;
    font-size: 15px;
}
.dept-facts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5160;
}
.dept-facts a:hover {
    color: var(--primary-color);
}
.dept-facts i {
    color: var(--optionalColor);
}
.dept-book-card {
    position: sticky;
    top: 120px;
    padding: 24px;
    border: 1px solid #e3e8ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(3, 32, 146, .06);
}
.dept-book-help {
    color: #5b6372;
    text-align: left !important;
}
.dept-doctor-picker li + li {
    margin-top: 8px;
}
.dept-doctor-picker a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    color: #1b1f2a;
    text-decoration: none;
    transition: border-color .2s, background-color .2s;
}
.dept-doctor-picker a:hover {
    border-color: var(--primary-color);
    background: #f5f8ff;
}
.dept-doctor-picker .fa-chevron-right {
    color: var(--primary-color);
}
.dept-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-weight: 700;
}
.dept-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dept-any-doctor {
    display: block;
    padding: 10px 0;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
}
.dept-book-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    font-size: 14px;
    color: #5b6372;
    text-align: center !important;
}
.dept-book-call a {
    font-weight: 700;
    color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .dept-book-card {
        position: static;
    }
}

/* ===========================================================
   SPLIT HERO - text left, photo filling the right side
   (department and doctor pages)
   =========================================================== */
.split-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 0 48px;
    background: #f3f6f9;
    border-bottom: 1px solid #e6ebf1;
}
.split-hero.has-media {
    padding-bottom: 0;
}
.split-hero-body {
    display: flex;
    flex-direction: column;
}
.split-hero.has-media .split-hero-body {
    min-height: 380px;
    padding-bottom: 48px;
}
.split-hero-text {
    margin: auto 0;
    padding-top: 12px;
}
.split-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
}
.split-hero-media picture,
.split-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* soft fade so the photo meets the background instead of a hard edge */
.split-hero-media::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 80px;
    background: linear-gradient(90deg, #f3f6f9, rgba(243, 246, 249, 0));
    z-index: 1;
}
@media (max-width: 991.98px) {
    .split-hero.has-media .split-hero-body {
        min-height: 0;
        padding-bottom: 28px;
    }
    .split-hero-media {
        position: relative;
        width: 100%;
        height: 260px;
    }
    .split-hero-media::before {
        display: none;
    }
}

/* Department page: sections in the main column */
.dept-block {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e6ebf1;
}
.dept-block-title {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #12162b;
}
.dept-doctor-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background: #fff;
}
.dept-doctor-row + .dept-doctor-row {
    margin-top: 12px;
}
.dept-doctor-photo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 24px;
    font-weight: 800;
}
.dept-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dept-doctor-row h3 a {
    color: #12162b;
}
.dept-doctor-row h3 a:hover {
    color: var(--primary-color);
}
.dept-doctor-spec {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--optionalColor);
    text-align: left !important;
}
.dept-doctor-bio {
    margin: 6px 0 0;
    font-size: 14px;
    color: #5b6372;
    text-align: left !important;
}
.dept-doctor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dept-doctor-book,
.dept-doctor-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.dept-doctor-book {
    background: var(--primary-color);
    color: #fff;
}
.dept-doctor-book:hover {
    background: var(--optionalColor);
    color: #fff;
}
.dept-doctor-profile {
    border: 1px solid #c9d1dc;
    color: #1b1f2a;
}
.dept-doctor-profile:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.dept-service-row,
.dept-other-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    color: #12162b;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.dept-service-row:hover,
.dept-other-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 22px rgba(3, 32, 146, .08);
    color: #12162b;
}
.dept-service-row .big-circle {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    font-size: 20px;
}
.dept-service-row .fa-arrow-right,
.dept-other-card .fa-arrow-right {
    color: var(--primary-color);
    transition: transform .2s;
}
.dept-service-row:hover .fa-arrow-right,
.dept-other-card:hover .fa-arrow-right {
    transform: translateX(3px);
}
.dept-service-desc {
    margin-top: 2px;
    color: #5b6372;
    line-height: 1.5;
}
.dept-faq .accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e3e8ef;
    border-radius: 14px !important;
    overflow: hidden;
}
.dept-faq .accordion-button {
    background: #fff;
    color: #12162b;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px !important;
    box-shadow: none;
}
.dept-faq .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: #fff;
}
.dept-faq .accordion-body {
    background: #fff;
    padding-top: 0;
    color: #4a5160;
}
.dept-faq .accordion-body p {
    text-align: left !important;
}
.dept-others {
    padding: 56px 0;
    background: #f3f6f9;
    border-top: 1px solid #e6ebf1;
}
.dept-other-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 20px;
}
.dept-other-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .dept-doctor-row {
        flex-wrap: wrap;
    }
    .dept-doctor-actions {
        flex-direction: row;
        width: 100%;
    }
    .dept-doctor-actions a {
        flex: 1;
    }
}

/* ===========================================================
   DOCTOR PROFILE
   =========================================================== */
.doctor-hero-media {
    width: 40%;
}
.doctor-hero-media img {
    object-position: center top;
}
.doctor-hero-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, rgba(4, 144, 141, .22), rgba(3, 32, 146, .16));
    color: var(--optionalColor);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.doctor-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.doctor-spec-chip {
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 13px;
    font-weight: 700;
}
.dept-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5160;
}
.doctor-timeline li {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1f5;
}
.doctor-timeline-year {
    flex: 0 0 64px;
    font-weight: 800;
    color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .doctor-hero-media {
        width: 100%;
        height: 300px;
    }
}
.dept-other-card .big-circle {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    font-size: 20px;
}
.dept-avatar img {
    object-fit: contain;
}

/* Doctor page: visit-type choices and department panel */
.booking-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.booking-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 16px;
    border: 1px solid #d6dbe3;
    border-radius: 16px;
    background: #fff;
    color: #12162b;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.booking-choice i {
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--primary-color);
}
.booking-choice-title {
    font-weight: 700;
}
.booking-choice-sub {
    font-size: 13px;
    color: #5b6372;
}
.booking-choice:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(3, 32, 146, .1);
    color: #12162b;
}
.booking-choice.is-primary {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.booking-choice.is-primary i,
.booking-choice.is-primary .booking-choice-sub {
    color: rgba(255, 255, 255, .85);
}
.booking-choice.is-primary:hover {
    background: var(--optionalColor);
    border-color: var(--optionalColor);
    color: #fff;
}
.doctor-dept-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(4, 144, 141, .08), rgba(3, 32, 146, .06));
}
.doctor-dept-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    color: var(--optionalColor);
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(3, 32, 146, .08);
}
.doctor-dept-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.doctor-dept-eyebrow {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--optionalColor);
    text-align: left !important;
}
.doctor-dept-link {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(3, 32, 146, .08);
}
.doctor-dept-link:hover {
    background: var(--primary-color);
    color: #fff;
}
@media (max-width: 767.98px) {
    .doctor-dept-panel {
        flex-wrap: wrap;
    }
    .doctor-dept-link {
        width: 100%;
        text-align: center;
    }
}

/* ===========================================================
   SERVICES LISTING
   =========================================================== */
.listing-intro p {
    margin: 0;
    text-align: left !important;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid #e3e8ef;
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 14px 32px rgba(3, 32, 146, .08);
    transform: translateY(-2px);
}
.service-card .big-circle {
    width: 56px;
    height: 56px;
    font-size: 24px;
}
.service-card h2 a {
    color: #12162b;
}
.service-card h2 a:hover {
    color: var(--primary-color);
}
.service-card-badge {
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 12px;
    font-weight: 700;
}
.service-card-desc {
    margin-bottom: 12px;
    color: #4a5160;
    line-height: 1.6;
    text-align: left !important;
}
.service-card-dept {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--optionalColor);
    text-align: left !important;
}
.service-card-dept i {
    margin-right: 6px;
}
.service-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}
.service-card-more {
    font-weight: 600;
    color: var(--primary-color);
}
.listing-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e3e8ef;
}
.listing-help-phone {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===========================================================
   MOBILE POLISH (phones and small tablets)
   One place for the shared pieces: page edges, header, banners,
   section spacing and the footer.
   =========================================================== */
@media (max-width: 767.98px) {
    /* Justified text leaves big word gaps on narrow screens. */
    p,
    footer p {
        text-align: left !important;
    }

    /* Comfortable page edges (Bootstrap's default is 12px). */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Header: drop the tagline strip and slim the bar so content starts sooner. */
    header.bg-body-secondary {
        display: none;
    }
    .navbar {
        padding: 10px 0;
    }
    .navbar-brand img {
        width: auto !important;
        max-height: 56px;
    }

    /* Banners and section rhythm. */
    .split-hero {
        padding: 16px 0 32px;
    }
    .split-hero.has-media .split-hero-body {
        padding-bottom: 24px;
    }
    .split-hero-text {
        padding-top: 4px;
    }
    .dept-title {
        font-size: 2.1rem;
    }
    .dept-hero-lead {
        font-size: 16px;
    }
    .dept-facts {
        gap: 10px 18px;
        margin-top: 16px;
        font-size: 14px;
    }
    section.py-5 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .dept-block {
        margin-top: 32px;
        padding-top: 28px;
    }
    .dept-block-title {
        font-size: 1.35rem;
    }
    .dept-others {
        padding: 36px 0;
    }
    .service-card,
    .dept-book-card {
        padding: 20px;
    }
    .listing-help {
        padding: 24px 20px;
        gap: 18px;
    }
    .listing-help .book-appointment-btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer: stacked columns with real spacing and aligned edges. */
    footer {
        padding: 40px 0 16px;
    }
    footer .footer-top .row > div {
        margin-bottom: 28px;
    }
    footer .about-footer .navbar-brand img {
        width: 112px !important;
        max-height: none;
    }
    footer .about-footer p {
        margin-bottom: 0;
        line-height: 1.6;
        opacity: .9;
    }
    .footer-title {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    .footer-title h4 {
        font-size: 1.15rem;
    }
    .page-more-info ul {
        padding-left: 0;
        margin-bottom: 0;
    }
    .page-more-info li {
        margin-bottom: 12px;
    }
    .open-hours hr {
        margin: 20px 0;
    }
    footer .copyright-wrap .container {
        padding-left: 0;
        padding-right: 0;
    }
    footer .copyright-wrap {
        font-size: 14px;
        line-height: 1.6;
        opacity: .9;
    }
}

/* Home page on phones */
@media (max-width: 767.98px) {
    /* Hero: a comfortable height instead of a full screen, text centred in it. */
    .slider-component {
        height: auto;
        min-height: 520px;
    }
    .slider-text-wrp h1,
    .slider-text-wrp h2 {
        font-size: 2.2rem;
    }
    .ptb-120 {
        padding-top: 48px;
        padding-bottom: 32px;
    }

    /* Why Choose Us: full-width photos at a sensible height. */
    .template-homepage .round img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
    .template-homepage .col-lg-6 > .text-center {
        text-align: left !important;
    }

    /* Service cards: icon beside the text, so long lists stay short. */
    .template-homepage .service_listing_container {
        display: grid !important;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        align-items: start;
        padding: 20px 0 !important;
    }
    .template-homepage .service_listing_container > :first-child {
        grid-row: span 3;
        padding: 0 !important;
        margin: 0 !important;
    }
    .template-homepage .service_listing_container .big-circle {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .template-homepage .service_listing_container .card-title {
        margin-bottom: 4px;
    }
    .template-homepage .service_listing_container .card-link {
        margin: 6px 0 0 !important;
    }
    .template-homepage .card.round.px-4 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .template-homepage section .card.round {
        margin-bottom: 0 !important;
    }

    /* Doctor filters: one swipeable row instead of three wrapped lines. */
    .professional-tab {
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -20px;
        padding: 0 20px;
    }
    .professional-tab::-webkit-scrollbar {
        display: none;
    }
    .professional-tab .nav-link {
        white-space: nowrap;
    }

    /* CTA cards. */
    .template-homepage .card.p-2 .card-body {
        padding: 20px;
    }
    .template-homepage .card .fs-2 {
        font-size: 1.5rem !important;
        padding: 0 !important;
    }
}

/* ===========================================================
   ABOUT PAGE (story-led)
   =========================================================== */
.about-hero {
    padding-bottom: 64px;
}
.about-eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--optionalColor);
    text-align: left !important;
}
.about-headline {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: #12162b !important;
    opacity: 1;
}
.about-lead {
    max-width: 640px;
    font-size: 19px;
}
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.about-section {
    padding: 72px 0;
}
.about-section + .about-section {
    padding-top: 0;
}
.about-section-title {
    margin-bottom: 28px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: #12162b;
}
.about-value {
    height: 100%;
    padding: 28px;
    border-radius: 20px;
    background: #f3f6f9;
}
.about-value p {
    color: #4a5160;
    line-height: 1.65;
    text-align: left !important;
}
.about-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--optionalColor);
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(3, 32, 146, .07);
}
.about-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.about-step {
    position: relative;
    padding-top: 8px;
}
.about-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
/* connecting line between the numbers */
.about-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 56px;
    right: -12px;
    height: 2px;
    background: #dfe5ee;
}
.about-step p {
    color: #4a5160;
    line-height: 1.65;
    text-align: left !important;
}
.about-visit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #032092, #0b3bb5);
    color: #fff;
}
.about-visit .about-section-title {
    color: #fff;
}
.about-visit-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 17px;
}
.about-visit-facts i {
    width: 18px;
    color: #7fe0dd;
}
.about-visit-facts a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: 3px;
}
.about-visit-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.about-visit .book-appointment-btn {
    background: #fff;
    color: var(--primary-color);
}
.about-visit .book-appointment-btn:hover {
    background: #7fe0dd;
    color: #032092;
}
.about-explore {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    text-align: left !important;
}
.about-explore a {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 991.98px) {
    .about-steps {
        grid-template-columns: 1fr 1fr;
    }
    .about-step:nth-child(2)::after {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .about-hero {
        padding-bottom: 36px;
    }
    .about-lead {
        font-size: 17px;
    }
    .about-section {
        padding: 44px 0;
    }
    .about-section-title {
        margin-bottom: 20px;
    }
    .about-value {
        padding: 22px;
    }
    .about-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .about-step {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 16px;
        padding: 0 0 24px;
    }
    .about-step-number {
        grid-row: span 2;
        margin: 0;
    }
    /* vertical line on phones */
    .about-step:not(:last-child)::after {
        display: block;
        top: 48px;
        bottom: 4px;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .about-step:nth-child(2)::after {
        display: block;
    }
    .about-visit {
        padding: 28px 22px;
    }
    .about-visit-side,
    .about-visit-side .book-appointment-btn {
        width: 100%;
    }
}


/* Home page: About teaser - full-bleed image on the left, text on the right */
.home-about {
    position: relative;
    overflow: hidden;
    /* grey band shared with the booking / emergency cards below */
    background: var(--bs-secondary-bg);
}
.home-about-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
}
.home-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-about-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(127, 224, 221, .35) 0, rgba(127, 224, 221, 0) 45%),
        linear-gradient(135deg, #032092 0%, #0b3bb5 45%, #04908d 100%);
}
.home-about-placeholder img {
    width: 34%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.home-about-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 520px;
    padding: 96px 0 96px 64px;
}
.home-about-title {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #12162b;
}
.home-about-text {
    max-width: 520px;
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.65;
    color: #4a5160;
    text-align: left !important;
}
.home-about-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s, color .25s;
}
.home-about-link:hover {
    background: var(--primary-color);
    color: #fff;
}
@media (max-width: 991.98px) {
    .home-about-media {
        position: relative;
        width: 100%;
        height: 280px;
    }
    .home-about-body {
        min-height: 0;
        padding: 40px calc(var(--bs-gutter-x) * .5) 48px;
    }
}
@media (max-width: 767.98px) {
    .home-about-placeholder {
        display: none;  /* decorative only */
    }
    .home-about-text {
        font-size: 16px;
    }
}


/* ===========================================================
   HOME HERO
   =========================================================== */
.home-hero {
    position: relative;
    padding-bottom: 0;
    /* same colour as the "Why Choose Us" section below, so the cards sit on one continuous background */
    background: var(--bs-secondary-bg);
}
.home-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* readable on the left, photo visible on the right */
.home-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 20, 70, .92) 0%, rgba(3, 20, 70, .78) 38%, rgba(3, 20, 70, .15) 75%, rgba(3, 20, 70, 0) 100%);
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 120px;
}
.home-hero-content {
    max-width: 620px;
    color: #fff;
}
.home-hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .14);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: left !important;
}
.home-hero-title {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    opacity: 1;
}
.home-hero-text {
    max-width: 520px;
    margin-bottom: 30px;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
    text-align: left !important;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.home-hero .book-appointment-btn {
    background: #fff;
    color: var(--primary-color);
}
.home-hero .book-appointment-btn:hover {
    background: #7fe0dd;
    color: #032092;
}
.home-hero .swiper-pagination {
    bottom: 76px !important;
}
.home-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
}
.home-hero .swiper-pagination-bullet-active {
    opacity: 1;
}
.home-hero .slider-single .swiper-pagination {
    display: none;
}
/* quick access cards overlapping the photo */
.home-quick {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}
.home-quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(3, 32, 146, .12);
    color: #12162b;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.home-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(3, 32, 146, .18);
    color: #12162b;
}
.home-quick-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 22px;
}
.home-quick-title {
    display: block;
    font-weight: 700;
}
.home-quick-sub {
    display: block;
    font-size: 14px;
    color: #5b6372;
}
@media (max-width: 767.98px) {
    .home-hero {
        padding-bottom: 0;
    }
    .home-hero-slide {
        min-height: 520px;
        align-items: flex-end;
    }
    /* on phones the text sits at the bottom, so shade from the bottom up */
    .home-hero-shade {
        background: linear-gradient(0deg, rgba(3, 20, 70, .95) 0%, rgba(3, 20, 70, .82) 55%, rgba(3, 20, 70, .6) 100%);
    }
    .home-hero-inner {
        padding-top: 40px;
        padding-bottom: 88px;
    }
    .home-hero-eyebrow {
        font-size: 12px;
    }
    .home-hero-title {
        font-size: 2.3rem;
    }
    .home-hero-text {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .home-hero-actions .hero-btn {
        width: 100%;
    }
    .home-hero .swiper-pagination {
        bottom: 48px !important;
    }
    .home-quick {
        margin-top: -40px;
    }
    .home-quick-card {
        padding: 16px 18px;
    }
}

/* Home page sections: one heading style, one rhythm */
.home-section {
    padding: 80px 0;
}
.home-section-tint {
    background: #f3f6f9;
}
.home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 32px;
}
.home-section-link {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}
.home-section-link:hover {
    color: var(--optionalColor);
}
.home-section .about-value {
    background: #f3f6f9;
}
.home-section-tint .dept-doctor-row,
.home-section-tint .service-card {
    background: #fff;
}
.home-testimonials .quote-box {
    border-radius: 20px;
}
@media (max-width: 767.98px) {
    .home-section {
        padding: 48px 0;
    }
    .home-section-head {
        margin-bottom: 22px;
    }
}

/* ===========================================================
   TOP STRIP + FOOTER
   =========================================================== */
.top-strip {
    font-size: 14px;
    color: #4a5160;
}
.top-strip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 24px;
    margin: 0;
    padding: 9px 0;
}
.top-strip-list li,
.top-strip-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5160;
}
.top-strip-list a {
    font-weight: 600;
    color: var(--primary-color);
}
.top-strip-list i {
    color: var(--optionalColor);
}

.site-footer {
    padding: 72px 0 0;
    background: #0d1631;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}
.site-footer a {
    color: rgba(255, 255, 255, .85);
}
.site-footer a:hover {
    color: #7fe0dd;
}
.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #fff !important;
    font-size: 20px;
    font-weight: 800;
}
.site-footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}
.site-footer-about p {
    margin-bottom: 0;
    line-height: 1.7;
    text-align: left !important;
}
.site-footer-social {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
}
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.site-footer-social a:hover {
    background: var(--optionalColor);
    color: #fff;
}
.site-footer-title {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer-links li,
.site-footer-contact li {
    margin-bottom: 12px;
}
.site-footer-contact li {
    display: flex;
    gap: 12px;
}
.site-footer-contact i {
    width: 16px;
    margin-top: 4px;
    color: #7fe0dd;
}
.site-footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer-hours li span:first-child {
    color: #fff;
    font-weight: 600;
}
.site-footer-book {
    display: inline-flex;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-color) !important;
    font-weight: 700;
}
.site-footer-book:hover {
    background: #7fe0dd;
}
.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 56px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}
.site-footer-bottom a {
    color: #FA6D0E;
}
@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 48px;
    }
    .site-footer-bottom {
        margin-top: 32px;
        flex-direction: column;
    }
}

/* ===========================================================
   HOME: OFFERINGS (featured services)
   =========================================================== */
.why-choose-container {
    padding-top: 72px;
    padding-bottom: 56px;
}
.home-offerings {
    padding: 24px 0 72px;
}
.offer-heading {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #12162b;
}
.offer-intro p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.65;
    color: #4a5160;
    text-align: left !important;
}
.offer-all {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    transition: background-color .25s;
}
.offer-all:hover {
    background: var(--optionalColor);
    color: #fff;
}
.offer-list {
    margin: 0;
    padding: 8px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(3, 32, 146, .06);
}
.offer-list li + li .offer-row {
    border-top: 1px solid #eef1f5;
}
.offer-list li + li .offer-row:hover,
.offer-list li:hover + li .offer-row {
    border-top-color: transparent;
}
.offer-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 16px;
    color: #12162b;
    text-decoration: none;
    transition: background-color .2s;
}
.offer-row:hover {
    background: #f3f7fb;
    color: #12162b;
}
.offer-row-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(4, 144, 141, .12);
    color: var(--optionalColor);
    font-size: 22px;
}
.offer-row-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.offer-row-body {
    flex: 1;
    min-width: 0;
}
.offer-row-title {
    display: block;
    margin-bottom: 2px;
    font-size: 17px;
    font-weight: 700;
}
.offer-row-text {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    color: #5b6372;
}
.offer-row-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    color: var(--primary-color);
    transition: background-color .2s, color .2s, border-color .2s;
}
.offer-row:hover .offer-row-arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
@media (max-width: 767.98px) {
    .why-choose-container {
        padding-top: 40px;
        padding-bottom: 32px;
    }
    .home-offerings {
        padding: 8px 0 56px;
    }
    .offer-row {
        gap: 14px;
        padding: 16px 12px;
    }
    .offer-row-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .offer-row-arrow {
        display: none;
    }
    .offer-intro p {
        font-size: 16px;
    }
}



/* ===========================================================
   HOME: PATIENT REVIEWS + HEALTH TIPS, BLOG
   =========================================================== */
.home-reviews,
.home-tips {
    padding: 88px 0;
}
.home-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}
.home-block-link {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}
.home-block-link:hover {
    color: var(--optionalColor);
}
.review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 28px;
    border-radius: 20px;
    background: #f3f6f9;
}
.review-stars {
    margin-bottom: 14px;
    color: #f5a524;
    font-size: 15px;
    letter-spacing: 2px;
}
.review-text {
    flex: 1;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #2b3142;
}
.review-person {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-name {
    display: block;
    font-weight: 700;
    color: #12162b;
}
.review-source {
    display: block;
    font-size: 13px;
    color: #5b6372;
}
.tip-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e6ebf1;
    transition: transform .2s, box-shadow .2s;
}
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(3, 32, 146, .09);
}
.tip-card-media {
    display: block;
    aspect-ratio: 12 / 7;
    overflow: hidden;
}
.tip-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tip-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #032092 0%, #0b3bb5 50%, #04908d 100%);
    color: rgba(255, 255, 255, .85);
    font-size: 48px;
}
.tip-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.tip-card-meta {
    margin-bottom: 8px;
    font-size: 13px;
    color: #5b6372;
    text-align: left !important;
}
.tip-card-meta span {
    font-weight: 700;
    color: var(--optionalColor);
}
.tip-card-title {
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}
.tip-card-title a {
    color: #12162b;
}
.tip-card-title a:hover {
    color: var(--primary-color);
}
.tip-card-text {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6372;
    text-align: left !important;
}
.tip-card-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
}
.tip-cover img {
    width: 100%;
    border-radius: 20px;
}
.tip-body {
    font-size: 17px;
}
.tip-disclaimer {
    margin-top: 32px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f3f6f9;
    font-size: 14px;
    color: #4a5160;
    text-align: left !important;
}
@media (max-width: 767.98px) {
    .home-reviews,
    .home-tips {
        padding: 52px 0;
    }
    .home-block-head {
        margin-bottom: 24px;
    }
    .review-card {
        padding: 22px;
    }
}

/* Offerings sits on white; About + CTA cards share one grey band */
.home-offerings {
    padding: 80px 0;
    background: #fff;
}
.home-offerings .offer-list {
    border: 1px solid #e6ebf1;
    box-shadow: 0 16px 40px rgba(3, 32, 146, .05);
}
.home-cta {
    padding: 56px 0 64px;
    background: var(--bs-secondary-bg);
}
@media (max-width: 767.98px) {
    .home-offerings {
        padding: 48px 0;
    }
    .home-cta {
        padding: 8px 0 32px;
    }
}
.reviews-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    padding: 32px;
    border-radius: 24px;
    background: #f3f6f9;
}
.reviews-empty p {
    color: #4a5160;
    text-align: left !important;
}
.reviews-empty-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary-color);
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(3, 32, 146, .08);
}
.reviews-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}
.reviews-empty-btn:hover {
    background: var(--optionalColor);
    color: #fff;
}

/* About page: Our story */
.about-story-section {
    padding: 80px 0;
}
.about-story-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 5 / 6;
}
.about-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-story-badge {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    font-weight: 600;
    color: #12162b;
}
.about-story-badge i {
    color: var(--optionalColor);
}
.about-story-text {
    font-size: 17px;
}
.about-story-text h2 {
    margin: 28px 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #12162b;
}
.about-story-text h2:first-child {
    margin-top: 0;
}
.about-story-text p {
    color: #4a5160;
    line-height: 1.75;
}
/* the following section already has its own padding */
.about-story-section + .about-section {
    padding-top: 0;
}
@media (max-width: 991.98px) {
    .about-story-media {
        aspect-ratio: 16 / 10;
    }
}
@media (max-width: 767.98px) {
    .about-story-section {
        padding: 44px 0;
    }
    .about-story-text {
        font-size: 16px;
    }
}

/* About page: team */
.about-team-section {
    background: #f3f6f9;
    padding: 80px 0 !important;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    color: #12162b;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(3, 32, 146, .1);
    color: #12162b;
}
.team-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #032092 0%, #0b3bb5 50%, #04908d 100%);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px #e3e8ef;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-initials {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.team-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.team-spec {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--optionalColor);
}
.team-dept {
    margin-top: 2px;
    font-size: 13px;
    color: #5b6372;
}
.team-more {
    margin-top: 16px;
    padding-top: 14px;
    width: 100%;
    border-top: 1px solid #eef1f5;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}
@media (max-width: 767.98px) {
    .about-team-section {
        padding: 44px 0 !important;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .team-card {
        padding: 20px 12px;
    }
    .team-photo {
        width: 84px;
        height: 84px;
    }
    .team-initials {
        font-size: 28px;
    }
}

/* About page: message from the chairman (editorial layout) */
.chairman-section {
    padding: 88px 0;
    background: #fff;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}
.chairman-portrait {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-width: 440px;
    border-radius: 8px;
    background: #e9edf2;
}
.chairman-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chairman-portrait-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 96px;
    color: #b9c4d1;
}
.chairman-portrait figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 24px 20px;
    background: linear-gradient(0deg, rgba(10, 16, 36, .82) 0%, rgba(10, 16, 36, 0) 100%);
    color: #fff;
}
.chairman-cap-name {
    display: block;
    font-weight: 700;
    font-size: 17px;
}
.chairman-cap-title {
    display: block;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}
.chairman-body {
    max-width: 640px;
}
.chairman-headline {
    margin: 4px 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 400;
    line-height: 1.35;
    color: #12162b;
}
.chairman-message p {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5160;
    text-align: left !important;
}
.chairman-signature {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e3e8ef;
}
.chairman-sig-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #12162b;
}
.chairman-sig-title {
    display: block;
    font-size: 14px;
    color: #5b6372;
}
@media (max-width: 991.98px) {
    .chairman-portrait {
        max-width: 360px;
    }
}
@media (max-width: 767.98px) {
    .chairman-section {
        padding: 48px 0;
    }
    .chairman-portrait {
        max-width: none;
        aspect-ratio: 4 / 4.2;
    }
    .chairman-message p {
        font-size: 16px;
    }
}



/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.contact-main {
    padding: 72px 0 40px;
}
.contact-panel {
    height: 100%;
    padding: 36px;
    border-radius: 24px;
    background: #0d1631;
    color: rgba(255, 255, 255, .85);
}
.contact-panel-title {
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}
.contact-panel-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.contact-panel-list li:first-child {
    padding-top: 0;
}
.contact-panel-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(127, 224, 221, .14);
    color: #7fe0dd;
}
.contact-panel-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.contact-panel-list a {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}
.contact-panel-list a:hover {
    color: #7fe0dd;
}
.contact-panel-cta {
    margin-top: 28px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}
.contact-panel-cta p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
    text-align: left !important;
}
.contact-panel-btn {
    display: inline-flex;
    padding: 11px 24px;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-color) !important;
    font-weight: 700;
}
.contact-panel-btn:hover {
    background: #7fe0dd;
}
.contact-form-card {
    height: 100%;
    padding: 36px;
    border: 1px solid #e6ebf1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(3, 32, 146, .05);
}
.contact-form-title {
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #12162b;
}
.contact-form-help {
    margin-bottom: 24px;
    color: #5b6372;
    text-align: left !important;
}
.contact-form-help a {
    font-weight: 600;
    color: var(--primary-color);
}
.contact-textarea.appt-input {
    height: auto;
}
.contact-submit {
    width: auto;
    padding: 0 32px;
}
.contact-submit .hidden {
    display: none;
}
.contact-map-section {
    padding: 0 0 80px;
}
.contact-map-frame {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid #e6ebf1;
}
.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.contact-map-link {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(3, 32, 146, .25);
}
.contact-map-link:hover {
    background: var(--optionalColor);
    color: #fff;
}
@media (max-width: 767.98px) {
    .contact-main {
        padding: 40px 0 24px;
    }
    .contact-panel,
    .contact-form-card {
        padding: 24px 20px;
    }
    .contact-submit {
        width: 100%;
    }
    .contact-map-section {
        padding-bottom: 48px;
    }
    .contact-map-frame {
        height: 320px;
    }
}

/* Service icon artwork (rounded gradient tiles) */
.service-icon-img.big-circle {
    border-radius: 24% !important;
    object-fit: cover;
    background: none;
}
.icon-art {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit;
}
.offer-row-icon:has(.icon-art) {
    background: none;
    overflow: hidden;
}
.mega-menu-icon img {
    border-radius: 12px;
    object-fit: cover;
}
/* department icon tiles: let the artwork fill the tile */
.dept-other-icon:has(.icon-art),
.department-icon:has(.icon-art),
.doctor-dept-icon:has(.icon-art),
.dept-avatar:has(.icon-art) {
    background: none;
    overflow: hidden;
    box-shadow: none;
}
.department-icon:has(.icon-art) {
    border-radius: 24%;
}
.dept-avatar:has(.icon-art) {
    border-radius: 12px;
}
.doctor-dept-panel p {
    text-align: left !important;
}
.template-homepage .card-link,
.department-icon ~ * .card-link,
.card .card-link {
    color: var(--primary-color);
}
.card .card-link:hover {
    color: var(--optionalColor);
}

/* ===========================================================
   DOCTORS: listing + profile
   =========================================================== */
/* portrait tones follow the department colours */
.doc-portrait {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #032092, #04908d);
}
.doc-portrait.tone-cardiology { background: linear-gradient(135deg, #c2185b, #032092); }
.doc-portrait.tone-gastroenterology { background: linear-gradient(135deg, #04908d, #0b3bb5); }
.doc-portrait.tone-pulmonology { background: linear-gradient(135deg, #0a9bb8, #032092); }
.doc-portrait.tone-dermatology { background: linear-gradient(135deg, #d9822b, #c2185b); }
.doc-portrait.tone-neurology-psychiatry { background: linear-gradient(135deg, #5b3cc4, #032092); }
.doc-portrait::before {
    content: "";
    position: absolute;
    width: 140%;
    aspect-ratio: 1;
    right: -70%;
    top: -70%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .14);
}
.doc-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doc-initials {
    position: relative;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.doc-portrait-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    padding: 3px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.doc-portrait-badge img {
    border-radius: 11px;
}

/* listing */
.doc-list-section {
    padding: 56px 0 80px;
}
.doc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.doc-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    border: 1px solid #dfe5ee;
    border-radius: 50px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #12162b;
    transition: border-color .2s, background-color .2s, color .2s;
}
.doc-filter[data-filter="all"] {
    padding-left: 16px;
}
.doc-filter-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}
.doc-filter:hover {
    border-color: var(--primary-color);
}
.doc-filter.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.doc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6ebf1;
    border-radius: 22px;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}
.doc-card[hidden] {
    display: none;
}
.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(3, 32, 146, .1);
}
.doc-card-media {
    display: block;
    aspect-ratio: 5 / 4;
}
.doc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}
.doc-card-name {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
}
.doc-card-name a {
    color: #12162b;
}
.doc-card-name a:hover {
    color: var(--primary-color);
}
.doc-card-spec {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--optionalColor);
    text-align: left !important;
}
.doc-card-dept {
    margin: 4px 0 0;
    font-size: 14px;
    color: #5b6372;
    text-align: left !important;
}
.doc-card-dept i {
    margin-right: 6px;
    color: #9aa3b2;
}
.doc-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
}
.doc-card-actions .dept-doctor-book {
    margin-top: 0;
}
.doc-card-more {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* profile banner */
.doc-hero {
    padding: 20px 0 56px;
    background: #f3f6f9;
    border-bottom: 1px solid #e6ebf1;
}
.doc-hero-portrait {
    max-width: 380px;
    margin-left: auto;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(3, 32, 146, .15);
}
.doc-hero-portrait .doc-initials {
    font-size: clamp(4rem, 9vw, 7rem);
}
.doc-hero-portrait .doc-portrait-badge {
    width: 60px;
    height: 60px;
    right: 18px;
    bottom: 18px;
}

/* at a glance */
.doc-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    background: #e6ebf1;
}
.doc-glance-item {
    padding: 18px 20px;
    background: #fff;
}
.doc-glance-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a91a0;
}
.doc-glance-value {
    font-weight: 700;
    color: #12162b;
}
.doc-glance-value a {
    color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .doc-hero-portrait {
        max-width: 260px;
        margin: 0;
    }
}
@media (max-width: 767.98px) {
    .doc-list-section {
        padding: 32px 0 48px;
    }
    .doc-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -20px 24px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }
    .doc-filter {
        flex: 0 0 auto;
    }
    .doc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .doc-card-body {
        padding: 14px;
    }
    .doc-card-name {
        font-size: 1rem;
    }
    .doc-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .doc-card-actions .dept-doctor-book {
        justify-content: center;
    }
    .doc-hero {
        padding-bottom: 36px;
    }
    .doc-hero-portrait {
        max-width: 200px;
    }
}
.doc-avatar-tone {
    padding: 0;
    overflow: hidden;
}
.doc-avatar-tone .doc-initials {
    font-size: 15px;
    letter-spacing: 0;
}
.doc-avatar-tone .doc-portrait-badge,
.doc-avatar-tone .doc-portrait::before {
    display: none;
}
@media (max-width: 575.98px) {
    .doc-glance {
        grid-template-columns: 1fr;
    }
    .doc-card .doc-portrait-badge {
        width: 30px;
        height: 30px;
        right: 8px;
        bottom: 8px;
        padding: 2px;
        border-radius: 9px;
    }
    .doc-card .doc-portrait-badge img {
        border-radius: 7px;
    }
    .doc-card .doc-initials {
        font-size: 2.6rem;
    }
}
/* doctor banner: portrait fills the right half like the department banner */
.doc-split-media .doc-portrait {
    border-radius: 0;
}
.doc-split-media .doc-initials {
    font-size: clamp(5rem, 11vw, 9rem);
}
.doc-split-media .doc-portrait-badge {
    width: 72px;
    height: 72px;
    right: 32px;
    bottom: 32px;
    padding: 4px;
    border-radius: 20px;
}
.doc-split-media .doc-portrait-badge img {
    border-radius: 16px;
}
.doc-split-media .doc-portrait img:not(.doc-portrait-badge img) {
    object-position: center top;
}
@media (max-width: 991.98px) {
    .doc-split-media {
        height: 280px;
    }
}
